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-25. : 12:00 am]
Oh_Man -- he hasnt won a single game so far this is hilarious
[2026-9-24. : 11:41 pm]
Oh_Man -- new arty username Rage Against The Machine
[2026-9-24. : 10:14 pm]
Oh_Man -- https://m.youtube.com/watch?v=KPXri8q9ZBs artys vsing the bot now
[2026-9-24. : 8:12 pm]
Ultraviolet -- do you even lift bro?
[2026-9-23. : 5:21 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider yeh thts straight up cheating
the mutas yes, the wraiths probably not. Have you even watched the video? ;)
[2026-9-23. : 12:56 pm]
Oh_Man -- NudeRaider
NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
yeh thts straight up cheating
[2026-9-23. : 12:24 pm]
Oh_Man -- arty's done another vid. he's also announced he's going to organise showmatches with pro, with NO maphacks, so we can see its actual capabilities
[2026-9-23. : 10:09 am]
NimoStar -- It can by playing the same map thousands of times. It is similar to AI speedrunning games
Please log in to shout.


Members Online: Zycorax