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
➜ Suggestions
➜ Timed triggers
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| NinjaKick
USA (17 posts) Bio
|
| Date
| Fri 11 Apr 2003 12:59 AM (UTC) |
| Message
| I think in the trigger creation screen, there should be a thing where we can set it to go off after a certain amount of seconds. So like I see:
You are hungry.
(triggers goes off, but it waits 5 seconds before doing anything)
(trigger - cast 'create food';get food;eat food)
Instead of making a trigger call on a script. Then the script making a one time used timer. |
I'm tired. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Fri 11 Apr 2003 01:48 AM (UTC) |
| Message
| You can do exactly that with version 3.35 or 3.36. You use the trigger to send a "DoAfterSpecial" to the script engine (this creates the timer), then the timer fires and sends the command to the command parser, which does the command stacking, evaluates aliases etc. I tested this, and it works fine ...
<triggers>
<trigger
custom_colour="3"
enabled="y"
match="You are hungry."
send_to="12"
sequence="100"
>
<send>DoAfterSpecial 5, "create food;get food;eat food", 10</send>
</trigger>
</triggers>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| NinjaKick
USA (17 posts) Bio
|
| Date
| Reply #2 on Fri 11 Apr 2003 06:34 AM (UTC) |
| Message
| | I just got 3.36 and I don't see where I can do a timed trigger. I don't know how to use any of the scripting stuff. I know how to use the windows. |
I'm tired. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Fri 11 Apr 2003 07:50 AM (UTC) |
| Message
| Copy from this page from (and including) <triggers> to </triggers> lines, go into your trigger configuration window in MUSHclient and click the "paste" button.
That will put it there. Then take a look - it isn't hugely complicated. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| NinjaKick
USA (17 posts) Bio
|
| Date
| Reply #4 on Fri 11 Apr 2003 08:12 AM (UTC) |
| Message
| | I tried it, and it doesnt seem to send anything to the world. |
I'm tired. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #5 on Fri 11 Apr 2003 08:31 AM (UTC) |
| Message
| | Do you literally get "You are hungry." on a line on its own? Not with a prompt in front of it, or anything? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| NinjaKick
USA (17 posts) Bio
|
| Date
| Reply #7 on Fri 11 Apr 2003 08:32 AM (UTC) |
| Message
| | It even made it turn green on the screen. So I know it is seeing it. Just not doing anything. |
I'm tired. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #8 on Fri 11 Apr 2003 09:02 AM (UTC) |
| Message
| | Ah, OK. Go into the "scripts" configuration screen and check the "enable script" checkbox. You don't need a script filename. The language is VBscript. |
- 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.
26,156 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top