Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old June 22nd, 2010, 03:45 PM
I've got a feat that lets you choose two of 4 Craft skills.

How can I implement this? All I see is feats with one chooser....
TCArknight is offline   #1 Reply With Quote
Lawful_g
Senior Member
Volunteer Data File Contributor
 
Join Date: Mar 2007
Posts: 1,245

Old June 23rd, 2010, 08:33 AM
Use a custom expression "thingid.XXXX|thingid.XXX" where XXX is the unique id of each of the craft skills.
Lawful_g is offline   #2 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old June 23rd, 2010, 09:03 AM
True, that'll let me choose the craft skill for one dropdown, but is there a way to have a second dropdown on the same feat?
TCArknight is offline   #3 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old June 23rd, 2010, 10:26 AM
I'm afraid that feats don't have access to a second selector. You can create a helper feat and bootstrap it from the main feat to offer the second selector.

Since I believe you're familiar with using a text editor to alter the things defined for HL, you can add the following line:

<tag group="Helper" tag="Helper"/>

among the rest of the tags, in order to make your helper feat not show up in the list of feats the user can select from.
Mathias is offline   #4 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old June 23rd, 2010, 10:56 AM
I see!

I can create a 'first choice' feat and a 'second choice' feat. The main feat can bootstrap each of the two choice feats and I can have the livename of the main feat modify itself based on the choices for the display.

how would I hide the helper feats from the summary and char. sheet?
TCArknight is offline   #5 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old June 23rd, 2010, 01:11 PM
Helper.Helper should already handle hiding them from display.

Actually, you can have the first choice on the main feat and the second choice on the helper, but two identical helpers works, too.
Mathias is offline   #6 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old June 23rd, 2010, 05:37 PM
Mathias,

It's working to let me add and make the choices, but they're not being hidden.

This is what I've got:
Code:
  <thing id="fBuilder" name="Builder" description="{b}Benefit{/b}: +2 bonus for 2 of 4 Craft skills" compset="Feat" uniqueness="useronce">
    <usesource source="srcD20Mod"/>
    <tag group="fCategory" tag="General" name="General" abbrev="General"/>
    <bootstrap thing="fChsBld1"></bootstrap>
    <bootstrap thing="fChsBld2"></bootstrap>
    <eval phase="PreLevel" priority="5000"><![CDATA[
      ~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)

      ~#skillbonus[choice 1] += 2
      ~#skillbonus[choice 2] += 2]]></eval>
    </thing>

  <thing id="fChsBld1" name="Builder - First Choice" compset="Feat">
    <fieldval field="ftCandExpr" value="thingid.kCraftChem|thingid.kCraftElec|thingid.kCraftMech|thingid.kCraftStru"/>
    <usesource source="srcD20Mod"/>
    <tag group="fCategory" tag="featHelp" name="Helper Feat"/>
    <tag group="Helper" tag="Helper"/>
    </thing>

  <thing id="fChsBld2" name="Builder - Second Choice" compset="Feat">
    <fieldval field="ftCandExpr" value="thingid.kCraftChem|thingid.kCraftElec|thingid.kCraftMech|thingid.kCraftStru"/>
    <usesource source="srcD20Mod"/>
    <tag group="fCategory" tag="featHelp" name="Helper Feat"/>
    <tag group="Helper" tag="Helper"/>
    </thing>
Also, how do I get the value I need for the #skillbonus[] macro?
TCArknight is offline   #7 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old June 24th, 2010, 07:52 AM
You'll put the #skillbonus[] entries on the helpers.

I'd suggest creating the helpers by starting with skill focus - that's what this really is - two skill focus feats for the price of one, with limited selection options.
Mathias is offline   #8 Reply With Quote
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old June 24th, 2010, 07:57 AM
I was incorrect about Helper.Helper hiding things from the printout - it handles hiding things from user selection. Sorry about that.

Helper.FtHide is used to hide them in the printout and feats summary panel.
Mathias is offline   #9 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old June 24th, 2010, 08:58 AM
Well, it also appears to hide it from the feat selection completely.

It adds, but only the main feat appears on the Feat tab. The helpers don't and I get a popup error message about:

Attempt to access non-live child pick 'fChsBld1' from script

Suggestions?

Thanks!
Thomas
TCArknight is offline   #10 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 03:05 AM.


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