|
njms Newbie
Joined: 22 Sep 2004 Posts: 8
|
Posted: Sun Dec 05, 2004 10:55 pm
Timer or Wait or something |
This is what I want to do... I want to have multipile timers (at differing intervals) which reset when I recieve a line from the MUD. For example:
Trigger line
(timer resets to 2.5 seconds)
.
.
.
.
(1.7 seconds later)
Trigger line
(timer resets to 2.5 seconds)
.
.
.
.
.
.
.
.
(2.5 seconds later)
Command is input
(timer resets to 2.5 seconds)
Thanks, any help will be appreciated. |
|
|
|
Kiasyn Apprentice
Joined: 05 Dec 2004 Posts: 196 Location: New Zealand
|
Posted: Sun Dec 05, 2004 10:59 pm |
#TRIGGER {Trigger line} {#untrigger myalarm;#ALARM "myalarm" {+2500} {command}}
|
|
|
|
njms Newbie
Joined: 22 Sep 2004 Posts: 8
|
Posted: Sun Dec 05, 2004 11:19 pm |
Wow, what and incredibly quick and helpful post. Thanks! That does the job.
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Mon Dec 06, 2004 2:20 am |
Actually there is no need to #UNTRIGGER it Naming your alarm will let it be overwritten and also we don't want a 2,500 second alarm :P
#TRIGGER {trigger line} {#ALARM "myalarm" {+2.5} {command}} |
|
|
|
|
|