View Single Post
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old September 16th, 2017, 01:36 PM
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.

Last edited by TCArknight; September 16th, 2017 at 01:40 PM.
TCArknight is offline   #2 Reply With Quote