ID:141305
 
Code:
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

If i am correct or maybe you just didn't put it in. There is no mob above verb and verb also needs to be tabbed.

mob
verb
Tree()
Firstly (As was described below) either its a pasting error, or you have forgotten to put
mob
verb



Secondly, you are being told the verb Sai() is not accesable, well lets look at the evidence,

you have 2 verbs,
One named Tree(), One named LearnSai()

However I fail to see a Sai() verb,

Im guessing you are using a macro in your skin to use the verb as it is set to be hidden, change the command from Sai() to LearnSai()

If there is still a problem then ill look into the code more :o
In response to Rushnut
OK I changed it to learnsai and it gave me the option to learn the skill but alas the skill did not appear on my Skill list any other advice
In response to Wrath69
else
if(src.cankido == 1)//Checks to see if the usr has the skill or not skill has yet to level

I dont see this variable being set anywhere, just if its an issue or not



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

Do you receive either of the outputs?
If so which ones
Also, just a helpful hint, but change
switch(input("Would you like to learn Sai?") in list("Yes","No"))

to
switch(input("Would you like to learn Sai?")as anything in list("Yes","No"))


Generally is more effective and efficiant


In response to Rushnut
OK the verb shows up but when u relog it dissappears so for some unknown reason its not saving the verb but with the old levelup skill gain it saves
In response to Wrath69
Hm? What save are you using? An automated one using Write() or are you saving each var on your own?
In response to Rushnut
Did you actually even code this yourself?
In response to ANiChowy
I was beginning to think that D: