• 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

Searching for a particular hindrance

Praetor

Well-known member
Anybody can tell me what I am doing wrong here, i tried using this code like searching for an edge but it will not work while searching for a hindrance. it tests without errors but does nothing when put in place.

Code:
foreach pick in hero from Edge where "!Hide.Hindrance"
if (eachpick.tagis[Hindrance.hinBloodTh] <> 0) then
perform #traitadjust[trParry,-,1,"Bloodscent"]
endif
nexteach
 
What's the desired end result? Why not just put the -1 Parry in an Eval Script on Bloodscent? How does it depend on hinBloodTh?

Oh, and did you try "foreach pick in hero from Hindrance"?
 
no I didn't should have though. Gaslight gives Werewolves in werewolf form a -4 charisma, however if they already have the bloodthirsty hindrance they become reckless and ake a -1 parry instead. These penalties are only when they are in werewolf form.
 
Foreach pick in hero from Hindrance was the answer. Here's the full script.
Code:
if (field[abilActive].value <> 0) then
perform #traitadjust[trCharisma,-,4,"Bloodscent"]
foreach pick in hero from Hindrance where "!Hide.Hindrance"
if (eachpick.tagis[Hindrance.hinBloodth] <> 0) then
perform #traitadjust[trParry,-,1,"Bloodscent"]
endif
nexteach
endif

Now if i can figure out how to add 1 point of natural armor thru the script.
 
Back
Top