I am attempting to make the L5r system for HL I have made it to the point were the Rings (derived traits of the abilities) come into play but I can not make the traits work right I have the code at this point which results in a value of 0 for the trait when it should be the lower of the two abilities it is tied to; my example is the Air Ring (trait) which pulls from the abilities Awareness and Reflexes (which the system refers to as traits) ie Rings and traits.
<!-- Air Trait -->
<thing
id="trAir"
name="Air"
compset="Trait"
isunique="yes"
description="Air is mercurial and enigmaticm the element of intuition and understanding. Air is represented y the twin Traits of Awareness and Reflexes.">
<fieldval field="trtAbbrev" value="Air"/>
<eval index="1" phase="Traits" priority="4000">
<before name="Derived trtFinal"/>
<after name="Calc trtFinal"/><![CDATA[
~Air is the lower of the character's Awareness and Reflexes.
~minimum(field[attrAwa].value, field[attrRef].value)
]]></eval>
</thing>
<!-- Air Trait -->
<thing
id="trAir"
name="Air"
compset="Trait"
isunique="yes"
description="Air is mercurial and enigmaticm the element of intuition and understanding. Air is represented y the twin Traits of Awareness and Reflexes.">
<fieldval field="trtAbbrev" value="Air"/>
<eval index="1" phase="Traits" priority="4000">
<before name="Derived trtFinal"/>
<after name="Calc trtFinal"/><![CDATA[
~Air is the lower of the character's Awareness and Reflexes.
~minimum(field[attrAwa].value, field[attrRef].value)
]]></eval>
</thing>