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

Old November 9th, 2013, 10:59 AM
Quote:
Originally Posted by Jobe00 View Post
Is there a way to script it to have the flat character level damage bonus show up with the Sneak Attack dice in the Specials tab ala "Sneak Attack +xd6+y?"
So if you do a "New Copy" against the Sneak Attack Class Ability you can view the scripts. We see that the script at Render/10000 it sets the livename:
Code:
field[livename].text = "Sneak Attack +" & field[abValue].value & "d6"
So with this idea we can modify the livename again after Render/10000 to add your additional Plus Level damage:
Render/10100
Code:
~ If this feat has the disable tag, get out now!
doneif (tagis[Helper.FtDisable] <> 0)
~ If the Sneak Attack class special is not live than get out now!
doneif (hero.childlives[cSneakAtt] <> 1)

~ Calculate the characters total level using the level macro
field[abValue].value += #totallevelcount[]

~ We need to append level damage to sneak attack class special LiveName.
hero.child[cSneakAtt].field[livename].text &= "+" & field[abValue].value
The above script would go on to your feat at Render/10100 and will only run if its not disabled and the Sneak Attack class ability is actually present. Then in example at level 1 the livename of the ability is "Sneak Attack +1d6" so we simply add to that name making it "Sneak Attack +1d6+1".

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