View Single Post
Dark Lord Galen
Senior Member
 
Join Date: Jul 2012
Location: Texas
Posts: 703

Old September 21st, 2018, 10:10 AM
Quote:
Originally Posted by Sendric View Post
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

D&D> Pre 1e White Box Edition, 1e, 2e, 3.5 Currently, Set in the World of Greyhawk (The first, longest running and Best Campaign Setting)
Software>Extensive use of all forms of MS Products, Visual Studio 2012, DAZ 3d, AutoCAD, Adobe Products.
Gaming Specific>Campaign Cartographer, D20 Pro Alpha & BattleGrounds Beta Tester, World Builder, Dungeon Crafter, LWD Hero Lab, Realm Works, Inkwell Ideas Citybuilder & Dungeon Builder, Auto-Realm, Dundjinni
Contributing Writer for TSR, WOC, & Canonfire
Dark Lord Galen is offline   #37 Reply With Quote