I want to count every ten "points" that the Player gains, and then add 1 "Bonus" for each "Point".
So, for example:
Player has 10 Strength = They have 1 Bonus
Player has 19 Strength = The have 1 Bonus
Player has 20 Strength = They have 2 Bonuses
I could do it by hand, but in the final Mod I'm expecting the Player to have 1000s, so it would be a LOT to code in.
I was thinking something like:
float Temp01Short Temp02Set Temp01 to ( Player.GetAV Strength )Set Temp01 to ( Temp01 /10 )Set Temp02 to Temp01Which using "10" for strength should be...Set Temp01 to 10Set Temp01 to ( 10 / 10 ) = 1Set Temp02 to 1And using "19" for strength should be...Set Temp01 to 19Set Temp01 to ( 19 / 10 ) = 1.9Set Temp02 to 2 (Assuming round-up on Shorts over .5)
Any ideas how I could get it to do what I want? Or to always make it round-down?