ID:271309
 
How do i make like a skill point verb to use on any of the numbers i cant get it right and im so confused!

all i got was

mob
verb
Spend_Skill_Points()
switch(input(usr,"Distribute Points","[usr.Skill_Points] Points left",text) in list ("Health","Taijutsu","Chakra","Genjutsu","Ninjutsu","Stamina", "Cancel"))
if("Health")
if("Taijutsu")
if("Chakra")
if("Genjutsu")
if("Ninjutsu")
if("Stamina")
if("Cancel")
Meh, how'd you get that far without knowing what to do next? 0_0
http://bwicki.byond.com/ByondBwicki.dmb?SkillPointsSystem
Yes, it's very hard to believe you managed to create that without knowing what to do next.

mob
var/skill_points
verb
Spend_Skill_Points()
if (usr.skill_points < 1)
usr << "Hey pal, get some skill points first."
return
switch(input(usr,"Distribute Points","[usr.Skill_Points] Points left") in list ("Health","Taijutsu","Chakra","Genjutsu","Ninjutsu","Stamina","Cancel"))
if("Health") // src.health += 10
if("Taijutsu") // src.taijutsu++
if("Chakra") // src.chakra += 10
if("Genjutsu") // src.genjutsu++
if("Ninjutsu") // src.ninjutsu++
if("Stamina") // src.stamina++


I would personally add an input window to decide how much to increase each statistic by, but that'd require a few changes, so I'll just show you how to use the switch if checks.