Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
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.... |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Mar 2007
Posts: 1,245
|
Use a custom expression "thingid.XXXX|thingid.XXX" where XXX is the unique id of each of the craft skills.
|
#2 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
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?
|
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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. |
#4 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
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? |
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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. |
#6 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
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> |
#7 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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. |
#8 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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. |
#9 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
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 |
#10 |
|
|