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
Maidhc O Casain
Senior Member
 
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858

Old April 6th, 2013, 10:10 AM
I'd like to make a new option for calculating HP to add to the current "Average HP per Level" and "Max HP per Level."

It seems that many of the games in which I play use Max HP at first level and then Max -2 at each subsequent level. Up 'till now I've been using the Max/Level option and putting in an adjustment at each new level to subtract 2.

Would it be possible for me to add a new option to the Configure Hero menu for this, and if so how would I go about it?
Maidhc O Casain 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 April 6th, 2013, 11:33 AM
I am pretty sure that one we don't have a way to do. Personally I would leave the options alone and just type in your HP of HP-2 manually. That seems way easier than putting in an adjustment actually.

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
Maidhc O Casain
Senior Member
 
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858

Old April 6th, 2013, 11:39 AM
Yeah, I've done it that way as well. It's about the same either way. What about a permanent adjustment that subtracts 2 HP per the total number of levels minus one (for the first level)?
Maidhc O Casain is offline   #3 Reply With Quote
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old April 6th, 2013, 01:19 PM
Quote:
Originally Posted by Mowgli View Post
Yeah, I've done it that way as well. It's about the same either way. What about a permanent adjustment that subtracts 2 HP per the total number of levels minus one (for the first level)?
Take the code from Toughness to modify the HP and add to an adjustment with subtraction and multiplication instead.
risner is offline   #4 Reply With Quote
Maidhc O Casain
Senior Member
 
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858

Old April 6th, 2013, 01:35 PM
Toughness! I was trying to think of something that did almost this, but for some reason I just couldn't make it click.

Thinking's been like swimming through molasses today . . .

Thank you, sir!
Maidhc O Casain is offline   #5 Reply With Quote
Maidhc O Casain
Senior Member
 
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858

Old April 6th, 2013, 04:47 PM
OK, still thinking through molasses, and can't seem to make this work. I managed to get a script that doesn't throw up an error, but it also doesn't do what I want it to.

Quote:
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)

~ Calculate Total Levels Less One
field[abValue].value = herofield[tTotLevel].value - 1

~ Subtract twice that from total HP
herofield[tHP].value -= field[abValue].value * 2
Maidhc O Casain is offline   #6 Reply With Quote
risner
Senior Member
Volunteer Data File Contributor
 
Join Date: Jun 2010
Posts: 623

Old April 6th, 2013, 09:04 PM
Quote:
Originally Posted by Mowgli View Post
can't seem to make this work
Code:
      var bonus as number
      bonus = hero.tagcount[Hero.HitDice] - 1

      ~ Add to our HP
      herofield[tHP].value -= 2 * bonus
Try this
risner 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 April 7th, 2013, 09:51 AM
Quote:
Originally Posted by Mowgli View Post
OK, still thinking through molasses, and can't seem to make this work. I managed to get a script that doesn't throw up an error, but it also doesn't do what I want it to.
You could change your script to what Risner has but the reason this does not work is important. I am going with your WAY too early in your timing of the script. The field values for Hit Dice/Levels is not calculated until Post-Levels.

In this case I would use Post-Levels/10000.

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
Maidhc O Casain
Senior Member
 
Join Date: Nov 2009
Location: Jonesboro, AR (USA)
Posts: 858

Old April 7th, 2013, 12:58 PM
And with that change to timing both my script and risners work. Thanks!

(I assumed that since I just made a copy of the adjustment that changes total HP the timing would be the same.)
Maidhc O Casain is offline   #9 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:08 AM.


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