I put together the following formula:
if ($gameVariables.value(1) > b.mdf) {$gameVariables.value(1) + a.atk - b.def} else {a.atk - b.def}
I also have it run a common event that sets variable 1 to Math.randomInt(6) + 1
Unfortunately the event is run after damage calculation.
How do I set a random number which is later referenced in the same skill?
if ($gameVariables.value(1) > b.mdf) {$gameVariables.value(1) + a.atk - b.def} else {a.atk - b.def}
I also have it run a common event that sets variable 1 to Math.randomInt(6) + 1
Unfortunately the event is run after damage calculation.
How do I set a random number which is later referenced in the same skill?