Hungry/Thirsy Trigger

Posted by Meraki on Mon 26 May 2014 03:53 PM — 3 posts, 14,635 views.

#0
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?
Australia Forum Administrator #1
Template:faq=32
Please read the MUSHclient FAQ - point 32.
#2
This worked beautifully, Thank you!