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

Old June 10th, 2018, 07:18 PM
In this case the #applybonus macro will not work in this case. Its designed to apply a "bonus" and does not work with penalties. In addition its made to only add the "highest" bonus to the field. Meaning if you had to Things trying to give a +2 and +3 bonus you want to end with only the +3 bonus. But penalties in Pathfinder always stack so we don't want that logic either.

If what you posted is your exact script then part of the issue is that you didn't change the second skill to be -2 diplomacy:
Code:
hero.child[skStealth].field[PenTrait].value = hero.child[skStealth].field[PenTrait].value - 2
hero.child[skDiplo].field[PenTrait].value = hero.child[skStealth].field[PenTrait].value - 2
We don't have a specific racial penalty but since all penalties stack in Pathfinder its easier to just use the Penalty field. You can also shorten your script logic using the += (plus equal) feature:
Code:
hero.child[skStealth].field[Penalty].value += -2
hero.child[skDiplo].field[Penalty].value += -2

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