I came across this thread as I was trying to work on something similar for the Lankhmar: City of Thieves book I am working on. After looking over your code and beating it over the head I got all of this to work. So here is my version, you can replace with necessary wordage of course.
First the Derived Trait: Corruption
Code:
<thing id="trLANCorr" name="Corruption" description="Measures how corrupt from Black Magic failures." compset="Trait" uniqueness="unique">
<fieldval field="trtAbbrev" value="Cor"/>
<fieldval field="trtBonus" value="0"/>
<usesource source="Lankhmar"/>
<tag group="DashTacCon" tag="Basics" name="Basics" abbrev="Basics"/>
<tag group="DashTacCon" tag="Traits" name="Traits" abbrev="Traits"/>
<tag group="explicit" tag="5" name="5"/>
</thing>
And now the Tracker (just like the Benny's tracker):
Code:
<thing id="trkCorr" name="Corruption" description="Measures how corrupt from Black Magic failures." compset="Tracker">
<fieldval field="trkMin" value="0"/>
<fieldval field="trkMax" value="6"/>
<usesource source="Lankhmar"/>
<tag group="Helper" tag="Bootstrap"/>
<tag group="AdjustShow" tag="Increment"/>
<tag group="AdjustShow" tag="Menu"/>
<tag group="Helper" tag="UserAdjust"/>
<eval index="1" phase="Setup" priority="8000">
<before name="Calc trtFinal"/><![CDATA[
var Dmnt as number
Dmnt += field[trkUser].value
perform #traitadjust[trLANCorr,+,Dmnt,"Corruption"]
]]>
</eval>
</thing>
There may be a few tags on the Tracker that are unnecessary so if they can be removed, hopefully someone posts that result