I'm trying to fiqure out how to capture data from a trigger, and save variables that I can use. My code looks like:
I found this post, which seems to do close to what I need:
http://www.mushclient.com/forum/?id=9935&page=999
and I also read about importing the XML. The problem is, do I leave the entire <Triggers></Triggers> in the script file? And if I do, do I need to append anything before it, or can I just copy exactly what is there to my script, and then paste the trigger into MUSH. If I paste that into my script file, which is currently empty, and then I import the trigger, I recieve the error:
<triggers>
<trigger
enabled="y"
match="^You say, "refill \d+ \D+\."$"
send_to="12"
sequence="100"
>
<send>
require "var"
var.vialnum = %1
var.vialtype = %2
</send>
</trigger>
</triggers>
I found this post, which seems to do close to what I need:
http://www.mushclient.com/forum/?id=9935&page=999
and I also read about importing the XML. The problem is, do I leave the entire <Triggers></Triggers> in the script file? And if I do, do I need to append anything before it, or can I just copy exactly what is there to my script, and then paste the trigger into MUSH. If I paste that into my script file, which is currently empty, and then I import the trigger, I recieve the error:
Quote:
Compile error
World: Aetolia
Immediate execution
[string "Script file"]:1: unexpected symbol near '<'
Error context in script:
Compile error
World: Aetolia
Immediate execution
[string "Script file"]:1: unexpected symbol near '<'
Error context in script: