MV Remove standby motion when selecting an attack?

Hello! I've wanted to remove this from my game for a long time, but it's only an issue now. Basically, you know how when after selecting an attack in a sideview battle, the character uses a "ready" pose? Basically, I don't want that to happen.


Actor1_4.jpg


After an attack has been selected, I don't want the circled motion to be played. The reason being is that I want the character to use any special status motions to play while an attack is being selected. also, while a character is selecting their attack, the game forces their idle motion (which is above the circled motion), I'd also like that to not happen either.

The reason for this is because I have a character with a distinct guarding animation (pictured below) and it's odd having them switch to different poses when selecting an attack despite the fact they're supposed to be inside a cone still. Also I'd just like characters to actually use their low health animation.

ActorRocketBoy.png
Well, you can achieve this by editing your character template using programs like Photoshop or some online editor.
Well, you can achieve this by editing your character template using programs like Photoshop or some online editor.
I dont think the issue isn't that they want to just remove the ready motion. If they did, they've already did it by making idle and ready identical.

It sounds like they want the battler's motion to not change at all during and after skill selection so that a defending battler is defending the entire time, a dying battler is doing the critical motion the entire time, etc.

I won't be in a position to check what exactly the base code does in order to suggest an edit for a few hours and I dont know of a plugin to do it off of the top of my head. Ill take a look when I can if a solution hasnt been found by then
I dont think the issue isn't that they want to just remove the ready motion. If they did, they've already did it by making idle and ready identical.

It sounds like they want the battler's motion to not change at all during and after skill selection so that a defending battler is defending the entire time, a dying battler is doing the critical motion the entire time, etc.

I won't be in a position to check what exactly the base code does in order to suggest an edit for a few hours and I dont know of a plugin to do it off of the top of my head. Ill take a look when I can if a solution hasnt been found by then
That's exactly what I'm looking for! Thank you!
That's exactly what I'm looking for! Thank you!
it seems like its just a removal of a line to get it working. Save it as a .js file, introduce it to your project as a plugin, and lmk if it looks fine. it appears to do what you wanted.

Spoiler
Code:
Sprite_Actor.prototype.refreshMotion = function() {
    var actor = this._actor;
    var motionGuard = Sprite_Actor.MOTIONS['guard'];
    if (actor) {
        if (this._motion === motionGuard && !BattleManager.isInputting()) {
                return;
        }
        var stateMotion = actor.stateMotionIndex();
        if (actor.isInputting() || actor.isActing()) {
            //this.startMotion('walk');
        } else if (stateMotion === 3) {
            this.startMotion('dead');
        } else if (stateMotion === 2) {
            this.startMotion('sleep');
        } else if (actor.isChanting()) {
            this.startMotion('chant');
        } else if (actor.isGuard() || actor.isGuardWaiting()) {
            this.startMotion('guard');
        } else if (stateMotion === 1) {
            this.startMotion('abnormal');
        } else if (actor.isDying()) {
            this.startMotion('dying');
        } else if (actor.isUndecided()) {
            this.startMotion('walk');
        } else {
            this.startMotion('wait');
        }
    }
};
Thanks! It works mostly, except one thing, it still forces the "walk" animation when a party member is still deciding an action, it seems it might be a bit harder for that to work.

EDIT

Ok it actually does I just didn't upload it properly, though complete it comes with an odd side effect, now certain skills have the final frame of certain motions hold for a bit if they don't move instantly after performing the motion (I use yanfly action sequence packs to make characters move around in combat.).
This problem is barely a problem though, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/remove-standby-motion-when-selecting-an-attack.167862/