In RPGM MZ, Is there a way to make an enemy die after a number of physical attacks instead of lowering the enemy's HP?

I'm very new to RPG Maker MZ. Been using it for less than a month. Slowly learning things with video tutorials and people who have asked questions in the forums. I've found no results on google or forums to say if this is possible without plugins or coding knowledge. Is there a way to do it?

I want to make an enemy that needs to be hit with a certain amount of physical attacks before they die. Is this possible, or would I have to create a new skill that is specific to the fight this would take place in, and have the player use that?
there are several ways how this could be handled, each having their own advantages and disadvantages.

one way is to make the enemy immune to magical attacks by setting the magical damage rate to 0%, and then test with different physical damage rate and HP numbers until you have the number of hits you want. Bur depending on your skills that might not work how you want.

The other way would be to make the enemy immune to everything, give each physical skill a common event to count a variable up and have troop events check the variable before killing the specific enemy. However that will cause some skills to result in "no damage" messages.

coding knowledge and action sequence can make it easier to handle, but as always it depends on the details.
Dont show hp for that character, give the amount of hits you want it to die in or make it random. Make everything do 1hp max a full turn. They will die in X attacks. No need to complicate it.

And add that if no attacks are done it takes 1 hp. To make sure it does in fact die.

Original thread: https://forums.rpgmakerweb.com/threads/in-rpgm-mz-is-there-a-way-to-make-an-enemy-die-after-a-number-of-physical-attacks-instead-of-lowering-the-enemys-hp.181018/