ID:177353
 
How would I make a status panel that is your inventory? Icons for items you've found, left click to use items or equip if they are weapons/armour and right click for descriptions.
mob
Stat()
statpanel("Inventory",src.contents)
What he said, and...

obj
Click()
set src in usr.contents
src.Action()
proc
Action()
Weapon
Action()
//Equip code
Item
Action
//Use code
In response to Soori-99
Thanks for the help! But if the item is a healing item, for instance, how would I access the properties of the user? If I try

bread
Use()
usr.health+=50

I get a 'variable not defined' error. I run into this every time I try to access the properties of a particular instance of something from another things proc.
In response to Jp
My bad. Have it Use(mob/M), then replace usr with M. Then, call Use(usr) when you click on it. Make sure health is defined for all mobs.
In response to Garthor
And how would I get a right-click give a description? Or do I make a left click give description and double use it?
In response to Garthor
Thanks.
In response to Jp
Look up the DoubleClick (or dblclick, or something) proc. And right click cannot be assigned.