verb
Tree()
winshow(usr, "Tree", 1)//Shows the Skill Tree Window
usr.Skillpnts += 0//Zero Skill Points at Start
usr.SkillPoints()
LearnSai()
set hidden = 1//If this is set to 1 it allows the verb to be invisible in the info panels
if(usr.sai == 3)//Checks to see if the Slash skill is maxed
usr<<output("You have already maxed the Kido Sai.","Mess")//Tells the player that the skill is already maxed
else//If the Skill is not maxed
if(usr.sai == 2)//Checks to see if the Slash skill is level 2
switch(input("Would you like to Level Sai?") in list("Yes","No"))//Asks the player if he/she wants to level the skill
if("Yes")//If the player chose 'Yes'
if(usr.Skillpnts <= 3)//Checks to see if the player's skill point is lower than 3 points.
usr<<output("Sorry you do not have enough Skill Points to updrade.","Chat")
return
else//
usr.Skillpnts -=3 //Subtracts 3 skill points
usr.sai += 1//It levels the Slash skill to 3
usr.SkillPoints()//Calls the Skill Point proc(At the top of the page)
usr<<output("You have maxed out Sai.","Chat")
if("No")
return
else
if(usr.sai == 1)//Checks to see if the Slash skill is level 1
switch(input("Would you like to level Sai?") in list("Yes","No"))
if("Yes")
if(usr.Skillpnts <= 2)//Checks to see if the play'er skill points is lower than 2 points
usr<<output("Sorry you do not have enough Skill Points to Purchuse this skill.","Chat")
return
else
usr.Skillpnts -= 2//Subtracts 2 from player's skill points
usr.sai += 1//It levels the Slash skill to 2
usr.SkillPoints()//Calls the SkillPoint proc
if("No")
return
else
if(src.cankido == 1)//Checks to see if the usr has the skill or not skill has yet to level
switch(input("Would you like to learn Sai?") in list("Yes","No"))
if("Yes")
if(usr.Skillpnts <= 1)///Checks to see if the player's skill points are lower or equal to 1
usr<<output("Sorry you do not have enough Skill Points to Purchuse this skill.","Chat")
return
else
usr.Skillpnts -= 1//Subtracts player's skill points by 1
usr.sai += 1//Adds the Slash skill to level once.
src << "<b>You learned Sai!"
src.verbs += /mob/kido/verb/Sai
usr.SkillPoints()
winset(usr, "Tree.label7", "background-color=255,255,255")//Changes the background color of the label that is between the Slash and the Stab buttons
if("No")
return
Problem description:
Ok here is the prob I am using LU_Intertree as a basis to replace my current levelup skill gain the code compiles with no errors but when u go to buy the skill it says Unrecognized or inaccessible verb: Sai() I have also tried this without () on the verb any info to fix this would be nice