Member
Join Date: Nov 2008
Location: Ocean Springs, MS, USA
Posts: 42
|
If I can solve two more conundrums, I can offer the Ultimate Characters Guide (Mystical Throne Entertainment) dataset. One of them is just a matter of doing the work (I'm lazy). The other is below:
I need an Edge to check for a Knowledge skill. Not a particular Knowledge skill, just to see if there is a Knowledge skill at d8 present. Below is the code I have now, but it doesn't work. The dataset will load, but the program invalidates the Knowledge requirement, even if the character has it. foreach pick in hero where "thingid.skKnow" if (eachpick.field[trtFinal].value >= 4) then endif nexteach if (@ispick <> 0) then altpick.linkvalid = 0 endif |
#1 |
Senior Member
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819
|
What about:
Code:
foreach pick in hero where "thingid.skKnow" validif (eachpick.field[trtFinal].value >= 4) nexteach The next little if loop is just an error trap that doesn't make anything valid, either. In fact it makes sure that if nothing valid was found that the value of "altpick.linvalid" is set to 0, so NOT valid. It's ensures it's not valid if nothing valid was found which is probably not needed in this case but in a case where you might have needed more than one thing to be valid it's probably useful to make sure that only when all of those multiple things were valid would a true valid state slip through, if I read that right. 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 |
Member
Join Date: Nov 2008
Location: Ocean Springs, MS, USA
Posts: 42
|
Okay, I see (I think). Thanks!
|
#3 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
I usually put a ? at the end of know as it is a wildcard.
Nevermind, I forgot that people still type in the knowledge skills in the core set. I have been using my modded version for so long that I forgot that people do not. All that you need to do is reference the Knowledge skill itself. Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. Last edited by SeeleyOne; February 6th, 2017 at 04:28 PM. |
#4 |
Thread Tools | |
Display Modes | |
|
|