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
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