Quote:
Originally Posted by Dark Lord Galen
I thought about that but was under the impression that kuserranks was after all calculations took place for that skill which is why I attempted to go upstream to the points feeding it...
The script above is close, but does not cross class the intelligence points. Seems to add them down stream of the Cross Class Calculations...
So I just added a / 2 behind the aFinalVal Value and that seems to work
|
hmm.....looking more closely at it, I think you may have intended to do the /2 in the round equation, thusly:
Code:
~Modifier to account for additional Intelligence~~
var bonus as number
bonus = hero.child[aINT].field[aFinalVal].value + round(field[kUserRanks].value/2, 0, -1)
field[Bonus].value += bonus
Otherwise, the equation "round(field[kUserRanks].value, 0, -1)" just equals "field[kUserRanks].value", making the round unnecessary.
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