I am in need to getting a hero's total HD very early. Like before First/100 early. So before when most tags are added. I have it mostly working with the term
Which counts the race's intrinsic HD, HD due to customization, and bonus HD added on the Classes tab. However, there is an issue with counting classes HD.
I cannot count class levels that have been bootstrapped. I have tried adding
but that always returns just 1 if I have a class, not the total number of children from that component.
Ideas? Again this needs to run very early (around First/75).
Code:
totalHD = hero.findchild[BaseRace].field[rHitDice].value
+ hero.childfound[cmhHelper].field[cmhHD].value
+ hero.childcount[cBonusHD]
Which counts the race's intrinsic HD, HD due to customization, and bonus HD added on the Classes tab. However, there is an issue with counting classes HD.
I cannot count class levels that have been bootstrapped. I have tried adding
Code:
hero.haschild[BaseClLev]
but that always returns just 1 if I have a class, not the total number of children from that component.
Ideas? Again this needs to run very early (around First/75).