ID:157994
 
Do not be led off by the title I am not talking about a Inventory Stats tab.


I have a set of 5 objects under the obj list obj/statobj
instead of coding these items in too stat tab 5 times, is there a way to make them appear like a list I guess?

If you need more info please ask.
I am having trouble parsing "set of 5 objects under the obj list obj/statobj". Could you just give an example of what you have? Or show some relevant code?
I have quite a bit of experience with what he's trying to do. If I'm correct, this is what you're looking for. <small>You should also look up lists in the guide. They talk all about this sort of thing.</small>

obj
Stat
Object_1
icon = 'Object.dmi'
Click()
usr<<"You click [src]"
Object_2
icon = 'Object.dmi'
Click()
usr<<"You click [src]"
mob
var
list
objects = list()
Stat()
statpanel("Statistics")
stat("BYOND Key: [src.key]")
stat("-------------------------")
stat(new/obj/Stat/Object_1/)
stat("-------------------------")
//list method//
statpanel("Objects")
stat("-------------------------")
for(var/o in usr.objects)
stat(o)
stat("-------------------------")
verb
Add_Object()
var/object_1 = new/obj/Stat/Object_1/
var/object_2 = new/obj/Stat/Object_2/
if(prob(50))
usr.objects += object_1
else
usr.objects += object_2