• 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

Code works but still get an error (Attribute or Skill for Edge)

Gumbytie

Well-known member
Here is the code:

Code:
validif (hero.child[attrSpi].field[trtFinal].value >= 6)
validif (hero.child[skBBDreaming].field[trtFinal].value >= 5)
if (@ispick <> 0) then
   altpick.linkvalid = 0
endif

Prereq for an Edge, either Have Spirit 12+ or Dreaming (Arcane) skill d10+. So it works but gives an error if the character hasn't actually purchased the skill Dreaming (Arcane) first. I figure I don't want hero.child for skBBDreaming but not sure what to use instead.
 
What about "Menu #1 Source: All Picks on Hero (this will make sure you don't get an error for trying to modify a skill that doesn't exist on the character)" (from the Common Code thread). Have you tried setting that?
 
But it's an either/or check so I would think you'd need to set it to valid if either situation were true.
 
It does. It tries one, then the other. If it hits a "valid" it exits with a true.

If not then it falls through to the "if" and it marks it as invalid if it's a pick. Then exits with a false.
 
Oh, sorry, i missed the "childfound" rather than "child" part so your suggesting was just a replacement on that one line. I missed that.
 
Back
Top