Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Melee Initialization

Events


Time - Elapsed game time is 8.00 seconds

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






Race[(Player number of (Picked player))] Equal to 1.00





Then - Actions






Unit - Create 1 Town Hall for (Picked player) at ((Picked player) start location) facing Default building facing degrees






Unit - Create 5 Peasant for (Picked player) at ((Picked player) start location) facing Default building facing degrees





Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






Race[(Player number of (Picked player))] Equal to 2.00





Then - Actions






Unit - Create 1 Great Hall for (Picked player) at ((Picked player) start location) facing Default building facing degrees






Unit - Create 5 Peon for (Picked player) at ((Picked player) start location) facing Default building facing degrees





Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






Race[(Player number of (Picked player))] Equal to 3.00





Then - Actions






Unit - Create 1 Necropolis for (Picked player) at ((Picked player) start location) facing Default building facing degrees






Unit - Create 3 Acolyte for (Picked player) at ((Picked player) start location) facing Default building facing degrees






Unit - Create 1 Ghoul for (Picked player) at ((Picked player) start location) facing Default building facing degrees





Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






Race[(Player number of (Picked player))] Equal to 4.00





Then - Actions






Unit - Create 1 Tree of Life for (Picked player) at ((Picked player) start location) facing Default building facing degrees






Unit - Create 5 Wisp for (Picked player) at ((Picked player) start location) facing Default building facing degrees





Else - 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)
Init

Events


Time - Elapsed game time is 0.01 seconds

Conditions

Actions


Dialog - Clear Dialog


Dialog - Change the title of Dialog to Choose your race


Dialog - Create a dialog button for Dialog labelled Human


Set Dialog_Button[1] = (Last created dialog Button)


Dialog - Create a dialog button for Dialog labelled Orc


Set Dialog_Button[2] = (Last created dialog Button)


Dialog - Create a dialog button for Dialog labelled Undead


Set Dialog_Button[3] = (Last created dialog Button)


Dialog - Create a dialog button for Dialog labelled Nightelf


Set Dialog_Button[4] = (Last created dialog Button)


Dialog - Show Dialog for Player 1 (Red)
Buttons

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 Dialog_Button[1]



Then - Actions




Set Race[(Player number of (Triggering player))] = 1.00



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Clicked dialog button) Equal to Dialog_Button[2]



Then - Actions




Set Race[(Player number of (Triggering player))] = 2.00



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Clicked dialog button) Equal to Dialog_Button[3]



Then - Actions




Set Race[(Player number of (Triggering player))] = 3.00



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Clicked dialog button) Equal to Dialog_Button[4]



Then - Actions




Set Race[(Player number of (Triggering player))] = 4.00



Else - Actions