mob
Stat()
..()
//statpanel("Inventory")
stat(contents)
for(var/obj/O in src)
src<<output(O,"Items")
The items only appear in the stats tab under the Health and stuff. I would like it to appear in the grid styled window I made. In the code I put src.loc = usr. Is there something I messed up? What exactly did I do wrong?
stat(contents) will show your contents list in the current statpanel. Since you don't want that, remove that line.
src<<output(O,"Items") will output all items to the same cell in the grid, which probably isn't what you want.
The usual way of outputting a list to a grid goes like this:
And you'd call this whenever your contents changes: