I'm trying to get a list of enabled trigger GROUPs.
I have the following, but it shows ALL enabled individual triggers, and the Group name. So the list will show multiple instances of the same Group name. Is there an easy way to parse/sort the table to remove duplicates?
I have the following, but it shows ALL enabled individual triggers, and the Group name. So the list will show multiple instances of the same Group name. Is there an easy way to parse/sort the table to remove duplicates?
triggerlist = GetTriggerList()
activetrigger = {}
if triggerlist then
for k, v in ipairs (triggerlist ) do
if GetTriggerInfo (tostring (v), 8) == true then
table.insert (activetrigger, tostring (GetTriggerInfo (v,26)))
else
end
end
end
for k, v in ipairs (activetrigger ) do
table.sort (activetrigger)
print (k,v)
end