[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  Script triggered output info?
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

Script triggered output info?

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

Posted by Grug   (15 posts)  [Biography] bio
Date Sat 29 Oct 2016 07:54 PM (UTC)

Amended on Sat 29 Oct 2016 08:34 PM (UTC) by Grug

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?

[Go to top] top

Posted by Nick Gammon   Australia  (21,674 posts)  [Biography] 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

You want DoAfterSpecial.

Template:function=DoAfterSpecial DoAfterSpecial

The documentation for the DoAfterSpecial script function is available online. It is also in the MUSHclient help file.

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
[Go to top] top

Posted by Grug   (15 posts)  [Biography] bio
Date Reply #2 on Sat 29 Oct 2016 09:56 PM (UTC)
That is perfect, thank you!
[Go to top] 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.


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

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]