It cannot be done by default.
you'll need a plugin with advanced coding (javascript) options or something like that, which is what the linked topics use - the notetags given there have no functions without the plugins that are checking and using them.
So - how much experience do you have with using plugins and/or using javascript?
In the link you provided, what's wrong with using Victor Engine's Action Dodge?
You could also use Yanfly's Hit Accuracy, although it would be a bit more convoluted.
You could also use Yanfly's Selection Core to simply prevent melee attacks from being able to target flying enemies at all.
if you're hitting error messages, then that is something we can help you with.
as general advice: you normally have to start new games after adding plugins because the savefiles of older saves usually become incompatible.
For specific problems, we usually start with screenshots of the plugin manager to see which plugins you have in which order, and a screenshot of the console output of the error message.
This forum uses a "one problem per topic" policy.
so it would be OK to continue since it is still the original problem of making that happen, although you should report it to be moved to plugin support.
I have moved this thread from RPG Maker MV Support to JavaScript/Plugin Support.
Did you double check whether there are any plugin parameters that need to be configured?
Press F8, go to the Console tab, provide a screenshot of the error trace.
Thanks for the reply. Unfortunately, now I get an "elmtnValue.reduce is not a function" error instead, although I added an "alert(elmtnValue)" between your two lines just to see what it was and it's a "1", which is the ID of my damage element, so that's something, but that's about as much as I can get with my threadbare JS abilities...
Thanks, there are now no errors. It's not quite working, however, so I assume at this point that it must be because I'm using the plugin incorrectly.
I've put "<element dodge: 1, eva +100%>" in the Note section of the enemy "Bat", which I assume should mean that anything "Physical" (element ID 1) should always miss the Bat (or rather, the Bat should always dodge such attacks)?
Scratch that; I've just tried something different in the Note section after re-reading the plugin description, and it's now working. For reference, what I've now got is:
<custom element dodge: 1, eva>
result = 100;
</custom element dodge>
Ah, I see my mistake, I've increased the dodge chance by a relative amount rather than an absolute value to guarantee the dodge (well, actually my mistake was not reading the description properly, which is just typical of me).
I've replaced my notetag with yours since it's a cleaner solution, and, of course, it works just fine.
Thanks for all your help ATT_Turan 🙂
I see you've solved it, but I thought I'd mention that it is possible to make a hit look like a miss without plugins by using the damage formula, e.g.
if (b.fdr > 0) { a.atk * 4 - b.def * 2 } else { b.result().missed = true; 0 }
I.e. "if the target has positive Floor Damage rate (Sp-param) then calculate [standard damage]; otherwise set the result to a miss and do 0 damage". This "fake miss" is purely cosmetic: it'll show the appropriate popup/message but all the usual on-hit effects (e.g. Add State) will still get processed.