obj
item
storage
bag1
verb
add()
if(contents.len >= 3)
alert("This pouch is already full!", "Cannot comply")
return
var/obj/A = input("Choose an item to put into the bag", "Filling Bag") as obj in usr.contents
if(istype(A, /obj/item/Def) || istype(A, /obj/item/Mdef) || istype(A, /obj/item/Mweapon) || istype(A, /obj/item/Orb_bonus_def) || istype(A, /obj/item/Orb_bonus_wpn) || istype(A, /obj/item/bweapon))
alert("You cannot place equipped or equippable items in a bag!", "Cannot comply")
return
else
contained += A
usr.contents -= A
usr << "[A] added to the [name]."
Any ideas?
--Vito