adding a timer to the trigger script

Posted by Hathcock on Wed 03 Dec 2003 01:36 AM — 4 posts, 16,982 views.

#0
I need this trigger to go off about 1.5 seconds after it is activated, thanks for any help given

<triggers>
<trigger
enabled="y"
group="Herbbalance"
match="Your mind feels somewhat slower and more plodding."
regexp="y"
send_to="12"
>
<send>mind = 1
send &quot;outb goldenseal&quot;eat goldenseal&quot;</send>
USA #1
Hmm. First off.. The text you have there would come out as:

send "outb goldenseal"eat goldenseal"

this won't work. Now, if you want those commands sent on a delay, Mushclient will only do delays in seconds, so you can have a 1, 2, 3, 4 second delay, etc., not a 1.5 second. That said, you probably need to use:

doafter 2, &quot;outb goldenseal&quot;
doafter 2, &quot;eat goldenseal&quot;

It likely wont matter if the 'mind' variable is set earlier than that. The above command will execute in the same order given, but are each sent using a temporary timer with a delay of 2 seconds.
#2
hmmm, didn't work...it doesn't send anything at all now
#3
ok, it's because I had timers off, sorry