ID:176821
 
How do you make it so when something is in your inventory a statpanel shows up?
mob
Stat()
if(locate(/obj/something in usr)
statpanel("thing")
In response to Garthor
doesnt it go something like this?

Stat()
statpanel("Inventory")
stat("[usr.contents]")
In response to RainZero
Or you could do this.
mob
Stat()
statpanel("Inventory")
stat(contents)
In response to Garthor
Garthor wrote:
mob
Stat()
if(locate(/obj/something in usr))
statpanel("thing")

There are no errors or anything it just dont work....
In response to Delita12345
yea... that