ID:154677
 
i have tried to create a portion while making your name and choosing your character to pick your gender.
world
mob = /mob/create_character
view = 6


mob/Male_Saiyan
icon = 'Goku.dmi'
icon_state = ""
mob/Icer
icon = 'icer.dmi'
icon_state = ""
mob/Female_Saiyan
icon = 'Female.dmi'
icon_state = ""
mob/NPC/Brolly
icon = 'Enemy.dmi'
icon_state = "1"
mob/create_character
var/mob/character
Login()
var/charactername = ""
while(!charactername)
charactername = input("What is your name?","Name")
if(!charactername)
usr <<"your name cant be blank!"
gender = input("What Gender are you?","Name") in list("Male","Female","No Prefrence")
if("Male")
var/gender = "Male"
if("Female")
var/gender = "Female"
if("No Prefrence")
var/gender = "No Prefrence"
var/character_race = input("What race shall you be?", "Race") in list("Saiyan", "Drow", "Icer")
switch(character_race)
if("Saiyan")//if the person chooses this, then what?
character = new /mob/Male_Saiyan()//creating the icon
if("Drow")
character = new /mob/Female_Saiyan()
if("Icer")
character = new /mob/Icer()
else
alert(usr, "How did you do that???")
del(src)
character.name = charactername
src.client.mob = character
src.loc=locate(1,1,1)
world << "[usr.key] has just entered '[world.name]'!"

i do have my variables
mob
var
Health=100
MaxHealth=100
Exp=0
Level=1
Power=0
Defence=0
Strength=2
MaxExp=10
Energy=0
MaxEnergy=0
Fatigue = 0
Max_Fatigue = 100
boxing = 0
waiting = 0
one_time = 0
doing = 0
mute = 0
GM = 0
gender = ""

i am geting inconsistant indentations on lines 27, 29, 31, and 33. i am confused out of my mind. O.e
Help?
You forgot to switch(gender).
In response to Darker Legends
Meaning?
In response to Ashs999
You forgot a switch statement after you defined the gender variable. Also, gender is a built in variable.
First thing, the variable gender already exists for all mobs, so you needn't define it.
That said, this portion of the code:

            gender = input("What Gender are you?","Name") in list("Male","Female","No Prefrence")
if("Male")
var/gender = "Male"
if("Female")
var/gender = "Female"
if("No Prefrence")
var/gender = "No Prefrence"
var/character_race = input("What race shall you be?", "Race") in list("Saiyan", "Drow", "Icer")


doesn't work because:
1 - before that series of if("something") you would need a switch(gender)
2 - actually that code, even with the switch, would do absolutely nothing, because what you tell it to do is essentially check the value of gender then assign to gender that very same value...