Replaced "defend" command -> sometimes results in "miss"

Hi all!

I replaced the standard "defend" command with a skill called "meditate". Nothing fancy about it. If the mage uses it, you get some MP back. However from time to time, when the actor uses the command, it shows a "miss" and it doesn't regenerate any MP. Does that make any sense? I'm out of answers for that 😀

See attached a screenshot of the skill in the database:
1670867576112.png
You don't appear to have actually replaced Guard - do you just mean that you used a plugin to add it to the Actor Command Window?

I notice that it's a user-only buff but you have the Hit Type set to Physical Attack. That's why you're seeing it miss - if you follow the process of an action, it checks for missed and evaded regardless of the scope or damage type.

So if you want a skill to always happen, you should set it to Certain Hit.
Yeah I replaced it with a yanfly plugin which redirects the "guard"/"defend"-command to whatever skill # I use. So thats fine 🙂

I used the plugin for other commands as well - but you got it - it was the "hit type". Never thought of that, since I put the success-rate to 100 % already. Sometimes the maker is kinda confusing to me. Thanks!
The Success field is the chance of the action happening at all. This is separate from how the different hit types are resolved.

This is all explained pretty well in the help file that comes with MV:
hit rate.jpg
I used the plugin for other commands as well - but you got it - it was the "hit type". Never thought of that, since I put the success-rate to 100 % already. Sometimes the maker is kinda confusing to me. Thanks!
This is why you shouldn't assume anything. Always go over everything you see, as you miss out on little details like hit type, and those little details can prove very important.

Original thread: https://forums.rpgmakerweb.com/threads/replaced-defend-command-sometimes-results-in-miss.153268/