• 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

Bonus to caster level checks

wdmartin

Well-known member
I'm working on an adjustment to implement the Foretell ability from the Foresight wizard school. It grants a +2 luck bonus on ability checks, attack rolls, caster level checks, saving throws, and skill checks.

I've got all of these working except the caster level checks. I couldn't find any place to apply a bonus to all caster level checks. Adding to actual caster level is straightforward, but that's not what it does.

It looks like the one specific caster level check that Hero Lab tracks is the one for overcoming spell resistance, so I tried modifying that. Here's the relevant script:

Code:
Phase: Final Phase (users)
Priority: 10000
Index 2

	~ If we're not enabled, get out now
	doneif (field[pIsOn].value = 0)

	~ Add to CL vs SR checks
	herofield[tOverSplRs].value += 2

And I specified a timing of "Before Calc cOverSplRs". This was pretty much copy-pasted from the Spell Penetration feat. If there's a way to add a specific type of bonus to a CL vs SR check, I haven't figured it out.

Unfortunately, it doesn't work. The compile fails with the error "Non-existent thing 'tOverSplRs' used by script". Could this be a timing issue, or something? When I look at my test hero's fields in the floating info window, he's definitely got a field called tOverSplRs.
 
I'm sorry, I have no idea what that means. What's a class helper?

EDIT: Never mind. I figured it out -- I had an incorrect line in an earlier script.
 
Last edited:
Back
Top