- Joined
- Mar 15, 2006
- Messages
- 7,945
Okay in my TD, since i'm too lazy to make the triggers seperate, I have one trigger that starts the level timer at the start of the game, as well as dictates when to start the next level. Here it is:
-
Next Level
-
Events
-
Player - Player 11 (Dark Green)'s Food used becomes Less than or equal to 0.00
-
Player - Player 12 (Brown)'s Food used becomes Less than or equal to 0.00
-
Conditions
-
Defeat Equal to False
-
Actions
-
If (Level_Number Greater than 1) then do (Game - Display to Defenders the text: Congratulations, yo...) else do (Do nothing)
-
Set Gold_amount = (Gold_amount + 2)
-
Set Level_Number = (Level_Number + 1)
-
Leaderboard - Change the title of (Last created leaderboard) to (LotR TD + (Round + (String(Level_Number))))
-
If (Level_Number Equal to 1) then do (Countdown Timer - Start Next_Level as a One-shot timer that will expire in 60.00 seconds) else do (Countdown Timer - Start Next_Level as a One-shot timer that will expire in 30.00 seconds)
-
If (Level_Number Equal to 1) then do (Game - Display to (All players) the text: Welcome to Lord of ...) else do (Do nothing)
-
Countdown Timer - Create a timer window for (Last started timer) with title ((Level + (String(Level_Number))) + in...)
-
Game - Display to (All players) the text: |c0000cdf9Next leve...
-
If (Level_Number Equal to 33) then do (Game - Display to (All players) the text: Holy crap!!! You ma...) else do (Do nothing)
-
Trigger - Run Setspawns <gen> (checking conditions)