I'm trying to make a feat that allows a character to add their INT mod as a bonus to their ranged attacks. Using the macro list from the tutorial, I came up with the script below and put it in the Eval Scripts section of the feat. When I hit the test button, it says it is ready for use, but when I look at the character sheet, the bonus doesn't show up. The script is
hero.child[Attack].field[tAtkRanged].value = hero.child[Attack].field[tAtkRanged].value + hero.child[aINT].field[aModBonus].value
I'd appreciate any pointers on what I'm messng up.
Thanks.
hero.child[Attack].field[tAtkRanged].value = hero.child[Attack].field[tAtkRanged].value + hero.child[aINT].field[aModBonus].value
I'd appreciate any pointers on what I'm messng up.
Thanks.