View Single Post
CapedCrusader
Senior Member
Volunteer Data File Contributor
 
Join Date: Aug 2009
Posts: 1,550

Old February 12th, 2017, 04:25 PM
How about this?

Code:
      var totalcount as number
      totalcount = 0
      foreach pick in hero where "thingid.skKnow"
          if (compare(lowercase(eachpick.field[domDomain].text),"science") = 0) then
            if (eachpick.field[trtFinal].value >= 3) then
              totalcount += 1
              endif
          endif
          if (compare(lowercase(eachpick.field[domDomain].text),"occult") = 0) then
            if (eachpick.field[trtFinal].value >= 3) then
              totalcount += 1
              endif
          endif
          if (compare(lowercase(eachpick.field[domDomain].text),"navigation") = 0) then
            if (eachpick.field[trtFinal].value >= 3) then
              totalcount += 1
              endif
          endif
        nexteach
      validif (totalcount >= 1)
A little clunky, I'll admit, but it should work. And if you wanted to check if it was two of them, change the (totalcount >= 1) to (totalcount >= 2), or 3 for all 3.

_
Currently In Development: Savage Pathfinder, SWADE Fantasy Companion
Future Development: SWADE Super Powers Companion, SWADE Sci-Fi Companion
_
Currently Running: Savage Unity Inc. (homebrew multiverse theme)
Setting Files Supported: Deadlands: Reloaded, Flash Gordon, Gaslight, Hellfrost, Interface Zero 2.0, Seven Worlds, Slipstream, Solomon Kane
Future Setting Files: Savage Judge Dredd

Last edited by CapedCrusader; February 12th, 2017 at 04:31 PM.
CapedCrusader is offline   #3 Reply With Quote