To display the ATB gauge at the foot of an enemy

Code:
#==============================================================================
# □ CTB(2013/03/08)
#------------------------------------------------------------------------------
#  CTBを導入します。
#==============================================================================

#==============================================================================
# ☆ カスタマイズここから。
#==============================================================================

  # 行動するのに必要なAPを設定します。
  CC_CTB_AP_ACTION_LIMIT = 100
 
  # 行動後にAPを0にするかどうかを選択します。
  # 0にする場合はtrue、しない場合はfalseを指定します。
  CC_CTB_AP_RESET = true
 
  # 戦闘速度を設定します。小さいほど速くなります。
  # 0より大きい値を設定します。
  CC_CTB_BATTLE_SPEED = 20.0
 
  # 戦闘速度が敏捷性によらず一定になるように調整するか設定します。
  # trueの時、戦闘速度を一定にします。
  CC_CTB_BATTLE_SPEED_ADJUST = true
 
  # CC_CTB_BATTLE_SPEED_ADJUSTがtrueの時の戦闘速度を設定します。
  # 値が大きいほど速くなります。
  CC_CTB_ADJUSTED_SPEED = 20.0
 
  # 自動回復のタイミングを設定します。
  # 行動終了時=0、TP自然増加時=1
  CC_CTB_REGENERATE_TIMING = 1
 
  # 自動回復速度を調整します。小さいほど速くなります。
  # 0より大きい値を設定します。
  CC_CTB_REGENERATE_SPEED = 20.0
 
  # アイテム使用時に消費するAPを設定します。
  CC_CTB_ITEM_AP_COST = CC_CTB_AP_ACTION_LIMIT
 
#==============================================================================
# ☆ カスタマイズここまで。
#==============================================================================

#==============================================================================
# □ BattleManager
#------------------------------------------------------------------------------
#  戦闘の進行を管理するモジュールです。
#==============================================================================

module BattleManager
  class << self
    #--------------------------------------------------------------------------
    # ○ 戦闘開始
    #--------------------------------------------------------------------------
    alias cc_ctb_battle_start battle_start
    def battle_start
      cc_ctb_battle_start
      if @preemptive
        $game_party.members.each {|member| member.ap += CC_CTB_AP_ACTION_LIMIT / 2 }
      elsif @surprise
        $game_troop.members.each {|member| member.ap += CC_CTB_AP_ACTION_LIMIT / 2 }
      end
      speed_adjust_set if CC_CTB_BATTLE_SPEED_ADJUST
    end
    #--------------------------------------------------------------------------
    # ○ 行動順序の作成
    #--------------------------------------------------------------------------
    def make_action_orders
      @action_battlers = [next_action_battler]
      @action_battlers[0].increase_turn if @action_battlers[0].is_a?(Game_Enemy)
    end
    #--------------------------------------------------------------------------
    # ○ 次に行動するバトラーの取得
    #--------------------------------------------------------------------------
    def next_action_battler
      battlers = []
      battlers += $game_party.alive_members unless @surprise
      battlers += $game_troop.alive_members unless @preemptive
      battlers.sort! {|a,b| b.agi - a.agi }
      battlers.min_by {|battler|
        (CC_CTB_AP_ACTION_LIMIT - battler.ap) / battler.agi
      }
    end
    #--------------------------------------------------------------------------
    # ○ 戦闘速度修正値の取得
    #--------------------------------------------------------------------------
    def speed_adjust_set
      battlers = $game_party.members + $game_troop.members
      $cc_ctb_speed_adjust = battlers.max_by {|battler| battler.agi }.agi / CC_CTB_ADJUSTED_SPEED
    end
  end
end

#==============================================================================
# □ Game_BattlerBase
#------------------------------------------------------------------------------
#  バトラーを扱う基本のクラスです。主に能力値計算のメソッドを含んでいます。こ
# のクラスは Game_Battler クラスのスーパークラスとして使用されます。
#==============================================================================

class Game_BattlerBase
  alias cc_ctb_hrg hrg
  alias cc_ctb_mrg mrg
  alias cc_ctb_trg trg
  def hrg;  cc_ctb_hrg / (CC_CTB_REGENERATE_TIMING == 1 ? CC_CTB_REGENERATE_SPEED : 1);  end    # HP再生率   Hp ReGeneration rate
  def mrg;  cc_ctb_mrg / (CC_CTB_REGENERATE_TIMING == 1 ? CC_CTB_REGENERATE_SPEED : 1);  end    # MP再生率   Mp ReGeneration rate
  def trg;  cc_ctb_trg / (CC_CTB_REGENERATE_TIMING == 1 ? CC_CTB_REGENERATE_SPEED : 1);  end    # TP再生率   Tp ReGeneration rate
  #--------------------------------------------------------------------------
  # ○ 公開インスタンス変数
  #--------------------------------------------------------------------------
  attr_reader   :ap                       # AP
  #--------------------------------------------------------------------------
  # ○ オブジェクト初期化
  #--------------------------------------------------------------------------
  alias cc_atb_initialize initialize
  def initialize
    @ap = 0
    cc_atb_initialize
  end
  #--------------------------------------------------------------------------
  # ○ AP の変更
  #--------------------------------------------------------------------------
  def ap=(ap)
    @ap = [[ap, max_ap].min, 0].max
  end
  #--------------------------------------------------------------------------
  # ○ AP の割合を取得
  #--------------------------------------------------------------------------
  def ap_rate
    @ap.to_f / max_ap
  end
  #--------------------------------------------------------------------------
  # ○ AP の最大値を取得
  #--------------------------------------------------------------------------
  def max_ap
    return CC_CTB_AP_ACTION_LIMIT
  end
  #--------------------------------------------------------------------------
  # ○ スキルの消費 AP 計算
  #--------------------------------------------------------------------------
  def skill_ap_cost(skill)
    skill.speed
  end
  #--------------------------------------------------------------------------
  # ○ スキル使用コストの支払い可能判定
  #--------------------------------------------------------------------------
  alias cc_ctb_skill_cost_payable? skill_cost_payable?
  def skill_cost_payable?(skill)
    (!$game_party.in_battle || ap >= skill_ap_cost(skill)) && cc_ctb_skill_cost_payable?(skill)
  end
  #--------------------------------------------------------------------------
  # ○ スキル使用コストの支払い
  #--------------------------------------------------------------------------
  alias cc_ctb_pay_skill_cost pay_skill_cost
  def pay_skill_cost(skill)
    cc_ctb_pay_skill_cost(skill)
    self.ap -= skill_ap_cost(skill) if $game_party.in_battle
  end
  #--------------------------------------------------------------------------
  # ○ 行動判定
  #--------------------------------------------------------------------------
  def action?
    ap >= CC_CTB_AP_ACTION_LIMIT && self == BattleManager.next_action_battler
  end
end

#==============================================================================
# □ Game_Battler
#------------------------------------------------------------------------------
#  スプライトや行動に関するメソッドを追加したバトラーのクラスです。このクラス
# は Game_Actor クラスと Game_Enemy クラスのスーパークラスとして使用されます。
#==============================================================================

class Game_Battler < Game_BattlerBase
  #--------------------------------------------------------------------------
  # ○ AP の初期化
  #--------------------------------------------------------------------------
  def init_ap
    self.ap = rand * 25
  end
  #--------------------------------------------------------------------------
  # ○ 戦闘開始処理
  #--------------------------------------------------------------------------
  alias cc_ctb_on_battle_start on_battle_start
  def on_battle_start
    cc_ctb_on_battle_start
    init_ap
  end
  #--------------------------------------------------------------------------
  # ○ 戦闘行動の作成
  #--------------------------------------------------------------------------
  alias cc_ctb_make_actions make_actions
  def make_actions
    cc_ctb_make_actions
    @actions = [] if self != BattleManager.next_action_battler
  end
  #--------------------------------------------------------------------------
  # ○ コマンド入力可能判定
  #--------------------------------------------------------------------------
  alias cc_ctb_inputable? inputable?
  def inputable?
    cc_ctb_inputable? && action?
  end
  #--------------------------------------------------------------------------
  # ○ HP の再生
  #--------------------------------------------------------------------------
  def regenerate_hp
    damage = -(mhp * hrg / (CC_CTB_REGENERATE_TIMING == 1 && CC_CTB_BATTLE_SPEED_ADJUST ? $cc_ctb_speed_adjust : 1)).to_i
    perform_map_damage_effect if $game_party.in_battle && damage > 0
    @result.hp_damage = [damage, max_slip_damage].min
    self.hp -= @result.hp_damage
  end
  #--------------------------------------------------------------------------
  # ○ MP の再生
  #--------------------------------------------------------------------------
  def regenerate_mp
    @result.mp_damage = -(mmp * mrg / (CC_CTB_REGENERATE_TIMING == 1 && CC_CTB_BATTLE_SPEED_ADJUST ? $cc_ctb_speed_adjust : 1))
    self.mp -= @result.mp_damage
  end
  #--------------------------------------------------------------------------
  # ○ TP の再生
  #--------------------------------------------------------------------------
  def regenerate_tp
    self.tp += CC_CTB_AP_ACTION_LIMIT * trg / (CC_CTB_REGENERATE_TIMING == 1 && CC_CTB_BATTLE_SPEED_ADJUST ? $cc_ctb_speed_adjust : 1)
  end
  #--------------------------------------------------------------------------
  # ○ 戦闘行動終了時の処理
  #--------------------------------------------------------------------------
  alias cc_ctb_on_action_end on_action_end
  def on_action_end
    cc_ctb_on_action_end
    regenerate_all if CC_CTB_REGENERATE_TIMING == 0
  end
  #--------------------------------------------------------------------------
  # ○ 行動時 TP 消費
  #--------------------------------------------------------------------------
  def cc_ctb_ap_action_cost
    if (CC_CTB_AP_RESET || !current_action) && action?
      self.ap -= CC_CTB_AP_ACTION_LIMIT
    elsif current_action && current_action.item.is_a?(RPG::Item)
      self.ap -= CC_CTB_ITEM_AP_COST
    end
  end
  #--------------------------------------------------------------------------
  # ○ ターン終了処理
  #--------------------------------------------------------------------------
  def on_turn_end
    @result.clear
    remove_states_auto(2)
  end
end

#==============================================================================
# □ Game_Enemy
#------------------------------------------------------------------------------
#  敵キャラを扱うクラスです。このクラスは Game_Troop クラス($game_troop)の
# 内部で使用されます。
#==============================================================================

class Game_Enemy < Game_Battler
  #--------------------------------------------------------------------------
  # ○ 公開インスタンス変数
  #--------------------------------------------------------------------------
  attr_reader   :turn_count               # 敵グループ内インデックス
  #--------------------------------------------------------------------------
  # ○ オブジェクト初期化
  #--------------------------------------------------------------------------
  alias cc_ctb_initialize initialize
  def initialize(index, enemy_id)
    cc_ctb_initialize(index, enemy_id)
    @turn_count = 1
  end
  #--------------------------------------------------------------------------
  # ○ 行動条件合致判定[ターン数]
  #--------------------------------------------------------------------------
  def conditions_met_turns?(param1, param2)
    n = @turn_count
    if param2 == 0
      n == param1
    else
      n > 0 && n >= param1 && n % param2 == param1 % param2
    end
  end
  #--------------------------------------------------------------------------
  # ○ ターンの増加
  #--------------------------------------------------------------------------
  def increase_turn
    @turn_count += 1
  end
end

#==============================================================================
# □ Window_Base
#------------------------------------------------------------------------------
#  ゲーム中の全てのウィンドウのスーパークラスです。
#==============================================================================

class Window_Base < Window
  #--------------------------------------------------------------------------
  # ○ 各種文字色の取得
  #--------------------------------------------------------------------------
  def ap_gauge_color1;   text_color(30);  end;    # AP ゲージ 1
  def ap_gauge_color2;   text_color(31);  end;    # AP ゲージ 2
  #--------------------------------------------------------------------------
  # ○ AP の文字色を取得
  #--------------------------------------------------------------------------
  def ap_color(actor)
    return normal_color
  end
  #--------------------------------------------------------------------------
  # ○ AP の描画
  #--------------------------------------------------------------------------
  def draw_actor_ap(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.ap_rate, ap_gauge_color1, ap_gauge_color2)
    #change_color(system_color)
    #draw_text(x, y, 30, line_height, Vocab::ap_a)
    #change_color(ap_color(actor))
    #draw_text(x + width - 42, y, 42, line_height, actor.ap.to_i, 2)
  end
  #--------------------------------------------------------------------------
  # ○ HP の描画
  #--------------------------------------------------------------------------
  def draw_actor_hp(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::hp_a)
    draw_current_and_max_values(x, y, width, actor.hp.to_i, actor.mhp,
      hp_color(actor), normal_color)
  end
  #--------------------------------------------------------------------------
  # ○ MP の描画
  #--------------------------------------------------------------------------
  def draw_actor_mp(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::mp_a)
    draw_current_and_max_values(x, y, width, actor.mp.to_i, actor.mmp,
      mp_color(actor), normal_color)
  end
end

#==============================================================================
# □ Window_BattleStatus
#------------------------------------------------------------------------------
#  バトル画面で、パーティメンバーのステータスを表示するウィンドウです。
#==============================================================================

class Window_BattleStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # ○ 基本エリアの描画
  #--------------------------------------------------------------------------
  alias cc_atb_draw_basic_area draw_basic_area
  def draw_basic_area(rect, actor)
    draw_actor_ap(actor, rect.x + 0, rect.y, 100)
    cc_atb_draw_basic_area(rect, actor)
  end
end

#==============================================================================
# □ Window_Selectable
#------------------------------------------------------------------------------
#  カーソルの移動やスクロールの機能を持つウィンドウクラスです。
#==============================================================================

class Window_Selectable < Window_Base
  #--------------------------------------------------------------------------
  # ○ 全項目の再描画
  #--------------------------------------------------------------------------
  def redraw_all_items
    item_max.times {|i| clear_item(i) }
    item_max.times {|i| draw_item(i) }
  end
end

#==============================================================================
# □ Scene_Battle
#------------------------------------------------------------------------------
#  バトル画面の処理を行うクラスです。
#==============================================================================

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # ○ ステータスウィンドウの情報を再描画
  #--------------------------------------------------------------------------
  def redraw_status
    @status_window.redraw_all_items
    @enemy_window.redraw_all_items
  end
  #--------------------------------------------------------------------------
  # ○ ステータスウィンドウの情報を更新
  #--------------------------------------------------------------------------
  def refresh_status
    @status_window.refresh
    @enemy_window.refresh
  end
  #--------------------------------------------------------------------------
  # ○ フレーム更新(AP増加)
  #--------------------------------------------------------------------------
  def update_ap
    all_alive_members.each do |member|
      member.ap += member.agi / CC_CTB_BATTLE_SPEED / (CC_CTB_BATTLE_SPEED_ADJUST ? $cc_ctb_speed_adjust : 1)
      member.regenerate_all if CC_CTB_REGENERATE_TIMING == 1
    end
    redraw_status
    update_basic
  end
  #--------------------------------------------------------------------------
  # ○ パーティコマンド選択の開始
  #--------------------------------------------------------------------------
  def start_party_command_selection
    unless scene_changing?
      refresh_status
      @status_window.unselect
      @status_window.open
      while BattleManager.next_action_battler.ap < CC_CTB_AP_ACTION_LIMIT
        update_ap
      end
      if BattleManager.input_start
        @actor_command_window.close
        @party_command_window.setup
      else
        @party_command_window.deactivate
        turn_start
      end
    end
  end
  #--------------------------------------------------------------------------
  # ○ 敵味方合わせた全バトルメンバーの取得
  #--------------------------------------------------------------------------
  def all_movable_members
    $game_party.movable_members + $game_troop.movable_members
  end
  #--------------------------------------------------------------------------
  # ○ 敵味方合わせた全生存メンバーの取得
  #--------------------------------------------------------------------------
  def all_alive_members
    $game_party.alive_members + $game_troop.alive_members
  end
  #--------------------------------------------------------------------------
  # ○ コマンド[逃げる]
  #--------------------------------------------------------------------------
  alias cc_ctb_command_escape command_escape
  def command_escape
    cc_ctb_command_escape
    $game_party.movable_members.each do |member|
      member.ap = 0
    end
  end
  #--------------------------------------------------------------------------
  # ○ ターン開始
  #--------------------------------------------------------------------------
  def turn_start
    @party_command_window.close
    @actor_command_window.close
    @status_window.unselect
    @subject = nil
    BattleManager.turn_start
    @log_window.clear
  end
  #--------------------------------------------------------------------------
  # ○ 戦闘行動の処理
  #--------------------------------------------------------------------------
  def process_action
    return if scene_changing?
    if !@subject || [email protected]_action
      @subject = BattleManager.next_subject
    end
    return turn_end unless @subject
    if @subject.action?
      @subject.update_state_turns
      @subject.update_buff_turns
    end
    if @subject.current_action
      @subject.current_action.prepare
      if @subject.current_action.valid?
        @status_window.open
        execute_action
      end
    end
    if @subject.action?
      @subject.cc_ctb_ap_action_cost
    end
    if @subject.current_action
      @subject.remove_current_action
    end
    process_action_end unless @subject.current_action
  end
end
Code:


I'm using this script right now,
Can't you make a script to show the enemy's AP under the enemy's feet?
(I've been struggling with this for over 13 hours now..)

*The writing might be weird because it's a translator
Who is the author of that script?
Spoiler: Enemy AP Addon
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Show ATB Bar for Enemies     ║  Version: 1.02     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║   Show Enemy ATB Bar                ║    06 Jun 2023     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║   Adjust the settings below                              ║
# ║                                                          ║
# ║   Due to the positioning of the enemy,                   ║
# ║   you will likely need to adjust the bar position        ║
# ║   so that the adjustment numbers are negative.           ║
# ║   This is because I used the enemies screen position     ║
# ║   which causes the bar to be at the bottom of the        ║
# ║   enemy position. The window is also set to not          ║
# ║   overlap the status window.                             ║
# ║                                                          ║
# ║   Requires Circle Cross AP script                        ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Terms of use:                                            ║
# ║ Free for all uses in RPG Maker - Except Nudity           ║
# ╚══════════════════════════════════════════════════════════╝

# ╔══════════════════════════════════════════════════════════╗
# ║ Customize below:                                         ║
# ╚══════════════════════════════════════════════════════════╝
module R2_AP_Gauge_Pos
  X_Adjust  = -50         # x position of the bar from the enemy position
  Y_Adjust  = -40         # y position of the bar from the enemy position
  EAP_Width  = 100        # Enemy Bar width
  EAP_Height = 12         # Enemy Bar height
  Enemy_Colour_1 = 17     # Starting colour of bar
  Enemy_Colour_2 = 29     # Ending colour of bar
  Draw_Enemy_Name = true # Draw enemy name
  EAP_Name_Below = false   # Draw Enemy Name below gauge
  AAP_Width  = 100        # Actor Bar width
  AAP_Height = 10         # Actor Bar height
  Actor_Colour_1 = 30     # Starting colour of bar
  Actor_Colour_2 = 31     # Ending colour of bar
end
# ╔══════════════════════════════════════════════════════════╗
# ║ End of Customization                                     ║
# ╚══════════════════════════════════════════════════════════╝

#==============================================================================
# Enemy AP
#==============================================================================
class Window_Enemy_AP < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     info_viewport : Viewport for displaying information
  #--------------------------------------------------------------------------
  def initialize(status)
    super(0, 0, Graphics.width, Graphics.height - status)
    self.opacity = 0
    self.contents_opacity = 255
    self.back_opacity = 0
    self.z = 1
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    contents.clear
    draw_all_items
  end
  #--------------------------------------------------------------------------
  # * Draw All Items
  #--------------------------------------------------------------------------
  def draw_all_items
    item_max.times {|i| draw_item(i) }
  end
  #--------------------------------------------------------------------------
  # * Get Number of Items
  #--------------------------------------------------------------------------
  def item_max
    $game_troop.alive_members.size
  end
  #--------------------------------------------------------------------------
  # * Get Spacing for Items Arranged Side by Side
  #--------------------------------------------------------------------------
  def spacing
    return 32
  end
  #--------------------------------------------------------------------------
  # ○ Assigning gauge colors
  #--------------------------------------------------------------------------
  def eap_gauge_color1;   text_color(R2_AP_Gauge_Pos::Enemy_Colour_1);  end
  def eap_gauge_color2;   text_color(R2_AP_Gauge_Pos::Enemy_Colour_2);  end
  #--------------------------------------------------------------------------
  # ○ AP Drawing
  #--------------------------------------------------------------------------
  def draw_enemy_ap(enemy, x, y, width = 124)
    draw_e_gauge(x, y, width, enemy.ap_rate, eap_gauge_color1, eap_gauge_color2)
  end
  #--------------------------------------------------------------------------
  # * Get Rectangle for Drawing Items
  #--------------------------------------------------------------------------
  def item_rect(index)
    enmy = $game_troop.alive_members[index]
    rect = Rect.new
    rect.width = R2_AP_Gauge_Pos::EAP_Width
    rect.height = R2_AP_Gauge_Pos::EAP_Height
    rect.height += 30 if R2_AP_Gauge_Pos::EAP_Name_Below
    rect.x = enmy.screen_x + R2_AP_Gauge_Pos::X_Adjust
    rect.y = enmy.screen_y + R2_AP_Gauge_Pos::Y_Adjust
    rect
  end
  #--------------------------------------------------------------------------
  # * Get Rectangle for Drawing Items (for Text)
  #--------------------------------------------------------------------------
  def item_rect_for_text(index)
    rect = item_rect(index)
    rect.x += 4
    rect.y -= 12
    rect.width -= 8
    rect.height += 8
    rect
  end
  #--------------------------------------------------------------------------
  # ○ Draw a basic area
  #--------------------------------------------------------------------------
  def draw_basic_area(rect, enemy)
    width = R2_AP_Gauge_Pos::EAP_Width
    draw_enemy_ap(enemy, rect.x + 0, rect.y, width)
  end
  #--------------------------------------------------------------------------
  # * Draw Item
  #--------------------------------------------------------------------------
  def draw_item(index)
    change_color(normal_color)
    enemy = $game_troop.alive_members[index]
    draw_basic_area(basic_area_rect(index), enemy)
    name = $game_troop.alive_members[index].name
    draw_text(item_rect_for_text(index), name) if R2_AP_Gauge_Pos::Draw_Enemy_Name
  end
  #--------------------------------------------------------------------------
  # * Get Basic Area Retangle
  #--------------------------------------------------------------------------
  def basic_area_rect(index)
    rect = item_rect_for_text(index)
    rect.width -= 210
    rect
  end
  #--------------------------------------------------------------------------
  # * Draw Gauge
  #     rate   : Rate (full at 1.0)
  #     color1 : Left side gradation
  #     color2 : Right side gradation
  #--------------------------------------------------------------------------
  def draw_e_gauge(x, y, width, rate, color1, color2)
    fill_w = (width * rate).to_i
    gauge_y = y + line_height - 8 - R2_AP_Gauge_Pos::EAP_Height
    gauge_h = R2_AP_Gauge_Pos::EAP_Height
    contents.fill_rect(x, gauge_y, width, gauge_h, gauge_back_color)
    contents.gradient_fill_rect(x, gauge_y, fill_w, gauge_h, color1, color2)
  end
end

#==============================================================================
# ** Window_BattleStatus
#==============================================================================

class Window_BattleStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # * Draw Basic Area
  #--------------------------------------------------------------------------
  alias r2_atb_draw_basic_area draw_basic_area
  def draw_basic_area(rect, actor)
    width = R2_AP_Gauge_Pos::AAP_Width
    draw_actor_ap(actor, rect.x + 0, rect.y, width)
    r2_atb_draw_basic_area(rect, actor)
  end
  #--------------------------------------------------------------------------
  # ○ Assigning gauge colors
  #--------------------------------------------------------------------------
  def ap_gauge_color1;   text_color(R2_AP_Gauge_Pos::Actor_Colour_1);  end
  def ap_gauge_color2;   text_color(R2_AP_Gauge_Pos::Actor_Colour_2);  end
  #--------------------------------------------------------------------------
  # ○ AP Gauge
  #--------------------------------------------------------------------------
  def draw_actor_ap(actor, x, y, width = 124)
    draw_ap_gauge(x, y, width, actor.ap_rate, ap_gauge_color1, ap_gauge_color2)
  end
  #--------------------------------------------------------------------------
  # * Draw Gauge
  #     rate   : Rate (full at 1.0)
  #     color1 : Left side gradation
  #     color2 : Right side gradation
  #--------------------------------------------------------------------------
  def draw_ap_gauge(x, y, width, rate, color1, color2)
    fill_w = (width * rate).to_i
    gauge_y = y + line_height - 4 - R2_AP_Gauge_Pos::AAP_Height
    gauge_h = R2_AP_Gauge_Pos::AAP_Height
    contents.fill_rect(x, gauge_y, width, gauge_h, gauge_back_color)
    contents.gradient_fill_rect(x, gauge_y, fill_w, gauge_h, color1, color2)
  end
end

#==============================================================================
# Scene_Battle
#==============================================================================

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * Create Enemy Window
  #--------------------------------------------------------------------------
  alias r2_enemy_ap_window_create create_enemy_window
  def create_enemy_window
    r2_enemy_ap_window_create
    @enemy_ap = Window_Enemy_AP.new(@status_window.height)
  end
  #--------------------------------------------------------------------------
  # ○ Redraw the information in the status window
  #--------------------------------------------------------------------------
  alias r2_redraw_ap_status redraw_status
  def redraw_status
    r2_redraw_ap_status
    @enemy_ap.refresh
  end
  #--------------------------------------------------------------------------
  # * Processing at End of Action
  #--------------------------------------------------------------------------
  alias r2_action_end_refresh_ap_gauge  process_action_end
  def process_action_end
    @enemy_ap.refresh
    r2_action_end_refresh_ap_gauge
  end
end
Who is the author of that script?
Spoiler: Enemy AP Addon
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Show Ap Bar for Enemies      ║  Version: 1.00     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║   Show Enemy AP Bar                 ║    06 Jun 2023     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║   Adjust the settings below                              ║
# ║                                                          ║
# ║   Due to the positioning of the enemy,                   ║
# ║   you will likely need to adjust the bar position        ║
# ║   so that the adjustment numbers are negative.           ║
# ║   This is because I used the enemies screen position     ║
# ║   which causes the bar to be at the bottom of the        ║
# ║   enemy position. The window is also set to not          ║
# ║   overlap the status window.                             ║
# ║                                                          ║
# ║   Requires another authors AP script - name unknown      ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Terms of use:                                            ║
# ║ Free for all uses in RPG Maker - Except Nudity           ║
# ╚══════════════════════════════════════════════════════════╝

# ╔══════════════════════════════════════════════════════════╗
# ║ Customize below:                                         ║
# ╚══════════════════════════════════════════════════════════╝
module R2_AP_Gauge_Pos
  X_Adjust  = -50   # x position of the bar from the enemy position
  Y_Adjust  = -40   # y position of the bar from the enemy position
  AP_Width  = 100   # Bar width
  AP_Height = 24    # Bar height
  Draw_Name = false # Draw enemy name
  Colour_1 = 17     # Starting colour of bar
  Colour_2 = 29     # ending colour of bar
end
# ╔══════════════════════════════════════════════════════════╗
# ║ End of Customization                                     ║
# ╚══════════════════════════════════════════════════════════╝

#==============================================================================
# Window Base
#==============================================================================
class Window_Base < Window
  #--------------------------------------------------------------------------
  # ○ Acquisition of various character colors
  #--------------------------------------------------------------------------
  def eap_gauge_color1;   text_color(R2_AP_Gauge_Pos::Colour_1);  end
  def eap_gauge_color2;   text_color(R2_AP_Gauge_Pos::Colour_2);  end
  #--------------------------------------------------------------------------
  # ○ AP Drawing
  #--------------------------------------------------------------------------
  def draw_enemy_ap(enemy, x, y, width = 124)
    draw_gauge(x, y, width, enemy.ap_rate, eap_gauge_color1, eap_gauge_color2)
  end
end

#==============================================================================
# Enemy AP
#==============================================================================
class Window_Enemy_AP < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     info_viewport : Viewport for displaying information
  #--------------------------------------------------------------------------
  def initialize(status)
    super(0, 0, Graphics.width, Graphics.height - status)
    self.opacity = 0
    self.contents_opacity = 255
    self.back_opacity = 0
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    contents.clear
    draw_all_items
  end
  #--------------------------------------------------------------------------
  # * Draw All Items
  #--------------------------------------------------------------------------
  def draw_all_items
    item_max.times {|i| draw_item(i) }
  end
  #--------------------------------------------------------------------------
  # * Get Number of Items
  #--------------------------------------------------------------------------
  def item_max
    $game_troop.alive_members.size
  end
  #--------------------------------------------------------------------------
  # * Get Spacing for Items Arranged Side by Side
  #--------------------------------------------------------------------------
  def spacing
    return 32
  end
  #--------------------------------------------------------------------------
  # * Get Rectangle for Drawing Items
  #--------------------------------------------------------------------------
  def item_rect(index)
    enmy = $game_troop.alive_members[index]
    rect = Rect.new
    rect.width = R2_AP_Gauge_Pos::AP_Width
    rect.height = R2_AP_Gauge_Pos::AP_Height
    rect.x = enmy.screen_x + R2_AP_Gauge_Pos::X_Adjust
    rect.y = enmy.screen_y + R2_AP_Gauge_Pos::Y_Adjust
    rect
  end
  #--------------------------------------------------------------------------
  # * Get Rectangle for Drawing Items (for Text)
  #--------------------------------------------------------------------------
  def item_rect_for_text(index)
    rect = item_rect(index)
    rect.x += 4
    rect.width -= 8
    rect
  end
  #--------------------------------------------------------------------------
  # ○ Draw a basic area
  #--------------------------------------------------------------------------
  def draw_basic_area(rect, enemy)
    draw_enemy_ap(enemy, rect.x + 0, rect.y, 100)
  end
  #--------------------------------------------------------------------------
  # * Draw Item
  #--------------------------------------------------------------------------
  def draw_item(index)
    change_color(normal_color)
    enemy = $game_troop.alive_members[index]
    draw_basic_area(basic_area_rect(index), enemy)
    name = $game_troop.alive_members[index].name
    draw_text(item_rect_for_text(index), name) if R2_AP_Gauge_Pos::Draw_Name
  end
  #--------------------------------------------------------------------------
  # * Get Basic Area Retangle
  #--------------------------------------------------------------------------
  def basic_area_rect(index)
    rect = item_rect_for_text(index)
    rect.width -= 210
    rect
  end
end

#==============================================================================
# Scene_Battle
#==============================================================================

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * Create Enemy Window
  #--------------------------------------------------------------------------
  alias r2_enemy_ap_window_create create_enemy_window
  def create_enemy_window
    r2_enemy_ap_window_create
    @enemy_ap = Window_Enemy_AP.new(@status_window.height)
  end
  #--------------------------------------------------------------------------
  # ○ Redraw the information in the status window
  #--------------------------------------------------------------------------
  alias r2_redraw_ap_status redraw_status
  def redraw_status
    r2_redraw_ap_status
    @enemy_ap.refresh
  end
  #--------------------------------------------------------------------------
  # * Processing at End of Action
  #--------------------------------------------------------------------------
  alias r2_action_end_refresh_ap_gauge  process_action_end
  def process_action_end
    @enemy_ap.refresh
    r2_action_end_refresh_ap_gauge
  end
end
Thank you so much!! and the author of this script can be found at http://circlecross.sakura.ne.jp/rgss.html
the author of this script can be found at http://circlecross.sakura.ne.jp/rgss.html
Thanks. It's very interesting as the image on the site shows the gauge on the enemy but like the reason you posted this request, I didn't get that and didn't see a way that would allow it.
Maybe with some other script from Circle Cross.
Confirmed. all you needed was the display enemy info script
감사해요. 사이트의 이미지에 적에 대한 게이지가 표시되어 있어 매우 흥미롭지만 귀하가 이 요청을 게시한 이유와 같이 저는 그것을 이해하지 못했고 그것을 허용할 방법을 보지 못했습니다.
Circle Cross의 다른 대본과 함께일지도 모릅니다.
공정. 당신에게 필요한 것은 적 정보 스크립트를 보여주는 것이었습니다.
+I'm sorry to ask you twice, can this bar be displayed after the technology selection window?
+I'm sorry to ask you twice, can this bar be displayed after the technology selection window?
But this is an ATB bar. It's displayed to show when the enemy is going to act.
You also need to explain what a technology selection window is. I can assume you mean skill window, but want to be sure.
To have it show only when you select to use a skill kind of defeats the purpose in my opinion.

Also are you referring to my script or circle cross one?
But this is an ATB bar. It's displayed to show when the enemy is going to act.
You also need to explain what a technology selection window is. I can assume you mean skill window, but want to be sure.
To have it show only when you select to use a skill kind of defeats the purpose in my opinion.

Also are you referring to my script or circle cross one?
You're right to refer to a skill window (like an item window in combat). And I'm talking about your script
ok then, this will do what you say. If you wanted something different then you need to explain properly.
Spoiler: R2 - ATB Bar - hide until skill window
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Show ATB Bar for Enemies     ║  Version: 1.02     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║   Show Enemy ATB Bar                ║    06 Jun 2023     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║   Adjust the settings below                              ║
# ║                                                          ║
# ║   Due to the positioning of the enemy,                   ║
# ║   you will likely need to adjust the bar position        ║
# ║   so that the adjustment numbers are negative.           ║
# ║   This is because I used the enemies screen position     ║
# ║   which causes the bar to be at the bottom of the        ║
# ║   enemy position. The window is also set to not          ║
# ║   overlap the status window.                             ║
# ║                                                          ║
# ║   Requires Circle Cross AP script                        ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Terms of use:                                            ║
# ║ Free for all uses in RPG Maker - Except Nudity           ║
# ╚══════════════════════════════════════════════════════════╝

# ╔══════════════════════════════════════════════════════════╗
# ║ Customize below:                                         ║
# ╚══════════════════════════════════════════════════════════╝
module R2_AP_Gauge_Pos
  X_Adjust  = -70         # x position of the bar from the enemy position
  Y_Adjust  = -20         # y position of the bar from the enemy position
  EAP_Width  = 100        # Enemy Bar width
  EAP_Height = 12         # Enemy Bar height
  Enemy_Colour_1 = 17     # Starting colour of bar
  Enemy_Colour_2 = 29     # Ending colour of bar
  Draw_Enemy_Name = false # Draw enemy name
  EAP_Name_Below = true   # Draw Enemy Name below gauge
  AAP_Width  = 100        # Actor Bar width
  AAP_Height = 10         # Actor Bar height
  Actor_Colour_1 = 30     # Starting colour of bar
  Actor_Colour_2 = 31     # Ending colour of bar
end
# ╔══════════════════════════════════════════════════════════╗
# ║ End of Customization                                     ║
# ╚══════════════════════════════════════════════════════════╝

#==============================================================================
# Enemy AP
#==============================================================================
class Window_Enemy_AP < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     info_viewport : Viewport for displaying information
  #--------------------------------------------------------------------------
  def initialize(status)
    super(0, 0, Graphics.width, Graphics.height - status)
    self.opacity = 0
    self.contents_opacity = 255
    self.back_opacity = 0
    self.z = 1
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    contents.clear
    draw_all_items
  end
  #--------------------------------------------------------------------------
  # * Draw All Items
  #--------------------------------------------------------------------------
  def draw_all_items
    item_max.times {|i| draw_item(i) }
  end
  #--------------------------------------------------------------------------
  # * Get Number of Items
  #--------------------------------------------------------------------------
  def item_max
    $game_troop.alive_members.size
  end
  #--------------------------------------------------------------------------
  # * Get Spacing for Items Arranged Side by Side
  #--------------------------------------------------------------------------
  def spacing
    return 32
  end
  #--------------------------------------------------------------------------
  # ○ Assigning gauge colors
  #--------------------------------------------------------------------------
  def eap_gauge_color1;   text_color(R2_AP_Gauge_Pos::Enemy_Colour_1);  end
  def eap_gauge_color2;   text_color(R2_AP_Gauge_Pos::Enemy_Colour_2);  end
  #--------------------------------------------------------------------------
  # ○ AP Drawing
  #--------------------------------------------------------------------------
  def draw_enemy_ap(enemy, x, y, width = 124)
    draw_e_gauge(x, y, width, enemy.ap_rate, eap_gauge_color1, eap_gauge_color2)
  end
  #--------------------------------------------------------------------------
  # * Get Rectangle for Drawing Items
  #--------------------------------------------------------------------------
  def item_rect(index)
    enmy = $game_troop.alive_members[index]
    rect = Rect.new
    rect.width = R2_AP_Gauge_Pos::EAP_Width
    rect.height = R2_AP_Gauge_Pos::EAP_Height
    rect.height += 30 if R2_AP_Gauge_Pos::EAP_Name_Below
    rect.x = enmy.screen_x + R2_AP_Gauge_Pos::X_Adjust
    rect.y = enmy.screen_y + R2_AP_Gauge_Pos::Y_Adjust
    rect
  end
  #--------------------------------------------------------------------------
  # * Get Rectangle for Drawing Items (for Text)
  #--------------------------------------------------------------------------
  def item_rect_for_text(index)
    rect = item_rect(index)
    rect.x += 4
    rect.y -= 8
    rect.width -= 8
    rect.height += 8
    rect
  end
  #--------------------------------------------------------------------------
  # ○ Draw a basic area
  #--------------------------------------------------------------------------
  def draw_basic_area(rect, enemy)
    width = R2_AP_Gauge_Pos::EAP_Width
    draw_enemy_ap(enemy, rect.x + 0, rect.y, width)
  end
  #--------------------------------------------------------------------------
  # * Draw Item
  #--------------------------------------------------------------------------
  def draw_item(index)
    change_color(normal_color)
    enemy = $game_troop.alive_members[index]
    draw_basic_area(basic_area_rect(index), enemy)
    name = $game_troop.alive_members[index].name
    draw_text(item_rect_for_text(index), name) if R2_AP_Gauge_Pos::Draw_Enemy_Name
  end
  #--------------------------------------------------------------------------
  # * Get Basic Area Retangle
  #--------------------------------------------------------------------------
  def basic_area_rect(index)
    rect = item_rect_for_text(index)
    rect.width -= 210
    rect
  end
  #--------------------------------------------------------------------------
  # * Draw Gauge
  #     rate   : Rate (full at 1.0)
  #     color1 : Left side gradation
  #     color2 : Right side gradation
  #--------------------------------------------------------------------------
  def draw_e_gauge(x, y, width, rate, color1, color2)
    fill_w = (width * rate).to_i
    gauge_y = y + line_height - 8 - R2_AP_Gauge_Pos::EAP_Height
    gauge_h = R2_AP_Gauge_Pos::EAP_Height
    contents.fill_rect(x, gauge_y, width, gauge_h, gauge_back_color)
    contents.gradient_fill_rect(x, gauge_y, fill_w, gauge_h, color1, color2)
  end
end

#==============================================================================
# ** Window_BattleStatus
#==============================================================================

class Window_BattleStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # * Draw Basic Area
  #--------------------------------------------------------------------------
  alias r2_atb_draw_basic_area draw_basic_area
  def draw_basic_area(rect, actor)
    width = R2_AP_Gauge_Pos::AAP_Width
    draw_actor_ap(actor, rect.x + 0, rect.y, width)
    r2_atb_draw_basic_area(rect, actor)
  end
  #--------------------------------------------------------------------------
  # ○ Assigning gauge colors
  #--------------------------------------------------------------------------
  def ap_gauge_color1;   text_color(R2_AP_Gauge_Pos::Actor_Colour_1);  end
  def ap_gauge_color2;   text_color(R2_AP_Gauge_Pos::Actor_Colour_2);  end
  #--------------------------------------------------------------------------
  # ○ AP Gauge
  #--------------------------------------------------------------------------
  def draw_actor_ap(actor, x, y, width = 124)
    draw_ap_gauge(x, y, width, actor.ap_rate, ap_gauge_color1, ap_gauge_color2)
  end
  #--------------------------------------------------------------------------
  # * Draw Gauge
  #     rate   : Rate (full at 1.0)
  #     color1 : Left side gradation
  #     color2 : Right side gradation
  #--------------------------------------------------------------------------
  def draw_ap_gauge(x, y, width, rate, color1, color2)
    fill_w = (width * rate).to_i
    gauge_y = y + line_height - 4 - R2_AP_Gauge_Pos::AAP_Height
    gauge_h = R2_AP_Gauge_Pos::AAP_Height
    contents.fill_rect(x, gauge_y, width, gauge_h, gauge_back_color)
    contents.gradient_fill_rect(x, gauge_y, fill_w, gauge_h, color1, color2)
  end
end

#==============================================================================
# Scene_Battle
#==============================================================================

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * Create Enemy Window
  #--------------------------------------------------------------------------
  alias r2_enemy_ap_window_create create_enemy_window
  def create_enemy_window
    r2_enemy_ap_window_create
    @enemy_ap = Window_Enemy_AP.new(@status_window.height)
  end
  #--------------------------------------------------------------------------
  # ○ Redraw the information in the status window
  #--------------------------------------------------------------------------
  alias r2_redraw_ap_status redraw_status
  def redraw_status
    r2_redraw_ap_status
    @enemy_ap.refresh
  end
  #--------------------------------------------------------------------------
  # * Processing at End of Action
  #--------------------------------------------------------------------------
  alias r2_action_end_refresh_ap_gauge  process_action_end
  def process_action_end
    @enemy_ap.refresh
    r2_action_end_refresh_ap_gauge
  end
  #--------------------------------------------------------------------------
  # * [Skill] Command
  #--------------------------------------------------------------------------
  alias r2_show_ap_enemy_skill_command  command_skill
  def command_skill
    r2_show_ap_enemy_skill_command
    @enemy_ap.hide
  end
  #--------------------------------------------------------------------------
  # * Skill [OK]
  #--------------------------------------------------------------------------
  alias r2_skill_ok_ap_hide   on_skill_ok
  def on_skill_ok
    @enemy_ap.show
    r2_skill_ok_ap_hide
  end
  #--------------------------------------------------------------------------
  # * Skill [Cancel]
  #--------------------------------------------------------------------------
  alias r2_on_skill_ap_cancel_window   on_skill_cancel
  def on_skill_cancel
    @enemy_ap.show
    r2_on_skill_ap_cancel_window
  end
end
ok then, this will do what you say. If you wanted something different then you need to explain properly.
Spoiler: R2 - ATB Bar - hide until skill window
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Show ATB Bar for Enemies     ║  Version: 1.02     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║   Show Enemy ATB Bar                ║    06 Jun 2023     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║   Adjust the settings below                              ║
# ║                                                          ║
# ║   Due to the positioning of the enemy,                   ║
# ║   you will likely need to adjust the bar position        ║
# ║   so that the adjustment numbers are negative.           ║
# ║   This is because I used the enemies screen position     ║
# ║   which causes the bar to be at the bottom of the        ║
# ║   enemy position. The window is also set to not          ║
# ║   overlap the status window.                             ║
# ║                                                          ║
# ║   Requires Circle Cross AP script                        ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Terms of use:                                            ║
# ║ Free for all uses in RPG Maker - Except Nudity           ║
# ╚══════════════════════════════════════════════════════════╝

# ╔══════════════════════════════════════════════════════════╗
# ║ Customize below:                                         ║
# ╚══════════════════════════════════════════════════════════╝
module R2_AP_Gauge_Pos
  X_Adjust  = -50         # x position of the bar from the enemy position
  Y_Adjust  = -40         # y position of the bar from the enemy position
  EAP_Width  = 100        # Enemy Bar width
  EAP_Height = 12         # Enemy Bar height
  Enemy_Colour_1 = 17     # Starting colour of bar
  Enemy_Colour_2 = 29     # Ending colour of bar
  Draw_Enemy_Name = false  # Draw enemy name
  EAP_Name_Below = true  # Draw Enemy Name below gauge
  AAP_Width  = 100        # Actor Bar width
  AAP_Height = 10         # Actor Bar height
  Actor_Colour_1 = 30     # Starting colour of bar
  Actor_Colour_2 = 31     # Ending colour of bar
end
# ╔══════════════════════════════════════════════════════════╗
# ║ End of Customization                                     ║
# ╚══════════════════════════════════════════════════════════╝

#==============================================================================
# Enemy AP
#==============================================================================
class Window_Enemy_AP < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     info_viewport : Viewport for displaying information
  #--------------------------------------------------------------------------
  def initialize(status)
    super(0, 0, Graphics.width, Graphics.height - status)
    self.opacity = 0
    self.contents_opacity = 255
    self.back_opacity = 0
    self.z = 1
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    contents.clear
    draw_all_items
  end
  #--------------------------------------------------------------------------
  # * Draw All Items
  #--------------------------------------------------------------------------
  def draw_all_items
    item_max.times {|i| draw_item(i) }
  end
  #--------------------------------------------------------------------------
  # * Get Number of Items
  #--------------------------------------------------------------------------
  def item_max
    $game_troop.alive_members.size
  end
  #--------------------------------------------------------------------------
  # * Get Spacing for Items Arranged Side by Side
  #--------------------------------------------------------------------------
  def spacing
    return 32
  end
  #--------------------------------------------------------------------------
  # ○ Assigning gauge colors
  #--------------------------------------------------------------------------
  def eap_gauge_color1;   text_color(R2_AP_Gauge_Pos::Enemy_Colour_1);  end
  def eap_gauge_color2;   text_color(R2_AP_Gauge_Pos::Enemy_Colour_2);  end
  #--------------------------------------------------------------------------
  # ○ AP Drawing
  #--------------------------------------------------------------------------
  def draw_enemy_ap(enemy, x, y, width = 124)
    draw_e_gauge(x, y, width, enemy.ap_rate, eap_gauge_color1, eap_gauge_color2)
  end
  #--------------------------------------------------------------------------
  # * Get Rectangle for Drawing Items
  #--------------------------------------------------------------------------
  def item_rect(index)
    enmy = $game_troop.alive_members[index]
    rect = Rect.new
    rect.width = R2_AP_Gauge_Pos::EAP_Width
    rect.height = R2_AP_Gauge_Pos::EAP_Height
    rect.height += 30 if R2_AP_Gauge_Pos::EAP_Name_Below
    rect.x = enmy.screen_x + R2_AP_Gauge_Pos::X_Adjust
    rect.y = enmy.screen_y + R2_AP_Gauge_Pos::Y_Adjust
    rect
  end
  #--------------------------------------------------------------------------
  # * Get Rectangle for Drawing Items (for Text)
  #--------------------------------------------------------------------------
  def item_rect_for_text(index)
    rect = item_rect(index)
    rect.x += 4
    rect.y -= 8
    rect.width -= 8
    rect.height += 8
    rect
  end
  #--------------------------------------------------------------------------
  # ○ Draw a basic area
  #--------------------------------------------------------------------------
  def draw_basic_area(rect, enemy)
    width = R2_AP_Gauge_Pos::EAP_Width
    draw_enemy_ap(enemy, rect.x + 0, rect.y, width)
  end
  #--------------------------------------------------------------------------
  # * Draw Item
  #--------------------------------------------------------------------------
  def draw_item(index)
    change_color(normal_color)
    enemy = $game_troop.alive_members[index]
    draw_basic_area(basic_area_rect(index), enemy)
    name = $game_troop.alive_members[index].name
    draw_text(item_rect_for_text(index), name) if R2_AP_Gauge_Pos::Draw_Enemy_Name
  end
  #--------------------------------------------------------------------------
  # * Get Basic Area Retangle
  #--------------------------------------------------------------------------
  def basic_area_rect(index)
    rect = item_rect_for_text(index)
    rect.width -= 210
    rect
  end
  #--------------------------------------------------------------------------
  # * Draw Gauge
  #     rate   : Rate (full at 1.0)
  #     color1 : Left side gradation
  #     color2 : Right side gradation
  #--------------------------------------------------------------------------
  def draw_e_gauge(x, y, width, rate, color1, color2)
    fill_w = (width * rate).to_i
    gauge_y = y + line_height - 8 - R2_AP_Gauge_Pos::EAP_Height
    gauge_h = R2_AP_Gauge_Pos::EAP_Height
    contents.fill_rect(x, gauge_y, width, gauge_h, gauge_back_color)
    contents.gradient_fill_rect(x, gauge_y, fill_w, gauge_h, color1, color2)
  end
end

#==============================================================================
# ** Window_BattleStatus
#==============================================================================

class Window_BattleStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # * Draw Basic Area
  #--------------------------------------------------------------------------
  alias r2_atb_draw_basic_area draw_basic_area
  def draw_basic_area(rect, actor)
    width = R2_AP_Gauge_Pos::AAP_Width
    draw_actor_ap(actor, rect.x + 0, rect.y, width)
    r2_atb_draw_basic_area(rect, actor)
  end
  #--------------------------------------------------------------------------
  # ○ Assigning gauge colors
  #--------------------------------------------------------------------------
  def ap_gauge_color1;   text_color(R2_AP_Gauge_Pos::Actor_Colour_1);  end
  def ap_gauge_color2;   text_color(R2_AP_Gauge_Pos::Actor_Colour_2);  end
  #--------------------------------------------------------------------------
  # ○ AP Gauge
  #--------------------------------------------------------------------------
  def draw_actor_ap(actor, x, y, width = 124)
    draw_ap_gauge(x, y, width, actor.ap_rate, ap_gauge_color1, ap_gauge_color2)
  end
  #--------------------------------------------------------------------------
  # * Draw Gauge
  #     rate   : Rate (full at 1.0)
  #     color1 : Left side gradation
  #     color2 : Right side gradation
  #--------------------------------------------------------------------------
  def draw_ap_gauge(x, y, width, rate, color1, color2)
    fill_w = (width * rate).to_i
    gauge_y = y + line_height - 4 - R2_AP_Gauge_Pos::AAP_Height
    gauge_h = R2_AP_Gauge_Pos::AAP_Height
    contents.fill_rect(x, gauge_y, width, gauge_h, gauge_back_color)
    contents.gradient_fill_rect(x, gauge_y, fill_w, gauge_h, color1, color2)
  end
end

#==============================================================================
# Scene_Battle
#==============================================================================

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * Create Enemy Window
  #--------------------------------------------------------------------------
  alias r2_enemy_ap_window_create create_enemy_window
  def create_enemy_window
    r2_enemy_ap_window_create
    @enemy_ap = Window_Enemy_AP.new(@status_window.height)
    @enemy_ap.hide
  end
  #--------------------------------------------------------------------------
  # ○ Redraw the information in the status window
  #--------------------------------------------------------------------------
  alias r2_redraw_ap_status redraw_status
  def redraw_status
    r2_redraw_ap_status
    @enemy_ap.refresh
  end
  #--------------------------------------------------------------------------
  # * Processing at End of Action
  #--------------------------------------------------------------------------
  alias r2_action_end_refresh_ap_gauge  process_action_end
  def process_action_end
    @enemy_ap.refresh
    r2_action_end_refresh_ap_gauge
  end
  #--------------------------------------------------------------------------
  # * [Skill] Command
  #--------------------------------------------------------------------------
  alias r2_show_ap_enemy_skill_command  command_skill
  def command_skill
    r2_show_ap_enemy_skill_command
    @enemy_ap.show
  end
  #--------------------------------------------------------------------------
  # * Skill [OK]
  #--------------------------------------------------------------------------
  alias r2_skill_ok_ap_hide   on_skill_ok
  def on_skill_ok
    @enemy_ap.hide
    r2_skill_ok_ap_hide
  end
  #--------------------------------------------------------------------------
  # * Skill [Cancel]
  #--------------------------------------------------------------------------
  alias r2_on_skill_ap_cancel_window   on_skill_cancel
  def on_skill_cancel
    @enemy_ap.hide
    r2_on_skill_ap_cancel_window
  end
end
I'm so sorry, the translation is wrong, I meant to say the back, not before.
I'm so sorry, the translation is wrong, I meant to say the back, not before.
You must mean the opposite. Done. above script reversed so that the bar will hide when showing the skill window
I've checked it now! Thank you so much.

Original thread: https://forums.rpgmakerweb.com/threads/to-display-the-atb-gauge-at-the-foot-of-an-enemy.157667/