Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
pippin_nl
Member
 
Join Date: Aug 2013
Posts: 47

Old March 16th, 2014, 01:29 AM
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
pippin_nl is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 16th, 2014, 12:11 PM
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)
Most of this you can use but you will want to change out the field[pAdjust].value that is already negative to count Classes instead. Though I know the Classes.? tag are placed early on a character I don't know if they are present at First/100 so you may have to up the timing a little.

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)
I am off to dinner with the family so don't have time to test the above but it should help point you in the right direction.

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.
ShadowChemosh is offline   #2 Reply With Quote
Lord Magus
Senior Member
 
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 466

Old March 16th, 2014, 04:02 PM
SC, could this be integrated in the next version of your adjustments?
Lord Magus is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 16th, 2014, 05:32 PM
Quote:
Originally Posted by Lord Magus View Post
SC, could this be integrated in the next version of your adjustments?
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.
ShadowChemosh is offline   #4 Reply With Quote
pippin_nl
Member
 
Join Date: Aug 2013
Posts: 47

Old March 17th, 2014, 12:13 AM
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?
pippin_nl is offline   #5 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 17th, 2014, 09:58 AM
Quote:
Originally Posted by pippin_nl View Post
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?
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.
ShadowChemosh is offline   #6 Reply With Quote
pippin_nl
Member
 
Join Date: Aug 2013
Posts: 47

Old March 17th, 2014, 12:44 PM
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!!!
pippin_nl is offline   #7 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 17th, 2014, 01:44 PM
Quote:
Originally Posted by pippin_nl View Post
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!!!
Most likely it can add. What I did was set the adjustment to have a Max value of 0 and a Minimum value of -99 on the incrementor. Meaning only a negative values could be entered.

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.
ShadowChemosh is offline   #8 Reply With Quote
Lord Magus
Senior Member
 
Join Date: Jan 2011
Location: Quebec, QC, Canada
Posts: 466

Old March 17th, 2014, 05:34 PM
Quote:
Originally Posted by ShadowChemosh View Post
Yep already done.. its where I pulled the script from..
Sorry to ask (and shameful…) but where is it / what's its full name? I have v2.8 installed and I can't find it anywhere.

Thanks!
Lord Magus is offline   #9 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old March 17th, 2014, 06:29 PM
Quote:
Originally Posted by Lord Magus View Post
Sorry to ask (and shameful…) but where is it / what's its full name? I have v2.8 installed and I can't find it anywhere.

Thanks!
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.
ShadowChemosh is offline   #10 Reply With Quote
Reply


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 09:40 AM.


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