Hi all!
I'm playing around with a custom dataset that has a "Mental Initiative" stat.
1) I created this and it appears to be under the Miscellaneous Stats on the Abilities Tab, even though it's not visibe (see Misc Stat.jpg; the gap after Initiative is the MentalInit)
Code:
<thing
id="MentalInit"
name="Mental Initiative"
compset="Initiative">
<!-- Automatically add the resource to every actor -->
<tag group="explicit" tag="11"/>
<!-- Use the starting ability slots as our initial maximum -->
<eval index="1" phase="PostAttr" priority="1000"><![CDATA[
if ( #attrmod[aINT] > #attrmod[aCHA] ) then
field[tInitAttr].value = #attrmod[aINT]
else
field[tInitAttr].value = #attrmod[aCHA]
endif
]]></eval>
<eval index="2" phase="Render" priority="15000"><![CDATA[
if ( #attrmod[aINT] > #attrmod[aCHA] ) then
field[tInitAtNm].value = hero.childfound[aINT].field[name].text
else
field[tInitAtNm].value = hero.childfound[aCHA].field[name].text
endif
]]></eval>
</thing>
2) it appears that no matter the timing, the second script doesn't change the "Dexterity" which appears in the
tInitAtNm field to either other stat Name.
ANy help or suggestions?
Thanks!
TC