Limiting the number of Buffs/States displayed in battle

I'm not sure if there's something for this out there, as much searches aren't turning up anything. Is it possible to reduce the number of buffs/States displayed on an Actor's face during battle? I just got Neon Black's Scrolling States script, but, while this would help me immensely, I'm still plagued by having my Actor's face being completely covered by buffs/States.

Is it possible to reduce the number of displayed buffs/States from 4 to 2? Or even 1?

Thanks~
Ok, so this will probably require some fiddling on your end to get right :S. Basically you want to look at this function in Neon Black's script:

def draw_actor_icons(actor, x, y, width = 96) ## Overwrite this method. icons = (actor.state_icons + actor.buff_icons) key = [x, y, width] clear_icon_area(key) temp = Scroll_States.new(x, y, width, icons) ## Creates an icon holder. @icon_areas[key] = temp rect = Rect.new(x, y, width, 24) @icon_areas[key].bitmap.blt(0, 0, contents, rect) draw_icons_area(@icon_areas[key]) ## Draw the newest set.end Specifically, this line:

temp = Scroll_States.new(x, y, width, icons) ## Creates an icon holder. This instantiates the Scrolling States object which draws the icons. To reduce the number of icons, reduce the width:

temp = Scroll_States.new(x, y, width/2, icons) ## Creates an icon holder. From here, you'll probably have to tweak the x and y values a bit to get the positioning right, keeping in mind that the icons are 24x24.

In the default battle view, this yields one icon in the original icon position:

temp = Scroll_States.new(x+24, y, width/2, icons) ## Creates an icon holder.  Hope that helps!

Cheers,

Duncan
Oh, I see. Thank you, Duncan! 😀

[Edit] Looks like just cutting the width in half made it just the way I wanted~ Thanks again~
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/limiting-the-number-of-buffs-states-displayed-in-battle.18387/