RMV - Enemy damaged by a specific weapon type - How can I do this?

Hello!

I just wanted to know how could I create an enemy that gets damaged only by a specific weapon.

For Instance:

I want to create a battle scene where the enemy is in the 'high ground' using ranged attacks to hit the player. And I want that the only 'Possible Way' of hitting that enemy is using a bow, if you try to use regular attacks with -let's say- a sword, it won't damage the enemy or the attack gets null.

How can I achieve this? Thanks!
By using elements in database of MV. I did similar thing, but for skills.
General setup:

Enemy setup:

I reduce regular damage (Magic and Melee) to 20% of actual damage, but ghost from divine damage gets 999% wich is you might use to your weapon.
Thank you! It was really useful.

I will continue to study these elements. But I managed to accomplish what I initially wanted thanks to you!😅🙂

Original thread: https://forums.rpgmakerweb.com/threads/rmv-enemy-damaged-by-a-specific-weapon-type-how-can-i-do-this.128570/