ID:270954
 
say i have an the main character icon in Base.dmi
and i want to add his hair overlay ,which is in Hair.dmi
how do i make Byond access the hair file .
so far
the only way i can do it is if i put the hair in the Base.dmi
and i got too much stuff in there already
mob
AddOverlay()
src.overlay+='Hair.dmi'
overlay_icon_state="blah"

Something like that not sure though I don't use overlays.
mob
verb
Add_Hair()
set category = "Customize"
usr.overlays+='hair.dmi'
In response to Xx Dark Wizard xX
whats the difference between
just putting
"Hair"
and
'Hair.dmi'

would it be becausse the first one("Hair")
i define it first by putting src.icon ='Base.dmi'
In response to KillerGrand
that overlay icon_state isnt working
its calling it a variable
In response to ATS Studios
Well then do src.overlay_icon_state="Blah"
~Grand~
In response to KillerGrand
still undefined variable