[b][u]Timer Maker[/u][/b]
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 300.00 seconds
Set KingTimer[(Player number of (Picked player))] = (Last started timer)
Countdown Timer - Pause KingTimer[(Player number of (Picked player))]
Countdown Timer - Create a timer window for KingTimer[(Player number of (Picked player))] with title King Time Left ...
Set KingTimerWindow[(Player number of (Picked player))] = (Last created timer window)
Countdown Timer - Show KingTimerWindow[(Player number of (Picked player))] for (Picked player)
[b][u]Timer Beginning[/b][/u]
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Trigger - Turn on Win and Lose <gen>
[b][u]First King Timer Start[/u][/b]
Events
Unit - A unit enters The Top <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Pusher
Actions
Countdown Timer - Resume KingTimer[(Player number of (Owner of (Entering unit)))]
Trigger - Turn off (This trigger)
[b][u]Timer Stop[/u][/b]
Events
Unit - A unit leaves The Top <gen>
Conditions
(Unit-type of (Leaving unit)) Equal to The King
Actions
Countdown Timer - Pause KingTimer[(Player number of (Owner of (Leaving unit)))]
[b][u]Timer Start New King[/u][/b]
Events
Time - Every 0.10 seconds of game time
Conditions
(Number of units in (Units in The Top <gen> matching ((Unit-type of (Matching unit)) Equal to The King))) Equal to 0
Actions
Countdown Timer - Resume KingTimer[(Player number of (Owner of WinningPusher))]
[b][u]Win and Lose[/b][/u]
[b][u][i]Initially off[/i][/u][/b]
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 8, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer((Remaining time for KingTimer[(Player number of (Player((Integer A))))]))) Equal to 0
Then - Actions
Game - Victory (Player((Integer A))) (Show dialogs, Show scores)
If ((Integer A) Equal to 1) then do (For each (Integer B) from 2 to 8, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)) else do (Do nothing)
If ((Integer A) Equal to 8) then do (For each (Integer B) from 1 to 7, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)) else do (Do nothing)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer A) Equal to 2
Then - Actions
For each (Integer B) from 1 to 1, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)
For each (Integer B) from 3 to 8, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer A) Equal to 3
Then - Actions
For each (Integer B) from 1 to 2, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)
For each (Integer B) from 4 to 8, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer A) Equal to 4
Then - Actions
For each (Integer B) from 1 to 3, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)
For each (Integer B) from 5 to 8, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer A) Equal to 5
Then - Actions
For each (Integer B) from 1 to 4, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)
For each (Integer B) from 6 to 8, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer A) Equal to 6
Then - Actions
For each (Integer B) from 1 to 5, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)
For each (Integer B) from 7 to 8, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer A) Equal to 7
Then - Actions
For each (Integer B) from 1 to 6, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)
For each (Integer B) from 8 to 8, do (Game - Defeat (Player((Integer B))) with the message: Defeat!)
Else - Actions
Do nothing
Else - Actions
Do nothing