I'm having problem with my character creation code, here is the part of coding I'm having problems with:
switch(input("What hair style do you want?", "Customization", text) in list ("Short1", "Male Ponytail"))
if("Short1")
new_mob.hair = "Short1"
var/hairred = input("How much red do you want to put into your hair? (255 is the brightest and 0 is the darkest.)") as num
var/hairblue = input("How much blue do you want to put into your hair?) (255 is the brightest and 0 is the darkest.)")as num
var/hairgreen = input("How much green do you want to put into your hair?) (255 is the brightest and 0 is the darkest.)") as num
var/hairover = 'maleshort.dmi'
hairover += rgb(hairred,hairgreen,hairblue)
new_mob.rhair = hairred
new_mob.ghair = hairgreen
new_mob.bhair = hairblue
new_mob.overlays += hairover
src.client.mob = new_mob
if("Male Ponytail")
new_mob.hair = "Male Ponytail"
var/hairred = input("How much red do you want to put into your hair? (255 is the brightest and 0 is the darkest.)") as num
var/hairblue = input("How much blue do you want to put into your hair?) (255 is the brightest and 0 is the darkest.)")as num
var/hairgreen = input("How much green do you want to put into your hair?) (255 is the brightest and 0 is the darkest.)") as num
var/hairover = 'mponytail.dmi'
hairover += rgb(hairred,hairgreen,hairblue)
new_mob.rhair = hairred
new_mob.ghair = hairgreen
new_mob.bhair = hairblue
new_mob.overlays += hairover
src.client.mob = new_mob
switch(input("What shirt style do you want?", "Customization", text) in list ("Normal"))
if ("Normal")
new_mob.shirt = "Normal"
var/shirtred = input("How much red do you want to put into your shirt? (255 is the brightest and 0 is the darkest.)") as num
var/shirtblue = input("How much blue do you want to put into your shirt?) (255 is the brightest and 0 is the darkest.)")as num
var/shirtgreen = input("How much green do you want to put into your shirt?) (255 is the brightest and 0 is the darkest.)") as num
var/shirtover = icon('clothes.dmi',"maleshirt")
shirtover += rgb(shirtred,shirtgreen,shirtblue)
new_mob.rhair = shirtred
new_mob.ghair = shirtgreen
new_mob.bhair = shirtblue
new_mob.overlays += shirtover
src.client.mob = new_mob
If I take the src.client.mob = new_mob from shirt, it never asks to make the shirt colors... but if I take them from hair, character won't log in properly.
~Ease~