Melee Game - Create starting units (for all players)
Dialog Actions
Events
Dialog - A dialog button is clicked for Dialog
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to DialogButtonUndead
Then - Actions
Player Group - Pick every player in Force[ForceNumber] and do (Actions)
Loop - Actions
Unit - Create 5 Acolyte for (Picked player) at ((Picked player) start location) facing Default building facing (270.0) degrees
Unit - Create 1 Tree of Life for (Picked player) at ((Picked player) start location) facing Default building facing (270.0) degrees
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to DialogButtonHuman
Then - Actions
Player Group - Pick every player in Force[ForceNumber] and do (Actions)
Loop - Actions
Unit - Create 5 Peasant for (Picked player) at ((Picked player) start location) facing Default building facing (270.0) degrees
Unit - Create 1 Town Hall for (Picked player) at ((Picked player) start location) facing Default building facing (270.0) degrees
Else - Actions
Set ForceNumber = 2
Dialog - Change the title of Dialog to (Set race of Force + (String(ForceNumber)))
Dialog - Show Dialog for (Triggering player)
Dialog Setup
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Dialog - Change the title of Dialog to (Set race of Force + (String(ForceNumber)))
Dialog - Create a dialog button for Dialog labelled Undead
Set DialogButtonUndead = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled Human
Set DialogButtonHuman = (Last created dialog Button)
Melee Initialization
Events
Map initialization
Conditions
Actions
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Run melee AI scripts (for computer players)
Melee Game - Enforce victory/defeat conditions (for all players)
Player Group - Add Player 1 (Red) to Force[1]
Player Group - Add Player 2 (Blue) to Force[1]
Player Group - Add Player 3 (Teal) to Force[2]
Player Group - Add Player 4 (Purple) to Force[2]