ID:163446
 
Alright, I need to know how to make adding Stat Points an OPTION (Button you click) Instead of a box just popping up every level. Thanks. Here's the code:

start
if(src.points<=0)
src.points=0
return
switch(input(src,"Distribute Points","[src.points] Pointsleft",text) in list("Health","Strength","Chakra","Defense","Speed","Stamina ","Save for later"))
if("Health")
var/POINTS=input("How much?","How much points?")as num
if(src.points<POINTS || POINTS<0)
return
else
src.maxhealth+=POINTS
src.points-=POINTS
if("Strength")
var/POINTS=input("How much?","How much points?")as num
if(src.points<POINTS || POINTS<0)
src.points=0
return
else
src.atkstr+=POINTS
src.points-=POINTS
if("Chakra")
var/POINTS=input("How much?","How much points?")as num
if(src.points<POINTS || POINTS<0)
src.points=0
return
else
src.maxchakra+=POINTS
src.points-=POINTS
if("Defense")
var/POINTS=input("How much?","How much points?")as num
if(src.points<POINTS || POINTS<0)
src.points=0
return
else
src.Def+=POINTS
src.points-=POINTS
if("Speed")
var/POINTS=input("How much?","How much points?")as num
if(src.points<POINTS || POINTS<0)
src.points=0
return
else
src.speed+=POINTS
src.points-=POINTS
if("Stamina")
var/POINTS=input("How much?","How much points?")as num
if(src.points<POINTS || POINTS<0)
src.points=0
return
else
src.maxstam+=POINTS
src.points-=POINTS
if("Save for later")
return 0
goto start
Its ought to be pretty simple if you made that..
In response to Mecha Destroyer JD
This was a Code I borrowed from a friend, And i'm kind of stuck on knowing how to make a Var for this.
In response to Xorbah
You might want to read a tut and look at how to make a verb; you should be able to go from there..Borrowed and/or ripped code doesn't teach you much in the least. Start here.