I have a trigger that isn't firing correctly and I -think- I have the correct syntax. Here is what I have:
Line to match: "You are *."
What is sent to script:
if %1 == "hungry" then
Exectue ("eat meb")
elseif %1 == "thirsty" then
Execute ("drink dec")
Execute ("drink dec")
end
I run into a problem however. The line is fairly ambiguous and will match to a few different lines one such being:
You are exceptionally intelligent.
This throws the error:
[string "Trigger: "]:1: 'then' expected near 'intelligent'
Is there something I'm doing wrong here?
Line to match: "You are *."
What is sent to script:
if %1 == "hungry" then
Exectue ("eat meb")
elseif %1 == "thirsty" then
Execute ("drink dec")
Execute ("drink dec")
end
I run into a problem however. The line is fairly ambiguous and will match to a few different lines one such being:
You are exceptionally intelligent.
This throws the error:
[string "Trigger: "]:1: 'then' expected near 'intelligent'
Is there something I'm doing wrong here?