• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Template that removes racial hit dice

frumple

Well-known member
I have a template that reduces the number of racial hit dice of the base creature.

I am trying to achieve this by deleting Hero.HitDice and Classes.Race tags.

Is the right way to go about it?
Also what is the timing of assigning of hit dice from the base race to the hero (so I can get the timing right)?
 
I'd findchild the race, and then subtract from the rHitDice field. Do it early enough and you should be able to get there before the race applies the Hero.HitDice and Classes.Race tags.
 
Works like a charm!

I did the following at First 100
Code:
~ reduce racial hit dice by half

perform hero.findchild[BaseRace].setfocus
      doneif (state.isfocus = 0)

var racialHD as number
racialHD = focus.field[rHitDice].value

var newRHD as number
newRHD = round(racialHD/2,0,-1)
newRHD = maximum(1,newRHD)


~ new hit dice
focus.field[rHitDice].value = newRHD

~ adjust bonus feats

var ftCnt as number
ftCnt = 0
foreach pick in hero from BaseRace where "SpecSource.Feat"
 ftCnt += 1
nexteach

~ +1 is for Toughness bonus feat from template
focus.field[rFeat].value = -(ftCnt + 1)
 
Last edited:
Back
Top