ID:1929234
 
(See the best response by Kaiochao.)
idk why this is showing up but I am a little scared, this is my stat code.


mob
Stat()
..()
statpanel("Stats")
if(statpanel("Stats"))
stat("Name: [usr]")
stat("Gender: [usr.gender]")
stat("Health: [Health]/[MHealth]")
stat("Mana: [Mana]/[MMana]")
stat("Yrd: [Yrd]")
mob
Stat()
..()
//statpanel("Inventory")
Stat(contents)
for(var/obj/O in src)
src<<output(O,"Items")



http://sta.sh/014cnxnrrj11
Best response
You called Stat() inside Stat().
oh, also the inventory is not working properly. I have A grid style window. Though the items do not appear in the window, but only under the Health,Mana,etc Stat Tab
Like he said, you called Stat() inside of Stat(), you meant to call stat(), there's a difference in the capitalization.
i doubt im supposed to do this but try

mob
Stat()
statpanel("Stats")
if(statpanel("Stats"))
stat("Name: [usr]")
stat("Gender: [usr.gender]")
stat("Health: [Health]/[MHealth]")
stat("Mana: [Mana]/[MMana]")
stat("Yrd: [Yrd]")
proc
InventoryOutput()
winset(src,"WindowName.GridName","cells=0x0")
var/i = 1
for(var/obj/O in contents)
src <<output(O,"WindowName.GridName:[i++],[0]")

verb
RefreshInventory()
spawn()InventoryOutput()