See how you have traitcost = 4 in your script?
How about storing that in a field whose value you can define in thing_attributes.dat and thing_traits.dat?
Add this to the traits component in traits.str:
Code:
<field
id="trtCPCost
name="CP Cost Multiplier"
type="derived">
</field>
replace this in your script:
with this:
Code:
traitcost = field[trtCPCost].value
and in each attribute and derived trait:
Code:
<fieldval field="trtCPCost" value="4"/>
but on the void one, instead set it equal to 6.