So I run a homebrew system that combines some parts of d20 with some parts of a vampire style system. Essentially Traits are purchased directly on a cumulative cost basis, so the cost for next trait increases by 1, each 1 that is purchased. These traits generally represent a +1 bonus to something. So for characters filling out points, I have them deal with checkboxes. each checkbox has a value, and they fill in each box up until they reaech their trait total. It will autocalculate the score for them. Someone with a trait raiting of 3 will get 6 character points of cost. Someone who goes hardcore on a single trait could get up to a 10, which would cost 55 Character Points. <tr>
<td class='sheet-left-align'> Physique</td>
<td><input class="sheet-traitcheckbox" name="attr_CostPhysique1" value="1" type="checkbox">
<input class="sheet-traitcheckbox" name="attr_CostPhysique2" value="2" type="checkbox">
<input class="sheet-traitcheckbox" name="attr_CostPhysique3" value="3" type="checkbox">
<input class="sheet-traitcheckbox" name="attr_CostPhysique4" value="4" type="checkbox">
<input class="sheet-traitcheckbox" name="attr_CostPhysique5" value="5" type="checkbox">
</td>
<td><input class="sheet-traitcheckbox" name="attr_CostPhysique6" value="6" type="checkbox">
<input class="sheet-traitcheckbox" name="attr_CostPhysique7" value="7" type="checkbox">
<input class="sheet-traitcheckbox" name="attr_CostPhysique8" value="8" type="checkbox">
<input class="sheet-traitcheckbox" name="attr_CostPhysique9" value="9" type="checkbox">
<input class="sheet-traitcheckbox" name="attr_CostPhysique10" value="10" type="checkbox">
</td>
<td><input disabled="true" type="number" class="sheet-short sheet-noedit" name="attr_CostAllPhysique"
value="@{CostPhysique1} + @{CostPhysique2} + @{CostPhysique3} + @{CostPhysique4} + @{CostPhysique5} +
@{CostPhysique6} + @{CostPhysique7} + @{CostPhysique8} + @{CostPhysique9} + @{CostPhysique10}"></td>
</tr>
However the cost math isn't useful for figuring out what the actual trait value is. Is there a way I can simply grab the greatest value out of all those checkboxes? Currently my players need to fill out their trait twice, once to do the math for costs, and again so that macros and other things will calculate the proper value. I'd like to be able to just grab the highest checkbox, and that have that pull into something else.