View Single Post
geoffnsandiego
Junior Member
 
Join Date: Apr 2017
Posts: 7

Old April 10th, 2017, 09:26 AM
Thanks Mathias. I put the lines in and now I'm getting an odd error:

Syntax error in 'eval' script for Component 'Attribute' (Eval Script '#2') on line 4
- Extra characters at end of line

Here's the information in my Traits.str file

<!-- 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[
if (field[trtUser].value <= 13) then
field[trtAPCost].value += 15 * field[trtUser].value
else field[trtAPCost.value += 15 *(field[trtUser].value * field[trtUser].value - 25 * field[trtUser].value + 166) / 2
endif
hero.child[resCP].field[resSpent].value += field[trtAPCost].value
]]></eval>

Any clue as to what I did wrong?

Geoff
geoffnsandiego is offline   #10 Reply With Quote