- Joined
- Sep 15, 2020
- Messages
- 4
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
I'd like to be able to use a different damage formula for a given skill if it crits. I recall once seeing something along the lines of
but I have a sneaking suspicion that only applies to VXAce.
Currently my formula looks like this:
(The first if statement is unrelated and is only included for the sake of completeness.)
I spent some hours now searching for an answer and have come up dry. Is there a way to accomplish this in MV?
Code:
a.result.isCritical()
Currently my formula looks like this:
Code:
if (b.enemyId() === 8) $gameSwitches.setValue(10,true); if (b.enemyId() === 1 && a.result.isCritical()) a.atk * 100 - b.def * 2 else a.atk * 4 - b.def * 2
(The first if statement is unrelated and is only included for the sake of completeness.)
I spent some hours now searching for an answer and have come up dry. Is there a way to accomplish this in MV?