Senior Member
Join Date: Dec 2013
Posts: 106
|
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 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 Last edited by direinsomniac; January 13th, 2014 at 02:05 PM. Reason: corrected typo |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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 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) 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. |
#2 |
Senior Member
Join Date: Dec 2013
Posts: 106
|
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. |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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. |
#4 |
Senior Member
Join Date: Dec 2013
Posts: 106
|
No problem. It's understandable.
|
#5 |
|
|