TD Starting Waves

romanandre

New Member
Reaction score
2
I got a problem, I'm making this TD and I managed to do lvl 1 fine, but I want to start a countdown when all lvl 1 creeps die to start level 2. How can I make a trigger that only runs after all lvl 1 units die?
 

Sneakster

Active Member
Reaction score
24
Oh this is pretty simple. All you have to do is make sure that the game registers when there are 0 creep units on the map, and then run the next trigger.

here's an example I just came up with:

Trigger:
  • TEST
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Dying unit)) Equal to Neutral Hostile
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units in (Playable map area) owned by Neutral Hostile)) Equal to 0
        • Then - Actions
          • Trigger - Run Level 2 <gen> (checking conditions)
        • Else - Actions


Everytime a creep unit dies, it checks to see if all of them are dead.

For a TD I made when I first attempted mapping, I set each creep to cost 1 food. I then checked to see if the player's food used was equal to zero.
 

romanandre

New Member
Reaction score
2
Ok, and to make it so the level wont repeat itself I have to turn off the trigger?

Edit: Oh, and how do I add that to the currently lvl 1 trigger?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top