Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<eval index="2" phase="Traits" priority="10000">
<before name="Calc resLeft"/>
<after name="Bound trtUser"/><![CDATA[
[B][U]~if this skill is not added directly to the hero (i.e. an advance), skip it entirely[/U][/B]
[B][U]if (origin.ishero = 0) then[/U][/B]
var traitlevel as number
var traitcost as number
var finalvalue as number
traitlevel = field[trtUser].value
traitcost = 1
finalvalue = traitcost / 2 * (traitlevel * traitlevel + traitlevel)
hero.child[resCP].field[resSpent].value += finalvalue
]]></eval>
<eval index="2" phase="Traits" priority="10000">
<before name="Calc resLeft"/>
<after name="Bound trtUser"/><![CDATA[
[B][U]~if this skill is not added directly to the hero (i.e. an advance), skip it entirely[/U][/B]
[B][U]if (origin.ishero = 0) then[/U][/B]
[B][U]done[/U][/B]
[B][U]endif[/U][/B]
var traitlevel as number
var traitcost as number
var finalvalue as number
traitlevel = field[trtUser].value
traitcost = 1
finalvalue = traitcost / 2 * (traitlevel * traitlevel + traitlevel)
hero.child[resCP].field[resSpent].value += finalvalue
]]></eval>
done
endif
I still get this after the data set loads
Attempt to use an 'additem' script within a table with no valid 'addthing' for portal '_tableadd_'
I have some theories about this, but I honestly can't be sure without seeing your data files. This means you're doing something you're not supposed to, and the compiler probably should be yelling at you about it - but isn't.