I am adding the Aglarondan griffonrider from Unapproachable East. I have everything setup and can add the animal companion but the animal companion advancement is different from the normal druid or ranger advancement. So I need to create an eval script to delete hit dice from the animal companion based on the hero's griffonrider class count. I need help on timing and how to delete hit dice from the griffon which I have created as a new animal companion race? I have included the relevant table below from Unapproachable East.
Code:
Griffonrider Bonus Natural Strength
Level Hit Dice Armor Bonus Adjustment
1–3 +2 +4 +2
4–6 +4 +6 +2
7–9 +6 +8 +4
10 +8 +10 +4