• 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

Class ability needs to count two classes

direinsomniac

Well-known member
I am working on a prestige class that favors the monk, but is not restrictive to that class, and am having a difficult time figuring out how to script a class ability that needs to calculate the PrC's level + monk levels to determine AC bonus, Fast Movement, and Unarmed damage.

Since I cannot be sure how many levels of monk a character will have, and since these special abilities improve when taking levels in either the PrC or the base Monk class, I need some way to track the combined levels and then assign the class specials at the appropriate levels.
 
I have bootstrapped the Monk AC Bonus, Fast Movement, and Unarmed Strike to the PrC and given them [ClSpecWhen] tags identical to the Monks -- hoping the xAllLev thing would sort it for me, but I get this error when I try to compile:

Attempt to access field 'cTotalLev' that does not exist for thing 'cMonkAbil'
Location: 'field calculate' script for Field 'xTotalLev' near line xx


'cMonkAbil' it the unique id I gave the special ability in order to bootstrap all three abilities under one special.
 
Bootstrap them individually, directly on the class helper. Class specials can't be bootstrapped to anything but archetypes, custom special abilities and class helpers. Anything else will give you errors.
 
I bootstrapped the abilities individually, as you instructed, and gave them the same ClSpecWhen tags as the Monk, but the count is extremely off.

Ex. I have a hero that is Fighter 3/Monk 1/Monk PrC 9: The count for the AC with this setup is showing as +5, but should only be +2 (as per a 10th level Monk).
 
Check out the eval script of cMnkAC, the monk AC bonus class special. Notice how the abValue field is based off of the number of copies bootstrapped (the xCount field)? That's likely your issue there. I would create a new class ability which checks for the presence of the Monk AC class ability and if present adds some amount to the copy of cMnkAC with a Helper.FirstCopy tag. If there is no copy of cMnkAC, then it can calculate its own value and add that to AC in a similar way.
 
What source material is that from?

I only have the Core, APG, ARG, Ultimate Combat/Magic/Equipment, Bestiary 1-3 & Bonus Bestiary
 
I think it's in Paths of Prestige, but here's the script from the class that is used for increasing the monk abilities.

Code:
      ~ Our champion of Irori levels stack with any existing monk levels.
      ~ for AC bonus, unarmed strike,flurry of blows, and stunning fist.
      ~ Note that we don't get these abilities if we don't already have them
      hero.childfound[cMnkAC].field[xExtraLev].value += field[cTotalLev].value
      hero.childfound[cMnkFlurr].field[xExtraLev].value += field[cTotalLev].value
      hero.childfound[cMnkUnarm].field[xExtraLev].value += field[cTotalLev].value
      hero.childfound[cMnkStun1].field[xExtraLev].value += field[cTotalLev].value
      hero.childfound[cMnkStun2].field[xExtraLev].value += field[cTotalLev].value
      hero.childfound[cMnkStun3].field[xExtraLev].value += field[cTotalLev].value
      hero.childfound[cMnkStun4].field[xExtraLev].value += field[cTotalLev].value
      hero.childfound[cMnkStun5].field[xExtraLev].value += field[cTotalLev].value
      hero.childfound[cMnkStun6].field[xExtraLev].value += field[cTotalLev].value

      ~Our champion of Irori levels also add to our smite evil damage
      hero.childfound[cPalSmite].field[abValue].value += field[cTotalLev].value
      hero.childfound[cPalLayHnd].field[abValue].value += field[cTotalLev].value
 
This script would be if you already have the items on the character and the prestige class doesn't grant them.
 
Back
Top