src.stamina -= rand(10,20)
sleep(10)
if(src.training == "Power") src.PWR_EXP += rand(150,500) + src.level
if(src.training == "Ki") src.KI_EXP += rand(60,200) + src.level
if(src.training == "Strength") src.STR_EXP += rand(10,50) + src.level
if(src.training == "Defence") src.DEF_EXP += rand(10,50) + src.level
if(src.training == "Speed") src.SPD_EXP += rand(10,50) + src.level
Id like to make a focus train called "all" so it trains all of your tats but at a very low rate. how?
thx in advance HH
I didn't wanna 1 line it all so if you want to you can do that =P and I don't know what a slow rate is... so you'd have to change the numbers on the last part. Anyway, I added elses, no reason to check if training variable is all of them if it can only be equal to one, so else will stop checking for them all once one is true.