• 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

How do I add a bonus to a specific Knowledge Skill

Erich

Well-known member
I'm trying to clean up some of the Space 1889 files before I release them and was wondering how to add a bonus to a specific knowledge skill.

Currently I am using a set of custom skills for the knowledge skills and am using eval scripts like this:
Code:
 perform #traitprof[sk89KLaw,+,1,"Colonial Office"]

What I would like to do is to get rid of the custom skills.
How would I replace the [sk89Law] parameter with a skKnowledge (law) parameter?

Thanks
-Erich
 
The one is definitely in the Common Codes thread, because it's, well, really common to run into that one. :)

To search for an appropriate Knowledge skill (in this case Astronomy) of d10 or higher:

Pre-reqs:
Message: Knowledge (Astronomy) d10 required.

Code:
Code:
foreach pick in hero where "thingid.skKnow"
   if (compare(lowercase(eachpick.field[domDomain].text),"astronomy") = 0) then
      validif (eachpick.field[trtFinal].value >= 5)
   endif
nexteach
 
Sorry, wrong one:

To find a Knowledge field (in this case Arcane) and then add a bonus (+2) to the roll:

Eval Script: Pre-Traits/5000 Timing: Before: Calc trtFinal

Code:
Code:
~go through all knowledge skills and find an "Arcane" one
foreach pick in hero where "thingid.skKnow"
   if (compare(lowercase(eachpick.field[domDomain].text),"arcane") = 0) then
      perform #traitroll[skKnow,+,2,"Highest Clearance"]
   endif
nexteach
 
Thanks zarlor,
That solved my issue.
I probably need to look into how the loops work in the editor, that might help a lot.

-Erich
 
Back
Top