• 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

Arcane Familiar HP adjustment

Umarian

Well-known member
I am trying to adjust the HP's of the Witch's familiar with a FCB, and have a question. in the below code from the Favored Class Option: Half-Orc Ranger, it uses the minion[AnimComp] to adjust the Animal Companion. What would be the equivalent for the Arcane Familiar?

~ If there's no Companion, there's nothing we can do
doneif (hero.hasminion[AnimComp] = 0)

hero.minion[AnimComp].child[Totals].field[tHP].value += field[abValue].value
 
cArcFamil is the equivalent pick for familiars to cAnimComp for animal companions.

Is it still considered a minion? Trying to change the AnimComp below to cArcFamil is not adjusting the HPs for the Arcane Familiar.

Code:
Pre-Levels 10000
      field[abValue].value += field[fcCount].value
      
      ~ If there's no Companion, there's nothing we can do
      doneif (hero.hasminion[AnimComp] = 0)
      
      hero.minion[AnimComp].child[Totals].field[tBonusHP].value += field[abValue].value
 
If you're asking for help on code, please show us the modified code, where you've integrated what Aaron told you, rather than the old code, which is still animal companion-specific.
 
Also, the Hp for animal companions is calculated the same as most heroes, whereas the Hp of Familiars is set in relation to their master's Hp (as half the master's final Hp). Timing is probably later, since the master has to add his bonus Hp from feats and favored bonuses before the familiar can set its Hp.
 
The FCB should add +1 to the Witch's familiar. The coding that I am trying to use is listed below. I have tried different timings, including as late as Final/10000 and 30000.

Code:
~We need to caluclate the total to add.
      field[abValue].value += field[fcCount].value
      
~ If there's no Companion, there's nothing we can do
      doneif (hero.hasminion[cArcFamil] <> 1)

~Let's add our total to the HPs of our Arcane Familiar      
      hero.minion[cArcFamil].child[Totals].field[tBonusHP].value += field[abValue].value
 
It looks like familiars override their calculated HP at Final 9000, which is after tHPBonus is added in. Try adding directly to tHP at Final 10000, I think that should work.
 
Made both adjustments suggested, and it is still not altering the HP total for the familiar. Any other ideas?
 
Code:
Final-Phase  9500

~We need to caluclate the total to add.
      field[abValue].value += field[fcCount].value
      
~ If there's no Companion, there's nothing we can do
      doneif (hero.hasminion[cArcFamil] <> 1)

~Let's add our total to the HPs of our Arcane Familiar      
      hero.minion[cArcFamil].child[Totals].field[tHP].value += field[abValue].value

I also tried at Final 10000, and 10500.
 
Got it to work. the minion was [ArcFamil], not [cArcFamil]. The final script is listed below.

Code:
Final-Phase  9500

~We need to caluclate the total to add.
      field[abValue].value += field[fcCount].value
      
~ If there's no Companion, there's nothing we can do
      doneif (hero.hasminion[ArcFamil] <> 1)

~Let's add our total to the HPs of our Arcane Familiar      
      hero.minion[ArcFamil].child[Totals].field[tHP].value += field[abValue].value
 
Back
Top