mob
proc
Statup(obj/O as num)
set background=1
if(src.Tessenka){return 0}
if(src.ByakuganUse){return 0}
if(src.SharinganUse){return 0}
if(src.usedhero){return 0}
if(src.MangekyouUse){return 0}
if(src.Cseal){return 0}
if(src.DemonUse){return 0}
if(src.shimon){return 0}
if(src.kyomon){return 0}
if(src.tomon){return 0}
if(src.sheimon){return 0}
if(src.keimon){return 0}
if(src.shomon){return 0}
if(src.kumon){return 0}
if(src.kaimon){return 0}
if(src.seimon){return 0}
src.Save()
start
if(src.points<=0)
src.points=0
return
if(src.Clan=="Puppet Master"||src.Clan=="Human Puppet")
switch(input(src,"Distribute Points.","[src.points] Points left",text) in list ("Taijutsu","Genjutsu","Ninjutsu","Speed","Puppetry","Save for later"))
if("Taijutsu")
var/D=input("How many points?","Points") as num
if(D<=0){return 0}
if(D<=src.points)
src.Tai+=D
src.mTai+=D
src.points-=D
else
alert(src,"You don't have enough points!")
if("Ninjutsu")
var/D=input("How many points?","Points") as num
if(D<=0){return 0}
if(D<=src.points)
src.Nin+=D
src.mNin+=D
src.points-=D
else
alert(src,"You don't have enough points!")
if("Genjutsu")
var/D=input("How many points?","Points") as num
if(D<=0){return 0}
if(D<=src.points)
src.Gen+=D
src.mGen+=D
src.points-=D
else
alert(src,"You don't have enough points!")
if("Speed")
var/D=input("How many points?","Points") as num
if(D<=0){return 0}
if(D<=src.points)
src.speed+=D
src.maxspeed+=D
src.points-=D
else
alert(src,"You don't have enough points!")
if("Puppetry")
var/D=input("How many points?","Points") as num
if(D<=0){return 0}
if(D<=src.points)
src.Puppetry+=D
src.mPuppetry+=D
src.points-=D
else
alert(src,"You don't have enough points!")
if("Save for later")
return 0
goto start
if(src.Clan=="Lee")
switch(input(src,"Distribute Points.","[src.points] Points left",text) in list ("Taijutsu","Speed","Save for later"))
if("Taijutsu")
var/D=input("How many points?","Points") as num
if(D<=0){return 0}
if(D<=src.points)
src.Tai+=D
src.mTai+=D
src.points-=D
else
alert(src,"You don't have enough points!")
if("Speed")
var/D=input("How many points?","Points") as num
if(D<=0){return 0}
if(D<=src.points)
src.speed+=D
src.maxspeed+=D
src.points-=D
else
alert(src,"You don't have enough points!")
if("Save for later")
return 0
goto start
else
if(src.Clan!="Lee"||!src.Clan=="Puppet Master"||!src.Clan=="Human Puppet")
switch(input(src,"Distribute Points.","[src.points] Points left",text) in list ("Taijutsu","Genjutsu","Ninjutsu","Speed","Save for later"))
if("Taijutsu")
var/D=input("How many points?","Points") as num
if(D<=0){return 0}
if(D<=src.points)
src.Tai+=D
src.mTai+=D
src.points-=D
else
alert(src,"You don't have enough points!")
/*
if("Stamina")
var/D=input("How many points?","Points") as num
if(D<=0){return 0}
if(D<=src.points)
src.maxstamina+=D
src.points-=D
else
alert(src,"You don't have enough points!")
*/
if("Ninjutsu")
var/D=input("How many points?","Points") as num
if(D<=0){return 0}
if(D<=src.points)
src.Nin+=D
src.mNin+=D
src.points-=D
else
alert(src,"You don't have enough points!")
if("Genjutsu")
var/D=input("How many points?","Points") as num
if(D<=0){return 0}
if(D<=src.points)
src.Gen+=D
src.mGen+=D
src.points-=D
else
alert(src,"You don't have enough points!")
if("Speed")
var/D=input("How many points?","Points") as num
if(D<=0){return 0}
if(D<=src.points)
src.speed+=D
src.maxspeed+=D
src.points-=D
else
alert(src,"You don't have enough points!")
if("Save for later")
return 0
goto start
Problem description:
okay the thing is when i pick the puppet master clan the "Puppetery Skill" stat wont popuo when i try to invest points?
And also..
Break these large tasks up into smaller ones that are more manageable, so your code will be a lot cleaner and more maintainable.
for starters, you should probably put things like this:
into its own function(for checking whether or not you want to continue executing the proc)
do something like this: