MZ Loot Earned on Exact Damage Kill

Hey all! This is a fairly simple one, but I cannot for the life of me figure it out, even after multiple JavaScript tutorials.

I want monster loot to be obtained only when a player actor deals exactly enough damage to kill the enemy, no more, no less, along with a text popup, but still have the monster die when their HP hits less than or equal to zero.

For example, if an enemy has 8 HP, and a character does 12 damage, the enemy dies. A text popup over the enemy's head says "OVERKILL" and there are no item drops. But if the character does 8 damage instead, reducing the enemy's HP to exactly 0, then the text popup says "PRECISION KILL" and item drops are given as normal.

Can anyone help? Anything will be welcome.

(Side note: I imagine this could be done by editing parameters on Yanfly's Overkill Bonus plugin, but that was for MV, and I only have MZ. Fossil doesn't have it listed as one of the supported plugins, either.)
(Side note: I imagine this could be done by editing parameters on Yanfly's Overkill Bonus plugin, but that was for MV, and I only have MZ. Fossil doesn't have it listed as one of the supported plugins, either.)
The list in the OP isn't exhaustive. I just tested the plugin and it seems to work fine.
Ooh, awesome. Thanks, I'll give it a try.

Original thread: https://forums.rpgmakerweb.com/threads/loot-earned-on-exact-damage-kill.136730/