Penalty damage?

Hi. I'm making a game where there is an enemy that can only take damage from a specific attack. I'd like to add a penalty in the form of an HP loss if the player tries to attack with any other attack. Is there a relatively easy way to achieve this?
For an instance. Player use Fire on Mirror knight. Player takes 10 damage: Mirror knight takes 0 damage.
Player uses Hammer blow on Mirror knight. Mirror knight takes 9999 damage: Player takes 0 damage.


Thank you in advance.
Yes but it will require Yanfly’s Element Core. If you haven’t used plugins yet don’t sweat it, they’re usually very simple to use. You’re most likely going to end up needing quite a few plugins since mv’s core functions are pretty lacking.
Yes but it will require Yanfly’s Element Core. If you haven’t used plugins yet don’t sweat it, they’re usually very simple to use. You’re most likely going to end up needing quite a few plugins since mv’s core functions are pretty lacking.
Thank you. This is exactly what I needed. There will be quite a lot of writing, since my game currently has over 70 elements, but just knowing that it's possible is getting me fired up. 🙂
Glad I could help.

Original thread: https://forums.rpgmakerweb.com/threads/penalty-damage.125666/