obj
Hair
var/setting = "0,0,0"
icon='Hair.dmi'
layer=MOB_LAYER+1
pixel_y=40
turf
Buttons
icon='Login.dmi'
Left_22
icon_state = "Left-2,2"
Click(mob/m)
if(usr.Hairoverlay == 1)
world<<"Checking Hair"
for(var/obj/Hair/r in usr.overlays)
r += rgb(100,20,20)
r.setting = "20,0,0"
world<<"Changing Hair Color!"
if(usr.Hairoverlay == 0)
usr.overlays+=new/obj/Hair
usr.Hairoverlay = 1
That was my first attempt, and it didnt work...