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

Old March 25th, 2012, 12:49 PM
Books: APG
Thing: Twilight Knife spell adjustment (thingid.pTwilightK)

Error:
The twilight knife weapon (thingid.wTwilightK) is not adding in the BAB of the character.

Steps:
1) Make a new level 1 fighter.
2) Give a 16 Int score so we have a bonus of +3.
3) Add spell adjustment Twilight Knife. The weapon is added to the weapon tab but it has a attack bonus of +3 instead of +4.

Fix:
Here is the line that is wrong:
Code:
~ Set attack bonus to use the new calculated value
hero.child[wTwilightK].field[wAttack].value = field[abValue].value
if changed to this it works:
Code:
~ Set attack bonus to use the new calculated value
hero.child[wTwilightK].field[wAttack].value = hero.child[Attack].field[tAtkBase].value + field[abValue].value
This way we add in the BAB and Int or Cha score to get a correct final value.

Sorry.

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   #20 Reply With Quote