Ok well, I'm making a TD and there is a little problem with my spawns. I can't seem to figure out waht's wrong with it. The first wave spawns perfectly but the second one doesn't. I don't know why, so here are the triggers:
Triggers aren't finished yet, as you can see. So it's basically copy + paste from Wave 1 and Wave Start 1 untill I edit them. Any help is appreciated.
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 Next Wave 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 - Turn on Wave 1 <gen>
Trigger - Turn off (This trigger)
Code:
Wave 1
Events
Time - Every 1.00 seconds of game time
Conditions
(Number of units in (Units in (Playable map area) owned by Player 12 (Brown))) Less than or equal to 0
Actions
Sound - Play StartOfFirstLvl <gen>
If ((Player 1 (Red) slot status) Equal to Is playing) then do (Unit - Create 1 Footman for Player 12 (Brown) at (Center of Red Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
Trigger - Turn on Wave Start 2 <gen>
Trigger - Turn off (This trigger)
Code:
Wave Start 2
Events
Conditions
Actions
Countdown Timer - Create a timer window for (Last started timer) with title Next Wave 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 - Turn on Wave 2 <gen>
Trigger - Turn off (This trigger)
Code:
Wave 2
Events
Time - Every 1.00 seconds of game time
Conditions
(Number of units in (Units in (Playable map area) owned by Player 12 (Brown))) Less than or equal to 0
Actions
Sound - Play StartOfFirstLvl <gen>
If ((Player 1 (Red) slot status) Equal to Is playing) then do (Unit - Create 1 Footman for Player 12 (Brown) at (Center of Red Spawn <gen>) facing Default building facing degrees) else do (Do nothing)
Trigger - Turn on Wave Start 3 <gen>
Trigger - Turn off (This trigger)
Triggers aren't finished yet, as you can see. So it's basically copy + paste from Wave 1 and Wave Start 1 untill I edit them. Any help is appreciated.