I have created the following alias:
Code: Select all
Pattern: ^af (\w+)$
Script: target = matches[2]
Code: Select all
Perl Regex: ^(.+) leaves (\w+).$
Script: if matches[2]:find(target) then
send(matches[3])
end
I get this error:
Code: Select all
ERROR: object:<auto follow target> function:<Trigger 11>
<[string "function Trigger11()..."]:2 bad argument #1 to 'find' (string expected, got nil)>
So clearly I still don't quite understand the whole targeting thing. I really want to. What am I doing wrong?