[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Enable/disable trigger groups

Enable/disable trigger groups

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


Posted by Bryan   (1 post)  [Biography] 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..
[Go to top] top

Posted by Daniel P   USA  (97 posts)  [Biography] bio
Date Reply #1 on Fri 30 Sep 2011 06:33 AM (UTC)
Message
EnableTriggerGroup("groupname",true)
EnableTriggerGroup("groupname",false)
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] 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
[Go to top] top

Posted by Tisorin   (15 posts)  [Biography] 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?
[Go to top] top

Posted by Fiendish   USA  (2,514 posts)  [Biography] 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
[Go to top] top

Posted by Tisorin   (15 posts)  [Biography] bio
Date Reply #5 on Tue 29 Jan 2013 11:01 AM (UTC)
Message
Ohoo, thank you
[Go to top] 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.


22,226 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]