• 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

Way to check for/count adjustments on hero?

areteas

Well-known member
Trying to implement penalties for missing limbs/extremities from a 3PP product - they don't really work as flaws (limit of 2, only selectable at 1st level) so I'm aiming to add them as permanent adjustments on the Personal tab.

Problem is they carry cumulative penalties (missing one leg and the other foot, for example, has a larger penalty than just missing one foot) and I can't figure out how to check for and count active permanent adjustments.

I'd hoped it would be similar to feats/traits such as (this doesn't work obviously)
Code:
hero.tagis[HasAdj.pMsLeg] <> 0
or
hero.tagcount[HasAdj.pMsFoot] > 1
or even
hero.tagis[Helper.AdjPerm.pMsFoot] <> 0
but this is not the case.

Anyone able to offer any advice on how to check for the presence of a permanent adjustment & how to count the instances of a particular adjustment? I'm a little stumped. I was able to get the "field[pIsOn].value <> 0" bit from the spell adjustment thread to figure out activation status (thanks ShadowChemosh).
 
I might put the different options you have in as Adjustments. That way when you select one it will add the penalty to everything. It might make for a lot of adjustments but with someone so non-standard it might be the only way to go.
 
Adjustments are exactly what I'm trying to code... but adding them as selectable permanent adjustments for ease of application is my goal, to implement supplemental rules in a 3PP book.
Still no luck... after searching one of the PF core data files I've tried tagcount[Helper.Adjustment] & tagcount[Adjustment.?] with no luck, but perhaps I'm applying them in the wrong context. Anyone?
 
Make an adjustment, name it "Missing Limbs" or something, and give it an Unique ID of pMissLimb, and any other ones that you might need

If it has an incrementer, you can get the field's value from another thing with:
hero.childfound[pMissLimb].field[pAdjust].value

Then you can bootstrap a unique special to each of the permanent adjustments. This unique special looks at each of the new adjustments you have made, it's value, and then applies the correct penalties.
 
Make an adjustment, name it "Missing Limbs" or something, and give it an Unique ID of pMissLimb, and any other ones that you might need

If it has an incrementer, you can get the field's value from another thing with:
hero.childfound[pMissLimb].field[pAdjust].value

Then you can bootstrap a unique special to each of the permanent adjustments. This unique special looks at each of the new adjustments you have made, it's value, and then applies the correct penalties.
Still trying to figure out the particulars of this, but childfound and childcount seem to have put me in the right direction. Thanks Lawful!
 
Would it work to have a "missing right foot" adjustment that's always activated if the "missing right leg" adjustment is active (and have the missing foot be added when you add the leg)?
 
Eh the way the 3PP is written the penalties for missing a foot are built into the missing leg (same with hand and arm). I have it set up that if you have both 'missing leg' and 'missing foot' adjustments, the missing foot's livename changes to 'Missing Foot (Other Leg)' and it throws an error if you try to do something like add 2 increments of Missing Foot along with any number of Missing Leg.

Just not all that familiar with bootstrapping, so reading up on that now & experimenting.
 
Back
Top