ID:271546
 
Code:


Problem description:How do i cause the stat panel to show whatever icons i like?

Stat()
statpanel("inventory")
for(var/obj/item/wepons/K in contents)
stat(K)


Then just make this

obj/item/wepons
sword
icon='sword.dmi'
verb
take()
set src in view(1)
usr<<"You take the sword!"
src.Move(usr)


This should work if you make a pic of a sword!

In response to Moocow696 (#1)
1. Your technique is obsolete o-o

mob
Stat()
..()
statpanel("Inventory",contents)


2. This should be in Developer How-To, not Code Problems.
In response to Kaiochao2536 (#2)
no not like that what i meant is this:
mob
Stat()
statpanel("Stats")
stat(usr)
stat("--- --- --- --- --- --- --- --- --- --- --- --- ---")
stat(" Info")
stat("--- --- --- --- --- --- --- --- --- --- --- --- ---")
stat("Name: [usr]")
stat("Gender: [Gender]")
stat("House: [House] ")
stat("Health: [health]/[Mhealth]")
stat("Magic: [mgc]/[Mmgc]")
..()

////////////////////////////////////////////////////////
Problem:I want that right next to
stat("House: [House] ")
the icon of his House will be shown.
How do i do that?

In response to Gi Money (#3)
mob
var
House = 'iconfile.dmi' /// change iconfile.dmi to your House icon


I don't know if thats what you meant or not. sorry.