ID:2337686
 
(See the best response by Nadrew.)
mob
Stat()
if(logged)
statpanel("Inventory")
stat("")
if(contents.len)
stat(contents)
else
stat("Empty")


Problem description: I want the variables for each object in my contents list to be displayed beside it. Currently at the moment, I can only display what is in my contents list animated in the inventory panel.
Best response
Well, things have a lot of variables, so you're probably not going to want to show them all.

To display specific data per-item you'd want to loop over the contents list and show each item individually with its own stat() calls.

However, it should be noted that statpanels are pretty obsolete as far as usage goes, it's much more recommended to go with an on-screen approach or even use a grid interface element.

For debugging purposes though, they're fine.
The "suffix" var is a bit of text that will be displayed to the right of an atom in a statpanel. All you have to do it set it for each atom and update it when necessary.
All i can say is to try and remove the if(logged)
    
mob
Stat()
statpanel("Inventory")
if(contents.len)
stat(contents)
else
stat("Empty")