ID:143451
 
Code:
  var/prompt_title = "Name of Character"
var/help_text = "Welcome to Projekt Aftermath"
var/default_value = key
var/char_name = input(src, help_text, prompt_title, default_value) as null|text
var/choice = input("What is your gender?") in list("Male","Female")
world <<"Welcome to the revolution, [usr]."
if(choice == "Male")
new_mob = new/mob/pc/male()
usr.sex = "male"
if(choice == "Female")
usr.sex = "female"
new_mob = new/mob/pc/female()

if usr.sex = "male"
var/choice2 = input("What kind of hair style would you like?") in list("Bald","Spikey")
if(choice2 == "Bald")
..()
if(choice2 == "Spikey")
r = max(min(r,255),1) // r must be between 255 and 1
g = max(min(g,255),1) // g must be between 255 and 1
b = max(min(b,255),1) // b must be between 255 and 1
var/obj/hair1/hair1 = new /obj/hair1 // create a new /obj/hair
hair1.icon += rgb(r,g,b)
overlays += hair1
if usr.sex = "female"
var/choice2 = input("What kind of hair style would you like?") in list("Bald","Long")
if(choice2 == "Bald")
..()
if(choice2 == "Long")
r = max(min(r,255),1) // r must be between 255 and 1
g = max(min(g,255),1) // g must be between 255 and 1
b = max(min(b,255),1) // b must be between 255 and 1
var/obj/hair2/hair2 = new /obj/hair2 // create a new /obj/hair
hair2.icon += rgb(r,g,b)
overlays += hair2


Problem description:
Alright, the top string of code is just to give you an idea of where this code is placed. I wasn't sure if this is how I would do this, but what I'm trying to do is after the player chooses which sex they want to be, they get gender-specific hair choices. For now, I just want Male = Bald, Spikey. Female = Bald, Long. And, after you make that choice, to change the RGB as you wish. When I compile, I'm getting this: charhandling.dm:115:error: missing condition
charhandling.dm:132:error: g: expected end of statement
charhandling.dm:216:error: Write: expected end of statement.

115 is the first line that begins with var/choice2. The g is the "g = max(min(g,255),1)" under the if usr.sex = "female". Thank you in advance.

your if(choice2 == "Bald") doesn't have anything to run, the ..() has no use here, replace it with something like usr<<"hi" or type your code in it
    if(choice2 == "Bald")
return


If you choose no hair (so it's bald), you just put return because nothing has to be put in.
In response to Howey
or leave out that if