I think this should do it.....
Quote:
<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 = 0
]]></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 * 7
]]></eval>
</component>
|
The values should start at 0, and only Cost CP as increase. (before, the
(field[trtUser].value -1) * 7 the Spent would be -7 for a 0, and since the the CP Cost is -Spent, it would add 7 CP instead.