you can't use variables in events, unless the variable is static.
when your map is being loaded to play sc2 connects all the events to how they should trigger, so if you'd use it like you just said. Then the variable would be not defined yet at that moment, and correspond to an invalid region. (sc2 doesn't look at the variable itself when checking if the event should run. but at the region that is referred to in the variable.)
Lets say i have made an region variable with array, or how you say it. I then set the region variable:
Variable - Set Region[1] = Level1Spawn
Variable - Set Region[2] = Level2Spawn
How come i can't call that region array again with the:
Unit - Any Unit Enters (can't find the variable)
Am i doing something wrong, or is it impossible to do this call? Hope you can help me :)
Best regards!
@MrSleeves: Go
you can't use variables in events, unless the variable is static.
when your map is being loaded to play sc2 connects all the events to how they should trigger, so if you'd use it like you just said. Then the variable would be not defined yet at that moment, and correspond to an invalid region. (sc2 doesn't look at the variable itself when checking if the event should run. but at the region that is referred to in the variable.)
@MrSleeves: Go
For your Events you need an event for each individual region as follows