ID:175307
 
I wrote a code for transformation, when I complie it comes up with no errors. But when i play and use the transform verb i get errors:

Transform
runtime error: undefined proc or verb /mob/characters/saiyajin/Revert().

proc name: Transform (/mob/SS/verb/Transform)
usr: Test2 (/mob/characters/saiyajin)
src: Test2 (/mob/characters/saiyajin)
call stack:
Test2 (/mob/characters/saiyajin): Transform()

My code for transformation is:
mob
SS
verb
Transform()
set category = "Fighting"
if(race == "Saiya-jin")
if(ssj6learn == 1)
switch(input("Which State do you want to go?", "Super Forms", text) in list ("State 1 (revert)", "State 2", "State 3", "State 4", "State 5", "State 6", "State 7"))
if("State 1 (revert)")
Revert()
if("State 2")
Super_Saiyan()
if("State 3")
Super_Saiyan_2()
if("State 4")
Super_Saiyan_3()
if("State 5")
Super_Saiyan_4()
if("State 6")
Super_Saiyan_5()
if("State 7")
Super_Saiyan_6()
if(ssj5learn == 1)
switch(input("Which State do you want to go?", "Super Forms", text) in list ("State 1 (revert)", "State 2", "State 3", "State 4", "State 5", "State 6"))
if("State 1 (revert)")
Revert()
if("State 2")
Super_Saiyan()
if("State 3")
Super_Saiyan_2()
if("State 4")
Super_Saiyan_3()
if("State 5")
Super_Saiyan_4()
if("State 6")
Super_Saiyan_5()
if(ssj4learn == 1)
switch(input("Which State do you want to go?", "Super Forms", text) in list ("State 1 (revert)", "State 2", "State 3", "State 4", "State 5"))
if("State 1 (revert)")
Revert()
if("State 2")
Super_Saiyan()
if("State 3")
Super_Saiyan_2()
if("State 4")
Super_Saiyan_3()
if("State 5")
Super_Saiyan_4()
if(ssj3learn == 1)
switch(input("Which State do you want to go?", "Super Forms", text) in list ("State 1 (revert)", "State 2", "State 3", "State 4"))
if("State 1 (revert)")
Revert()
if("State 2")
Super_Saiyan()
if("State 3")
Super_Saiyan_2()
if("State 4")
Super_Saiyan_3()
if(ssj2learn == 1)
switch(input("Which State do you want to go?", "Super Forms", text) in list ("State 1 (revert)", "State 2", "State 3"))
if("State 1 (revert)")
Revert()
if("State 2")
Super_Saiyan()
if("State 3")
Super_Saiyan_2()
if(ssjlearn == 1)
switch(input("Which State do you want to go?", "Super Forms", text) in list ("State 1 (revert)", "State 2"))
if("State 1 (revert)")
Revert()
if("State 2")
Super_Saiyan()
if(race == "Human")
if(ssj2learn == 1)
switch(input("Which State do you want to go?", "Super Forms", text) in list ("State 1 (revert)", "State 2", "State 3"))
if("State 1 (revert)")
Revert()
if("State 2")
Super_Human()
if("State 3")
Super_Human_2()
if(ssjlearn == 1)
switch(input("Which State do you want to go?", "Super Forms", text) in list ("State 1 (revert)", "State 2"))
if("State 1 (revert)")
Revert()
if("State 2")
Super_Human()
if(race == "Namek")
if(ssj2learn == 1)
switch(input("Which State do you want to go?", "Super Forms", text) in list ("State 1 (revert)", "State 2", "State 3"))
if("State 1 (revert)")
Revert()
if("State 2")
Super_Namek()
if("State 3")
Super_Namek_2()
if(ssjlearn == 1)
switch(input("Which State do you want to go?", "Super Forms", text) in list ("State 1 (revert)", "State 2"))
if("State 1 (revert)")
Revert()
if("State 2")
Super_Namek()
if(usr.race=="Half-Saiyan")
if(ssj2learn == 1)
switch(input("Which State do you want to go?", "Super Forms", text) in list ("State 1 (revert)", "State 2", "State 3"))
if("State 1 (revert)")
Revert()
if("State 2")
Super_Saiyan()
if("State 3")
Super_Saiyan_2()
if(ssjlearn == 1)
switch(input("Which State do you want to go?", "Super Forms", text) in list ("State 1 (revert)", "State 2"))
if("State 1 (revert)")
Revert()
if("State 2")
Super_Saiyan()
Because there is no proc for /mob/saiyjin/Revert(). Its in /mob/SS, i think. Post more of the code, with the revert and stuff.