Jscooby
New Member
- Reaction score
- 1
So I have this trigger...
It works fine all the time.. But now I have this trigger which spawns units after all the pheasants have died.
It spawns great masses of the ghouls, I'm not understanding why it just doesn't spawn the 5 in each region and stop?
Trigger:
- Pheasants
- Events
- Map initialization
- Conditions
- Actions
- Game - Display to (All players) for 10.00 seconds the text: You have 30 seconds...
- Wait 30.00 seconds
- Set TempPoint = (Center of Region 006 <gen>)
- Set TempPoint2 = (Center of Region 009 <gen>)
- Unit - Create 5 Peasant for Player 10 (Light Blue) at TempPoint facing 270.00 degrees
- Unit Group - Order (Last created unit group) to Attack-Move To TempPoint2
- Set TempPoint = (Center of Region 007 <gen>)
- Unit - Create 5 Peasant for Player 10 (Light Blue) at TempPoint facing 270.00 degrees
- Unit Group - Order (Last created unit group) to Attack-Move To TempPoint2
- Set TempPoint = (Center of Region 008 <gen>)
- Unit - Create 5 Peasant for Player 10 (Light Blue) at TempPoint facing 270.00 degrees
- Unit Group - Order (Last created unit group) to Attack-Move To TempPoint2
- Events
It works fine all the time.. But now I have this trigger which spawns units after all the pheasants have died.
Trigger:
- Shades
- Events
- Unit - A unit Dies
- Conditions
- Actions
- Set tempGroup = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Peasant) and (((Matching unit) is alive) Equal to True)))
- Game - Display to (All players) the text: You have 10 seconds...
- Wait 10.00 seconds
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in tempGroup) Less than or equal to 0
- Then - Actions
- Set TempPoint = (Center of Region 006 <gen>)
- Set TempPoint2 = (Center of Region 009 <gen>)
- Unit - Create 5 Ghoul for Player 10 (Light Blue) at TempPoint facing 270.00 degrees
- Unit Group - Order (Last created unit group) to Attack-Move To TempPoint2
- Set TempPoint = (Center of Region 007 <gen>)
- Unit - Create 5 Ghoul for Player 10 (Light Blue) at TempPoint facing 270.00 degrees
- Unit Group - Order (Last created unit group) to Attack-Move To TempPoint2
- Set TempPoint = (Center of Region 008 <gen>)
- Unit - Create 5 Ghoul for Player 10 (Light Blue) at TempPoint facing 270.00 degrees
- Unit Group - Order (Last created unit group) to Attack-Move To TempPoint2
- Trigger - Turn off (This trigger)
- Else - Actions
- If - Conditions
- Custom script: call DestroyGroup (udg_tempGroup)
- Events
It spawns great masses of the ghouls, I'm not understanding why it just doesn't spawn the 5 in each region and stop?