RPG Maker Forums

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
Code:
a.result.isCritical()
but I have a sneaking suspicion that only applies to VXAce.

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?

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,037
Messages
1,018,464
Members
137,821
Latest member
Capterson
Top