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
➜ Triggers, Timers, and Output
|
Triggers, Timers, and Output
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Webkid
USA (22 posts) Bio
|
| Date
| Sat 05 Jul 2003 09:13 PM (UTC) |
| Message
| I'm am in need of some help.
I'm trying to get a trigger set up so when it matches it activates a timmer and when the timer is up it sends text to output.
Example:
Match on: Player preforms surgery on Player.
Start Timer: 10 mins.
End Timer: (Output)You can now preform surgery.
and then disable the timer so it doesnt start till the trigger is matched again.
Thanks,
WK |
-Webkid | | Top |
|
| Posted by
| Nick Gammon
Australia (23,166 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sat 05 Jul 2003 09:29 PM (UTC) |
| Message
| See this:
http://www.gammon.com.au/scripts/doc.php?function=DoAfterNote
You just need to make a trigger that matches on whatever it is, and then in the "send" text put this:
DoAfterNote 600, "You can now perform surgery"
Make the trigger "send to script" and make sure scripting is enabled under the scripting configuration tab.
What this does will set up a temporary one-shot timer that will fire in 600 seconds (10 minutes) and make that note at that time. Being one-shot it will only do it once. |
- 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.
12,364 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top