• 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

Spell DC help

mbran01

Well-known member
How would I add a bonus to the save dc of a spell. I am pretty sure that it has something to do with [sDC] but beyond that I can't figure it out. I either get a parsing error, syntax error, or invalid use of reserved word error. I want this to be able to stack with elemental focus and spell focus. Is that possible?

Here is the latest code that I tried.

foreach pick in hero from BaseSpell where "SpellEff.DamFire"
perform hero.field[sDC].value += 1
nexteach

Any help would be much appreciated.
 
You are checking for the field in the wrong place. sDC is not on the hero but on the spell picks you are cycling through. Also perform can only be used with certain commands like assign, delete, or pushtags, it is not used for adding to the value of a field. Try this:

foreach pick in hero from BaseSpell where "SpellEff.DamFire"
eachpick.field[sDC].value += 1
nexteach
 
You guys crack me up. I have been reading these forums for awhile and I always get a kick out of you.
 
Back
Top