This is my trigger now?
seq 100
^([[:alpha:]]+) is battling
group_table = group_table or {}
for i,v in pairs(group_table) do
if i == "%1" then
Send("join battle")
end
What i want is if 2 of the same people in my group_table are in the same line i don't want any action to take place but i cant seem to write it correctly. How do i make this trigger only go off if it matches and if it doesn't match then allow my other trigger to go off?
^([[:alpha:]]+) (is battlign) ([[:alpha:]]+)$
group_table = group_table or {}
for i,v in pairs(group_table) do
if i == "%1" then
for i,v in pairs(group_table) do
if i == "%3" then
end
end
end
end
or
for i,v in pairs(group_table) do
if i == "%1" then
Send("join battle")
end
seq 100
^([[:alpha:]]+) is battling
group_table = group_table or {}
for i,v in pairs(group_table) do
if i == "%1" then
Send("join battle")
end
What i want is if 2 of the same people in my group_table are in the same line i don't want any action to take place but i cant seem to write it correctly. How do i make this trigger only go off if it matches and if it doesn't match then allow my other trigger to go off?
^([[:alpha:]]+) (is battlign) ([[:alpha:]]+)$
group_table = group_table or {}
for i,v in pairs(group_table) do
if i == "%1" then
for i,v in pairs(group_table) do
if i == "%3" then
end
end
end
end
or
for i,v in pairs(group_table) do
if i == "%1" then
Send("join battle")
end