obj/var/equipable = 0
obj/var/occupied = 0 //objs?
obj // needs to be tested
verb
equip()
set src in usr.contents
while(src.occupied != 0) // was occupied == 1
usr << "You already have an item equiped."
return
while(src.occupied != 1)
if(src.equipable) // was src.equipable == 1
if(src.equip_types == "Weapon")
occupied = 1
usr.added_on_attack += src.weapon_attack
src.suffix = " Equip"
usr << "You equip [src.name]."
usage = "Equip"
if(src.equip_types == "Armor")
occupied = 1
usr.added_on_defense += src.armor_defense
src.suffix = " Equip"
usr << "You equip [src.name]."
usage = "Equip"
if(!src.equipable)
usr << "You can not equip this item."
return
Problem description:Ok, now once you equip the object, the occupied var is supposed to be 1. When it is one, and you try to equip another object of the same type, it is supposed to say, "You already have another object equip." Why is it not working?
not sure if that will work but i though it would be nice to get somekind of feed back .