Rpgmaker MV only allows you to show two states at once, and that is an issue with a project I'm currently working on. I was wondering if there was a method to specifically hide a state icon from the battler menu (the icon beside the actor's name), without simply removing the icon for it in the State Database page. I need the icon to remain for a specific plugin. I've been a bit stuck on this for a few hours. Any tips are appreciated, Thanks!
MV Hiding States in Battler without making the icons blank.
RPG Maker MV SupportYeah, put as plugin (copy paste to noted, save as .js file and add as plugin):
Window_BattleStatus.prototype.drawBasicArea = function(rect, actor) { this.drawActorName(actor, rect.x + 0, rect.y, 150); // this.drawActorIcons(actor, rect.x + 156, rect.y, rect.width - 156);};That worked, Thank you! If I wanted to, how would I go about editing the values to only show one state icon then?
In the method the number drawn depends on the window dimensions width value:
You can put a plugin where you alter it to just draw one:
Window_Base.prototype.drawActorIcons = function(actor, x, y, width) { width = width || 144; var icons = actor.allIcons().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); }};You can put a plugin where you alter it to just draw one:
Window_BattleStatus.prototype.drawActorIcons = function(actor, x, y, width) { var icons = actor.allIcons() if (icons.length > 0) { this.drawIcon(icons[0], x, y + 2); }};Okay perfect! Thank you!
Original thread: https://forums.rpgmakerweb.com/threads/hiding-states-in-battler-without-making-the-icons-blank.183122/