ID:261590
 
mob/New()
..()
new /obj/ore (src)
obj/ore
name = "ore"
mob/Stat()
statpanel("Contents","Contents",contents)

Simply trying to show somebody on the forums how to make an items stackable, I ran into a problem. I boiled my very small and simple program down to this. Now, I know I havn't messed with statpanels for awhile, but shouldn't there be an ore object in my stat panel?

There isn't. I really want somebody to tell me why.

-LoW
mob/Stat()
statpanel("Contents","Contents",contents)


should be

mob/Stat()
statpanel("Contents",contents)
There is only suppose to be 2 arguments with statpanel(), not 3. First part is name and second is the value.
Lord of Water wrote:
mob/New()
..()
new /obj/ore (src)
obj/ore
name = "ore"
mob/Stat()
statpanel("Contents","Contents",contents)

Simply trying to show somebody on the forums how to make an items stackable, I ran into a problem. I boiled my very small and simple program down to this. Now, I know I havn't messed with statpanels for awhile, but shouldn't there be an ore object in my stat panel?

There isn't. I really want somebody to tell me why.

Because, contrary to the documentation, this form of stat() and the corresponding form of statpanel() don't work:
stat(text1,list2)

But this one does:
stat(list1)

Lummox JR
In response to Lummox JR
the line "statpanel(contents)" in substitute for "statpanel("Contents","Contents",contents)" yields absolutly nothing. Any other ideas?
In response to Lord of Water
statpanel("Contents",contents)
In response to Super16
Thats what I said... DUH!!!