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
➜ Lua
➜ Script triggered output info?
Script triggered output info?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Grug
(15 posts) Bio
|
Date
| Sat 29 Oct 2016 07:54 PM (UTC) Amended on Sat 29 Oct 2016 08:34 PM (UTC) by Grug
|
Message
| Hey there.
I'm currently playing a mud that has cooldowns for certain actions.
Upon performing said action, it tells you how long the cooldown will be, however it does not notify you when the cooldown has cooled down, heh.
What I'd like is a trigger to pick up on the cooldown line, for example "* second cooldown!", and after 30 seconds to send the word "done" to my output.
So something similar to DoAfter(%1, "done"), except send the "done" to output instead of world.
Is it possible?
Thanks. | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 29 Oct 2016 09:52 PM (UTC) Amended on Sat 29 Oct 2016 09:53 PM (UTC) by Nick Gammon
|
Message
| You want DoAfterSpecial.
That lets you send to the output window, amongst other things.
For example:
DoAfterSpecial (10, "Done!", sendto.output)
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Grug
(15 posts) Bio
|
Date
| Reply #2 on Sat 29 Oct 2016 09:56 PM (UTC) |
Message
| That is perfect, thank you! | 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.
12,720 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top