• 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

Custom merit to check for specialties

Noctivagus

Active member
Hey folks,

Sorry if this has been answered elsewhere, but nothing pertinent came up on a quick forum search.

I'm trying to add a custom merit using the Editor tool that checks for a skill specialty. The specific merit I'm adding is from Slashers - Weaponry Monomaniac - which requires one dot in Weaponry and a weapon specialty. How would this be coded as a prerequisite?

Thanks for your help!
Steve
 
Interesting question. I think Rob is the person who's able to answer it - maybe you should send him a PM.
 
You can look at a number of things in Changeling for an example of how to iterate through the various specializations a character possesses. For example, the free Empathy specialty conferred by the Court of the South. The logic there is significantly more complex than you need for a simple validation rule, but the value of those examples is in seeing how the specializations are processed via a script.

Taking that "foreach" logic and adapting it to the validation rule you need simply entails looking for a specialization tied to the Weaponry skill. If such a specialization is found, the merit is valid. Anything else is invalid. So the resulting validation rule will look like below:
Code:
foreach pick in hero from Specialize
    validif (eachpick.tagis[Skill.sWeaponry] > 0)
    nexteach
 
Back
Top