Hello everyone, I am trying to make a map where Zerg units spawn and try to take down a base. I am doing this by following a tutorial by OneTwoSC called Zerg Invasion. I make zerglings spawn from multiples regions but after the first wave I want hydralisks to spawn but I don't know how. Can someone help please!!
Can you post your triggers? It would make it easier.
Also, what you are looking for is Why hydralisks spawn.
Is it because players have reached a score? A Timer has went off, or just because there's no more lings left?
Can you post your triggers? It would make it easier. Also, what you are looking for is Why hydralisks spawn. Is it because players have reached a score? A Timer has went off, or just because there's no more lings left?
Thank you for the response. Well, in the middle of the map there is a base. As a player you need to spawn units to hold off Zerg units spawning from four sides. The units spawn every 30 seconds. What I want to do is have first wave be Zerglings then second wave Hydralisk's and so on. I want each wave to be different units. I don't know how to do this! The tutorial only shows how to make one type of unit. When I duplicate the triggers for zerglings and change to Hydralisks they both spawn at the same time. Please help me!
I don't see any way for that trigger to stop being issued to repeat itsself.
What you need to do is create a trigger that tells it to stop first.
I would do it based on a timer. How long do you want the zergling to spawn? Let's just say you want zergling to spawn for 2 minutes.
The trigger that tells it to stop would look like.
Events
Timer - Elapsed time is 120.0 Game Time seconds
Local Variables
Conditions
Actions
Turn (Spawn waves) Off
Then you need one to start spawning hydralisks.
May as well run this one on a timer too. Lets say you want 1 minute breathe time. Gotta do some math there.
We know that Zergling are going to stop after 2 minutes. And we want a 1 minute break. So our hydralisk trigger would look like this.
Events
Timer - Elapsed Time is 180.00 Game Time seconds
Local Variables
Conditions
Actions
Trigger - Turn (Hydralisk Spawn) On
Then you should Duplicate your zergling spawn. And change it's name to Hydralisk Spawn, and all of the variables to Hydralisk instead of Zergling.
That's the way I would do it, it's simple, and effective. Although there are more ways it could be done. Probably with less code. But I like doing that kind of thing this way because it's easy to keep track of.
You're also going to duplicate the "Current wave" Variable, and change it as well.
Hope this helps.
I don't see any way for that trigger to stop being issued to repeat itsself.
What you need to do is create a trigger that tells it to stop first. I would do it based on a timer. How long do you want the zergling to spawn? Let's just say you want zergling to spawn for 2 minutes. The trigger that tells it to stop would look like.
Events
Timer - Elapsed time is 120.0 Game Time seconds
Local Variables
Conditions
Actions
Turn (Spawn waves) Off
Then you need one to start spawning hydralisks. May as well run this one on a timer too. Lets say you want 1 minute breathe time. Gotta do some math there. We know that Zergling are going to stop after 2 minutes. And we want a 1 minute break. So our hydralisk trigger would look like this.
Events
Timer - Elapsed Time is 180.00 Game Time seconds
Local Variables
Conditions
Actions
Trigger - Turn (Hydralisk Spawn) On
Then you should Duplicate your zergling spawn. And change it's name to Hydralisk Spawn, and all of the variables to Hydralisk instead of Zergling. That's the way I would do it, it's simple, and effective. Although there are more ways it could be done. Probably with less code. But I like doing that kind of thing this way because it's easy to keep track of.
You're also going to duplicate the "Current wave" Variable, and change it as well. Hope this helps.
Thank you for the response again! As i totally have no idea what you said lol can we skype? I really am trying to understand and i am a total noob at this
I don't have skype. Or a good means to do so. However, I made a small triggering system to show you what I mean. If you look through it I think you will be able to tell what I mean.
I don't have skype. Or a good means to do so. However, I made a small triggering system to show you what I mean. If you look through it I think you will be able to tell what I mean.
Thank you! Yeah I am new with the editor so I need to learn a lot
I just finished a wave spawning system, its a lot to tell so just read some of this, it might help.
Make 2 variables, 1 for storing the unit type of the wave, 1 for the amount of units for that wave. Make both of them arrays and set them at map init as i show below. After that you make a var which holds the wave the player is currently on, then increase that number by 1 whenever a wave is done.
Now in the trigger that sarts your wave you put it as follow, the 2 vars i explained above and the currewnt wave:
Unit - Create UnitSpawnAmount[CurrentWave] WaveType[CurrentWave] for player 5 at (Random point in Spawn1) facing Start Location 001 (No Options)
wave1,wave2.wave3...etc are the names of the units.
Hello everyone, I am trying to make a map where Zerg units spawn and try to take down a base. I am doing this by following a tutorial by OneTwoSC called Zerg Invasion. I make zerglings spawn from multiples regions but after the first wave I want hydralisks to spawn but I don't know how. Can someone help please!!
Can you post your triggers? It would make it easier. Also, what you are looking for is Why hydralisks spawn. Is it because players have reached a score? A Timer has went off, or just because there's no more lings left?
Thank you for the response. Well, in the middle of the map there is a base. As a player you need to spawn units to hold off Zerg units spawning from four sides. The units spawn every 30 seconds. What I want to do is have first wave be Zerglings then second wave Hydralisk's and so on. I want each wave to be different units. I don't know how to do this! The tutorial only shows how to make one type of unit. When I duplicate the triggers for zerglings and change to Hydralisks they both spawn at the same time. Please help me!
I don't see any way for that trigger to stop being issued to repeat itsself.
What you need to do is create a trigger that tells it to stop first. I would do it based on a timer. How long do you want the zergling to spawn? Let's just say you want zergling to spawn for 2 minutes. The trigger that tells it to stop would look like.
Events
Timer - Elapsed time is 120.0 Game Time seconds
Local Variables
Conditions
Actions
Turn (Spawn waves) Off
Then you need one to start spawning hydralisks. May as well run this one on a timer too. Lets say you want 1 minute breathe time. Gotta do some math there. We know that Zergling are going to stop after 2 minutes. And we want a 1 minute break. So our hydralisk trigger would look like this.
Events
Timer - Elapsed Time is 180.00 Game Time seconds
Local Variables
Conditions
Actions
Trigger - Turn (Hydralisk Spawn) On
Then you should Duplicate your zergling spawn. And change it's name to Hydralisk Spawn, and all of the variables to Hydralisk instead of Zergling. That's the way I would do it, it's simple, and effective. Although there are more ways it could be done. Probably with less code. But I like doing that kind of thing this way because it's easy to keep track of.
You're also going to duplicate the "Current wave" Variable, and change it as well. Hope this helps.
Thank you for the response again! As i totally have no idea what you said lol can we skype? I really am trying to understand and i am a total noob at this
I don't have skype. Or a good means to do so. However, I made a small triggering system to show you what I mean. If you look through it I think you will be able to tell what I mean.
Thank you! Yeah I am new with the editor so I need to learn a lot
@IKill11: Go
I just finished a wave spawning system, its a lot to tell so just read some of this, it might help.
Make 2 variables, 1 for storing the unit type of the wave, 1 for the amount of units for that wave. Make both of them arrays and set them at map init as i show below. After that you make a var which holds the wave the player is currently on, then increase that number by 1 whenever a wave is done.
Now in the trigger that sarts your wave you put it as follow, the 2 vars i explained above and the currewnt wave:
Unit - Create UnitSpawnAmount[CurrentWave] WaveType[CurrentWave] for player 5 at (Random point in Spawn1) facing Start Location 001 (No Options)
wave1,wave2.wave3...etc are the names of the units.