No Topic in Developer Help
|
|
Code:
obj chest var power = 0 verb Drop() set src in usr if(src.suffix=="Equipped") usr << "You can't drop equipped item, unequip it first" else src.Move(usr.loc) Get() set src in oview(1) src.Move(usr) Equip() set src in usr if(usr.cheston==0) src.layer=MOB_LAYER+1 usr.cheston++ usr << "You equipped [src.name]" usr.overlays+=src usr.defense+=src.power 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.overlays-=src usr.defense-=src.power src.suffix="" else usr << "You dont have it equipped" newbie_robe icon = 'newbie_top.dmi' power = 5
|
Problem description:
i really got annoyed, i tried to fix this code for a week, but it always have same results: when you equip item, its icon appears under you, and when you try to unequip, it's icon still remains on you. i cant fix this code, everything looks OK, but for some reason it isnt
|