Here's my scenario: I have a HUGE group of triggers to color individual names of people..probably 500 or so (Achaea - House enemies are red, for those of you who care).
However, I'm pretty much doing manual additions and deletions as these characters' statuses change. What I'm wanting to know is, is there a way to set up some sort of alias that will search a trigger's match and run a command on it as a variable of some sort?
My suspicions are that I have too many triggers for the amount of enemies the org has, and am confused when I run across one who is acting chummy with the org or its affiliations. And then I check the org's enemy list, matching that name and they're not in there. I'd hate to manually check every single trigger I have and remove the ones that are no longer in the org's official list.
So in other words, I want to write a script that will pull all the -match- values of the triggers of an Enemies trigger group into an array or table or whatever, and then check each with the game's enemies list, and probably following those which don't match with a Note("Not an Enemy"). Or for even MORE fun, automatically delete the trigger from the list.
Or maybe just write the name to a blank Notepad window.
Or maybe I should be storing my "offline" enemies list in some easier, more robust manner. I absolutely do NOT want to regexp every name in a single trigger: match = (name1|name2|...|name500). That would be..bad.
Ideas?
-Daniel
However, I'm pretty much doing manual additions and deletions as these characters' statuses change. What I'm wanting to know is, is there a way to set up some sort of alias that will search a trigger's match and run a command on it as a variable of some sort?
My suspicions are that I have too many triggers for the amount of enemies the org has, and am confused when I run across one who is acting chummy with the org or its affiliations. And then I check the org's enemy list, matching that name and they're not in there. I'd hate to manually check every single trigger I have and remove the ones that are no longer in the org's official list.
So in other words, I want to write a script that will pull all the -match- values of the triggers of an Enemies trigger group into an array or table or whatever, and then check each with the game's enemies list, and probably following those which don't match with a Note("Not an Enemy"). Or for even MORE fun, automatically delete the trigger from the list.
Or maybe just write the name to a blank Notepad window.
Or maybe I should be storing my "offline" enemies list in some easier, more robust manner. I absolutely do NOT want to regexp every name in a single trigger: match = (name1|name2|...|name500). That would be..bad.
Ideas?
-Daniel