these robes really annoys me in Developer Help
|
|
really these robes annoy me, i cant make them disappear when you unequip it, now i tried to make a list for every equiped item so i could empty list with that item included, but of course it never works.code below, whats wrong with it?
obj verb Equip() set src in usr if(usr.cheston==0) src.layer=MOB_LAYER+1 usr.cheston++ usr << "You equipped [src.name]" usr.topover+=src src.suffix="Equipped" else usr << "You have something on" Unequip() set src in usr if(usr.cheston==1) src.layer=OBJ_LAYER usr.cheston-- usr << "You unequipped [src.name]" usr.topover=0 src.suffix="" else usr << "You dont have it equipped"
|
|
1) You never even attempt to remove it from overlays.
2) If you change any visual aspect of the object (including some variables that aren't visual at all but oh well), it won't map to the same overlays-object and so trying to remove it won't work. In your case, if you change the layer, you won't be able to remove the image from overlays.
Again, for more information, you can search the forums to learn more about overlays.