View Single Post
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old July 30th, 2014, 10:16 AM
Ok continuing my way through the tutorial and I'm in the section on Encumbrance and to the part where you add the identity tags to the attribute component.

I add the line

Code:
<identity group="Attribute"/>
To the attribute component and I get the following error.

Quote:
Hero Lab was forced to stop compilation after the following errors were detected:

File: traits.str (line 197) - Encountered unknown element tag 'identity'
One or more timing errors were identified. Please review the timing report and correct the errors. You can access the report under the 'Develop' menu or by clicking this link.
my Attribute component looks like this

Code:
  <component
    id="Attribute"
    name="Attribute"
    autocompset="no">

    <!-- Attributes have a minimum trait value of 1 -->
    <eval index="1" phase="Initialize" priority="3000"><![CDATA[
      field[trtMinimum].value = 1
      ]]></eval>

    <!-- Each attribute point above one that is allocated by the user costs 7 CP -->
    <eval index="2" phase="Traits" priority="10000">
      <before name="Calc resLeft"/>
      <after name="Bound trtUser"/><![CDATA[
      hero.child[resCP].field[resSpent].value += (field[trtUser].value - 1) * 7
      ]]></eval>
      <identity group="Attribute"/>
    </component>
Line 197 is the line where the tag was added. Am I missing something?
AndrewD2 is offline   #3 Reply With Quote