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
➜ trigger and/or timer
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Sekel
(3 posts) Bio
|
| Date
| Tue 30 Apr 2002 07:17 PM (UTC) |
| Message
| I was wondering if someone could help me figure this out. I want to set a timer based on an output to the screen. For example: You have successfully casted foospell!
From there I want to time 3 minutes so I know when I can cast foospell again.
Is this something that is possible?
Thank you!
Chris | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 30 Apr 2002 09:37 PM (UTC) |
| Message
| Right now you can do that with a bit of scripting. The basic idea is to make a trigger that matches on what comes from the MUD, eg.
You have successfully casted *!
(The "*" is a wildcard matching anything).
The trigger could call a script, the script could make a timer (using AddTimer) to go off in 3 minutes, and when the timer fires it can send something to the MUD (eg. a note to yourself), or call a script itself which does this:
world.note "Spell has worn off"
However, version 3.18 of MUSHclient which should be available in a week or so will have simplified methods of doing the above, which will reduce the need for scripting. |
- 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.
10,759 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top