ID:1677444
 
(See the best response by Pirion.)
Code:
         statpanel("Techniques")
if(statpanel("Techniques"))for(var/obj/techs/O in contents)stat(O)

    Click()
if(loc!=usr)del src
..()
Attack
icon_state="fist"
proc
Use()
usr.melee()
Click()Use()
Kanon_Ball
icon_state="Kanon Ball"
proc
Use()
usr.soul_blast()
Click()Use()


Problem description:

I want to make objs appear in a skill tab, I was able to make clothes obj appear in a tab, but can't do the same for the "techniques".
Best response
How do you add skills to a player?
If they are not in contents - they won't appear.
In response to Pirion
They appear, but I have an icon set to them, that's what won't appear.
I see you've set the icon state. Do you also set the icon?
In response to Pirion
Pirion wrote:
I see you've set the icon state. Do you also set the icon?

obj/techs
layer=95
icon='cards.dmi'
MouseDrag()
mouse_drag_pointer=src
MouseDrop(obj/overobject,srclocation,overlocation)
Same code, no issues here. Is cards.dmi the correct icon file?

Can you recreate an example and upload?

mob/verb/techs()
src.contents += new/obj/techs/Attack
sleep(100)

src.contents += new/obj/techs/Kanon_Ball

mob/Stat()
statpanel("Techniques")
if(statpanel("Techniques"))
var/i = 0
for(var/obj/techs/O in contents)
stat(O)
i++
stat("count: [i]")
obj/techs
layer=95
icon='cards.dmi'
MouseDrag()
mouse_drag_pointer=src
MouseDrop(obj/overobject,srclocation,overlocation)
Click()
if(loc!=usr)del src
..()
Attack
icon_state="fist"
proc
Use()
usr.melee()
Click() Use()
Kanon_Ball
icon_state="Kanon Ball"
proc
Use()
usr.soul_blast()
Click() Use()

If you're testing on the webclient, Lummox just resolved a bug related to statpanel("Techniques") returning false even when being the active tab.