var/EquipTo
verb/Equip(var/obj/Equipment/O in usr.contents)
if(!O.EquipType) return
if(O.EquipType == "Weapon")
if(usr.DuelWep)
EquipTo=input("Which hand would you like to equip it to?","Hand Selection") in list("Right","Left")
if(EquipTo=="Right")
if(usr.RightArm=="None")
O.Equipped="On"
usr.RightArm=O
usr.STRex+=O.STR
usr.ARMex+=O.ARM
else
usr << "You already have something equipped there."
else if(EquipTo=="Left")
if(usr.LeftArm=="None")
O.Equipped="On"
usr.LeftArm=O
usr.STRex+=O.STR
usr.ARMex+=O.ARM
else
usr << "You already have something equipped there."
else
if(usr.RightArm=="None")
O.Equipped="On"
usr.RightArm=O
usr.STRex+=O.STR
usr.ARMex+=O.ARM
else
usr << "You already have something equipped there."
verb/UnEquip(var/obj/Equipment/O in usr.contents)
input("What slot do you wish to unequip?","Unequip confirmation") in null|list("Right Arm",\
"Left Arm","Head","Feet","Body","Legs","Neck","Ring","Hands")
if("Right Arm")
if(!usr.RightArm)return
else
usr.RightArm="None"
usr.STRex-=O.STR
usr.ARMex-=O.ARM
Problem description: Ok. This completely works but with one problem: It includes all other items in your inventory. It's a small problem, but I don't know how to fix it. If you try to equip non-equipment items, nothing happens. Can someone help me find the problem please?
P.S. Do not complete it unless neccessary. I'll do that myself.
That's stops anything without an equipment type from being equipped. Perhaps make non-equipment items have an equipment type of 'other'?