Setup Players
Events
Map initialization
Conditions
Actions
-------- Remove all players not playing. --------
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Not equal to Is playing
Then - Actions
Player Group - Remove (Picked player) from (All players)
Unit Group - Pick every unit in (Units owned by (Player((Integer A)))) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Else - Actions
Player Group - Remove (Picked player) from (All players)
Set tempgroup - Units owned by (Player((Interger A))
Unit Group pick every unit in tempgroup
Loop - Actions
Unit - Remove (Picked unit) from the game
call DestroyGroup (udg_tempgroup
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Not equal to Is playing
Then - Actions
Unit - Create 1 Arch Mage for (Player(Integer A)) at (Center of playable map area) facing default building degrees
Else - Actions