switch(input("What Hairstyle Would You Like?","Choose") in list ("Styled Bowl","Short","Pigtails","Medium","Nevermind..."))
if("Styled Bowl")
if(usr.hair>1) // if your gold is lower than 10 it will disallow you from purchasing it.
usr << "One Moment Sir" // tells you, that you cannot buy it.
usr.overlays=0
usr.hair-=1
else // otherwish you can purchase it.
usr.hair += 1 // subtracts 10 gold from your original
usr.overlays+=new/obj/Hair/Test
var/r = input("How much red?","Hair Color") as num//set its red amount
var/g = input("How much green?","Hair Color") as num//set its green amount
var/b = input("How much blue?","Hair Color") as num//set its blue amount
usr.overlays += rgb(r,g,b)// puts amounts into icon
usr << "Thank you and come again!"
Problem description: Im trying to create a system that allows you to change your haircolor and I plan to use the same system to change the color of clothing icons as well. However, although I get no errors from this code its sloppy and doesnt do anything. I think my problem is in how I adress what the color change targets. How should I word this?