Is there an easy way to turn a group of triggers off?

Posted by Ringring7 on Sun 15 Jun 2008 08:30 PM — 5 posts, 19,842 views.

#0
Is there an easy way to turn a group of triggers off? I'm a noob. Thanks.
Australia Forum Administrator #1
You can use EnableTriggerGroup to enable or disable a group of triggers.

http://www.gammon.com.au/scripts/doc.php?function=EnableTriggerGroup


If you want to do aliases and timers as well you can use EnableGroup.


http://www.gammon.com.au/scripts/doc.php?function=EnableGroup
#2
Ok, noob reply....HOW do I do that? I mean, I tried to enter that text ( world.EnableTriggerGroup "yetis", 1) into the mud but it didnt like it. I guess it has to be some sort of script or something, but i need some guidance how to do that?
Australia Forum Administrator #3
You use "send to script" in an alias, if an alias is what you are trying to do.

For example:


<aliases>
  <alias
   match="enableyetis"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>
EnableTriggerGroup ("yetis", true)
ColourNote ("white", "blue", "Yetis group enabled!")
</send>
  </alias>
</aliases>


See http://mushclient.com/pasting for how to copy that into the client.

For more information about scripting, see http://mushclient.com/scripting .

To disable the group change the word "true" to "false" and the ColourNote line appropriately (ie. make a second alias to disable the group).


#4
Oh the power!!!
Thanks Nick! Awesome.