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 ➜ General ➜ New to DoAfter

New to DoAfter

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


Posted by Ghambi   (2 posts)  Bio
Date Tue 15 Sep 2009 12:54 PM (UTC)

Amended on Tue 15 Sep 2009 12:56 PM (UTC) by Ghambi

Message
Alright I cannot figure out how to make a trigger call a script so that it will call a command out after 5 seconds.

My trigger is "pole goes lax as the * swims toward the boat."
I need it to send "tug hard" after 5 seconds

any chance somebody could walk me through this?
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #1 on Tue 15 Sep 2009 06:38 PM (UTC)
Message
Set the "Send to" option to "Script", and in the Send box, put this in:


DoAfter(5, "tug hard")


This creates a one-shot Timer that will fire five seconds after that script is called. Meanwhile the script continues executing, so you could do other things or add more timers.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Ghambi   (2 posts)  Bio
Date Reply #2 on Tue 15 Sep 2009 08:16 PM (UTC)
Message
thank you very much works great
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.


9,649 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.