• 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

-1 to all knowledge skills

Let's see, the closest similar code snippet I have is at pre-traits/5000 with the following:

Code:
foreach pick in container where "thingid.skKnow"
   if (compare(lowercase(eachpick.field[domDomain].text),"arcane") <> 0) then
      perform eachpick.field[trtRoll].modify[+,1,"Your Edge Name"]
   endif
nexteach

So obviously you need to change the +, 1 to -,1 and otherwise you should just be able to remove the if and endif lines completely, since you want it to apply to all of them. So something like:

Code:
foreach pick in container where "thingid.skKnow"
      perform eachpick.field[trtRoll].modify[1,1,"Name of the thing that does this"]
nexteach
 
There's a typo in zarlor's code. Here's a corrected and tested version.

Code:
foreach pick in container where "thingid.skKnow"
      perform eachpick.field[trtRoll].modify[-,1,"Name of the thing that does this"]
nexteach
 
Back
Top