View Single Post
Sendric
Senior Member

Join Date: Jul 2010
Posts: 2,983

September 21st, 2018, 10:43 AM
Quote:
 Originally Posted by Dark Lord Galen 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
Yes, that's actually correct, which I will show below.

Incidentally, kUserRanks is already accounting for cross-class skill. Looking at the fields on the skill, I see the following when adding 8 points to the skill:

kUserPts = 8
kUserRanks = 4

This means we probably don't want to divide that number again, so I've modified the script to this:

Code:
```~Modifier to account for additional Intelligence~~
var bonus as number
bonus = hero.child[aINT].field[aFinalVal].value/2 + field[kUserRanks].value
bonus = round(bonus, 0, -1)

field[Bonus].value += bonus```
As for the math, let's look at it this way:

User Points - User Ranks - Bonus - Total
1 - 0 - 6 - 6
2 - 1 - 7 - 8
3 - 1 - 7 - 8
4 - 2 - 8 - 10
5 - 2 - 8 - 10
6 - 3 - 9 - 12

User Points = total points applied to this skill by player
User Ranks = 1/2 User Points
Bonus = 1/2 INT score + User Ranks
Total = Bonus + Ranks

PS Sorry the table isn't cleaner. Let me know if it's confusing.

Last edited by Sendric; September 21st, 2018 at 10:45 AM.
#38