Quote:
Originally Posted by Sendric
hmm.....looking more closely at it, I think you may have intended to do the /2 in the round equation, thusly:
PS. Check that. Based on your equation above ((12+6)/2=9), it should be:
Code:
~Modifier to account for additional Intelligence~~
var bonus as number
bonus = hero.child[aINT].field[aFinalVal].value + field[kUserRanks].value
bonus = round(bonus/2, 0, -1)
field[Bonus].value += bonus
|
Oddly when road testing it does as designed.. at first....
adding 1 point gives the result 6 1/2 as it should
adding 2 point gives the result 7 as it should
adding 3 point gives the result 7 1/2 as it should
adding 4 point gives the result 9 which is not as it should
adding 5 point gives the result 9 1/2 which is not as it should
adding 6 point gives the result 10 which is not as it should
Not sure where 8 went or what is causing the skip