ID:1522483
 
Code:
    if(statpanel("Status"))
stat("Health:",health)
stat("Arms?",armsme)
stat("Legs?",legsme)
stat("Bleeding Rate:",bleed)

statpanel("Inventory",contents)


mob/verb/PickUp(obj/O in view(1))
set name = "Pick Up"
if(O.use)
O.loc = src.contents



obj
DblClick()
if(use)
loc = src.contents


Problem description: This is some code I have for a very basic inventory system. The whole clickin gto pick up works, but the inventory never updates, or mabye I coded it wrong.

The use variable is a variable in each object, 1 if the object can be picked up, 0 if it is too big or whatever else.
statpanel("Inventory",contents)


That needs to be on it's own stat(contents) line.

hrm?

Nope, doesn't work.
I'm a derp, I copied the example get() verb from the Blue Book and my rudimentary inventory system worked, time to revise my code. Well this whol epost looked rather noobish of me. xD
In response to Jittai
No it doesn't.