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 -
I get -
Any suggestions?
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?