I am now looking at the derived traits and how to adapt them, but am confused by the sample data set.
The health trait (HP) shows in the top (form_static.dat) using the following code:
@text = "HP: " & herofield[acHPSumm].text
However, that does not change the derived trait of Health, which shows 0. The code for the health trait is mostly unchanged:
<!-- Health Trait -->
<thing
id="trHealth"
name="Integrity"
compset="Trait"
isunique="yes"
description="Description goes here">
<fieldval field="trtAbbrev" value="Int"/>
<tag group="explicit" tag="1"/>
<tag group="User" tag="Power"/>
<!-- Calculate the Health trait as appropriate -->
<eval value="1" phase="Traits" priority="4000">
<before name="Derived trtFinal"/>
<after name="Calc trtFinal"/><![CDATA[
field[trtBonus].value = 0
]]></eval>
</thing>
If I try to change that to display the acHPSumm, it gives me an error. So what exactly is this trait supposed to do? I'd like it to display the characters "HP" but that's not what it seems to do in the sample set.
The health trait (HP) shows in the top (form_static.dat) using the following code:
@text = "HP: " & herofield[acHPSumm].text
However, that does not change the derived trait of Health, which shows 0. The code for the health trait is mostly unchanged:
<!-- Health Trait -->
<thing
id="trHealth"
name="Integrity"
compset="Trait"
isunique="yes"
description="Description goes here">
<fieldval field="trtAbbrev" value="Int"/>
<tag group="explicit" tag="1"/>
<tag group="User" tag="Power"/>
<!-- Calculate the Health trait as appropriate -->
<eval value="1" phase="Traits" priority="4000">
<before name="Derived trtFinal"/>
<after name="Calc trtFinal"/><![CDATA[
field[trtBonus].value = 0
]]></eval>
</thing>
If I try to change that to display the acHPSumm, it gives me an error. So what exactly is this trait supposed to do? I'd like it to display the characters "HP" but that's not what it seems to do in the sample set.