I'm making a simple WA that plays different sounds based on a random number when my shadow priest gains the Insanity buff, but I'm having a weird issue.
The following is a Custom action On Show.
The Print() is only there for debugging purposes at the moment but I am recieving the following error when this runs.local math = math.random(6)
print(math)
if math = 1 then
PlaySoundKitID(11514)
end
if math = 2 then
PlaySoundKitID(15756)
end
It looks like WA is expecting a then after the if statement, which I have. If I switch the = to > or < it works just fine.[string "return function() local math = math.random(6)..."5]:5:'then' expected near '='