ggp: Sets "getting" to 1 and allows "get gold from @pack"
So if someone where to force me to get/take gold from pack, I would automatically put it back in save for when I use the alias ggp.
<variables>
<variable name="getting">0</variable>
<variable name="pack">111111</variable>
</variables>
<aliases>
<alias
match="ggp"
enabled="y"
expand_variables="y"
send_to="12"
sequence="100"
>
<send>SetVariable("getting", 1)
Send("get gold from @pack")
SetVariable("getting", 0)</send>
</alias>
</aliases>
<triggers>
<trigger
enabled="y"
expand_variables="y"
match="^You get \d+ gold sovereigns from a canvas backpack\.$"
regexp="y"
send_to="12"
sequence="100"
>
<send>if getting == 0 then
send("put gold in @pack")
elseif getting == 1 then
((Not sure what I should put here, I had it set getting to 0 again but that seemed redundant and would probably just put the gold back in the pack but also returns the following error. So I guess putting in a #wait type of command would work although I heard this was a bad idea))
end -- if</send>
</trigger>
</triggers>
I get this error then then when I click ok it gets the gold from my pack.
QUOTE
Error number: 0
Event: Compile error
Description: [string "Trigger: "]:4: ')' expected near '0'
Called by: Immediate execution
Event: Compile error
Description: [string "Trigger: "]:4: ')' expected near '0'
Called by: Immediate execution
I managed to make my own triggers to rewear on balance and such but I don't know what do do on this one.
Thanks in advance for any help.