Level_Up()
if(src.level == 200)
src.level = 200
src.exp = maxexp
return
if(src.exp >= src.maxexp)
src.level ++
var/max_exp = src.level * 312
var/rollover_exp = src.exp - src.maxexp
var/plgain = src.level * 3928
var/kigain = rand(1,100)
src.exp = 0
src.maxexp = max_exp
src.exp += rollover_exp
src.maxpowerlevel += plgain
src.maxki += kigain
src.battlepoints += 2
src.techpoints ++
src<<"<font color=yellow>You have reached Level [src.level]"
src<<"<font color=yellow>You gain [cn(plgain)] Powerlevel and [kigain] Ki"
src<<"<font color=yellow>You gain 1 Tech Point 2 Battle Points"
src.Learn_Techs()
spawn(5) src.Level_Up()
How can i make that you gain techpoints every 5th lvl and not every single. Ty