Need trigger to skip to next level in TD

zzyzxroad

TH.net Regular
Reaction score
1
Hey all. To test my Td and various levels without waiting several minutes fr the creeps to get to my area, I tried making a trigger to skip the level. I tried this below, but LMAO, it skips ALLLL the levels and really makes a mess of the map itself.

Code:
next level
    Events
        Player - (Owner of Tower <gen>) types a chat message containing [COLOR="Red"]next[/COLOR] as An exact match
    Conditions
        (Name of (Triggering player)) Equal to blah blah
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
            Then - Actions
                Player - Set Player 12 (Brown) Food used to 1
                Game - Display to (All players) the text: Next level
            Else - Actions
 

DrEvil

FCRI Associate!
Reaction score
111
You should have

set Level = Level + 1
then
run the spawn trigger

thats what most td's have
 

zzyzxroad

TH.net Regular
Reaction score
1
Code:
next level
    Events
        Player - (Owner of Admin Cage 0005 <gen>) types a chat message containing next as An exact match
    Conditions
        (Name of (Triggering player)) Equal to blah blah
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
            Then - Actions
                Set Level_Number = (Level_Number + 1)
                Game - Display to (All players) the text: Next level
            Else - Actions

shows the display "next level" but it doesnt work
 

Exide

I am amazingly focused right now!
Reaction score
448
You should also run the spawn trigger, and all other triggers related to a new level.
 

DrEvil

FCRI Associate!
Reaction score
111
Yes
You need to set level + 1 then
run all the triggers that occur when spawning
 

zzyzxroad

TH.net Regular
Reaction score
1
Yes
You need to set level + 1 then
run all the triggers that occur when spawning

That may work, but then will the existing creeps still be on the map? How to get rid of them.

The trigger does work, but I have to wait until level 1 is complete, then it skips to level 3. I would assume that if I type it in 2 times, I would skip to level 4.

Edit:All that happens is the next spawn starts, then I have 2 waves of spawns!! How do I get rid of the xisting creeps off the map?

Edit...FIXED!!!!! This does the trick:
Code:
Next level
    Events
        Player - Player 1 (Red) types a chat message containing [COLOR="red"]next[/COLOR] as An exact match
    Conditions
    Actions
          Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 12 (Brown)) and do (Unit - Remove (Picked unit) from the game)
 
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