trigger and/or timer

Posted by Sekel on Tue 30 Apr 2002 07:17 PM — 2 posts, 11,357 views.

#0
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
Australia Forum Administrator #1
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.