|
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
How would you script it so lets say an edges needs Knowledge: Science, Navigation, or Occult at a d6?
|
#1 |
Senior Member
Join Date: Nov 2009
Posts: 891
|
Ah, this is a reason why I stopped making players fill in their Knowledge skills six years ago. I figured out what Knowledge skills were needed, by definition being those that are asked for by an Edge, and I made it be a skill. Then I modified Scholar to account for it. I also added in a few more. Not all of them get used every single campaign, but they are there and it makes times like this really easy. The other reason is that it is annoying to have to fill out the knowledge field every time. Plus, I can easily have a race add a specific knowledge.
So, I would script them like any other three skills. You get to go through the validation rigamarole and make it look for those three skills, and if it has them, add to the count. Offhand, I think that Tactician does it for Knowledge: Battle. You would copy that, and make three parts to look for those instead of Knowledge: Battle. You are lucky that it is for an "or". If it was an "and", you get to have three versions of the script, one per knowledge skill. Evil wins because good rolls poorly .... or the players are not paying enough attention to the game. |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,550
|
How about this?
Code:
var totalcount as number totalcount = 0 foreach pick in hero where "thingid.skKnow" if (compare(lowercase(eachpick.field[domDomain].text),"science") = 0) then if (eachpick.field[trtFinal].value >= 3) then totalcount += 1 endif endif if (compare(lowercase(eachpick.field[domDomain].text),"occult") = 0) then if (eachpick.field[trtFinal].value >= 3) then totalcount += 1 endif endif if (compare(lowercase(eachpick.field[domDomain].text),"navigation") = 0) then if (eachpick.field[trtFinal].value >= 3) then totalcount += 1 endif endif nexteach validif (totalcount >= 1) _ Currently In Development: Savage Pathfinder, SWADE Fantasy Companion Future Development: SWADE Super Powers Companion, SWADE Sci-Fi Companion _ Currently Running: Savage Unity Inc. (homebrew multiverse theme) Setting Files Supported: Deadlands: Reloaded, Flash Gordon, Gaslight, Hellfrost, Interface Zero 2.0, Seven Worlds, Slipstream, Solomon Kane Future Setting Files: Savage Judge Dredd Last edited by CapedCrusader; February 12th, 2017 at 04:31 PM. |
#3 |
|
|