Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Custom template timing issue (http://forums.wolflair.com/showthread.php?t=59679)

Minous December 2nd, 2017 12:19 PM

Custom template timing issue
 
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.

Minous December 2nd, 2017 06:09 PM

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 ?

Minous December 3rd, 2017 09:17 AM

Was able to figure this out by including aStartMod.


All times are GMT -8. The time now is 08:26 AM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.