Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, 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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ quick very newb question about enabling triggers
|
quick very newb question about enabling triggers
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Tigers12
(10 posts) Bio
|
| Date
| Thu 29 Oct 2009 06:51 PM (UTC) Amended on Thu 29 Oct 2009 07:33 PM (UTC) by Tigers12
|
| Message
| I am trying to have one trigger (when matched), send a command to mud (move east, eg) and enable 2 other triggers (and possibly disable itself though I could add the disabling in the subsequent trigger easily).
Is there a command I can put into the Trigger 'Send' box that simply enables (or disables) another trigger (without specifying a true/false). If so, what is it? And if so, where do I set the 'Send to' dropdown assuming I want to send a command to the mud (moving) in addition to enabling 2 triggers and disabling the current one?
I am positive this can all be done by an efficient script, but I am still learning scripting (slowly), and in the meantime, if there is a simple command that enables a separate trigger (no questions asked) then my needs will be met.
I have a bunch of named Triggers made, just curious as to how one can simply Enable/Disable them (by name) inside another trigger. Something like EnableTrigger(triggername)? Though I know this doesn't do it.
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Thu 29 Oct 2009 08:15 PM (UTC) |
| Message
|
Tigers12 said:
And if so, where do I set the 'Send to' dropdown assuming I want to send a command to the mud (moving) in addition to enabling 2 triggers and disabling the current one?
You need "send to script". Once you are scripting you can do lots of things. For example:
EnableTrigger("triggerb", true) -- enable another trigger
EnableTrigger("triggerc", true) -- and yet another
EnableTrigger("triggera", false) -- disable myself
Send ("east") -- send to MUD
Send ("open door") -- send something else
Make sure you give the triggers names (labels).
Also if you have a "bunch" you can instead put the into a group (put a name in the group field) and then enable the whole lot at once (or disable it).
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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.
11,324 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top