MUSH #if

by Unknown

Back to Mechanic's Corner.

Unknown2008-04-07 10:36:26
So, in Nexus, if-then statements run like this:

Trigger: Blah blah {w} blah
CODE
#if $1 = blah {
say Blah!
}


How would I go about doing this in Mush Lua? wtf.gif
Unknown2008-04-07 10:51:34
Regex Trigger: Blah blah (\\w+) blah
CODE
if ("%1" == "blah") then
  Echo("Blah!")
end
Unknown2008-04-07 11:10:43
Thanks, Zarquan!

New query:

How do I turn groups off in Mush?
Unknown2008-04-07 11:30:59
Lookup the EnableTriggerGroup function. The first argument will be the name of the group and the second is a boolean value: true to enable, false to disable.