MZ SV_Battler sprite mostly using Idle Sprite

Hi! this might be super silly, using this image from this super useful thread: https://forums.rpgmakerweb.com/index.php?threads/rpg-maker-mv-mz-templates-and-guideline.46839/

1761491473732.png


I was trying to give bit more live to the sprites in battle in my game, animating more the spridesheet for sv_battlers, however I noticed that even copypaste-ing the "Idle" animation into the "Ready/Phisical" "Ready Magical" "Guard" "Crisis/Danger" and "Abnormal State" (as I don´t want it to be as complex, so I just want the idle animation keep playing in those moments) the engine still refreshes them in battle making the animation go uncordinated, and is a bit distracting, so I was wondering if it´d be possible to have a plugin that makes so that for those action it doesn´t refresh the sprite to keep the idle animation playing.

I´m using YEP Battle core and YEP SVEnemieSprite plugins but I couldn´t find anything there to fix it, I also tried deep diving in the js.files but I wasn´t even sure were to even look for it.

EDIT: re-reading my post I don´t know if it´s a bit confusing, I would like the battler's animations to be mainly on their idle animation and be as much on synch as possible. so I thought by doing what is written up could be a start, but later I thought maybe the main goal wasn´t very well explained, thanks a mil!!

Thanks a mil!!
You could just open your rpg_sprites.js in the js folder of your project, scroll to line 649 and change the motion directly. (Or for good practice, copy the function and put it in a new file, call it ActorMotions.js or whatever and use as a plugin. It's better to not edit core scripts directly.)
1761506673904.png

Not sure if it will still do a hiccup, but worth a shot.

as for using a skill, you could use yanfly's action sequence packs and just leave the <target action> / <whole action> empty. Then the sprite will just continues to idle.
You could just open your rpg_sprites.js in the js folder of your project, scroll to line 649 and change the motion directly. (Or for good practice, copy the function and put it in a new file, call it ActorMotions.js or whatever and use as a plugin. It's better to not edit core scripts directly.)
View attachment 351993
Not sure if it will still do a hiccup, but worth a shot.

as for using a skill, you could use yanfly's action sequence packs and just leave the <target action> / <whole action> empty. Then the sprite will just continues to idle.
Thanks!! I tweaked the lines on a different .js file and also I saw down bellow this other lines:
Sprite_Actor.prototype.refreshMotion = function() {
const actor = this._actor;
if (actor) {
const 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");
}
}
};
Which I´m guessing dictate when to refresh and start other motions, so I deleted the chanting, guard, abnormal and dying and I think it helped quite a bit! thanks a mil! though it´d be great to know if these lines here were okay to tweak too, nothing seems to have been broken in my testing (?)

Original thread: https://forums.rpgmakerweb.com/threads/sv_battler-sprite-mostly-using-idle-sprite.180717/