• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

(FYI) Adding levels to the Ki Pool ability without assigning it

direinsomniac

Well-known member
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:
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. ;) :D
 
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.
 
Back
Top