Lone Wolf Development Forums  

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

Notices

Reply
 
Thread Tools Display Modes
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old June 10th, 2021, 03:49 PM
Hi Everyone,

I'm editing Super Genius Games' excellent Genius Guide to Bravery Feats, and have come across a problem. There is a feat that grants a competence bonus to Knowledge (Dungeoneering) and Knowledge (Engineering) equal to the hero's Bravery bonus. I tried putting the timing at <Pre-Attributes 5000>, but the bonus isn't adding. Here's the script:
Code:
hero.childfound[skKnowDun].field[BonComp].value += field[abValue].value
hero.childfound[skKnowEng].field[BonComp].value += field[abValue].value
A second script at <Final 10000> reads
Code:
field[abValue].value += hero.childfound[cFtrBrave].field[abValue].value
I'm sure the problem has something to do with when the bonus for Bravery is added, but I'm not sure how to figure it out. Can anyone assist?

Projects: Legendary Rogue (Legendary Games) 97.9%, Assassin (Interjection Games) 88%, Fortunate (rebuild of Luckbringer, Rite Publishing) 87.2%, Adept Godling (Super Genius Games) 73.9%, Eldritch Godling (Super Genius Games) 72.9%, Mighty Godling (Super Genius Games) 44.3%, Clever Godling (Super Genius Games) 41.2%, Legendary Cavalier (Legendary Games) 30.9%

Message me for a list of completed projects.
Visit my blog! https://gauntletsofblogrepower.blogspot.com/
Bob G is offline   #1 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old June 10th, 2021, 04:29 PM
Until you have set the value of abValue, which appears to be done in your second script at Final/10000, abValue = 0. So Pre-Attributes comes before Final, so at the time that script is applying its bonus, abValue = 0.


I'd just use one script - first the line from your second script to set abValue, and then the lines from the first script to apply the bonuses. No need to split them between two scripts.


I've got too many games in my head - are competence bonuses one of the stacking bonus types in PF1? Your current code is applying them as bonuses that will stack with other competence bonuses.
Mathias is offline   #2 Reply With Quote
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old June 10th, 2021, 07:02 PM
Quote:
Originally Posted by Mathias View Post
Until you have set the value of abValue, which appears to be done in your second script at Final/10000, abValue = 0. So Pre-Attributes comes before Final, so at the time that script is applying its bonus, abValue = 0.


I'd just use one script - first the line from your second script to set abValue, and then the lines from the first script to apply the bonuses. No need to split them between two scripts.


I've got too many games in my head - are competence bonuses one of the stacking bonus types in PF1? Your current code is applying them as bonuses that will stack with other competence bonuses.
Thanks for the reply as always Mathias. To answer your question, competence bonuses do not stack. How do I tell the script not to stack?

I tried your solution, but abValue is still listed as zero when I check the field values for the ability. Any other ideas of what may be wrong?

Projects: Legendary Rogue (Legendary Games) 97.9%, Assassin (Interjection Games) 88%, Fortunate (rebuild of Luckbringer, Rite Publishing) 87.2%, Adept Godling (Super Genius Games) 73.9%, Eldritch Godling (Super Genius Games) 72.9%, Mighty Godling (Super Genius Games) 44.3%, Clever Godling (Super Genius Games) 41.2%, Legendary Cavalier (Legendary Games) 30.9%

Message me for a list of completed projects.
Visit my blog! https://gauntletsofblogrepower.blogspot.com/
Bob G is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old June 11th, 2021, 07:49 AM
What's the timing of the script on bravery that calculates the bonus? So far, you've only listed your own script timings, not your target. And actually, when you said you combined them, you didn't show what that looked like, or say what phase & priority you used for that, so I don't have enough information to answer your question yet.


For how to apply bonuses, in the editor, choose the Help menu at the top, and then "Help on using the editor". On the page that pops up, find "Reference Information", and then look through the "Useful macros" section there.
Mathias is offline   #4 Reply With Quote
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old June 20th, 2021, 06:28 AM
Quote:
Originally Posted by Mathias View Post
What's the timing of the script on bravery that calculates the bonus? So far, you've only listed your own script timings, not your target. And actually, when you said you combined them, you didn't show what that looked like, or say what phase & priority you used for that, so I don't have enough information to answer your question yet.


For how to apply bonuses, in the editor, choose the Help menu at the top, and then "Help on using the editor". On the page that pops up, find "Reference Information", and then look through the "Useful macros" section there.
Timing for the script that calculates Bravery bonus (cFtrBrave) is <Final 9000>. My script that calculates the abValue for my ability bonus now looks like this:
<Pre-attributes 5000>
Code:
field[abValue].value += field[abValue].value += hero.childfound[cFtrBrave].field[abValue].value

#competencebonus[hero.child[skKnowDun], field[abValue].value]
#competencebonus[hero.child[skKnowEng], field[abValue].value]
That takes care of the stacking issue, but the bonus itself does not add.

Projects: Legendary Rogue (Legendary Games) 97.9%, Assassin (Interjection Games) 88%, Fortunate (rebuild of Luckbringer, Rite Publishing) 87.2%, Adept Godling (Super Genius Games) 73.9%, Eldritch Godling (Super Genius Games) 72.9%, Mighty Godling (Super Genius Games) 44.3%, Clever Godling (Super Genius Games) 41.2%, Legendary Cavalier (Legendary Games) 30.9%

Message me for a list of completed projects.
Visit my blog! https://gauntletsofblogrepower.blogspot.com/
Bob G is offline   #5 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old June 20th, 2021, 09:31 AM
So Final/9000 is after pre-attributes/5000. So if the bonus on Bravery hasn't been calculated, then when you look up hero.childfound[cFtrBrave].field[abValue].value, you get 0. Your script will need to be after Final/9000 to get that value. However, that's its own problem - by Final/9500, final bonuses for skills have already been calculated, so a bonus added that late won't be included in the total.
Mathias is offline   #6 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,207

Old June 20th, 2021, 09:35 AM
Actually, take a look inside bravery at how the abValue is being calculated - that's based off a field whose value is available any time after post-level/1000.
Mathias is offline   #7 Reply With Quote
Bob G
Senior Member
 
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226

Old June 20th, 2021, 09:48 AM
Okay, so I guess I need a little more practice on timing. It works great now, thanks Mathias!

Projects: Legendary Rogue (Legendary Games) 97.9%, Assassin (Interjection Games) 88%, Fortunate (rebuild of Luckbringer, Rite Publishing) 87.2%, Adept Godling (Super Genius Games) 73.9%, Eldritch Godling (Super Genius Games) 72.9%, Mighty Godling (Super Genius Games) 44.3%, Clever Godling (Super Genius Games) 41.2%, Legendary Cavalier (Legendary Games) 30.9%

Message me for a list of completed projects.
Visit my blog! https://gauntletsofblogrepower.blogspot.com/
Bob G is offline   #8 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 04:00 AM.


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