I had a pair of scripts that give me a printed timer for fishing. I wanted to edit them to make myself automatically reel the line in to a certain distance if I overcast.
I keep getting this message when either one fires.
Where did I mess up?
<triggers>
<trigger
enabled="y"
expand_variables="y"
match="You reel your line in and stop with the hook at * feet."
send_to="12"
sequence="100"
>
<send>require "wait"
if %1 > 25 then
Send "reel in"
elseif %1 > 5 then
wait.make (function ()
wait.time(60)
print "REEL IN"
end)
else
Send "reel all the way"
end</send>
</trigger>
<trigger
enabled="y"
expand_variables="y"
group="Multi Line"
lines_to_match="2"
keep_evaluating="y"
match="You hear a gentle plop as your hook falls into the water about \d+ feet from\nyou\.\Z"
multi_line="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>require "wait"
if %1 > 25 then
Send "reel in"
else
wait.make (function ()
wait.time(60)
print "REEL IN"
end)
end</send>
</trigger>
</triggers>
I keep getting this message when either one fires.
Compile error
World: Ateraan
Immediate execution
[string "Trigger: "]:3: unexpected symbol near '>'
Where did I mess up?