mob/NPC/Hair_Stylist
icon = 'NPCs.dmi'
icon_state = "Hair Stylist"
density = 1
verb
Talk()
set src in view(1)
usr<<"Hair Stylist: If you'd like, I can give you a new haircut."
sleep(15)
switch(input("Would you like a new hairstyle?", "Hair") in list ("Yes", "No"))
if("Yes")
switch(input("What hairstyle would you like?", "Hair") in list ("Ichigo", "Cancel"))
if("Ichigo")
usr.hairstyle = "hairichigo.dmi"
usr.overlays += usr.hairstyle
if("Cancel")
return
if("No")
return
Problem description: The hair won't appear on the mob. I'm not entirely sure how to put the overlay on without making it an object, and that's not what I want to do.
usr.hairstyle = 'hairichigo.dmi'
PS: As a sidenote, there's no use to adding if("Cancel") return or if("No") return, if you don't use a switch()'s returned value, it'll do nothing on its own.