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 /
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 /