Export Triggers/Aliases to script file.

Posted by Magnum on Mon 07 Jan 2002 04:17 PM — 3 posts, 10,766 views.

Canada #0
I would find the following function handy:

On the triggers screen, highlight multiple triggers,
Click "Export to script"
Click VBS
Enter filename
Click Ok.

Mushclient creates a script file with all the commands that would create the triggers, in the format of the language chosen.

A default header of "Sub Install_Triggers (a, b, c)" could be used (for example).

Both aliases and triggers could be exported this way.
Australia Forum Administrator #1
Good idea. Easy to do, too. :)

I have added that as suggestion #436.
Australia Forum Administrator #2
Meanwhile you could do it yourself by using GetTriggerList and then GetTrigger or GetTriggerInfo, and doing a world.note with each resulting trigger. The output could then be copied and pasted into a script.

The only problem is that this would only work with named triggers, however triggers need names anyway before you can add them with AddTrigger.