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
Eklypse0
Member
 
Join Date: Apr 2011
Posts: 36

Old June 9th, 2014, 09:32 PM
I am creating a custom game which uses Wounds and Vigor. It isn't exactly how the rules are in Ultimate Combat are though.

First, Wounds need to equal Constitution, with no adjustment based on level.
Second, Vigor needs to ignore the Con Modifier.

I can't seem to find any sort of adjustment settings to even manually alter either stat to fit the target profile.

How do I do this in Hero Lab?

(edit) I figured out how to manually adjust Vigor, however Wounds is still a mystery!

Last edited by Eklypse0; June 9th, 2014 at 09:37 PM.
Eklypse0 is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 10th, 2014, 12:28 PM
hero.childfound[Wounds].field[wndTotal].value += WHATEVER
Aaron is offline   #2 Reply With Quote
Eklypse0
Member
 
Join Date: Apr 2011
Posts: 36

Old June 10th, 2014, 12:47 PM
Quote:
Originally Posted by Aaron View Post
hero.childfound[Wounds].field[wndTotal].value += WHATEVER
The only problem is I don't know how to, or where to, use your answer.
Eklypse0 is offline   #3 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 10th, 2014, 01:34 PM
Either add it to an adjustment in an eval script, or create a mechanic with the same eval script. Also, make sure you alter "WHATEVER" into something specific to your aims.
Aaron is offline   #4 Reply With Quote
Eklypse0
Member
 
Join Date: Apr 2011
Posts: 36

Old June 10th, 2014, 02:29 PM
Quote:
Originally Posted by Aaron View Post
Either add it to an adjustment in an eval script, or create a mechanic with the same eval script. Also, make sure you alter "WHATEVER" into something specific to your aims.
Aren't the mechanics for the official Pathfinder scripts locked? So I can not modify them?

If that is the case, being a newbie in HL scripting, though I have a decent understanding of programming, how/where would I create a new event that would:

1. Check to see if the player was using the Wounds/Vigor rules
2. If so, Make wounds equal to Constitution score.
3. Remove the Con modifier per level to Vigor?

Part of my problem is that I can't peek into the code of the rest of the module to have a basis of how to alter old code or create new code. If you could point me to how to read the current Pathfinder code, I would have a huge step up on how to figure out how to do the rest.
Eklypse0 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 June 10th, 2014, 03:13 PM
Check out FAQ#2 on the editor. It covers all the places to learn about HL scripting including a four part intro videos. Video 2 or 3 covers how to look at existing scripts, fields, and tags. Also shows how to turn on some of the debugging features.

The big thing is you can do "new copy" against existing Things and see their scripts.

Mechanics are a Thing that are attached to all characters and is a special tab in the editor. Its a good place to put global scripts as they will be attached and run for all characters.

Check out the above it should help get you started.

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
Eklypse0
Member
 
Join Date: Apr 2011
Posts: 36

Old June 10th, 2014, 03:40 PM
Thank you. Hopefully this will give me the understanding to make at least a simple change!

Still don't understand why Wounds couldn't have just shown up as an 'Adjust' modification.
Eklypse0 is offline   #7 Reply With Quote
Eklypse0
Member
 
Join Date: Apr 2011
Posts: 36

Old June 10th, 2014, 05:41 PM
Thank you. You guys helped immensely.

I didn't even have to get through half of the second video before I had enough information to find out where I could copy and alter an existing 'Adjustment'. Thank you, ShadowChemosh!

Then the actual information that I needed to edit, I don't think I could have found without Aaron. I just didn't have the foundation to figure out how to utilize 'wndTotal' even after having found it buried in the Debug Tracker.

My workable solutions came from editing the 'Hit Point (pHP)' Adjustment, with Vigor Modify being pretty much a copy, but now findable in the Adjustments under Vigor. Wounds took a little more, but I was able to copy/paste the information from Aaron.

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

~ Add to our Vigor
herofield[tHP].value += field[pAdjust].value
Wounds Modify : Eval Script
Quote:
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)

~ Add to our Wounds
hero.childfound[Wounds].field[wndTotal].value += field[pAdjust].value
Eklypse0 is offline   #8 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 10th, 2014, 06:07 PM
Happy to help.
Aaron 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 04:56 PM.


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