Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - World of Darkness
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Noctivagus
Member
 
Join Date: Jul 2008
Posts: 30

Old November 5th, 2010, 05:08 PM
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
Noctivagus is offline   #1 Reply With Quote
Pali
Member
 
Join Date: Nov 2009
Posts: 68

Old November 10th, 2010, 11:53 AM
Interesting question. I think Rob is the person who's able to answer it - maybe you should send him a PM.
Pali is offline   #2 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old November 20th, 2010, 02:00 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
rob is offline   #3 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:16 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.