Register forum user name Search FAQ

Gammon Forum

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 ➜ Tips and tricks ➜ adding a timer to the trigger script

adding a timer to the trigger script

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


Posted by Hathcock   (49 posts)  Bio
Date Wed 03 Dec 2003 01:36 AM (UTC)
Message
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>
Top

Posted by Shadowfyr   USA  (1,792 posts)  Bio
Date Reply #1 on Wed 03 Dec 2003 03:14 AM (UTC)
Message
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.
Top

Posted by Hathcock   (49 posts)  Bio
Date Reply #2 on Wed 03 Dec 2003 03:25 AM (UTC)
Message
hmmm, didn't work...it doesn't send anything at all now
Top

Posted by Hathcock   (49 posts)  Bio
Date Reply #3 on Wed 03 Dec 2003 03:40 AM (UTC)
Message
ok, it's because I had timers off, sorry
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.


16,371 views.

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

Go to topic:           Search the forum


[Go to top] top

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