I have added new skills, but have done nothing with the calculation logic. The only logic so far is with Def stats and the Condition Track.
Jay, I do have a question on a JavaScript (I barely know what I am doing there). With Reflex DEF, I need to choose between one of two values. Either "heroicLevel" or "armorBonus". I have tried the following script, which doesn't work.
Code: Select all
<property name="heroicOrArmorBonus" type="SCRIPT">
<description>Not setup yet. If the character is not wearing armor, heroic level. If wearing armor, then use armor bonus. Current formula is just heroic Level.</description>
<script>JavaScript::
var Java = new JavaImporter(net.rptools.chartool.model.db, net.rptools.chartool.model.property,
java.lang, java.util, java.math, javax.swing);
with (Java){
var value = root.heroicLevel;
if(root.armorBonus != null) {
if (root.armorBonus > 0) {
value = root.armorBonus;
}
}
new BigDecimal(value);
}</script>
</property>
Thanks,
-David