I am making a map where the players are supposed to defend a base, and I need the attackers to "evolve". I cant just have 2 zerglings spawning every 5 seconds for the duration of the entire map. I have been trying to delay a trigger so that it wont start its periodic spawning until later in the game. But it cant make it work. Does anyone have any idea of how I can do this? The idea is to first have 2 zerglings spawn, then 2 more zerglings spawn and then those 4 zerglings and a hydralisk and so on. So that the attack waves grow, and become harder. I dont want the same mobs spawning all the time with just increased life (handicap).
So, anyone got any hints?
(I've tried making a one-shot trigger start another trigger but it doesent seem to work)
Plox help.
All help will be greatly appreciated :)
Flaffen
(edit: kinda got it working with modifying value (string "zerglings" == "zerglings"+1 kinda thing)
Hi Dude, Okay, i have been working alot with stuff like this and it's actually pretty simple:
All you Need is 2 Triggers And 1 Global Variable (integer(!Default to 1!))
Trigger 1:
Event: Every 60 Second of Game Time.
Actions: Set Variable (Global Variable) to (1 + Global Variable)
Trigger 2:
Event: Every 5 Second of Game Time.
Actions: Unit Create (Global Variable * 2) Zergling at Blabla Location
If Then (If) - If: (Global Variable) >= 3
Then: Unit Create (Global Variable / 3) Hydralisk at Blabla Location
Result:
Every 5th second X Zergling's will spawn. - Where X is Global Variable's Current Value * 2 - .
After 120 Seconds X Hydralisk's will spawn. - Where X is Global Variable's Current Value / 3 - .
Equals: first 60 seconds Spawn 2 Zerglings - - 60 seconds later spawns 4 Zerglings - - 60 Seconds Later spawns 6 Zerglings and 1 Hydralisk - - And so on. . :)
I NEEEEEEED this info!! TYTYTY :) I was making a trench defense but I can't have same units comming every time. Also, how would I add a working timer??
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am making a map where the players are supposed to defend a base, and I need the attackers to "evolve". I cant just have 2 zerglings spawning every 5 seconds for the duration of the entire map. I have been trying to delay a trigger so that it wont start its periodic spawning until later in the game. But it cant make it work. Does anyone have any idea of how I can do this? The idea is to first have 2 zerglings spawn, then 2 more zerglings spawn and then those 4 zerglings and a hydralisk and so on. So that the attack waves grow, and become harder. I dont want the same mobs spawning all the time with just increased life (handicap).
So, anyone got any hints?
(I've tried making a one-shot trigger start another trigger but it doesent seem to work)
Plox help. All help will be greatly appreciated :)
Flaffen
(edit: kinda got it working with modifying value (string "zerglings" == "zerglings"+1 kinda thing)
Hi Dude, Okay, i have been working alot with stuff like this and it's actually pretty simple:
All you Need is 2 Triggers And 1 Global Variable (integer(!Default to 1!))
Trigger 1:
Trigger 2:
If Then (If) - If: (Global Variable) >= 3
Then: Unit Create (Global Variable / 3) Hydralisk at Blabla Location
Result:
Every 5th second X Zergling's will spawn. - Where X is Global Variable's Current Value * 2 - .
After 120 Seconds X Hydralisk's will spawn. - Where X is Global Variable's Current Value / 3 - .
Equals: first 60 seconds Spawn 2 Zerglings - - 60 seconds later spawns 4 Zerglings - - 60 Seconds Later spawns 6 Zerglings and 1 Hydralisk - - And so on. . :)
I NEEEEEEED this info!! TYTYTY :) I was making a trench defense but I can't have same units comming every time. Also, how would I add a working timer??