Quick LUA question for creating Triggers

Posted by Jsearles on Fri 18 Sep 2015 01:44 AM — 4 posts, 18,616 views.

#0
When using either
AddTrigger(...) or
AddTriggerEx(...)

How do you specify a group for the newly created trigger?

Thanks.
#1

SetTriggerOption("YourTriggerName", "group", "YourGroupName")
#2
Awesome, thanks!
Australia Forum Administrator #3
You can also use ImportXML to create triggers, timers and aliases in one hit, using the same format used in the world file. You can also see the format if you select a trigger in the trigger dialog, and hit the Copy button. Then paste the resulting text into a word processor.


Template:function=ImportXML
ImportXML

The documentation for the ImportXML script function is available online. It is also in the MUSHclient help file.