executing a /print within an a trigger with AddTimer?

Posted by Shoryuujo on Tue 25 Nov 2014 01:28 AM — 2 posts, 10,709 views.

#0
Not sure if this is quite the right area to post as a new user with a question about this and also pretty new to Lua, but I did a trigger for HP* that sends the following with sendto: dropdown selected as script:

print "Enable Thing"
AddTimer("TestTimer", 0, 0, 5, "/print "you're ready now!"", timer_flag.Enabled + timer_flag.OneShot, "")

the first print does work, but the AddTimer doesn't, because of the /print "You're ready now!" portion. I'm sure there are other perhaps easier ways of dealing with this, such as executing an alias that performs /print "you're ready now!"

note: my script prefix is /
Australia Forum Administrator #1
AddTimer sends to the world, not to Execute, and thus the script won't be noticed. Try DoAfterSpecial:


print "Enable Thing"
DoAfterSpecial (5, 'print "ready now!"', sendto.script)