Race problem

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?
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
no thats not possible you could only change an other race into naga changing the name and creating the starting units via script
 

Igor_Z

You can change this now in User CP.
Reaction score
61
hmm what you mean?
Edit: Can you give me script code?
 

gMThunder

New Member
Reaction score
0
dont even worry about it. once the map loads u can have like a dialogue box asking what race they players wants to be. or like a tavern or circle selection. that way u can have whatever races. and for the pre-game when in lobby just set all players to fixed random or something or fixed human, and then in game you can select a race so it doesnt really matter
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
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
 

gMThunder

New Member
Reaction score
0
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

lol thats what i said^^well the dialog part haha
 

Igor_Z

You can change this now in User CP.
Reaction score
61
I want naga race to apear when you are in lobby.. Because there are only 4 races Human, Orc, Night Elf and Undead and Selectable in player properties. No naga... I don't want naga race in game i want naga to apear before starting the game!!!
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Hmm it must be posible. Does some 1 know more expirienced guys here so i can ask them?
 

Strilanc

Veteran Scripter
Reaction score
42
Contrary to popular belief, not everything is possible. Your best bet is selecting the race inside the game.
 

TfauxT

New Member
Reaction score
2
I don't think you can change the selection options in the game lobby, you would have to do it inside the game.

Make sure in your map initialization that the action place starting units is removed.

Then to make people able to select their race, create a dialog system.
This system would be made of a couple triggers that work with each other. Heres a example:
First, create a variable for your dialog box. Lets call it Dialog. Since you want the melee races and the naga, make dialog button variable array called Button

Then create the actual triggers for such a system:
Code:
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

Then create the part of the system that creates the starting units:
Code:
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

Note: This system can be easily added to if you use the arrays, whichs makes adding additional races to the selection system very easy and less time consuming.
So if your making a special melee map you can use this to put as many races as you make, or just the naga one and the normal 4. Hope this helps :D
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Its stupid to chose the race in game... thanks for all your help. I h8 this stupid WE. Why they don't add naga race ffs...:D Guess Blizzard didn't knew that naga race will be used in game... Thanks guys
 

Lightstalker

New Member
Reaction score
55
You can't do that. As someone else said, you can create a dialogue box, make a tavern, make a string trigger, or however you want players to pick a race.

Their planning on allowing map makers to be able to add/remove races while in the lobby for SC2 :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top