Igor_Z
You can change this now in User CP.
- Reaction score
- 61
I have a naga race in my map but in player properties there is no naga race so is there any way before starting a map to get naga race in the race list?
Event:
Map initialization
Conditions:
(Race of Player 1 (Red)) equal Human
Action:
Unit - Create 1 'StartingUnitForNaga' for Player 1 (Red) at (Player 1 (Red) start location) facing ...
well either you could just change the human units to naga units then your player will become naga if s/he picks human, or you could do a script like that:
Code:Event: Map initialization Conditions: (Race of Player 1 (Red)) equal Human Action: Unit - Create 1 'StartingUnitForNaga' for Player 1 (Red) at (Player 1 (Red) start location) facing ...
Only problem is the human race is out of game.
You could use a dialog to ask the player which race s/he wants to pick
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Dialog - Clear Dialog
Dialog - Change the title of Dialog to "Select your race"
Dialog - Create a dialog button for Dialog labeled "Human"
Set button[1] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labeled "Orc"
Set button[2] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labeled "Night Elf"
Set button[3] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labeled "Undead"
Set button[4] = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labeled "Naga"
Set button[5] = (Last created dialog Button)
Dialog - Show myDialog for Player 1
Dialog - Show myDialog for Player 2
Dialog - Show myDialog for Player 3
Dialog - Show myDialog for Player 4
Dialog - Show myDialog for Player 5
Dialog - Show myDialog for Player 6
Dialog - Show myDialog for Player 7
Dialog - Show myDialog for Player 8
Event - A Dialog Button is clicked
Condition - If (All conditions are true, then do (Then actions), Else do (Else)
If - conditions
(clicked dialog button) equal to button[1]
Then - actions
unit - create 1 Townhall for triggering player at triggering player start location
unit - create 4 Peasent for trigger player at triggering player start location
Else - actions
Condition - If (All conditions are true, then do (Then actions), Else do (Else)
If - conditions
(clicked dialog button) equal to button[2]
Then - actions
unit - create 1 Stronghold for triggering player at triggering player start location
unit - create 4 Peon for trigger player at triggering player start location
Else - actions
Condition - If (All conditions are true, then do (Then actions), Else do (Else)
If - conditions
(clicked dialog button) equal to button[3]
Then - actions
unit - create 1 Tree of life for triggering player at triggering player start location
unit - create 4 Wisp for trigger player at triggering player start location
Else - actions
Condition - If (All conditions are true, then do (Then actions), Else do (Else)
If - conditions
(clicked dialog button) equal to button[4]
Then - actions
unit - create 1 Necropolis for triggering player at triggering player start location
unit - create 4 Acolyte for trigger player at triggering player start location
Else - actions
Condition - If (All conditions are true, then do (Then actions), Else do (Else)
If - conditions
(clicked dialog button) equal to button[5]
Then - actions
unit - create 1 Shrine of Aszhara for triggering player at triggering player start location
unit - create 4 Slave for trigger player at triggering player start location
Else - actions
- Do nothing