Head(var/obj/o as obj in world)
set category="Admin"
o.overlays += new o.head
HumanMaker
icon = 'pics/person.dmi'
icon_state = "Merchant"
density = 1
head = /obj/Heads/HMerchant/
verb
BecomeHuman(var/mob/m as mob in world)
set category = "Social"
set src in oview(1)
input("Would you like to become human?") in list("Yes","No","Cancel")
if ("Yes")
if(m.Gender=="Female")
m.icon_state = "Lady"
m.overlays += new /mob/Heads/HLady/
m.human = 1
return
if(m.Gender=="Male")
m.icon_state = "Man"
m.overlays += new /mob/Heads/HMan/
m.human = 1
return
return()
if ("No")
alert("Ok.")
return()
if ("Cancel")
return()
Problem description:
I created a variable for all the two framed objs. I wanted the second part to be attached automatically on world start up but i didn't know how, so i was going to make myself a verb that attached them for me, but the overlays are just overlapping the already existing icon instead of building on it... (It works for me when the mobs do itand what would having () after the new o.head do if i had it there? (So basically i dont understand overlays that well >.>;)