• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Applying Racial Skill Penalties

Ecneconni

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.
 
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[[B]skDiplo[/B]].field[PenTrait].value = hero.child[[B]skStealth[/B]].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
 
Do you have a phase suggestion for this? With what I have it at, it doesn't seem to work. Pre-Levels, 10,000.
Pre-Levels/10000 is fine. If this is not working then one of two things:

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?
 
It wasn't bootstrapped.... haha I've been struggling with it all day wondering why it didn't work. Ugh this hurts a little.
 
Back
Top