I use Fossil 1.9 (the modified version), BattleCore and Damage Core. My code is this:
<damage formula>
var armourClass = target.atk;
var diceRoll = Math.randomInt(20) + 1 + user.def;
if diceRoll >= armourClass {value = (Math.randomInt(8) + 1 + user.mat);
} else {
value = 0;
}
</damage formula>
The error im getting is: this._damagePopup.push, which seems to be the engine trying to make a popup happen on the actor, but as it is in first person mode, it doesn't display and it crashes. It is resolved in Side battle
<damage formula>
var armourClass = target.atk;
var diceRoll = Math.randomInt(20) + 1 + user.def;
if diceRoll >= armourClass {value = (Math.randomInt(8) + 1 + user.mat);
} else {
value = 0;
}
</damage formula>
The error im getting is: this._damagePopup.push, which seems to be the engine trying to make a popup happen on the actor, but as it is in first person mode, it doesn't display and it crashes. It is resolved in Side battle