Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ Enable/disable trigger groups

Enable/disable trigger groups

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Bryan   (1 post)  Bio
Date Fri 30 Sep 2011 04:30 AM (UTC)
Message
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..
Top

Posted by Daniel P   USA  (97 posts)  Bio
Date Reply #1 on Fri 30 Sep 2011 06:33 AM (UTC)
Message
EnableTriggerGroup("groupname",true)
EnableTriggerGroup("groupname",false)
Top

Posted by Nick Gammon   Australia  (23,057 posts)  Bio   Forum Administrator
Date Reply #2 on Fri 30 Sep 2011 12:29 PM (UTC)

Amended on Fri 30 Sep 2011 12:30 PM (UTC) by Nick Gammon

Message
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.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Tisorin   (15 posts)  Bio
Date Reply #3 on Fri 25 Jan 2013 11:46 AM (UTC)
Message
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?
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #4 on Fri 25 Jan 2013 02:21 PM (UTC)
Message
Send("your command goes here") will send your command to the game from the script processor.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Tisorin   (15 posts)  Bio
Date Reply #5 on Tue 29 Jan 2013 11:01 AM (UTC)
Message
Ohoo, thank you
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


23,743 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.