//Here is our object:
obj
Plaything
desc = "Toy for trying out verbs. Tastes like white chocolate."
//Here is the login code, which places the object in usr.contents.
mob
Login()
Move(locate(/area/Lounge))
new /obj/Plaything (usr)
//Here are the drop, get, look, and inventory verbs.
drop(var/obj/O in usr.contents) //drops an item at your position
Msg23("You drop [O].","[usr] drops [O].")
O.loc = usr.loc
get(var/obj/O as obj in oview()) //picks up an item at your position
Msg23("You get [O].","[usr] gets [O].")
O.loc = usr.contents
inventory() //checks your inventory
usr << "You are carrying:"
for (var/obj/O in usr.contents) usr << O
look()
var/area/A = loc
if(istype(A))
A.look(src)
Problem description:
You can look at the Plaything when you spawn, and it appears in your inventory. However, upon dropping it and then picking it up again, it will not appear in your inventory, nor does it remain in the room; it just 'vanishes'.
A little help here, please, because I have no goodly idea why.
[link]