var/mob/player
list/Skills = new
stat=1
mob/player/proc
skill()
do stuff
obj/skill
icon='stuff'
Click()
usr.skill()
Problem description:
Maybe its my lack of sleep but im stuck...again.....The first goal is to add a skill to a list when a certain stat is hit. The second goal is that this be added to a tab that will contain the users current skills with an icon.
First question is how is the most efficient way to add a skill to a list once requirements are hit? Second question is to achieve the 2nd goal am i wrong in thinking itl be easier and more efficient in creating obj's that call the skill Procs?
Things I am aware of:
setting category--but wont this automatically show it??
Most pref Verbs to call skills--I would too if it can be just as ascetically pleasing and efficient.
I should be able to add it into the LevelUp Proc--But would this still be the most efficient way if i have 40+ skills requiring the same stat?? and how?
I Dont want to just copy and paste code that's why i didn't just post the exact code im referring to, If you need more info please ask
The following method only checks if they meet the requirements when a stat (in this case, strength) grows.
You could go one step further and only check when the player does something (like speaks to an NPC, or rests, or sleeps etc) -- but whether that is called less/more is rather arbitrary.
As for the other thing about tabs. I don't use them because they're so very ugly. But I know for a fact theres a lib/demo or two in the dev section of byond.