ID:176882
 
Hey everyone! I'm having a little trouble with a stat panel i want to create, so I was wondering if anyone would mind helping! Let's get down to business: I want to create a stat panel titled "Skills". I want this panel to list the player's skills he's aquired along with an icon for that skill. Sort of like you would have a stat panel show your inventory, just with skills. I also want it so if you click a skill it readies it. This is hard to explain, but i'm trying my best, if you know how to do it, or want clearification, please feel free to let me know. Thanks in advance!
<code> skill proc/Action() parent_type = /obj Explode icon = 'Explode.dmi' verb Explode() set src in usr.skills Action() Action() del(usr) Die icon = 'Explode.dmi' verb Die() set src in usr.skills Action() Action() del(usr) Click() Action() mob var/list/skills = list() Login() skills += new /skill/Die skills += new /skill/Explode ..() Stat() stapanel("Skills") stat(skills) </code>
In response to Garthor
Whenever i do what you said i get an error on the line that says:

set src in usr.skills

the error is:

Skills.dm:21:error:usr.skills:unsupported src setting

Any ideas?
In response to SSTrunks7
Gah, forget about that. I'm too tired right now. =P
In response to Garthor
Well, the <code>set src</code> settings are less robust than my sleep-deprived mind remebered them to be, so you'll just have to have another way of handling it.
In response to Garthor
That's ok, the code did more than i wanted it to do anyway, just wanted a click and action type of interface so thanks a lot Garthor! Get some sleep.....