How to get rid of or reformat enemy state icons

iconscreenshot.png
So my game uses YED_Sideview Battler and SRD_HUDMaker plugins so it can be a little more resource intensive during the battle scene, but usually it runs well. The exception being when I get a lot of stacks of icons on multiple enemies like in the pic above. It doesn't show here because it's not animated, but each of the enemies has about 3-4 icons that the game is cycling through constantly and when combined with my plugins it slows to a crawl. I could remove the icons altogether, but then I have no way for the player to know what status effects the enemies have.

Ideally, I'm trying to see if there is a way to display them differently, like in a small row underneath the enemy, or have only highest priority one show with a popup box showing the rest when you hover over the enemy.

Checking first to make sure I didn't overlook anything. Is there a way to do this in default game or in any of Yanfly's plugins?

If not, reaching out to see if anybody knows a plugin that can do this? I have a different menu for the players so it's not an issue there, I'm mainly needing this changed on the enemies.
In base rpg maker mv I think you can just remove the animation stuff from the stateicon methods and always have it show the first index (but I didn't check this extensively). I added a conditional for it to only use the updateFrame if the icon changed (like there's a new one with higher priority, because I think it sorts the battler states when new states are added). Though depending on what other Yanfly plugins you're using, they have probably modified that stuff, but it seemed to work with some of them on when I quickly tested it.

Then you can use Olivia's State Tooltips plugin to show the rest.

Sprite_StateIcon.prototype.update = function() {
Sprite.prototype.update.call(this);
this._animationCount++;
const currentIconIndex = this._iconIndex;
if (this._animationCount >= this.animationWait()) {
this.updateIcon();
if (currentIconIndex !== this._iconIndex) {
this.updateFrame();
}
this._animationCount = 0;
}
};


Sprite_StateIcon.prototype.updateIcon = function() {
var icons = [];
if (this._battler && this._battler.isAlive()) {
icons = this._battler.allIcons();
}
if (icons.length > 0) {
this._iconIndex = icons[0];
} else {
this._iconIndex = 0;
}
};
That's awesome! Thank you, I'll try it out! What order would I put in your plugin?

Well I just put it at the end and it seems to be working. Thank you! Solved a giant problem for me.
No – you should put that plugin towards the top of your list, because it overwrites methods without aliasing, so it'll definitely conflict with anything else that touches enemy state icons. Maybe you don't have anything else like that, so it won't matter, but who knows if you'll add something like that later? Or maybe you aren't aware that something touches it.
Thanks for the heads up. I'll adjust.
That's awesome! Thank you, I'll try it out! What order would I put in your plugin?

Well I just put it at the end and it seems to be working. Thank you! Solved a giant problem for me.

Ok, great that it works!

Yeah, usually it's good to alias stuff, but with some extensive changes, I don't know how aliasing would work. Anyway, it won't 100% not work even if something else has to do with the state icons. Like I think one Yanfly plugin just modifies the updateFrame, which I didn't touch.
I suppose I exaggerated a little, but it would 100% not work if that was placed below another plugin that touches the same functions.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-get-rid-of-or-reformat-enemy-state-icons.180660/