Junior Member
Join Date: Apr 2011
Posts: 10
|
Want to swap INT modifier for DEX modifier for a ranged attack weapon...
I have an eval script set to post-attributes, with the following: Code:
wAttBonus.value = hero.child[Attack].field[tAtkRanged].value - hero.child[aDEX].field[aModBonus].value + hero.child[aINT].field[aModBonus].value Suggestions? Improvements to my thinking? I realize I could modify the overall range attack bonus, but want it specific to this weapon. |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
I am only about 90% sure that is the correct field name. To double check you can add the weapon to a character and then Right click on the "?" to get a list of choices. Take the one called something like "View Field names". Sorry not near HL right now. If you don't see that you have to go to the develop menu, make sure the first option, "Enable Data File Debugging" is checked. This way you can start seeing the name of the fields on Things and their values. Really helpful. Plus this lets you do a Ctrl-R which does a quick reload of the data set. Also very helpful when making changes. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#2 |
Junior Member
Join Date: Apr 2011
Posts: 10
|
Played around with it a bit more. Thanks for the suggestions.
In the end, I couldn't seem to force the wAttRanged field to get updated last, even running it with a 11111 priority in the render phase, so as a workaround, had it add as a attack bonus based on the difference: Code:
field[wAttBonus].value = hero.child[aINT].field[aModBonus].value - hero.child[aDEX].field[aModBonus].value |
#3 |
|
|