• 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

Bootstrapping - Special that bootstraps feat

TCArknight

Well-known member
An issue I'm running into:

I've got the Occupation feat bootstrapping the Adventurer special if the User.OccAdvent tag is present on the hero.

This works fine until I add a bootstrap to the Adventurer special to provide a choice of bonus feats. With this code -
Code:
  <thing id="fOccupatn" name="Occupation" compset="Feat" uniqueness="unique">
    <fieldval field="ftCandExpr" value="User.Occupat"/>
    <usesource source="srcD20Mod"/>
    <tag group="fCategory" tag="catOcc" name="Occupation"/>
    <tag group="User" tag="OccAdven" name="Occupation - Adventurer"/>
    <bootstrap thing="xOccAdven">
      <containerreq phase="PreLevel" priority="10000"><![CDATA[User.OccAdven >= 1]]>
        <after name="Add Occupation"/>
        </containerreq>
      </bootstrap>
    <eval phase="PreLevel" priority="5000" name="Add Occupation"><![CDATA[       doneif (compare(field[fChosen].chosen.field[name].text,"") = 0)

       ~get the chosen occupation and store it in a variable
       var Choice1 as string
       var C1Len as number
       var C1thing as string
       var result as number       

       Choice1 = field[fChosen].chosen.field[name].text
       C1thing = field[fChosen].chosen.idstring
       C1Len = length(C1thing) - 1
       C1thing = "User." & right(C1thing,C1Len)
       perform hero.assignstr[C1thing]]]></eval>
    </thing>

  <thing id="xOccAdven" name="Adventurer" compset="Special">
    <usesource source="srcD20Mod"/>
    <tag group="User" tag="Occupat" name="Occupation"/>
    <tag group="Helper" tag="ShowSpec"/>
    <bootstrap thing="fAdvBonus"></bootstrap>
    </thing>

I get -
Condition test for thing 'xOccAdven' (PreLevel/10000) is after its bootstraps (PreLevel/10000)

Any suggestions?
 
Back
Top