A couple of clarifications
Should the type for "advCost" be "static" or "derived"
In the CanAdvance component in advancement core, should the script be an "Eval" or a "Calculate"?
Right now I have advCost set to be "derived" and have an Eval Script. It didn't seem to be recognizing the Advance.Increase tag so I'm using Advance.Gizmo. I still have the problem of it recalculating the cost when I add a new advancement. I'll double check the ordering of my scripts again.
Code:
<eval index="5" phase="Traits" priority="5500"><![CDATA[
if (tagis[Advance.Gizmo]<> 0) then
origin.parent.field[advCost].value = round(linkage[basis].field[sklRoll].value/3, 0, -1)
debug "NEW advCost: " & origin.parent.field[advCost].value
debug "NEW sklRoll: " & linkage[basis].field[sklRoll].value
elseif (tagis[Advance.AddNew] <> 0) then
origin.parent.field[advCost].value = 1
endif
]]></eval>