obj
apple
verb
take()
set src in oview(1)
usr.inventory += src
//removing the object from the screen? loc = null?
ID:151284
![]() Oct 18 2011, 4:32 pm
|
|
What do you think I should do with an object once I have picked it up, to make it actually vanish?
|
![]() Oct 18 2011, 5:07 pm
|
|
src.Move(usr) -- actually move it to the player.
|
If you don't actually want to make usr.contents into the player inventory, the best thing to do would be to set the loc to null, to remove the object entirely from the screen. The object will continue to exist, since it's referenced in usr.inventory, but if you remove it from that list without moving it to the map again, the garbage collector will delete it.
|