idk_a_name
ABC GUM :D
- Reaction score
- 43
I need help with a trigger that sets the level to "level 2" after the monsters of level 1 have been defeated. The problem is when the monsters from level 1 are defeated level 2 doesn't start!
Here are my triggers.
Here are my triggers.
Code:
Next Level
Events
Player - Player 12 (Brown)'s Food used becomes Less than or equal to 0.00
Conditions
Defeat Equal to False
Actions
-------- Level Setup --------
Set Level_Number = (Level_Number + 1)
Trigger - Run Update Title <gen> (checking conditions)
-------- Timer --------
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 15.00 seconds)
Countdown Timer - Create a timer window for (Last started timer) with title ((Level + (String(Level_Number))) + in...)
-------- Set Next Level --------
If (Level_Number Equal to 1) then do (Wait 44.50 seconds) else do (Do nothing)
Game - Display to (All players) the text: |c0000cdf9Next leve...
If (Level_Number Equal to 30) then do (Game - Display to (All players) for 30.00 seconds the text: |c0000cdf9Excellent...) else do (Do nothing)
Trigger - Run Set Levels <gen> (checking conditions)
Code:
Core Funtion
Events
Time - Next_Level expires
Conditions
Defeat Equal to False
Actions
-------- Setup Timer --------
Countdown Timer - Pause Next_Level
Countdown Timer - Destroy (Last created timer window)
-------- Create Units --------
Unit - Create Monster_Amount Monster_Type for Player 12 (Brown) at (Center of Side 1 spawn <gen>) facing Default building facing degrees
-------- Level Info --------
If (Level_Number Equal to 10) then do (Game - Display to (All players) the text: |c00ff0000BOSS LEVE...) else do (Do nothing)
If (Level_Number Equal to 20) then do (Game - Display to (All players) the text: |c00ff0000BOSS LEVE...) else do (Do nothing)
If (Level_Number Equal to 30) then do (Game - Display to (All players) the text: |c00ff0000BOSS LEVE...) else do (Do nothing)
-------- Run Triggers --------
Trigger - Run Startup Movement <gen> (checking conditions)
-------- Misc. --------
Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) and do (Unit - Set (Picked unit) acquisition range to 0.00)