• 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

Question

dartnet

Well-known member
How would I script a prerequisite a character having the major version of a Hindrances but allow the minor version of the Hindrance?
 
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.
 
It's actually a tag. [User.HindMajor] Just assign that tag to the Hindrance when it's applied to the character in the Setting.
 
How would I script it to have not allow a major version of the hindrance but not require the hindrance it's self.
 
In the validation, just check for the combination of the Hindrance tag and the HindMajor tag. If they both exist, throw the error.
 
I seem to be getting an ID10T error on my end. I can get it to work but only if the hero takes the hindrance.
 
Back
Top