How to change the enemy's sprite color when you select it in battle?

Hey there, I need some help regarding enemy selection. The game I'm working on has plenty of white battlebacks, which doesn't match well with the default RPGMV white 'blink' effect when you select a target. Is there any way to change the select color to something like yellow, blue, etc? Here's some pics / gif to explain myself better.

This is the current behavior... the enemy flashes white when selected. Hard to see due to the white background:

gif.gif



This is what enemies should look like when you select them:

ezgif.com-gif-maker (6).gif



I'd be really grateful for any suggestions to achieve this latter look. If there's a way to control whether it 'blinks' or not that would be great too, but being able to change the color would be enough.

Here's my plugin list too in case it helps.

plugin list.png
Nevermind, I found a way.

The default RPGMV function that determines the visual effect for selecting enemies is found in rpg_sprites.js, line 558, but modifying it didn't work as intended due to the plugin YEP_X_AnimatedSVEnemies overriding this function whenever a battler using an animated spritesheet is selected. So I modified the "updateSelectionEffect" function located in YEP_X_AnimatedSVEnemies:

Code:
Sprite_Enemy.prototype.updateSelectionEffect = function() {
    if (!this._svBattlerEnabled) {
      return Sprite_Battler.prototype.updateSelectionEffect.call(this);
    }
    var target = this._mainSprite;
    if (this._battler.isSelected()) {
        this._selectionEffectCount++;
        if (this._selectionEffectCount % 15 < 15) {
            target.setBlendColor([255, 255, 0, 64]); // this line has been changed to achieve a yellow highlight effect; the original RGBA value was 255, 255, 255, 64
        } else {
            target.setBlendColor([0, 0, 0, 0]);
        }
    } else if (this._selectionEffectCount > 0) {
        this._selectionEffectCount = 0;
        target.setBlendColor([0, 0, 0, 0]);
    }

In short words: with the above modification, whenever you select an enemy that uses a custom spritesheet from Yanfly's animated SV battlers plugin, it'll flash yellow instead of white. Leaving this here in case anyone else finds some use for it.
Nevermind, I found a way.

The default RPGMV function that determines the visual effect for selecting enemies is found in rpg_sprites.js, line 558, but modifying it didn't work as intended due to the plugin YEP_X_AnimatedSVEnemies overriding this function whenever a battler using an animated spritesheet is selected. So I modified the "updateSelectionEffect" function located in YEP_X_AnimatedSVEnemies:

Code:
Sprite_Enemy.prototype.updateSelectionEffect = function() {
    if (!this._svBattlerEnabled) {
      return Sprite_Battler.prototype.updateSelectionEffect.call(this);
    }
    var target = this._mainSprite;
    if (this._battler.isSelected()) {
        this._selectionEffectCount++;
        if (this._selectionEffectCount % 15 < 15) {
            target.setBlendColor([255, 255, 0, 64]); // this line has been changed to achieve a yellow highlight effect; the original RGBA value was 255, 255, 255, 64
        } else {
            target.setBlendColor([0, 0, 0, 0]);
        }
    } else if (this._selectionEffectCount > 0) {
        this._selectionEffectCount = 0;
        target.setBlendColor([0, 0, 0, 0]);
    }

In short words: with the above modification, whenever you select an enemy that uses a custom spritesheet from Yanfly's animated SV battlers plugin, it'll flash yellow instead of white. Leaving this here in case anyone else finds some use for it.
Will definitely try it out in MZ. And I loved your animations. They are very expressive for 3 frames. Well done!
Necro-post notice: @Captain_Shawler

Original thread: https://forums.rpgmakerweb.com/threads/how-to-change-the-enemys-sprite-color-when-you-select-it-in-battle.152666/