• 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

Picking classes by spell attribute

frumple

Well-known member
I need to modify a class's effective ability score for spellcasting but only for those classes that use Wisdom. I have tried the following:

Code:
foreach pick in hero from BaseClHelp where "SplAttr.aWIS"
  eachpick.field[cBonSplInc].value += field[trkUser].value
  nexteach

but it doesn't work. Is SplAttr the correct tag to use, or is there another way?
 
SplAttr is an override tag, if it isn't present, then the class uses a linkage. I think you'll have to foreach through all classes, and check within the foreach whether it has a SplAttr tag, or failing that check the spellattr linkage before doing your thing.
 
Ok. How would I go about checking linkage[spellattr] that is it linked to a particular ability score? The wiki does not have pick linkages entered yet. :/
 
Something like this?

Code:
      var dothething as number

      foreach thing in Class where WHATEVER
        dothething = 0

        ~ Look for picks with the correct spellcasting
        if (eachpick.tagis[SplAttr.aWIS] <> 0) then
          dothething = 1
        elseif (eachpick.islinkage[spellattr] <> 0) then
          if (eachpick.linkage[spellattr].tagis[IsAttr.aWIS] <> 0) then
            dothething = 1
            endif
          endif

        ~ Do we do the thing?
        if (dothething <> 0) then
          ~ Do stuff
          endif
        nexteach
 
Back
Top