world.DoAfter question

Posted by Guest1 on Sat 04 Oct 2003 09:45 AM — 4 posts, 19,884 views.

USA #0
I have a trigger that looks like this:

fires on: Your 'aegis' spell is about to fail.
which sends: aegis_warning
'Sent to:' is set to script

this call the script below:


sub aegis_warning
	world.EchoInput = 0
  world.send "grouptell :: aegis falling in 1 minute"
	world.EchoInput = 1
  world.DoAfter 48, "grouptell :: aegis falling in 10 seconds"
end sub

just wondering how to get rid of the echo on the DoAfter bit that is sent to the world... or can I? Nothing major, just asthetics..

cheers

addon: ..thinking some more, I guess I should get the DoAfter to call a script instead, and then the script could send to the world using the world.EchoInput = 0.. but how do I get the DoAfter to call a script rather than send to world? ..can I even?
Amended on Sat 04 Oct 2003 10:35 AM by Guest1
Greece #1
No, DoAfter only sends unparsed commands, but I guess you can use DoAfterSpecial to send something like "aegis_blablabla" and have that as an alias to call a script.
USA #2
hmm ok I gotchya, and just omit from output on the alias.. I'll give that a go, thanks. :)

hmm.. the alias didn't pick it up, it just sent straight to the mud :/ As I said, it's purely a cosmetic so no biggie.
Amended on Sat 04 Oct 2003 10:58 AM by Guest1
Canada #3
Try using a full "AddTimer", which calls a script when fired. See the function list/help for syntax on how to use it.