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:
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'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.