View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old April 12th, 2012, 11:43 AM
Books: APG
Thing: Prehensile Hair Hex (thingid.cWitPreHai)

Error:
The prehensile hair weapon (thingid.wSlam) is not adding in the BAB of the character.

Steps:
1) Make a new level 6 Witch
2) Give a 20 Int score so we have a bonus of +5
3) Take the "Prehensile Hair" hex. The weapon is added to the weapon tab but it has a attack bonus of +3 instead of +6.

Fix:
Here is the line that is wrong I think and its at the VERY end of the script:
Code:
focus.field[wAttBonus].value += field[abValue].value
if changed to this it works:
Code:
focus.field[wAttBonus].value += hero.child[Attack].field[tAtkBase].value + field[abValue].value
This way we add in the BAB and Int score to get a correct final value.

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.
ShadowChemosh is offline   #107 Reply With Quote