CapedCrusader
Well-known member
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
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