ID:176882
![]() Nov 30 2002, 5:34 pm
|
|
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!
|
![]() Nov 30 2002, 9:07 pm
|
|
<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>
|
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? |
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.
|