• 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

Custom template timing issue

Minous

Well-known member
I am working on the Mist-tainted template from PZOPSS0005E - Pathfinder Society Scenario 05 - Mists of Mwangi and I need to lower an ability score to 6 if its higher than that.

Setting the value is fairly straight forward:
Code:
hero.child[aCHA].field[aNormForce].value = 6
However timing and figuring out what field to use in the if statement has be pulling my hair out.

My primary code is:
Code:
if (hero.child[aCHA].field[aNormal].value >= 7 )then
  hero.child[aCHA].field[aNormForce].value = 6
endif

But I cant get the if statement to validate correctly.
 
So I have decided that I dont want to use aNormForce because it permanently changes the ability value. Is there an effective way to imitate that functionality? IE get the total score, and then apply a penalty of value - 6 ?
 
Back
Top