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