Critical hit skil

I tried searching but couldn't find exactly what I'm looking for. Is there a way to force a critical hit within a skill's damage formula? I assume you'd still need to define the damage formula as well.

Thanks in advance
You can do something like this:

b.result().critical = true; this.applyCritical(a.atk * 4 - b.def * 2)
I.e.
  • Flag the result of this action as a crit; then
  • Return a damage value of a.atk * 4 - b.def * 2 scaled by the crit multiplier.
Replace a.atk * 4 - b.def * 2 with whatever is appropriate for your skill~

Also, set the skill to Critical Hits: No unless you want it to have a chance to "double crit".

[Edit: replaced target.result() with b.result(). Technically the core scripts allow target to be used interchangeably with b in the damage formula, but plugins might affect that, b is shorter, and it's good to be consistent. 😮‍💨]
You can do something like this:

target.result().critical = true; this.applyCritical(a.atk * 4 - b.def * 2)

I.e.
  • Flag the result of this action as a crit; then
  • Return a damage value of a.atk * 4 - b.def * 2 scaled by the crit multiplier.
Replace a.atk * 4 - b.def * 2 with whatever is appropriate for your skill~

Also, set the skill to Critical Hits: No unless you want it to have a chance to "double crit".
Awesome, that works perfectly. Thank you!
You're welcome! 👋

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/critical-hit-skil.176264/