Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
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
Code:
totalHD = hero.findchild[BaseRace].field[rHitDice].value + hero.childfound[cmhHelper].field[cmhHD].value + hero.childcount[cBonusHD] I cannot count class levels that have been bootstrapped. I have tried adding Code:
hero.haschild[BaseClLev] Ideas? Again this needs to run very early (around First/75). |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
What actually needs that early a count? #totallevelcount[] is available after First/180, so I'd re-examine why your script absolutely needs to come in that early.
|
#2 |
Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
It is needed to determine MythicTier.MythicRanks based on a creature's HD. I need to set rMythRanks on the BaseRace before First/100 where the MythicTier tags are forwarded to the hero. Since many templates and other things that modify HD do their thing around First/580 I can't simply just look at Hero.HitDice or the like. I also wanted to try to avoid using foreach when I can since I know it can be expensive (this is why I wanted to use haschild). Finally, I also want to set this early enough so that I can use the newly set MythicTier.MythicRank tags for bootstrap conditions.
Unless... is there any reason I couldn't set rMythRanks and manually set the MythicTier.MythicRank tags at a timing soon after First/180? Last edited by frumple; April 3rd, 2016 at 02:02 PM. |
#3 |
Senior Member
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841
|
I also just checked running #totallevelcount[] on an Ogre at First/185. It doesn't work, it returns 0.
In fact I am finding #totallevelcount[] will not return a correct value until after Levels/5000 |
#4 |
Thread Tools | |
Display Modes | |
|
|