Hello,
I'm trying to find a way to consolidate the following to affect all players (1-12) without having to make 12 different triggers:
Here is an example of my footman trigger. Since this trigger affects all players at map initialization, I was able to make it successfully.
So this is basically what I'm trying to make (but don't know how):
Event: Every 30 seconds of game time
Actions: For Loop Integer A
-If/Then/Else
-If PlayerNumber[A] has researched "Call Rifleman" then spawn a rifleman man at RegionSpawn[A]; else do nothing.
I'm trying to find a way to consolidate the following to affect all players (1-12) without having to make 12 different triggers:
Trigger:
- Rifleman Copy
- Events
- Unit - A unit Finishes research
- Conditions
- (Researched tech-type) Equal to Call Rifleman
- (Owner of (Triggering unit)) Equal to Player 2 (Blue)
- Actions
- For each (Integer A) from 1 to 1000000000, do (Actions)
- Loop - Actions
- Unit - Create 1 Rifleman for Player 2 (Blue) at Point facing Default building facing degrees
- Wait 30.00 seconds
- Loop - Actions
- For each (Integer A) from 1 to 1000000000, do (Actions)
- Events
Here is an example of my footman trigger. Since this trigger affects all players at map initialization, I was able to make it successfully.
Trigger:
- Footmen Spawn
- Events
- Time - Every 10.00 seconds of game time
- Conditions
- Actions
- For each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- Unit - Create 1 Footman for PlayerNumber[(Integer A)] at (Center of RegionSpawn[(Integer A)]) facing 0.00 degrees
- Loop - Actions
- For each (Integer A) from 1 to 6, do (Actions)
- Events
So this is basically what I'm trying to make (but don't know how):
Event: Every 30 seconds of game time
Actions: For Loop Integer A
-If/Then/Else
-If PlayerNumber[A] has researched "Call Rifleman" then spawn a rifleman man at RegionSpawn[A]; else do nothing.