Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
How would I script this?
|
#1 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
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 Code:
foreach pick in container where "thingid.skKnow" perform eachpick.field[trtRoll].modify[1,1,"Name of the thing that does this"] nexteach Lenny Zimmermann Metairie, LA, USA Data files authored (please let me know if you see any issues with any of these if you have/use them): Official (In the downloader) 50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome Coming Eventually Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me) |
#2 |
Junior Member
Join Date: Jul 2013
Posts: 26
|
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 |
#3 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
Doh! Thanks, Mauron!
Lenny Zimmermann Metairie, LA, USA Data files authored (please let me know if you see any issues with any of these if you have/use them): Official (In the downloader) 50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome Coming Eventually Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me) |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
You are gods among men thank you.
|
#5 |
Thread Tools | |
Display Modes | |
|
|