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

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Enable/disable trigger groups
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Enable/disable trigger groups

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Bryan   (1 post)  [Biography] bio
Date Fri 30 Sep 2011 04:30 AM (UTC)  quote  ]
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  (86 posts)  [Biography] bio
Date Reply #1 on Fri 30 Sep 2011 06:33 AM (UTC)  quote  ]
Message
EnableTriggerGroup("groupname",true)
EnableTriggerGroup("groupname",false)
[Go to top] top

Posted by Nick Gammon   Australia  (19,531 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Fri 30 Sep 2011 12:29 PM (UTC)  quote  ]

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   (13 posts)  [Biography] bio
Date Reply #3 on Fri 25 Jan 2013 11:46 AM (UTC)  quote  ]
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  (1,015 posts)  [Biography] bio   Global Moderator
Date Reply #4 on Fri 25 Jan 2013 02:21 PM (UTC)  quote  ]
Message
Send("your command goes here") will send your command to the game from the script processor.

http://aardwolfclientpackage.googlecode.com/
https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Tisorin   (13 posts)  [Biography] bio
Date Reply #5 on Tue 29 Jan 2013 11:01 AM (UTC)  quote  ]
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.


2,848 views.

It is now over 60 days since the last post. This thread is closed.   [New subject]  Start a new subject   [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.

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Web site powered by FutureQuest.Net]