mob
var/skill_points
verb
Spend_Skill_Points()
switch(input(usr,"Distribute Points","[src.skill_points] remaining",text) in list ("Health","Reiatsu","Attack","Defense","Reiatsu Power"))
if("Health")mhealth += input("How many points do you want to use on health","[src.skill_points] remaining",text)as num
if("Reiatsu")mrei += input("How many points do you want to use on reiatsu","[src.skill_points] remaining",text)as num
if("Attack")attack += input("How many points do you want to use on attack","[src.skill_points] remaining",text)as num
if("Defense")defence += input("How many points do you want to use on defence","[src.skill_points] remaining",text)as num
if("Reiatsu Power")reiatsu += input("How many points do you want to use on reiatsu power","[src.skill_points] remaining",text)as num
if(skill_points <0 && skill_points <= src.skill_points)
src.skill_points -= skill_points
src <<"You now have [src.skill_points] points"
Problem description:The Problem is that it gives the player a unlimited ammount of skill points whether they have them or not the way we had it set up was the Owner would be able to award them as a prize but a player pointed out the prob and we removed it from game untill the problem can be resolved anyone have any clues on how to fix this
I wouldn't name a variable in a proc after a player's variable; it could get confusing. Change it to:
Also, you are doing the check to see if they have enough skill points after they've added points to a selected skill.