mob/proc/Hair()
icon = 'GoldenSunHair3.dmi'
var/hairtype = icon_state
switch(input("Please Choose a Hair Type:", "Hair?") in list ("Short", "Long Hair", "Swift", "Twisted(Female)"))
if("Short")
var/hair_color = input("What hair color do you want?","Hair Color")as color
hairtype = "malehairshort"
hairtype+= hair_color
src.hair= hairtype
src.overlays += hair
if("Swift")
var/hair_color = input("What hair color do you want?","Hair Color")as color
hairtype = "malehairswift"
hairtype+= hair_color
src.hair= hairtype
src.overlays += hair
if("Long Hair")
var/hair_color = input("What hair color do you want?","Hair Color")as color
hairtype = "femalehairlong"
hairtype+= hair_color
src.hair= hairtype
src.overlays += hair
if("Twisted(Female)")
var/hair_color = input("What hair color do you want?","Hair Color")as color
hairtype = "femalehairtwisted"
hairtype+= hair_color
src.hair= hairtype
src.overlays += hair
Problem description: When I logg in, it lets me choose the hairstyle and color, but it wont add the hair to the character. I get no errors in my code. I added the hair variable to mob/var if anyone thinks it's missing.