Junior Member
|
Please feel free to direct me towards the appropriate thread if I have made this in error. But I wasn't able to find anything on this particular subject.
I'm making a racial trait weakness, that affects certain skills, namely their Diplomacy and Stealth (-2 Racial Penalty). However, no matter what script I seem to run it doesn't apply the penalty. Pre-Levels, 10000 ----------------------------------------------------------------------------- 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 ------------------------------------------------------------------------------ Any help with this would be greatly appreciated. Thank you. |
#1 |
Senior Member
Join Date: May 2015
Posts: 830
|
use #applybonus macro, far easier and doesn't rely on direct manipulation of values.
|
#2 |
Junior Member
|
Would you be willing to supply me with an example of how it should look? I've not used many macros yet.
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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 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. |
#4 |
Junior Member
|
Do you have a phase suggestion for this? With what I have it at, it doesn't seem to work. Pre-Levels, 10,000.
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
1) You have this script on something that is not actually on the hero/character. In example you have this on a Feat but didn't add the feat to the character. 2) You have other logic in the script than what you posted. Maybe something to do with a "doneif()" statement? 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. |
|
#6 |
Junior Member
|
It wasn't bootstrapped.... haha I've been struggling with it all day wondering why it didn't work. Ugh this hurts a little.
|
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
LOL we have all done such stuff. At least you figured it out.
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. |
#8 |
|
|