Skills Learned Based on Kill Count

I'd like to see if there's a way my characters can learn certain skills based on how many enemies that character kills, similar to how Final Fantasy 7 made you learn some of the limits. In FF7, Tifa learned Waterkick by killing a total of 96 enemies and later learned Dolphin blow by killing 96 more for a total of 192.

For example: say my main protagonist Real wants to unlock the skill Holy Laser. In order to do that, he would need to kill a total of 50 enemies. Once that requirement is met, he unlocks that skill. And if he wants to learn Holy Rain, he'd need to kill 50 more for a total of 100.

Is there a way I can do this by using common events or notes?
yes and no.
you can handle the whole thing with a common event, but you'll need to inject a call into either the battle system, or the battler's functions to the detect when an enemy dies, and then tally up how many occurrences of that have happened.

the quickest solution I can think of, is poking the enemy.die() function.
whatever needs to be done when the battler dies, will be called from there.

then, once you have that feed from the game itself, you can do the validation through a common event.

Original thread: https://forums.rpgmakerweb.com/threads/skills-learned-based-on-kill-count.89000/