Enable/disable trigger groups

Posted by Bryan on Fri 30 Sep 2011 04:30 AM — 6 posts, 31,909 views.

#0
I've read the section on this and I apologise for being dumb but I dont' know where to input :

To enable an entire group of triggers do this:

world.EnableTriggerGroup "groupname", 1

To disable the entire group:

world.EnableTriggerGroup "groupname", 0

this is throwing me off and again sorry to sound so dumb..
USA #1
EnableTriggerGroup("groupname",true)
EnableTriggerGroup("groupname",false)
Australia Forum Administrator #2
You put it inside (say) an alias, and have it "send to script". Then put what Daniel said (one line or the other).

Something like this:


<aliases>
  <alias
   match="battle"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>

EnableTriggerGroup("battlegroup", true)
Note ("Battle group enabled")

</send>
  </alias>
</aliases>


Template:pasting
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.

Amended on Fri 30 Sep 2011 12:30 PM by Nick Gammon
#3
Greetings,
I understood the metod, but I encontered a problem. When I try to mix commands sent to the mud and script commands, I get an error. I want to create an alias to "kill monster" and in the same time to "Enable a trigger group". How can I do that?
USA Global Moderator #4
Send("your command goes here") will send your command to the game from the script processor.
#5
Ohoo, thank you