• 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

How do I add a +2 to a specific Knowledge skill?

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 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
 
Back
Top