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.
[2026-9-14. : 3:21 pm]
Oh_Man -- Racoon City Remastered*
[2026-9-14. : 3:21 pm]
Oh_Man -- Join the front line SEN, DEFEND MANKIND. 2030 is just a number! https://scmscx.com/map/2fHHj96p
[2026-9-14. : 3:21 pm]
Oh_Man -- from the maker of the legendary Architect RPG, the peerless Racoon City, the capitvating One Piercing Note, comes another creation minutes in the making
[2026-9-14. : 11:15 am]
Oh_Man -- heh heh thanks for the minerals suckers, now it's time to quit while i'm ahead
[2026-9-14. : 1:01 am]
Oh_Man -- Heroes of the Storm literally died and was revived before we got next SC game. Wb Loveless, u cooking any UMS for us?
[2026-9-13. : 11:35 pm]
LoveLess -- getting diablo 5 and wow 4 before starcraft ghost
[2026-9-13. : 9:22 pm]
RIVE -- To be fair, I used to post custom emotes back when I still used the forums.
[2026-9-13. : 12:54 pm]
l)ark_ssj9kevin -- RIVE
RIVE shouted: 💯
holy shit did you just use an emoji on SEN that feels illegal 🍆
[2026-9-13. : 10:24 am]
Moose -- Heinermann
Heinermann shouted: new era of SC and it's just some shooter they're gonna cancel before 2030
StarCraft 2: Ghost 2, The Reghostening
[2026-9-13. : 3:38 am]
Symmetry -- :wob:
Please log in to shout.


Members Online: DarkenedFantasies, Heinermann