i have 2 triggers and i want the first trigger to capture targets for the 2nd trigger.
why dont it work?
trigger one!
rebash = rebash or {}
rebash ["%1"] = {"%1"}
trigger two!
stands = stands or {}
stands ["%1"] = "%1"
rebash = rebash {}
for sequence, priority in ipairs (rebash) do
for i, v in pairs (stands) do
if v == priority then
Send ("bash " .. v)
end
end
break
end
rebash = {}
stands = {}
why dont it work?
trigger one!
rebash = rebash or {}
rebash ["%1"] = {"%1"}
trigger two!
stands = stands or {}
stands ["%1"] = "%1"
rebash = rebash {}
for sequence, priority in ipairs (rebash) do
for i, v in pairs (stands) do
if v == priority then
Send ("bash " .. v)
end
end
break
end
rebash = {}
stands = {}