• 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

Change ALL Monster Ability DCs

tcharleschapman

Well-known member
Hi Everyone,

I found the adjustment for lowering a single Ability DC, but I want to make an Adjustment that lowers ALL Ability DCs for a single creature.

Any help is greatly appreciated. I have a big project and this is step one. Can't go any further without it.

Tom
 
Are all the Abilities setup with a SpecSource.? tag? If so you can make a script that does a simple foreach loop through them and change the abDC field of each Pick.
 
All monsters I plan on changing are currently monsters from sourcebooks. Here is the code for changing all Spell DC's.

Code:
      ~ Adjust the DC to all CORE schools of magic
      foreach pick in hero from SplSchool where "!sDescript.? & !sWordCat.? & !sSubschool.?"
        eachpick.field[schDC].value += field[pAdjust].value
        nexteach

I imagine I can use this as a starting point but I don't know what I'm looking for...
 
So that is close but it does spells. You want to go after "Ability" Picks. Here is a script I recently wrote to increase all the Abilities of a Monster by the value in abValue.

You should run this at Final/50000:
Code:
      foreach pick in hero from Ability where "fieldval:abDC <> 0"
        eachpick.field[abDC].value += field[abValue].value
      nexteach
This says find all "Picks" on the character in the "Ability" component set where the field value abDC is not zero. Then change the abDC field by the value in the abValue field.
 
Back
Top