Suppose...
function name()
AddTrigger("monster", "match text", "", trigger_flag.Enabled, custom_colour.Custom15, 0, "", "")
SetTriggerOption ("monster", "ignore_case", "y")
end
After the function was called, the ignore_case box remained unchecked, so I went on to play around and here's the result:
SetTriggerOption ("monster", "ignore_case", "y") (failed)
SetTriggerOption ("monster", "ignore_case", "Y") (failed)
SetTriggerOption ("monster", "ignore_case", "1") (failed)
I had the same problem in almost every other case involving the y/n argument (didn't test them all), but the function worked fine in cases without the y/n argument. For example:
SetTriggerOption ("monster", "group", "name") (worked)
What did I do wrong? Thanks :)
Environment:
Mushclient 4.33
Lua 5.1
Windows XP SP3
|