ID:818679
 
Keywords: disppearing, icons
(See the best response by Raimo.)
Code:
obj
Rags
name = "Rags"
icon = 'Clothing.dmi'
verb
Wear()
if(src.worn)
src.worn = 0
usr.overlays -= src.icon
else
src.worn = 1
usr.overlays += src.icon
Drop()
if(src:worn == 1)
usr << "Not while its being fashioned."
if(src:worn == 0)
src.loc=locate(usr.x,usr.y-1,usr.z)
verb
Get()
set src in oview(1)
//usr.contents+=src
usr << output(src, "Grid.Grid:1,6")


Problem description: When I 'Run' the file on single user mode and try wearing the Item, it wont appear on my mob. And it wont appear on the grid that's coded

Best response
Okay, this might be dumb as it is very late and can't think clearly, but you might have to do:
usr.overlays -= /obj/Rags
usr.overlays += /obj/Rags
Doesn't work and it doesn't even show in on the Map.
What do you mean, "show in on the Map"?
You know how when your click on a dmm and it shows an 'Object' tab. The icon doesn't appear there
To tell you the truth i like to use this
usr.overlays += 'Rags.dmi'
Fixed already.

EDIT: Im supposed to change 'name =' to 'icon_state='.
In response to BayJune (#6)
Lol told u that last night over t.v