Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Savage Worlds (http://forums.wolflair.com/forumdisplay.php?f=59)
-   -   Skill or Hindrance requirement for an Edge (http://forums.wolflair.com/showthread.php?t=63728)

Gumbytie January 25th, 2020 04:30 AM

Skill or Hindrance requirement for an Edge
 
First time I have encountered this combination for an Edge, either a Skill level or Hindrance is a requirement.

Illusionist
Requirements: Spellcasting d6+ or the Only Illusions Hindrance

So I have two versions of code I have tried and neither seems to work. No errors, just not working.

Version One:
Code:

        validif (#traitfound[skTYRSpellcast] >= 3)
        validif (hero.tagis[Hindrance.hinTYROnlyIllusio] <> 0)
        if (@ispick <> 0) then
          altpick.linkvalid = 0
          endif

and

Version Two:
Code:

        validif (hero.tagis[Sk.skTYRSpellcast] >= 3)
        validif (hero.tagis[Hindrance.hinTYROnlyIllusio] <> 0)
        if (@ispick <> 0) then
          altpick.linkvalid = 0
          endif

Any suggestions on where I screwed up? :)

CapedCrusader January 26th, 2020 09:22 PM

OK, the first one is the one that should work. Ensure that skTYRSpellcast is the Spellcasting Skill being used.
Also, check your hero tag list and ensure that tag is present on the hero when the Hindrance is selected.
The code looks correct, though. Either one being true should pass that test.


All times are GMT -8. The time now is 12:18 PM.

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