• 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

Animal companion programming - tags vs. macros

nmilasich

Member
Hi all, appreciate any help on this interesting problem.

I've figured out how to target an animal companion with a hero's feat:


if (hero.childlives[cAnimComp] <> 0) then
hero.childfound[cAnimComp].minion.child[ArmorClass].field[tACNatural].value = hero.childfound[cAnimComp].minion.child[ArmorClass].field[tACNatural].value + 2
endif
(+2 to natural armor)
I now want to use macros like

#applyresist[type, bonus] to give the companion damage resistance.

I also need to give it +1d8 hp.

Finally, I need to give it a +1 to the attribute of the player's choice.

Any ideas? Please do be basic, I'm just learning XML. I would be deeply grateful.

Nick
 
Check the Andoren Falconry feat's eval script - that's an example of a feat that applies stat bonuses to an animal companion.
 
Back
Top