ID:145057
 
Code:
    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 >.>;)
i think you might be looking for pixel_x and pixel_y to move the overlay into position?
In response to A.T.H.K
Thats what i thought too, but when doing the same process with the mobs it places the overlay correctly above instead of overlapping at the bottom of the main icon yet i did not specify the pixel_y var for anything