Archideas
Active Member
- Reaction score
- 32
Alright, yet another problem I've stumbled upon that I just can't seem to fix and thus turn to the people of this lovely forum.
What I'm trying to do is to every 30 second spawn 3 melee units and 1 ranged, add them to a unit group and then order that group to attack move to a destinated point.
Now, as far as the spawning goes, it's all fine. BUT, the problem is, after about the 3rd to 5th time the desired units are spawned, there's a chance the created units will either move out or stay dumbfolded where they're created. This is what my triggers look like so far.
Thanks in advance for answers!
What I'm trying to do is to every 30 second spawn 3 melee units and 1 ranged, add them to a unit group and then order that group to attack move to a destinated point.
Now, as far as the spawning goes, it's all fine. BUT, the problem is, after about the 3rd to 5th time the desired units are spawned, there's a chance the created units will either move out or stay dumbfolded where they're created. This is what my triggers look like so far.
Trigger:
- Events
- Time - Every 30.00 seconds of game time
- Conditions
- Actions
- Unit - Create 3 Soldier for Player 11 (Dark Green) at (Center of Zandar Force Spawn <gen>) facing 90.00 degrees
- Unit - Create 1 Wizard for Player 11 (Dark Green) at (Center of Zandar Force Spawn <gen>) facing 90.00 degrees
- Unit Group - Pick every unit in (Units in Zandar Force Spawn <gen>) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Or - Any (Conditions) are true
- ((Picked unit) belongs to an ally of Player 11 (Dark Green)) Equal to True
- (Unit-type of (Picked unit)) Equal to Soldier
- (Unit-type of (Picked unit)) Equal to Wizard
- Then - Actions
- Unit Group - Add (Picked unit) to ZandarForces
- Unit Group - Order ZandarForces to Attack-Move To (Center of Azrethak Boss <gen>)
- Else - Actions
- Or - Any (Conditions) are true
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
Thanks in advance for answers!