Do nothing or do something what am i doing?

Posted by TruckDriver22 on Wed 17 Jun 2009 11:21 PM — 3 posts, 16,919 views.

Denmark #0
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

USA #1

if group_table["%1"] and not group_table["%3"] then
  Send "join battle"
end


does what you want, I think.

Denmark #2
Yes that was it thanks now it works perfectly