Why won't this trigger work?

Ub3r_

New Member
Reaction score
4
Code:
Wave Start 2
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    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 Player 12 (Brown))) Equal to 0
            Then - Actions
                Sound - Play EndLvl <gen>
                Countdown Timer - Create a timer window for (Last started timer) with title Wave 2 Begins In:
                Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 30.00 seconds
                Wait 15.00 game-time seconds
                Sound - Play Warning <gen>
                Game - Display to (All players) the text: Warning! Wave 2 is ...
                Wait 15.00 game-time seconds
                Countdown Timer - Destroy (Last created timer window)
                Trigger - Run Wave 2 <gen> (checking conditions)
            Else - Actions
                Do nothing
        Trigger - Turn off (This trigger)

I've tried every damn way I can think of but it's not running. Any ideas?
 

Ub3r_

New Member
Reaction score
4
Ok here is the 2 triggrrs before this one and the one after it.

Code:
Wave Start 1
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Countdown Timer - Create a timer window for (Last started timer) with title Wave 1 Begins In:
        Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 30.00 seconds
        Wait 15.00 game-time seconds
        Sound - Play Warning <gen>
        Game - Display to (All players) the text: Warning! Wave 1 is ...
        Wait 15.00 game-time seconds
        Countdown Timer - Destroy (Last created timer window)
        Trigger - Run Wave 1 <gen> (checking conditions)
        Trigger - Turn off (This trigger)

Code:
Wave 1
    Events
    Conditions
    Actions
        Sound - Play StartOfFirstLvl <gen>
        Wait 2.00 game-time seconds
        If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Blue Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Teal Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        Wait 2.00 game-time seconds
        If ((Player 9 (Gray) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Grey Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        If ((Player 10 (Light Blue) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Light Blue Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        Wait 2.00 game-time seconds
        If ((Player 7 (Green) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Green Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        If ((Player 8 (Pink) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Pink Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        Wait 2.00 game-time seconds
        If ((Player 1 (Red) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Red Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        Wait 2.00 game-time seconds
        If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Orange Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        Wait 2.00 game-time seconds
        If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Purple Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        If ((Player 5 (Yellow) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Yellow Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        Trigger - Run Wave Start 2 <gen> (checking conditions)
        Trigger - Turn off (This trigger)

Code:
Wave 2
    Events
    Conditions
    Actions
        If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Blue Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Teal Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        Wait 2.00 game-time seconds
        If ((Player 9 (Gray) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Grey Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        If ((Player 10 (Light Blue) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Light Blue Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        Wait 2.00 game-time seconds
        If ((Player 7 (Green) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Green Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        If ((Player 8 (Pink) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Pink Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        Wait 2.00 game-time seconds
        If ((Player 1 (Red) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Red Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        Wait 2.00 game-time seconds
        If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Orange Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        Wait 2.00 game-time seconds
        If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Purple Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
        If ((Player 5 (Yellow) slot status) Equal to Is playing) then do (Unit - Create 20 Footman for Player 12 (Brown) at (Center of Yellow Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
 

Septimus

New Member
Reaction score
58
Well, I see the problem.

You set the trigger to be turn off. That's mean that shall the trigger had been execute, it would be turn off permanently.

Wave Start 2
Events
Time - Every 1.00 seconds of game time
Conditions
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 Player 12 (Brown))) Equal to 0
Then - Actions
Sound - Play EndLvl <gen>
Countdown Timer - Create a timer window for (Last started timer) with title Wave 2 Begins In:
Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 30.00 seconds
Wait 15.00 game-time seconds
Sound - Play Warning <gen>
Game - Display to (All players) the text: Warning! Wave 2 is ...
Wait 15.00 game-time seconds
Countdown Timer - Destroy (Last created timer window)
Trigger - Run Wave 2 <gen> (checking conditions)
Else - Actions
Do nothing
Trigger - Turn off (This trigger)

Remove it and it should work fine.
 

saw792

Is known to say things. That is all.
Reaction score
280
Perhaps because the trigger turns itself off after 1 second of game time. The first time it triggers (1s elapsed) it runs the if statement, returns false thus does no actions, then turns itself off.
 

Ub3r_

New Member
Reaction score
4
Well, I see the problem.

You set the trigger to be turn off. That's mean that shall the trigger had been execute, it would be turn off permanently.

Where does it say this?

EDIT: Oh I see. So, like this?

Code:
Wave Start 2
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    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 Player 12 (Brown))) Equal to 0
            Then - Actions
                Sound - Play EndLvl <gen>
                Countdown Timer - Create a timer window for (Last started timer) with title Wave 2 Begins In:
                Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 30.00 seconds
                Wait 15.00 game-time seconds
                Sound - Play Warning <gen>
                Game - Display to (All players) the text: Warning! Wave 2 is ...
                Wait 15.00 game-time seconds
                Countdown Timer - Destroy (Last created timer window)
                Trigger - Run Wave 2 <gen> (checking conditions)
                Trigger - Turn off (This trigger)
            Else - Actions
                Do nothing

Btw, tried this before, didn't work for some reason.
 

XeNiM666

I lurk for pizza
Reaction score
138
Try this:

Code:
Wave Start 2
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    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 Player 12 (Brown))) Equal to 0
            Then - Actions
                Sound - Play EndLvl <gen>
                Countdown Timer - Create a timer window for (Last started timer) with title Wave 2 Begins In:
                Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 30.00 seconds
                Wait 15.00 game-time seconds
                Sound - Play Warning <gen>
                Game - Display to (All players) the text: Warning! Wave 2 is ...
                Wait 15.00 game-time seconds
                Countdown Timer - Destroy (Last created timer window)
                Trigger - Run Wave 2 <gen> (checking conditions)
                Trigger - Turn off (This trigger)
            Else - Actions

dont use the Do Nothing action, as the action says, it does nothing so just remove it.

EDIT:
LOL, 3 members beat me up to it!! XD
 

Ub3r_

New Member
Reaction score
4
I tried this

Code:
Wave Start 2
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    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 Player 12 (Brown))) Equal to 0
            Then - Actions
                Sound - Play EndLvl <gen>
                Countdown Timer - Create a timer window for (Last started timer) with title Wave 2 Begins In:
                Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 30.00 seconds
                Wait 15.00 game-time seconds
                Sound - Play Warning <gen>
                Game - Display to (All players) the text: Warning! Wave 2 is ...
                Wait 15.00 game-time seconds
                Countdown Timer - Destroy (Last created timer window)
                Trigger - Run Wave 2 <gen> (checking conditions)
            Else - Actions

But it's still not working.
 

denmax

You can change this now in User CP.
Reaction score
155
game-time and real life seconds are 2 different things..
 

denmax

You can change this now in User CP.
Reaction score
155
it doesn't, it just delays your trigger..

It would have been better if you just have the event (timer expires) in Run Wave 2..
 

Ub3r_

New Member
Reaction score
4
But the Wait isn't before the first action and the first action doesn't execute. I have 2 waits in another trigger and it works. It's wavestart 1.
 

Septimus

New Member
Reaction score
58
Wave Start 2
Events
Time - Every 1.00 seconds of game time
Conditions
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 Player 12 (Brown))) Equal to 0
Then - Actions
Sound - Play EndLvl <gen>
Countdown Timer - Create a timer window for (Last started timer) with title Wave 2 Begins In:
Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 30.00 seconds
Wait 15.00 game-time seconds
Sound - Play Warning <gen>
Game - Display to (All players) the text: Warning! Wave 2 is ...
Countdown Timer - Destroy (Last created timer window)
Trigger - Run Wave 2 <gen> (checking conditions)
Else - Actions

This should work fine.
 

Ub3r_

New Member
Reaction score
4
This should work fine.

That's exactly the same as the trigger I gave you but with a wait removed. Wave 2 isn't the only trigger that isn't working its Wave 2 AND Wave Start 2. It's not even playing the sound at the start.
 

Septimus

New Member
Reaction score
58
What is the total wave of your map is ?
Did you set many trigger that are similiar to trigger Wave 1 ?
 

Septimus

New Member
Reaction score
58
So, you are gonna make 55 waves through this way ? It would cause a serious major leak and increase your size map quite a lot.

I suggest you to make a variable setting for it.
 

Ub3r_

New Member
Reaction score
4
So, you are gonna make 55 waves through this way ? It would cause a serious major leak and increase your size map quite a lot.

I suggest you to make a variable setting for it.

How do I go about making a variable setting for this. Green TD did it this way it's got around 45 waves and I never felt any lag. Nor did any other people when I played them.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top