command stacking in a timer

Posted by Tisorin on Tue 16 Sep 2014 06:56 AM — 3 posts, 13,685 views.

#0
Ok, this may sound sily, but how you put more commands in a timer? I tried to put them on a separate line, but I get a scripting error. This is the code for the alias.
<aliases>
<alias
match="testtimer"
enabled="y"
send_to="12"
sequence="100"
>
<send>AddTimer ("test_timer", 0, 0, 2, "dance;yawn;laugh", timer_flag.Enabled + timer_flag.OneShot, "")</send>
</alias>
</aliases>
Australia Forum Administrator #1
Can you show what you tried, and what scripting error you got?
#2
Ok, first I tried what I put in the first message, with ; in between commands
Then, I tried putting each command on it's line:

<aliases>
<alias
match="testtimer"
enabled="y"
send_to="12"
sequence="100"
>
<send>AddTimer ("my_timer", 0, 0, 1.5, "dance
yawn", timer_flag.Enabled + timer_flag.OneShot, "")</send>
</alias>
</aliases>


And I got this error
Error number: 0
Event: Compile error
Description: [string "Alias: "]:1: unfinished string near '"dance'
Called by: Immediate execution

Also, how can I put an alias to be executed in the timer? If I have the alias emotes, which several emotes in it, and I put emotes to be executed, it sends the command "emotes" to world and not the commands from the alias.