This wouldn't be very efficient but I don't think it will slow the game down too much on most computers. You could have the event be a periodic event every 0.625 seconds or whatever the minimum is. Then have it loop through all the regions that are in a variable array of regions and check for units inside them. This sounds like it would be very slow but I don't think it is much different than having 45 triggers for each region separately. Just throwing out an idea.
you could change the condition handling.
delete the conditions and make an integer-loop into the action part. in the loop you make an if-then-else with your number-of-blabla as condition where x is the variable of the loop. of course the loop need to start from 0 or 1 ,whatever is your first arrayindex ,to the last index.
the problem is that you would need all 45 events in the event part. would be a lot of work but you wouldnt need 45 trigger.
ps: best would be something like "enters any region" as an event
My map has 45 different regions. I was wondering if I could change this trigger so it works as an array.
For instance look at this trigger:
I wonder if something like this is possible (I made this up lol)
I hope something like this can be done. Otherwise for every trigger in each of my rooms ill have to do stuff 45 times lol
I'm trying to do something similar, had no luck yet though :(
This wouldn't be very efficient but I don't think it will slow the game down too much on most computers. You could have the event be a periodic event every 0.625 seconds or whatever the minimum is. Then have it loop through all the regions that are in a variable array of regions and check for units inside them. This sounds like it would be very slow but I don't think it is much different than having 45 triggers for each region separately. Just throwing out an idea.
From what I've read you can't use variables in events, because they are not defined when map loads.
you could change the condition handling. delete the conditions and make an integer-loop into the action part. in the loop you make an if-then-else with your number-of-blabla as condition where x is the variable of the loop. of course the loop need to start from 0 or 1 ,whatever is your first arrayindex ,to the last index. the problem is that you would need all 45 events in the event part. would be a lot of work but you wouldnt need 45 trigger.
ps: best would be something like "enters any region" as an event
take a look at my region array tut in my sig. Its not complete but you should get some ideas from it.