Is there a way to set a trigger on loop so it runs until a certain condition is met, basically im looking for 5 zerglings to be created and attack move (which i have done) but want it to happen every few mins untill a player reaches a certain point.
I guess its like setting up a wave, but i can't see to work out waves, unless thats easier to explain? :)
Do you use a periodic event for the spawning? You can add a condition to your spawn trigger like "number of spawning pools owned by player 2 >0", so it only executes if player 2 has at least 1 spawning pool.
If you want to create Zerglings 1 by 1 and send them once there's 5, that can be done with an "If Then Else" bracket, which checks for the number of Zerglings at your spawning location and then either spawns a Zergling or spawns one and sends them to attack.
So far all i have created is the trigger to start once another excecutes (rescusing some supply depots) once that trigger excecutes 30 seconds later 5 zerglings spawn and attack move into the base. Basically what I want is the zerglings to spawn and attack move until player 1 makes it to a certain point on the map, where ill set up a trigger to then turn the spawning off. If that makes any sense?
All i have so far is
Wave 1
Events
AI - Player 2 sends an AI wave
Local Variables
Conditions
Actions
General - Wait 30.0 Game Time seconds
Unit - Create 5 Zergling for player 2 at Wave 1 using point facing (No Options)
Unit Group - Pick each unit in (Last created units) and do (Actions)
Actions
Unit - Order all units in (Last created units) to ( Attack targeting Invasion) (Replace Existing Orders)
All i really need is for it to loop, rather then run once. That way I can put in the trigger to stop it once you get to a certain point
Was me being silly!! Edited the trigger to look like this
Wave 1
Events
Timer - Every 30.0 seconds of Game Time
Local Variables
Conditions
Actions
General - Wait 30.0 Game Time seconds
Unit - Create 5 Zergling for player 2 at Wave 1 using point facing (No Options)
Unit Group - Pick each unit in (Last created units) and do (Actions)
Actions
Unit - Order all units in (Last created units) to ( Attack targeting Invasion) (Replace Existing Orders)
But thanks :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello
Is there a way to set a trigger on loop so it runs until a certain condition is met, basically im looking for 5 zerglings to be created and attack move (which i have done) but want it to happen every few mins untill a player reaches a certain point.
I guess its like setting up a wave, but i can't see to work out waves, unless thats easier to explain? :)
Do you use a periodic event for the spawning? You can add a condition to your spawn trigger like "number of spawning pools owned by player 2 >0", so it only executes if player 2 has at least 1 spawning pool. If you want to create Zerglings 1 by 1 and send them once there's 5, that can be done with an "If Then Else" bracket, which checks for the number of Zerglings at your spawning location and then either spawns a Zergling or spawns one and sends them to attack.
@Photoloss:
So far all i have created is the trigger to start once another excecutes (rescusing some supply depots) once that trigger excecutes 30 seconds later 5 zerglings spawn and attack move into the base. Basically what I want is the zerglings to spawn and attack move until player 1 makes it to a certain point on the map, where ill set up a trigger to then turn the spawning off. If that makes any sense?
All i have so far is
Wave 1
Events
AI - Player 2 sends an AI wave
Local Variables
Conditions
Actions
General - Wait 30.0 Game Time seconds
Unit - Create 5 Zergling for player 2 at Wave 1 using point facing (No Options)
Unit Group - Pick each unit in (Last created units) and do (Actions)
Actions
Unit - Order all units in (Last created units) to ( Attack targeting Invasion) (Replace Existing Orders)
All i really need is for it to loop, rather then run once. That way I can put in the trigger to stop it once you get to a certain point
Dont worry I sorted it!
Was me being silly!! Edited the trigger to look like this
Wave 1
Events
Timer - Every 30.0 seconds of Game Time
Local Variables
Conditions
Actions
General - Wait 30.0 Game Time seconds
Unit - Create 5 Zergling for player 2 at Wave 1 using point facing (No Options)
Unit Group - Pick each unit in (Last created units) and do (Actions)
Actions
Unit - Order all units in (Last created units) to ( Attack targeting Invasion) (Replace Existing Orders)
But thanks :)