[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  trigger and/or timer

trigger and/or timer

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Sekel   (3 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] 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
[Go to top] 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.


8,090 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]