Ok, I have just started playing around with lua coding, and need to create a trigger within a function... I came up with this:
id, currentroom and destination all have values, and the function seems to work without a problem...except the trigger doesn't seem to work.
Also, if I create a trigger like this, will it be saved within the plugin when I close mushclient?
Thanks in advance for the help
Wyd
AddTriggerEx(id,currentroom,
"WORM WARP TO " .. string.upper (destination),
trigger_flag.Enabled or trigger_flag.RegularExpression,
custom_colour.NoChange,0," "," ",2,100)
id, currentroom and destination all have values, and the function seems to work without a problem...except the trigger doesn't seem to work.
Also, if I create a trigger like this, will it be saved within the plugin when I close mushclient?
Thanks in advance for the help
Wyd