Thread: Question
View Single Post
zarlor
Senior Member
 
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819

Old February 11th, 2017, 02:41 PM
There should be a field for it, set to "field[hinMajor].value = 1" if true.
So at a guess you could start figuring it out from something like:

Code:
   foreach pick in hero from Hindrance
      validif (eachpick.field[hinMajor].value <> 0)
   nexteach
Well, something in that vein, anyway, although that example would validate on any Major hindrance so you'd presumably knock it down to just the Hindrance you want. Maybe something like this to narrow down to just the hindrance you need:

Code:
   foreach pick in hero from Hindrance
      if (hero.tagis[Hin.hinNCNepot] <> 0)
         validif (eachpick.field[hinMajor].value <> 0)
      endif
   nexteach
if (@ispick <> 0) then
   altpick.linkvalid = 0
endif
Or maybe there is a way to make that simpler, but I'm not quite sure on that right now. And I'm not positive if this is a situation where you would need the altpick code, but it probably wouldn't hurt anyway.

Lenny Zimmermann
Metairie, LA, USA

Data files authored (please let me know if you see any issues with any of these if you have/use them):
Official (In the downloader)
50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome
Coming Eventually
Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me)
zarlor is offline   #2 Reply With Quote