MV MV version of yanfly's "anti-fail message" plugin?

hi! i have a few skills that require the use of a plugin, or unique damage formula, and no real damage formula, often leading to a "but there was no effect on %1!" messages.

i've tried using dummy states to get rid of this, but i have a plugin now that announces a state's activation with a pop-up, so that's no longer viable.

after some research, i came across yanfly's 'anti-fail message' plugin for VXA, and i was wondering if there's an MV equivalent?
AKA, you can put a notetag into a skills notes section, and that one will no longer display that failure message.

sorry if i've missed something obvious! have a nice day!
Hmmm, I think put this as plugin (copy paste to notepad, save as .js file and add as a plugin).
Then put <success> notetag on the skill. If you want it to work even without a hit, remove that first condition there.

const _myEdit1_GameAction_apply = Game_Action.prototype.apply;
Game_Action.prototype.apply = function(target) {
_myEdit1_GameAction_apply.call(this, target);
if (target.result().isHit() && this.item() && this.item().meta.success)
this.makeSuccess(target);
};
thanks for your reply!

i was given this error when using a skill with the notetag, though...

1775832093490.png
Hmmm, try writing target inside the makeSuccess:
this.makeSuccess(target);

If that don't work I'll check it later or someone else can tell you what's wrong.
hmm, i tried this, but still no dice 😛 it doesn't crash anymore, but it doesn't fix the message showing up.

not too big a deal though, i'm sure i can figure something out if you don't feel like committing too much time to this! thank you for your help regardless!
Hmmm I tested it and seems to work for me, both with base engine and with Yanfly Battle Core.
But don't know if you have other plugins affecting it.
i have a few skills that require the use of a plugin, or unique damage formula, and no real damage formula, often leading to a "but there was no effect on %1!" messages.
The default way to avoid this without any further modifications to the game's code is to simply make a dummy state with no messages on it, then have those skills Add State and Remove State with it.
They wrote that they have a state popup plugin which is why they didn't want to use a dummy state.

Original thread: https://forums.rpgmakerweb.com/threads/mv-version-of-yanflys-anti-fail-message-plugin.183204/