ID:164323
 
How do you make a panel with the skills on it, and when you press on a skill it does the skill? The same for the attack button in the commands panel: how do you get it to actually attack? And about the Stats panel, how do you put more objects in it? I need toknow the list name Ithink, or something like that
skill
parent_type = /obj
proc/use(var/mob/M)
Click()
usr << desc
DblClick()
use(usr)
dance
desc = "Break it down!"
use(var/mob/M)
if(prob(M.dancability))
view(M) << "[M] dances!"
else
view(M) << "[M] falls flat on \his face!"
M.dancability++

mob
var/dancability = 0
player
list/skills = list()
New()
skills += new /skill/dance()
Stat()
if(statpanel("skills"))
stat(skills)
Ever tried reading the DM Guide? It's actually good to read it before asking questions.
In response to StriderGX
Actually, yes I have read it. I got to chapter 6, skipped to the chapters that taught me what I wanted to know(whcich, still didn't help), and I reread the 6 chapters, went to chapter 10 to see how, didn't actually understand how to make it a stat panel, because I did the inventory one with some help, and tried the stat panel but it took away the inventory panel. I reread chpt 10, went to 19, the map chapter, the world chapter, and pretty much almost finished the whole guide. So, it really isn't working out with the guide, no matter how much I try, it dosen't work out. I even tried copying and pasting once, and it still didn't work.