Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old September 16th, 2015, 06:01 AM
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?
frumple is offline   #1 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old September 16th, 2015, 06:45 AM
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.
Aaron is offline   #2 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old September 16th, 2015, 11:16 AM
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. :/
frumple is offline   #3 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old September 16th, 2015, 11:24 AM
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
Aaron is offline   #4 Reply With Quote
frumple
Senior Member
 
Join Date: Nov 2011
Location: South Riding, VA
Posts: 841

Old September 16th, 2015, 11:29 AM
Ah ok! The IsAttr.X tag is what I needed to know.

Thanks!
frumple is offline   #5 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 11:26 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.