Events:
Map Initialization
Actions:
Player Group - Pick every player in (all players) matching (Picked Player) an do (Actions)
IF/THEN/ELSE:
If - Conditions:
(Picked Player) slot status) equal to (Is playing)
Then - Actions:
Set Bases = Player number (Picked Player)
Else - Actions:
Events:
Unit dies
Conditions:
type of (Dying Unit) is equal to (Your Base Building)
Actions:
Set Bases = Bases - 1
IF/THEN/ELSE:
If - Conditions:
Bases is equal to 0
Then - Actions:
Victory (Owner of (Killing Unit)) Show Dialogs, Show scores
Else - Actions:
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked player) slot status) Equal to Is playing
Then - Actions
Set Bases[10] = (Player number of (Picked player))
Else - Actions
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Altar of Kings
Actions
Set Bases[1] = Bases[1]
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Game - Victory (Owner of (Killing unit)) (Show dialogs, Show scores)
Else - Actions