Member
Join Date: Aug 2013
Posts: 47
|
Hi,
Is it possible to use a feat, template or an adjustment to the race to remove racial hit dice for each class level you add? So suppose I have a 10 HD monster and I would add a level of rogue, I would like the end result to be a 9 HD monster with 1 level of rogue. Would there be another way to grant all the class abilities from a class and also replace rHDSides (e.g. D6 for a wizard) to a monster? Something that did not work at (final phase/10.000): var hd as number ~ hd = hero.tagcount[Hero.HitDice] hd = field[rHitDice].value var cl1 as number cl1 = field[xAllLev].value field[tHitDice].value -= cl1 - hd field[tCR].value -= cl1 - hd |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
For something like this you want VERY EARLY not late. At final timing everything has already been calculated.
Here is an adjustment script I have that removes Hit Dice First/100: Code:
~ If we're not enabled, get out now doneif (field[pIsOn].value <> 1) ~set our focus to the hero's race perform hero.findchild[BaseRace].setfocus doneif (state.isfocus = 0) ~ Remove Race Hit Dice focus.field[rHitDice].value += field[pAdjust].value ~ Make sure we never go to Negative Hit Dice! focus.field[rHitDice].value = maximum(focus.field[rHitDice].value,0) Basically something like this: Code:
~ set our focus to the hero's race perform hero.findchild[BaseRace].setfocus doneif (state.isfocus = 0) ~ Remove Race Hit Dice equal to number of classes taken focus.field[rHitDice].value -= hero.tagcount[Classes.?] ~ Make sure we never go to Negative Hit Dice! focus.field[rHitDice].value = maximum(focus.field[rHitDice].value,0) Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#2 |
Senior Member
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 466
|
SC, could this be integrated in the next version of your adjustments?
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Yep already done.. its where I pulled the script from..
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. Last edited by ShadowChemosh; March 16th, 2014 at 06:27 PM. |
#4 |
Member
Join Date: Aug 2013
Posts: 47
|
Thank you. I have not yet found a timing where both rHitDice and hero.tagcount[Classes.?] are active. Is it possible to use a counter if the right timing does not exist?
|
#5 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
In that case you may as well use the first script example as it can be pasted right into an Adjustment. Then the adjustment has a counter built in which is field[pAdjust].value. Test Now and use.
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#6 |
Member
Join Date: Aug 2013
Posts: 47
|
Does the top script not add hit dice if you put in a positive value, it does in my case? I might also have found the reason I did not get it to work, the monster I was applying it too has two races and only one with rHitDice, but thanks as always!!!
|
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
How can a hero have two races? As far as I am aware that is not possible as the Background Tab only allows the selection of a single race. So I don't understand your statement about a monster have two races... Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#8 |
Senior Member
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 466
|
|
#9 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Oh sorry was not clear. Meant it will be in the next release as it's coded but not released yet.
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#10 |
|
|