MZ Counterattack (message display)

RPGMaker MZ natively handles counterattacks as a super-dodge. Wanting the character/enemy to ALSO take damage first, I got a plugin. Here's a link (translated). Works great! But with a downside. It negates the display of Counter Attack messages (as set in the TERMS tab of the editor). I thought about duplicating the Attack skill (001 > 003) and rename it to Counter—This should FORCE the engine to put "Counter!" over the upper message box, right? This works, however, the battle animation strangely goes to "defending sprites" (as it counters).


So, on either methods, I either get no specified message OR the wrong animation. I did ask the site owner and was suggested what seemed to be a pretty good and complex plugin. What I'm asking here: Is there a way to make it right in a simpler way? Thanks in advance.
RPGMaker MZ natively handles counterattacks as a super-dodge. Wanting the character/enemy to ALSO take damage first, I got a plugin. Here's a link (translated). Works great! But with a downside. It negates the display of Counter Attack messages (as set in the TERMS tab of the editor). I thought about duplicating the Attack skill (001 > 003) and rename it to Counter—This should FORCE the engine to put "Counter!" over the upper message box, right? This works, however, the battle animation strangely goes to "defending sprites" (as it counters).


So, on either methods, I either get no specified message OR the wrong animation. I did ask the site owner and was suggested what seemed to be a pretty good and complex plugin. What I'm asking here: Is there a way to make it right in a simpler way? Thanks in advance.
I'm curious which plugin he was referring to.
As a quick solution, edit goCounterSkill in the plugin that was linked:

Code:
function goCounterSkill(subject, target, skillId) {
    // 戦闘行動の強制を実行
    const counterOk = subject.counterForceAction(skillId, target);
    // 不発の場合は終了
    if (!counterOk) {
        return;
    }
    // begin edit: display the counter attack message
    const text = TextManager.counterAttack.format(subject.name());
    BattleManager._logWindow.push("addText", text);
    // end edit
    // カウンター実行フラグオン
    mInCounter = true;
    BattleManager._actionForcedBattler = subject;
    BattleManager.processForcedAction();
    // 【MV】強制実行フラグを解除
    // ※強制フラグが立っていると、ステートのターン経過が行われないため。
    if (BattleManager.isForcedTurn && BattleManager.isForcedTurn()) {
        BattleManager._turnForced = false;
    }
}

Not seeing a nicer way to patch/alias from the quick look I took.
I'm curious which plugin he was referring to.
Hello @sunhihi! Here you go: DynamicMotionMZ.
When I made a character specific animation recently, I added said character sprites in the skill animations. This works but if your sprites are larger than the norm, its very easy to cause overlapping/clipping issues... This plugin seems to makes use of the actual characters (not just a copy) when animating. They can go up close the enemy to attack, for example. I only skimmed it so I could be wrong.


@Kenen It works! Thank you so much. ✨
Hello @sunhihi! Here you go: DynamicMotionMZ.
When I made a character specific animation recently, I added said character sprites in the skill animations. This works but if your sprites are larger than the norm, its very easy to cause overlapping/clipping issues... This plugin seems to makes use of the actual characters (not just a copy) when animating. They can go up close the enemy to attack, for example. I only skimmed it so I could be wrong.


@Kenen It works! Thank you so much. ✨
I think the author of NRP may have misunderstood your question a bit.

You were asking about the counterattack message display issue, but he ended up introducing the action module instead.

I was curious about the plugin he mentioned because I actually use some of his plugins too.
However, I only use the action module — the rest of the systems are developed by myself.
Well, the action module part was an attempt to guide me towards a solution for the 'second path' of my issue with its plugin by forcing specific animations for the counter skill. Ill copy-paste you the translated answer.

From: NewRpgProject
First, the fact that the "Counter Attack" message doesn't display is by design of this plugin. If necessary, implement it as a different skill number, or modify it using Claude or something similar. I could add the feature myself, but for the time being, I'm too busy and can't manage it....

Also, for skills other than "0001:Attack," the fact that weapons are not displayed is due to RPG Maker's specifications. Regarding this, there's no choice but to specify it with some kind of plugin. In my case, I'm specifying the motions with Dynamic Motion. However, this plugin is highly functional, so it's difficult.
Well, the action module part was an attempt to guide me towards a solution for the 'second path' of my issue with its plugin by forcing specific animations for the counter skill. Ill copy-paste you the translated answer.



Okay, I think what the author of NRP was trying to say is that
his plugins have become very complex,
and he doesn't have enough spare time to make every detail absolutely perfect.

Fortunately, the action module is the only part I can't really handle by myself.
For the rest, I can probably manage on my own.

Original thread: https://forums.rpgmakerweb.com/threads/counterattack-message-display.183750/