MV Removing buff/debuff icons.

Hello, I'd like to remove the buff/debuff icons from my game. I have discovered how to change them, but I would rather have them gone completely. I am using YEP_BuffsStatesCore and I see there is an option to remove state/buff icons from enemies, but there are two issues with that:
  1. It only removes the icons from the enemies.
  2. I just need buff/debuff icons gone, not state icons.
I have tried modifying a number of things in rpg_objects.js and rpg_sprites.js but haven't been able to figure out how to get just the buff and debuff icons removed. I was able to get them to show up blank, but the turn numbers from BuffsStatesCore would still show next to them.
What if you try changing the icons from the buff and debuff by an invisible icon? If there is not an invisible icon in RMMV, you can make one. (An icon that is not anything)
Idk if this will help, but anyways.
I was able to get them to show up blank, but the turn numbers from BuffsStatesCore would still show next to them.
im not home to be able to check, but try this
Code:
Window_Base.prototype.drawBuffTurns = function(actor, paramId, wx, wy) {};

Window_Base.prototype.drawBuffRate = function(actor, paramId, wx, wy) {};

EDIT: i forgot that the overhead icons arent drawn by those so youd also need this
Code:
Sprite_StateIcon.prototype.drawBuffTurns = function(paramId) {};

Sprite_StateIcon.prototype.drawBuffRate = function(paramId) {};
What if you try changing the icons from the buff and debuff by an invisible icon? If there is not an invisible icon in RMMV, you can make one. (An icon that is not anything)
Idk if this will help, but anyways.
Problem is that it still means the buff/debuff still technically shows up there, it's just invisible. So, if there are any other states applied, there will be gaps and the turn number will still show up on top of the invisible icon. I can erase the icon in other ways too, but the "box" where it is supposed to be will still exist.

im not home to be able to check, but try this
Code:
Window_Base.prototype.drawBuffTurns = function(actor, paramId, wx, wy) {};

Window_Base.prototype.drawBuffRate = function(actor, paramId, wx, wy) {};

EDIT: i forgot that the overhead icons arent drawn by those so youd also need this
Code:
Sprite_StateIcon.prototype.drawBuffTurns = function(paramId) {};

Sprite_StateIcon.prototype.drawBuffRate = function(paramId) {};
That worked for getting rid of the numbers, thank you! Unfortunately, I'm still a little bit stuck on the part where the icon disappears. As I said in response to Andres, I can't quite figure out how to get rid of the box the icon is in, just the drawing of the icon itself. It's still there, just invisible, it seems.

Normally, that wouldn't be a huge deal, but if other states have been applied and it cycles through or offsets them it'll end up looking a bit strange.
I can't quite figure out how to get rid of the box the icon is in, just the drawing of the icon itself. It's still there, just invisible, it seems.
that part isnt done by the plugin. thats how the engine by default handles it by default. try this, but load it as the first plugin. it needs to be before the yanfly buffs and states plugin

Code:
Window_Base.prototype.drawActorIcons = function(actor, x, y, width) {
    width = width || 144;
    var icons = actor.stateIcons().slice(0, Math.floor(width / Window_Base._iconWidth));
    for (var i = 0; i < icons.length; i++) {
        this.drawIcon(icons[i], x + Window_Base._iconWidth * i, y + 2);
    }
};
that part isnt done by the plugin. thats how the engine by default handles it by default. try this, but load it as the first plugin. it needs to be before the yanfly buffs and states plugin

Code:
Window_Base.prototype.drawActorIcons = function(actor, x, y, width) {
    width = width || 144;
    var icons = actor.stateIcons().slice(0, Math.floor(width / Window_Base._iconWidth));
    for (var i = 0; i < icons.length; i++) {
        this.drawIcon(icons[i], x + Window_Base._iconWidth * i, y + 2);
    }
};
Thank you so much! This is almost perfect. It no longer loads the icons for buffs/debuffs for party members, but it does for enemies. I'm assuming that this is because it is referencing the actor instead of the enemy?
I'm assuming that this is because it is referencing the actor instead of the enemy?
its a technical detail. what i gave only affects windows. the icons over the battlers are sprites and arent drawn by that function. add this
Code:
Sprite_StateIcon.prototype.updateIcon = function() {
    var icons = [];
    if (this._battler && this._battler.isAlive()) {
        icons = this._battler.stateIcons();
    }
    if (icons.length > 0) {
        this._animationIndex++;
        if (this._animationIndex >= icons.length) {
            this._animationIndex = 0;
        }
        this._iconIndex = icons[this._animationIndex];
    } else {
        this._animationIndex = 0;
        this._iconIndex = 0;
    }
};
its a technical detail. what i gave only affects windows. the icons over the battlers are sprites and arent drawn by that function. add this
Code:
Sprite_StateIcon.prototype.updateIcon = function() {
    var icons = [];
    if (this._battler && this._battler.isAlive()) {
        icons = this._battler.stateIcons();
    }
    if (icons.length > 0) {
        this._animationIndex++;
        if (this._animationIndex >= icons.length) {
            this._animationIndex = 0;
        }
        this._iconIndex = icons[this._animationIndex];
    } else {
        this._animationIndex = 0;
        this._iconIndex = 0;
    }
};
That's perfect! Thank you so much, man. You're a legend.

Original thread: https://forums.rpgmakerweb.com/threads/removing-buff-debuff-icons.175211/