It seems that the problem is beyond my current scripting knowledge but I suspect that the atb bars can't be made under the battler sprites.
Maybe a translucent atb bar is a considerable substitute for your issue:
module Translucent_ATB_Bar # Back gauge color rgba values Back_Gauge_Color1 = Color.new(0, 0, 0, 128) Back_Gauge_Color2 = Color.new(0, 0, 0, 128) # ATB gauge color rgba values ATB_Gauge_Color1 = Color.new(255, 0, 255, 128) ATB_Gauge_Color2 = Color.new(255, 0, 255, 128) # Charge color rgba values Charge_Color1 = Color.new(255, 0, 0, 128) Charge_Color2 = Color.new(255, 0, 0, 128) # (Only if using DoubleX RMVXA Cooldown Addon to YSA Battle System: Classical AT

# Cooldown color rgba values Cooldown_Color1 = Color.new(255, 255, 0, 128) Cooldown_Color2 = Color.new(255, 255, 0, 128)end # Translucent_ATB_Barclass Enemy_CATB_Gauge_Viewport < Viewport #----------------------------------------------------------------------------| # Rewrite method: create_gauge_sprites | #----------------------------------------------------------------------------| def create_gauge_sprites @sprite = Plane.new(self) dw = self.rect.width * 2 @sprite.bitmap = Bitmap.new(dw, self.rect.height) case @type # This part is rewritten by this snippet to make atb bar translucent when :back colour1 = Translucent_ATB_Bar::Back_Gauge_Color1 colour2 = Translucent_ATB_Bar::Back_Gauge_Color2 when :catb colour1 = Translucent_ATB_Bar::ATB_Gauge_Color1 colour2 = Translucent_ATB_Bar::ATB_Gauge_Color2 when :catbct colour1 = Translucent_ATB_Bar::Charge_Color1 colour2 = Translucent_ATB_Bar::Charge_Color2 when :catbcd if $imported["DoubleX RMVXA Cooldown Addon to YSA-CATB"] colour1 = Translucent_ATB_Bar::Cooldown_Color1 colour2 = Translucent_ATB_Bar::Cooldown_Color2 end # when

ercent if $imported["DoubleX RMVXA Percentage Addon to YSA-CATB"] colour1 = Color.new(0, 0, 0, 0) colour2 = Color.new(0, 0, 0, 0) end end dx = 0 dy = 0 dw = self.rect.width dh = self.rect.height self.rect.width = target_gauge_width unless @type == :back || @type ==

ercent set_percentage_font if @type ==

ercent @gauge_width = target_gauge_width @sprite.bitmap.gradient_fill_rect(dx, dy, dw, dh, colour1, colour2) @sprite.bitmap.gradient_fill_rect(dw, dy, dw, dh, colour2, colour1) end # create_gauge_spritesend # Enemy_CATB_Gauge_ViewportPut this below all YSA CATB scripts and my bug fixes and addons.