Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Need to Adjust Wounds and Vigor (http://forums.wolflair.com/showthread.php?t=49637)

Eklypse0 June 9th, 2014 09:32 PM

Need to Adjust Wounds and Vigor
 
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!

Aaron June 10th, 2014 12:28 PM

hero.childfound[Wounds].field[wndTotal].value += WHATEVER

Eklypse0 June 10th, 2014 12:47 PM

Quote:

Originally Posted by Aaron (Post 185216)
hero.childfound[Wounds].field[wndTotal].value += WHATEVER

The only problem is I don't know how to, or where to, use your answer.

Aaron 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.

Eklypse0 June 10th, 2014 02:29 PM

Quote:

Originally Posted by Aaron (Post 185226)
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.

ShadowChemosh 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.

Eklypse0 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 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

Aaron June 10th, 2014 06:07 PM

Happy to help.


All times are GMT -8. The time now is 04:25 PM.

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