Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,550
|
I've tried quite a few code constructs, but I can't quite get it to work.
I can spin through a foreach and find the Knowledge skill I want, but it won't let me use the loop variable in the modification statement. Am I even close? foreach pick in hero where "thingid.skKnow" if (compare(lowercase(eachpick.field[domDomain].text),"arcana") = 0) then perform #traitprof[eachpick,+,2,"Old Family"] ~hero.childfound[eachpick].field[trtNoStack].modify[+,2,"Old Family"] endif nexteach |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,550
|
I got it...
foreach pick in hero where "thingid.skKnow" if (compare(lowercase(eachpick.field[domDomain].text),"arcana") = 0) then perform eachpick.field[trtRoll].modify[+,2,"Old Family"] endif nexteach |
#2 |
|
|