MV YEP_BuffsStatesCore, Max Buff Icon

Hi,
I am using the YEP_BuffsStatesCore plugin and I have changed the buff settings: default and maximum by putting them to a maximum value of 6. However, when the player, for example, increases by two buffs the buff icon changes (as it normally works in rpg maker mv).
So my question is: is there a way to keep the same icon for the first 5 buffs and change it for the sixth? So that it shows that you reached the maximum?
That would need a separate plugin afaik. Its a quick and easy change, but I wont be in a position to give it to you until later in the evening
That would need a separate plugin afaik. Its a quick and easy change, but I wont be in a position to give it to you until later in the evening
if you say it is easy and you don't mind doing it I would be immensely grateful, I am in no hurry. I will not fail to mention you in the credits.
take this, save it as a .js file, and add it as a plugin to your project. might want to put it near the bottom of the plugin list
Spoiler
Code:
Game_BattlerBase.prototype.buffIconIndex = function(buffLevel, paramId) {
    if (buffLevel > 0) {
        if (buffLevel > 5)
            return Game_BattlerBase.ICON_BUFF_START + 8 + paramId;
        else
            return Game_BattlerBase.ICON_BUFF_START + paramId;
    } else if (buffLevel < 0) {
        if (buffLevel < -5)
            return Game_BattlerBase.ICON_DEBUFF_START + 8 + paramId;
        else
            return Game_BattlerBase.ICON_DEBUFF_START + paramId;    
    } else return 0;
   
};
take this, save it as a .js file, and add it as a plugin to your project. might want to put it near the bottom of the plugin list
Spoiler
Code:
Game_BattlerBase.prototype.buffIconIndex = function(buffLevel, paramId) {
    if (buffLevel > 0) {
        if (buffLevel > 5)
            return Game_BattlerBase.ICON_BUFF_START + 8 + paramId;
        else
            return Game_BattlerBase.ICON_BUFF_START + paramId;
    } else if (buffLevel < 0) {
        if (buffLevel < -5)
            return Game_BattlerBase.ICON_DEBUFF_START + 8 + paramId;
        else
            return Game_BattlerBase.ICON_DEBUFF_START + paramId;   
    } else return 0;
  
};
Thank you it worked perfectly.

Original thread: https://forums.rpgmakerweb.com/threads/yep_buffsstatescore-max-buff-icon.169280/