mob
verb
RFX_UP()
if(usr.levelpoints>=1)
var/effective_level = usr.blevel - (round(usr.levelpoints / 6)+1)
if(usr.rfx < ((usr.blevel)*3 + effective_level + 50))
var/rfxb=round(usr.rfx/10)
usr.rfx++
usr.levelpoints-=1
var/rfxc=round(usr.rfx/10)
if(rfxb!=rfxc)
usr.skillspassive[26]+=1
//usr.pint=0
usr:Level_Up("rfx")
winset(usr, "splabel", "text=\"[round(skillpoints)]\"")
winset(usr, "levellabel", "text=\"[levelpoints]\"")
else
usr<<"'Reflex' cannot exceed [(usr.blevel)*3+50] (+[effective_level]/[usr.blevel] levelup bonus points) at your current level."
STR_UP()
if(usr.levelpoints>=1)
var/effective_level = usr.blevel - (round(usr.levelpoints / 6)+1)
if(usr.str < ((usr.blevel)*3 + effective_level + 50))
var/strb=round(usr.str/10)
usr.str++
usr.levelpoints-=1
var/strc=round(usr.str/10)
if(strb!=strc)
usr.skillspassive[25]+=1
//usr.pint=0
usr:Level_Up("str")
winset(usr, "splabel", "text=\"[round(skillpoints)]\"")
winset(usr, "levellabel", "text=\"[levelpoints]\"")
else
usr<<"'Strength' cannot exceed [(usr.blevel)*3+50] (+[effective_level]/[usr.blevel] levelup bonus points) at your current level."
Problem description: Above is my code for players to increase their stats in Rfx meaning Reflex or Str meaning Strength. The problem is I want to add an input option so you can add lets say 20 of your given stats into Rfx instead of adding it 1 by 1.
So you can pick the amount of points you want to add them to your str like this :
This is just an example and I hope it helps