Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old December 2nd, 2017, 12:19 PM
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 is offline   #1 Reply With Quote
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old 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 is offline   #2 Reply With Quote
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old December 3rd, 2017, 09:17 AM
Was able to figure this out by including aStartMod.
Minous is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:35 PM.


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