View Single Post
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,502

Old September 11th, 2017, 05:04 PM
So, I have an eval rule for calculating health that works for all but two races, adding a base value to their Endurance skill rank. Those two races, one uses a different formula based on the same variables, and the other works entirely different. The last case, A.I. characters, is a future endeavour anyhow, but I suspect people will want to do the amorphs. What's the best way to override the value? Just add an Eval script that overwrites the value?

Code:
<component
    id="Race"
    name="Race"
    autocompset="no">

    <!-- Base Health value -->
    <field
      id="baseHealth"
      name="Base Health"
      type="static">
      </field>
    
<!-- .... -->
    
    <!-- Determine base health -->
    <eval index="2" phase="Traits" priority="4001"><![CDATA[
      #traitbonus[trHealth] = field[baseHealth].value + #trait[skEndure]
    ]]></eval>

    </component>
The amorph uses a slightly different formula of "2 + Endurance * 2". Currently, it has its own Eval script to recalculate health, but that seemed a bit clumsy.
Duggan is offline   #1 Reply With Quote