Script triggered output info?

Posted by Grug on Sat 29 Oct 2016 07:54 PM — 3 posts, 16,783 views.

#0
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.
Amended on Sat 29 Oct 2016 08:34 PM by Grug
Australia Forum Administrator #1
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)
Amended on Sat 29 Oct 2016 09:53 PM by Nick Gammon
#2
That is perfect, thank you!