Skill immunity=back to commands

Hello- I'm not 100% sure about this particular instance but I wanted to make a unique enemy that attacks from a window in the background- but is also immune to melee attacks and certain skills indefinitely.

I can't find anything in the enemy traits tab that specifies pure immunity for a particular skill or weapon- but I want to add some kind of message that interrupts the skill/attack command issued and reverts you back to using alternative commands.

Something like "You cannot perform this attack because the enemy is too far to reach!"

I'm might be missing something hence why I am avoiding asking for plugins. I think the program itself is capable of doing this without additional files.
You mean so they simply can't be targeted or all melee skills miss. the later can be done soley in the editor, the former needs a plugin

Edit: These are the droids your looking for
https://victorenginescripts.wordpress.com/rpg-maker-mv/unreachable-targets/
Moved to: JS Plugin Requests
Basically I want to make certain skills unable to work on certain enemies, this plugin looks like it's the ideal one for this circumstance but I can't understand the wording too well it's a bit complicated to understand.

What I want to experiement on is having an enemy that's immune or disables particular skills or weapons equipped by a party member.

Original thread: https://forums.rpgmakerweb.com/threads/skill-immunity-back-to-commands.114072/