mystic_elf
New Member
- Reaction score
- 2
Note: Not done yet. Still need WEU to create the custom script to remove the variables.
Alright, so I have a portal that spawns 2 grunts every 60 seconds. And every 120 seconds it upgrades up one spawn every 60 seconds. Will this work? And is there a better way to create the trigger? I don't want to copy and paste 40 times ><
Alright, so I have a portal that spawns 2 grunts every 60 seconds. And every 120 seconds it upgrades up one spawn every 60 seconds. Will this work? And is there a better way to create the trigger? I don't want to copy and paste 40 times ><
JASS:
Dark Portal Spawn
Events
Time - Every 60.00 seconds of game time
Conditions
(The Dark Portal 0177 <gen> is alive) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units owned by Player 1 (Red) of type Hillsbrad)) Equal to 1
Then - Actions
Set DarkPortalSpawn = (Center of DarkPortalSpawn <gen>)
Unit - Create 2 Grunt for Player 1 (Red) at DarkPortalSpawn facing Default building facing degrees
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units owned by Player 1 (Red) of type Hillsbrad)) Equal to 2
Then - Actions
Set DarkPortalSpawn = (Center of DarkPortalSpawn <gen>)
Unit - Create 4 Grunt for Player 1 (Red) at DarkPortalSpawn facing Default building facing degrees
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units owned by Player 1 (Red) of type Hillsbrad)) Equal to 3
Then - Actions
Set DarkPortalSpawn = (Center of DarkPortalSpawn <gen>)
Unit - Create 6 Grunt for Player 1 (Red) at DarkPortalSpawn facing Default building facing degrees
Else - Actions