So I've been building my map as a 1v1 map for testing purposes with hopes of easily converting it to a 3v3 map.
Currently I have this trigger:
Events
- Timer - Spawn Timer Expires
Actions
- Unit Group - Pick each unit in (Baneling Nest units in T1: P1 Building owned by Player 1 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
-Unit - Create 2 Baneling for player 13 at (Center of T1: Top Spawn) using default facing (No Options)
So naturally I have this event for various units depending on what structures are in the building areas. I have three specific building areas defined per team.
T1: P1 Building
T1: P2 Building
T1: P3 Building
T2: P4 Building
T2: P5 Building
T2: P6 Building
What I want to do is update this action so that it just counts the number of buildings in all three regions owned by all three players and spawn the correct number of units based on the buildings in all three regions. I was going to go about it by just copying the actions I already have and changing the region and player values, but I was hoping there was an easier way to do this since I will ultimately have 24 structures in the game. Thanks.
That will work for me - I'll figure out a way to ensure that the SCV can only build within those regions so that I don't have to do a check of the building count per region. Thank you much!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So I've been building my map as a 1v1 map for testing purposes with hopes of easily converting it to a 3v3 map.
Currently I have this trigger:
Events - Timer - Spawn Timer Expires
Actions
- Unit Group - Pick each unit in (Baneling Nest units in T1: P1 Building owned by Player 1 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
-Unit - Create 2 Baneling for player 13 at (Center of T1: Top Spawn) using default facing (No Options)
So naturally I have this event for various units depending on what structures are in the building areas. I have three specific building areas defined per team.
T1: P1 Building
T1: P2 Building
T1: P3 Building
T2: P4 Building
T2: P5 Building
T2: P6 Building
What I want to do is update this action so that it just counts the number of buildings in all three regions owned by all three players and spawn the correct number of units based on the buildings in all three regions. I was going to go about it by just copying the actions I already have and changing the region and player values, but I was hoping there was an easier way to do this since I will ultimately have 24 structures in the game. Thanks.
I'm just guessing at the actual code here, but it should be more or less something like this:
@BasharTeg: Go
That will work for me - I'll figure out a way to ensure that the SCV can only build within those regions so that I don't have to do a check of the building count per region. Thank you much!