Events
Game Map Initialization
Local VariableConditionActions
Actions
General- For each integer Variable 250[0] from 1 to 50 with increment 1,do (Actions)
Actions
Unit- Create 1 Ultralisk for play 0 at (Random points in Region 001) using default facing (No options)
Unit- Create 1 Ultralisk for play 0 at (Random points in Region 002) using default facing (No options)
Unit- Create 1 Ultralisk for play 0 at (Random points in Region 003) using default facing (No options)
Unit- Create 1 Ultralisk for play 0 at (Random points in Region 004) using default facing (No options)
Unit- Create 1 Ultralisk for play 0 at (Random points in Region 005) using default facing (No options)
Unit- Create 1 Ultralisk for play 0 at (Random points in Region 006) using default facing (No options)
Unit- Create 1 Ultralisk for play 0 at (Random points in Region 007) using default facing (No options)
Unit- Create 1 Ultralisk for play 0 at (Random points in Region 008) using default facing (No options)
Variable150 is just an integer variable with an array of 250.
The problem is, I only want these ultralisks to spawn in the region if the play is playing.
For instance, if only six people were playing, no ultralisks would spawn in regions 007 or 008.
How could I do this without splitting it up into 8 different triggers?
I was thinking of doing what you suggested, but that would require me to make 8 separate triggers. I am going to have to make 15 triggers similar to this, so that would mean 120 triggers.
Do you know any way I could put it into one trigger?
Okay, first, my trigger looks like this.
Events Game Map Initialization Local VariableConditionActions Actions General- For each integer Variable 250[0] from 1 to 50 with increment 1,do (Actions) Actions Unit- Create 1 Ultralisk for play 0 at (Random points in Region 001) using default facing (No options) Unit- Create 1 Ultralisk for play 0 at (Random points in Region 002) using default facing (No options) Unit- Create 1 Ultralisk for play 0 at (Random points in Region 003) using default facing (No options) Unit- Create 1 Ultralisk for play 0 at (Random points in Region 004) using default facing (No options) Unit- Create 1 Ultralisk for play 0 at (Random points in Region 005) using default facing (No options) Unit- Create 1 Ultralisk for play 0 at (Random points in Region 006) using default facing (No options) Unit- Create 1 Ultralisk for play 0 at (Random points in Region 007) using default facing (No options) Unit- Create 1 Ultralisk for play 0 at (Random points in Region 008) using default facing (No options)
Variable150 is just an integer variable with an array of 250.
The problem is, I only want these ultralisks to spawn in the region if the play is playing.
For instance, if only six people were playing, no ultralisks would spawn in regions 007 or 008.
How could I do this without splitting it up into 8 different triggers?
Thanks a bunch!
I would recommend posting a screenshot of the trigger.
I hate mapster-formatting :(
You can always add if/then/else triggers and put a condition under 'if' that checks the "Status of Player".
If
Status of Player 6 = Playing
then
create ultralisk for player 6
else
...nothing...
There might be an easier way:
For Each player in (Active Players) Create ultralisk blabla... sorry. not able to look into it right now. :(
You can use a "for active players" loop to achieve this. You would have to set your regions at variables in an array first.
I was thinking of doing what you suggested, but that would require me to make 8 separate triggers. I am going to have to make 15 triggers similar to this, so that would mean 120 triggers.
Do you know any way I could put it into one trigger?
@irok2002: Go
I don't know what a For Active Players Loop is. :/ I did put the regions in a variable.
Is there a way to make a condition only target a certain action instead of all of them in one trigger? That would make it easy :/