I use the code:
AkiraPants
name = "Akira's Trousers"
icon = 'AkiraPants.dmi'
worn = 0
verb
Wear()
set category = "Inventory"
if(src.worn == 1)
src.worn = 0
usr.overlays -= 'AkiraPants.dmi'
usr << "You remove [src.name]."
else
src.worn = 1
usr.overlays += 'AkiraPants.dmi'
usr << "You wear [src.name]."
Drop()
set category = "Inventory"
if(src.worn == 1)
usr << "Not while its being worn."
if(src.worn == 0)
src.loc=locate(usr.x,usr.y+1,usr.z)
Get()
set category = "Inventory"
set src in oview(1)
Move(usr)
But if someone saves with overlays on, they can't take them off...PLease Help me!
ID:175397
Apr 27 2003, 6:34 am
|
|
May 2 2003, 4:10 am
|
|
Have you worked on the icon at all? If you put an icon as an overlay and then change it, you won't be able to take the overlay off unless you make a Remove all overlays command that sets it to 0.
|