Member
Join Date: Mar 2008
Location: Richmond, Va
Posts: 79
|
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 Alvin Leadbetter www.rpden.net |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,556
|
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"? |
#2 |
Member
Join Date: Mar 2008
Location: Richmond, Va
Posts: 79
|
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.
Alvin Leadbetter www.rpden.net |
#3 |
Member
Join Date: Mar 2008
Location: Richmond, Va
Posts: 79
|
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 Alvin Leadbetter www.rpden.net |
#4 |
|
|