Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - User Projects

Notices

Reply
 
Thread Tools Display Modes
jonbartels
Member
 
Join Date: Aug 2008
Posts: 71

Old March 31st, 2010, 03:53 AM
I'm using the editor to input an entitlement that has an prerequisite of a Craft: Construction.
What is the coding for it.
jonbartels is offline   #1 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old March 31st, 2010, 12:48 PM
Please make sure to point out what game system you're using when posting in this general forum. If I hadn't been discussing this with you in the WoD forum, I wouldn't have context to be able to help out. :-)

Oh, and you're welcome to post stuff like this in the WoD forum if you want, as it's of specific interest to WoD players. :-)

The first thing you need to do is create the new specialization so that a dependency can be established upon it. Go to the Specialization tab in the Editor and create it as a copy of an existing Crafts specialization, such as Painting. I'm going to assume you give it the id "zConstruct".

If you add any specialization to the character, the identity tag of that specialization is automatically forwarded up to the character. So you can easily verify whether a particular specialization is on the character by checking for that tag.

You can look at the Bishopric of Blackbirds for an example of a pre-requisite on a skill. Switching that to a specialization is easy. Copy the pre-req script and change the "validif" statement to check for the tag instead of the skill level. The new line will look like below.
Code:
validif (hero.tagis[Specialize.zConstruct)
Since you don't have to check for a skill rating with a specialization, though, there is an even easier way to do this. Click the button to add a "Pick-Req" instead of a general "Pre-Req" to your entitlement. Enter the id of your specialization (zConstruct). And save. That's all you need to do to establish a pre-req on the existence of another selection for the character.

Hope this helps!
rob is offline   #2 Reply With Quote
Reply

Thread Tools
Display Modes

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 11:17 PM.


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