Trigger help
May 29 2008, 9:06 pm
By: bobwasgod  

May 29 2008, 9:06 pm bobwasgod Post #1



I'm making an individual defense game and I can't figure out how I can make it so that once a player starts a round, the monsters come out 1 by 1 at a fixed time.

I don't want to use waits obviously because of 2 player start at the same time it will cause problems. (waits combining)

I would use death counters as timing but the only problem i'm having is figuring out how to make it so only a certain amount of units will be made. (ex: 30 for the 1st round)

Since it's an individual defense I can't use the countdown timer and I don't want to set it to deaths of the unit because more will spawn after the 30 if they didn't already die and it will look crappy.


My one idea is having the 30 units in individual boxes for each player and moving them 1 by 1 onto the path

Is there anything else I can do i'm not thinking of?

Any help?



None.

May 29 2008, 9:19 pm Falkoner Post #2



Just add one death count to another death count other than the timer each time a unit is made, and stop making them once it reaches a certain number.



None.

May 29 2008, 9:22 pm Vrael Post #3



Definitely. Death Counters are still the best way to go, just set up an independant one of your actual dying unit.
For example, use Cave as the number of units left to spawn, since Cave will never actually die in the map. At the beginning of each next round you can set the # of Cave deaths to your new amount and as each unit spawns, subtract 1 death.

As for the timer, you can still use Death Counts, just pick another unusued unit, like Unused Zerg Bldg 5.
Have a trigger for each player that always subtracts 1 death of Unused Zerg Bldg 5, and when it's at 0 deaths, set it to 12 * (# of seconds) you want until next spawn. For the actual spawn of a unit, just have as a condition that current player has suffered 1 deaths of Unused Zerg Bldg 5 or whatever you decide to pick.



None.

May 29 2008, 9:56 pm bobwasgod Post #4



ok thanks guys i think i figured it out



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:20 pm]
anoeth47 -- Sweet
[07:48 pm]
NudeRaider -- https://staredit.net/381642/ really makes you appreciate (again) how good sc music is.
[2026-4-18. : 3:57 am]
NudeRaider -- https://staredit.net/381600/ You have 5 minutes, then you can only edit your posts.
[2026-4-17. : 4:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
[2026-4-17. : 11:30 am]
NudeRaider -- I would like 3000 minerals, please
[2026-4-16. : 7:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
[2026-4-16. : 3:46 am]
IskatuMesk -- how do i get gas
Please log in to shout.


Members Online: vagabondsociali, IskatuMesk, Ojan