• 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

Conditional BuildOpt

MagicSN

Well-known member
Hi!

Does anybody have an idea how I can solve this?

I have a Feat like this:

<thing id="ftWrlIn1" name="Invocation 1" description="Choose an Invocation." compset="ClassFeat">
<fieldval field="usrCandid1" value="component.BuildOpt & (thingid.fWrlBkAn|thingid.fWrlSilIm|thingid.fWrlShd|thingid.fWrlAgB|thingid.fWrlElS|thingid.fWrlRpB|thingid.fWrlBeSpe|thingid.fWrlBInf|thingid.fWrlDsSf|thingid.fWrlDtMg|thingid.fWrlEyRk|thingid.fWrlFlsLf|thingid.fWrlBane|thingid.fWrlVOCM|thingid.fWrlGOTM|thingid.fWrlDvSt)"/>
<tag group="Hide" tag="Special"/>
<bootstrap thing="fWrlBkAn"></bootstrap>
<bootstrap thing="fWrlSilIm"></bootstrap>
<bootstrap thing="fWrlShd"></bootstrap>
<bootstrap thing="fWrlAgB"></bootstrap>
<bootstrap thing="fWrlElS"></bootstrap>
<bootstrap thing="fWrlRpB"></bootstrap>
<bootstrap thing="fWrlBeSpe"></bootstrap>
<bootstrap thing="fWrlBInf"></bootstrap>
<bootstrap thing="fWrlDsSf"></bootstrap>
<bootstrap thing="fWrlDtMg"></bootstrap>
<bootstrap thing="fWrlEyRk"></bootstrap>
<bootstrap thing="fWrlFlsLf"></bootstrap>
<bootstrap thing="fWrlBane"></bootstrap>
<bootstrap thing="fWrlVOCM"></bootstrap>
<bootstrap thing="fWrlGOTM"></bootstrap>
<bootstrap thing="fWrlDvSt"></bootstrap>
<eval phase="Traits" priority="1000"><![CDATA[
doneif (activated = 0)
]]>
<after name="Calc trtFinal"/>
</eval>
</thing>

which is bootstrapped on the condition that the level of the character is a specific level. This works fine. But now I want one of the options, fWrlBkAn,
only being displayed if a different Feat does NOT have the Helpers.Disable tag (the other feat is the pact type of the warlock, and only if he is a Tome Warlock the Book of Ancient Shadows Invocation should be choosable, else only the other Invocations). Currently I have the requirement only as text in the description.

Any help would be appreciated, thanks in advance!

Best regards,
Steffen
 
I just tried this called in the feats for chain warlock and blade warlock (with the BuildOpt which should disappear gone):

perform hero.child[ftWrlIn1].setfocus
focus.field[usrCandid1].text = "component.BuildOpt & (thingid.fWrlSilIm|thingid.fWrlShd|thingid.fWrlAgB|thingid.fWrlElS|thingid.fWrlRpB|thingid.fWrlBeSpe|thingid.fWrlBInf|thingid.fWrlDsSf|thingid.fWrlDtMg|thingid.fWrlEyRk|thingid.fWrlFlsLf|thingid.fWrlBane|thingid.fWrlVOCM|thingid.fWrlGOTM|thingid.fWrlDvSt)"

But with this just ALL BuildOpts suddenly appeared, so this seems not to work.
 
Have that other feat assign a tag to the hero if it's not disabled, and then have your conditional bootstrap check for that tag.
 
For post 2, I see a space near the very end that doesn't look like it belongs.

And I highly recommend that you create a single tag that means "we're eligible for this", and assign it to everything that this ability can choose from, instead of building massive thingid lists.
 
Back
Top