Mushclient version 5.06-pre
Lua scripting language
I am trying to fire a script off a trigger.
The intention is to get an execute command sent after the trigger event happens. A delay of a couple seconds works. HEck even .5 seconds would do the trick.
I complete the quest!
trigger event now
script delay
execute xcp
I have tried a few things and this is the latest after researching the forums.
I also added a second to world command of 'cheer' just for giggles and to make sure there is a delay since I don't know how to delay an execute. Here is my trigger:
<triggers>
<trigger
enabled="y"
match="You have completed your quest."
send_to="12"
sequence="100"
>
<send>world.DoAfter 2, "cheer" world
world.execute xcp</send>
</trigger>
</triggers>
Here is my error:
Compile error
World: redacted
Immediate execution
[string "Trigger: "]:1: '=' expected near '2'
Lua scripting language
I am trying to fire a script off a trigger.
The intention is to get an execute command sent after the trigger event happens. A delay of a couple seconds works. HEck even .5 seconds would do the trick.
I complete the quest!
trigger event now
script delay
execute xcp
I have tried a few things and this is the latest after researching the forums.
I also added a second to world command of 'cheer' just for giggles and to make sure there is a delay since I don't know how to delay an execute. Here is my trigger:
<triggers>
<trigger
enabled="y"
match="You have completed your quest."
send_to="12"
sequence="100"
>
<send>world.DoAfter 2, "cheer" world
world.execute xcp</send>
</trigger>
</triggers>
Here is my error:
Compile error
World: redacted
Immediate execution
[string "Trigger: "]:1: '=' expected near '2'