I am trying to run a script that adjusts a specific familiar of a specific race's hp, nat ac bonus and Int score.
here is what I have so far:
where I define and calculate minionHP and minionAC earlier in the script. I am using the foreach statement because this is applies to multiple familiars.
The adjustment of HP works fine, but I get the error that the "Script reference in invalid in these circumstances" for the AC adjustment.
What am I missing?
here is what I have so far:
Code:
Final Phase/9500
foreach actor in portfolio where "IsRace.ArcFamil & IsRace.rmZSPHunSh"
eachpick.field[tHP].value = minionHP
eachpick.child[ArmorClass].field[tACNatural].value += minionAC
nexteach
where I define and calculate minionHP and minionAC earlier in the script. I am using the foreach statement because this is applies to multiple familiars.
The adjustment of HP works fine, but I get the error that the "Script reference in invalid in these circumstances" for the AC adjustment.
What am I missing?