Altering trigger properties in script

Posted by Vaejor on Fri 10 May 2002 09:02 PM — 4 posts, 16,403 views.

#0
I've been using MushClient for a short time now, and can't seem to find a solution to this problem.

I'm interested in creating a script that will allow me to change specific properties in a specifically labelled.

Real world concept:
I have several triggers that catch damage messages. I have them with specific prefixes in their labels so they can be found easily by looping through all items returned by GetTriggerList. What I want to do is be able to use a script or alias(to execute a script) to cause all of these triggers to set their 'omit from output' option on or off at will.

I know that setting single options like this could probably be done complexly, using GetTriggerInfo, DeleteTrigger, and AddTrigger, but I have a feeling that would be a mess which would be fairly hard to maintain as additional complexity is added to the trigger functionality.

This sort of thing could also be useful for aliases, timers, etc.
Australia Forum Administrator #1
Added as suggestion #465.
Australia Forum Administrator #2
Implemented in version 3.29 using SetVariableOption, SetTimerOption, SetAliasOption (and their corresponding "Get" variants).
#3
Woo. Nice work Nick. :)

Already have plans for where I can fit it in to squeeze together some triggers.

Thanks a lot.