• 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

Editor Problem 1

stuartwaring

Well-known member
I have been working on modifying the Thunderbolt ability so that damage and save DC scale with my caster level, not my sorcerer level (i have 3 levels of Eldritch Knight, 1 of Fighter and 9 of Sorcerer = CL11).

I have successfully changed the damage to 11d6 but cant get the save dc to work properly!

Here is the script (running in post attributes, priority 10,000

~use caster level for damage
field[abValue].value += herofield[tMaxCaster].value

~add half eldritch knight level to DC
#dc[cSorThunB1] += Round(#levelcount[EldritchKn]/2, 0, -1)

Any ideas why this returns a save DC of 30 not expected 22 (Cha is +7)
 
What's the result? Is it giving you an error message? Is the DC not calculating right? Without information on the effects of your script, I don't know what to say.

Some general things - operators in HL are not usually capitalized - "round", rather than "Round". There are a lot of things HL is case-sensitive about, so I'd use the standard capitalization for that.
 
Hi Matthias,

The result is that the DC is much too high - should be DC 22 (10+4 from sorcerer levels + 1 for Eldritch Knight levels + 7 (Charisma bonus).

The DC is comes out as is 30.

Thanks
 
What sort of ability is running this script?

If it's a class special, do you have more than one copy of the class special on whatever class/archetype is adding this? (I'm guessing 9 copies - an every even or every odd level ability)

If so, is the script you've posted all of your script?

And if so, does adding the standard Helper.ShowSpec and Helper.FirstCopy tests for class specials fix this?
 
It is a class special, but i only have the one copy - I copied the original Thunderbolt ability and just modified the abValue in the script, from field[abValue].value += field[xAllLev].value to field[abValue].value += herofield[tMaxCaster].value.

The i tried to up the DC

The script posted was the whole thing (There is a render phase script, but that is identical to the original).

where do i add the Helper.ShowSpec and Helper.FirstCopy tests?
 
And i keep getting an error message when i try to test saying "Thing to replace has already been replaced and cannot be superceded" (My modified Thunderbolt ability is replacing the default one!)
 
In the editor's help menu, choose "Help on using the editor", and look at tutorial 7. In the class special sections of that it discusses the tests that are normal for class specials to make sure they're not applying their effects all the time - that they only apply their effects when the class has reached a high enough level to use them, and not when they're replaced by an archetype.

At this point, I'm at a loss as to what's happening to the DC. Nothing you've described so far can explain it, so there must be something else interfering.
 
And i keep getting an error message when i try to test saying "Thing to replace has already been replaced and cannot be superceded" (My modified Thunderbolt ability is replacing the default one!)

Once you use "Replaces Thing Id", you can never use "Test Now!" on that item or you'll get this message. You have to use the "Quick-reload game system" option from the Develop menu in the regular Hero Lab window.
 
Decided to give up adding to the DC, instead just defined it from scratch as below. Thanks for the heads up on case sensitivity and the Quick reload thing.

This script now gives the expected DC

field[abDC].value += round(herofield[tMaxCaster].value /2, 0, -1) + hero.child[aCHA].field[aModBonus].value
 
Back
Top