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
direinsomniac
Senior Member
 
Join Date: Dec 2013
Posts: 106

Old January 13th, 2014, 12:39 PM
For a while now, I've been trying to figure out how to get my PrC's levels to stack with monk levels for purposes of the amount of Ki in the Ki Pool, without having to assign the ability.

Now I tried the script:
Code:
hero.childfound[cMnkKiPool].field[xExtraLev].value += field[cTotalLev].value
but this script doesn't do anything since the PrC doesn't already have access to the ability.


However, after looking at the scripts for the Monk's Ki Pool ability, I figured out a way to marry the two scripts together.

Code:
~Our PrC levels also add to our ki pool amount
      var bonus as number
      bonus = #levelcount[MyPrC] /2
      hero.childfound[cMnkKiPool].field[xExtraLev].value += round
(bonus,0,-1)
      hero.childfound[cMnkKiPool].field[trkMax].value += 
hero.childfound[cMnkKiPool].field[xExtraLev].value
Now because this script is being run from the Classes tab, you have to do the full reference both times, otherwise it tries to look for the fields in the cHelpPrC (which obviously, they wouldn't exist there).

Last edited by direinsomniac; January 13th, 2014 at 02:05 PM. Reason: corrected typo
direinsomniac 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 January 13th, 2014, 01:57 PM
I am not really sure of the question but without timing my guess it that the only reason the above script works is the last line:
Code:
      hero.childfound[cMnkKiPool].field[trkMax].value += 
hero.childfound[cMnkKiPool].field[xExtraLev].value
Which forces the Tracker to be increased by the same amount you added extra levels. Which in that case no reason to increase the Extra Levels as you already directly increased the tracker.

Which FYI means the script can be shortened to the following assuming we are running on a class special at Post-Levels/1000.
Code:
~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] <> 1)
~ If we've been Disabled, get out now
doneif (tagis[Helper.SpcDisable] <> 0)

~ Increase Ki pool by an amount equal to half my class level
#trkmax[cMnkKiPool] += round(field[xTotalLev].value/2,0,-1)
This can go onto a class special and it will activate itself at the level you set when you bootstrap it. It then takes the level from itself which is associated to the any PrC or class you bootstrapped too. Divides in half and increases the Ki Pool tracker by that amount. If no Monk Ki Pool tracker found then it won't do anything.

Of course I could have missed the whole point of what your trying to accomplish.

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
direinsomniac
Senior Member
 
Join Date: Dec 2013
Posts: 106

Old January 13th, 2014, 02:08 PM
This wasn't meant as a question. It was meant as an informative post, hence the (FYI) bit in the title.

I posted it in case other people were trying to figure this out, or could possibly use this as a reference for another ability that involves increasing the tracker.
direinsomniac 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 January 13th, 2014, 03:12 PM
Quote:
Originally Posted by direinsomniac View Post
This wasn't meant as a question. It was meant as an informative post, hence the (FYI) bit in the title.
Sorry no way with all I do that I am going to notice "FYI" or get thats what it means..

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   #4 Reply With Quote
direinsomniac
Senior Member
 
Join Date: Dec 2013
Posts: 106

Old January 13th, 2014, 04:03 PM
No problem. It's understandable.
direinsomniac is offline   #5 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 02:50 PM.


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