I can make a lot of things, but this just stumps me.
I want to have a region that the player enters, and if there is no zerglings in the region, it will spawn five of them, and once they die, if the player is still in the region, it will spawn 5 more.
I know how to make the region, set it so that its event is when the player enters it, and create the 5 units.... But checking to see if there is no units to spawn, and if there is units to not spawn is my problem... I'm really tired, and probably missing something... I'd like to get the answer with GUI syntax... I'd appreciate the help. Thanks.
Entry Trigger
Events
Unit - Marine [111.09, 138.17] Enters REGION
Local Variables
Conditions
Actions
Unit - Create 5 Zergling for player 2 at (Center of REGION) facing (Position of (Triggering unit)) (No Options)
Unit Group - Pick each unit in (Last created units) and do (Actions)
Actions
Unit Group - Add (Picked unit) to Spawned_Zerglings
Respawn trigger
Events
Unit - Any Unit dies
Local Variables
Conditions
And
Conditions
(Number of Living units in Spawned_Zerglings) == 0
(Any units in REGION owned by player 1 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) == (Unit group(Marine [111.09, 138.17]))
Actions
Unit - Create 5 Zergling for player 2 at (Center of REGION) facing (Position of (Triggering unit)) (No Options)
Unit Group - Pick each unit in (Last created units) and do (Actions)
Actions
Unit Group - Add (Picked unit) to Spawned_Zerglings
Now im not too sure about the respawn trigger. Theres no Within Bounds : /
Conditions
And
Conditions
(Number of Living units in Spawned_Zerglings) == 0
(Any units in REGION owned by player 1 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) == (Unit group(Marine [111.09, 138.17]))
I liked the way you did that... But when the player is still in the region when the zergs die, they don't respawn. You know a way to check for this? I seem to have issues figuring out the GUI for conditions and stuff. They seem to make it so complex, that to do one thing, you need multiple triggers. >_>
All my trigger knowledge from sc1 went down the drains with the new editor lol. Thanks for the help, and I appreciate the answer, and maybe the answer to my question on this post as well?
I can make a lot of things, but this just stumps me.
I want to have a region that the player enters, and if there is no zerglings in the region, it will spawn five of them, and once they die, if the player is still in the region, it will spawn 5 more.
I know how to make the region, set it so that its event is when the player enters it, and create the 5 units.... But checking to see if there is no units to spawn, and if there is units to not spawn is my problem... I'm really tired, and probably missing something... I'd like to get the answer with GUI syntax... I'd appreciate the help. Thanks.
Give me a minute or 2, i'll quickly make one up.
EDIT Here we go
Variables used 1 (Unit Group)
Entry Trigger
Events
Unit - Marine [111.09, 138.17] Enters REGION
Local Variables
Conditions
Actions
Unit - Create 5 Zergling for player 2 at (Center of REGION) facing (Position of (Triggering unit)) (No Options)
Unit Group - Pick each unit in (Last created units) and do (Actions)
Actions
Unit Group - Add (Picked unit) to Spawned_Zerglings
Respawn trigger
Events
Unit - Any Unit dies
Local Variables
Conditions
And
Conditions
(Number of Living units in Spawned_Zerglings) == 0
(Any units in REGION owned by player 1 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) == (Unit group(Marine [111.09, 138.17]))
Actions
Unit - Create 5 Zergling for player 2 at (Center of REGION) facing (Position of (Triggering unit)) (No Options)
Unit Group - Pick each unit in (Last created units) and do (Actions)
Actions
Unit Group - Add (Picked unit) to Spawned_Zerglings
Now im not too sure about the respawn trigger. Theres no Within Bounds : /
when a unit dies you can check if it is in the region and if the number of enemy/units for playerX == 0 then run your spawn trigger
FIXED CONDITIONS
Conditions
And
Conditions
(Number of Living units in Spawned_Zerglings) == 0
(Any units in REGION owned by player 1 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) == (Unit group(Marine [111.09, 138.17]))
I liked the way you did that... But when the player is still in the region when the zergs die, they don't respawn. You know a way to check for this? I seem to have issues figuring out the GUI for conditions and stuff. They seem to make it so complex, that to do one thing, you need multiple triggers. >_>
All my trigger knowledge from sc1 went down the drains with the new editor lol. Thanks for the help, and I appreciate the answer, and maybe the answer to my question on this post as well?
I figured it out, thanks though.
I appreciate the help guys! On with the map! :)
Check the attached map, Is that what you wanted?