Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old February 15th, 2013, 11:02 AM
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)?
frumple is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,794

Old February 15th, 2013, 11:11 AM
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.
Aaron is offline   #2 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old February 15th, 2013, 11:18 AM
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 by frumple; February 15th, 2013 at 11:58 AM.
frumple is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:59 PM.


Powered by vBulletin® - Copyright ©2000 - 2021, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.