I am using the Enemy_HP_Bars script along with its supports Ace Core and Battle Engine. The big issue I am having is that I do not want the portraits or small bars. The thing if I want it to look like how it did before the scripts as much as possible and I got things like the bars the right colors and size and stuff like that but with the battle engine I can not figure out how to revert to the vanilla look while keeping HP Bars enabled.
VXAce Yanfly Battle Engine, How to revert it to look default?
RGSS3 Script RequestsIs there a section in the script where you can set the portraits to false? Also, what do you mean by small bars? Do you have a screenshot?
Thank you! It does work.
I do have one more question, how do I get rid of this box that appears when selecting who to attack? I tried searching the scripts but could not find it.
I did not handle it originally, but here is an updated version, you can handle the enemy window, the flashing effect of targets, the name window above (which is handled by
Window_BattleHelp and named @help_window in the scene) and even skip the selection for random/all/user targeting like the vanilla battle handled originally.
Ruby:
#==============================================================================
# Yanfly Battle Engine with original character menu v1.4
#------------------------------------------------------------------------------
# Author: Timtrack
# date: 29/03/2026
# Requires: Yanfly Engine Ace - Ace Battle Engine v1.22
#==============================================================================
# Update history:
# 14/07/2025: v1.0 - Initial release
# 05/09/2025: v1.1 - Added an alias for compatibility with menu switch
# 09/11/2025: v1.2 - Restored original item and skill menus
# 09/11/2025: v1.3 - Skills/Item menus are hidden when selecting enemies
# 29/03/2026: v1.4 - Enemy Window can now be restored to vanilla, added options
# to hide name window on top of battlers and disbale
# flashing targets
#==============================================================================
# Installation: put it below the required scripts
#==============================================================================
$imported = {} if $imported.nil?
$imported["TIM-YEA-ABE-OriginalMenu"] = true
module TIM
module YBE_OCM
#displays the action icon next to the actor's name like in Yanfly Battle
#Engine (true) or remove it to have the vanilla look? (false)
SHOW_ACTOR_ACTION = false
#set the skills and items orgiinal menu:
SKILL_ITEMS_ORIGINAL_MENU = true
#use this to show the enemy selection window in a vanilla way
#(works best if vanilla item/skill is true)
BATTLE_ENEMY_WINDOW_SHOW = true
#set this to true to hide the name window on top of battlers when selecting
#target actors or enemies (works best if show battle enemy window is true)
HIDE_BATTLE_HELP = true
#set this to true to disable the flash of the target when selecting it
#(works best if show battle enemy window is true)
DISABLE_TARGET_FLASH = true
#set this to true to skip "confirmation" when using random, user or all
#targeting skills (to have vanilla way of using skills)
SKIP_NO_TARGET_CASE = true
end #YBE_OCM
end #TIM
if $imported["TIM-YEA-ABE-OriginalMenu"] && $imported["YEA-BattleEngine"]
#==============================================================================
# Window_BattleStatus
#==============================================================================
class Window_BattleStatus < Window_Selectable
#--------------------------------------------------------------------------
# alias method: col_max
#--------------------------------------------------------------------------
alias ybe_wbstatus_col_max col_max
def col_max; return 1; end
#--------------------------------------------------------------------------
# alias method: draw_item
#--------------------------------------------------------------------------
alias ybe_wbstatus_draw_item draw_item
def draw_item(index)
return if index.nil? #nil case
clear_item(index)
actor = battle_members[index]
return if actor.nil? #nil case
rect = basic_area_rect(index)
draw_basic_area(rect, actor)
draw_gauge_area(gauge_area_rect(index), actor)
draw_actor_action(actor, rect.x, rect.y) if TIM::YBE_OCM::SHOW_ACTOR_ACTION
end
#--------------------------------------------------------------------------
# overwrite method: item_rect
#--------------------------------------------------------------------------
alias ybe_wbstatus_item_rect item_rect
def item_rect(index); super(index); end
#--------------------------------------------------------------------------
# overwrite method: draw_actor_name
#--------------------------------------------------------------------------
alias ybe_ocm_draw_actor_name draw_actor_name
unless TIM::YBE_OCM::SHOW_ACTOR_ACTION
def draw_actor_name(actor, dx, dy, dw = 112)
super
end
end #TIM::YBE_OCM::SHOW_ACTOR_ACTION
end #Window_BattleStatus
#==============================================================================
# Window_BattleStatusAid
#==============================================================================
class Window_BattleStatusAid < Window_BattleStatus
#--------------------------------------------------------------------------
# restore aliased methods: col_max, draw_item, draw_actor_name
#--------------------------------------------------------------------------
def col_max; ybe_wbstatus_col_max; end
def draw_item(index); ybe_wbstatus_draw_item(index); end
def draw_actor_name(actor,dx,dy,dw=112)
ybe_ocm_draw_actor_name(actor,dx,dy,dw)
end
end #Window_BattleStatusAid
#==============================================================================
# Scene_Battle
#==============================================================================
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# alias method: select_enemy_selection
#--------------------------------------------------------------------------
alias ybe_ocm_scene_battle_select_enemy_selection select_enemy_selection
def select_enemy_selection
if TIM::YBE_OCM::SKILL_ITEMS_ORIGINAL_MENU
@skill_window.hide
@item_window.hide
end
ybe_ocm_scene_battle_select_enemy_selection
@help_window.hide if TIM::YBE_OCM::HIDE_BATTLE_HELP
skip_enemy_selection if skip_target_selection?
end
#--------------------------------------------------------------------------
# alias method: select_actor_selection
#--------------------------------------------------------------------------
alias ybe_ocm_scene_battle_select_actor_selection select_actor_selection
def select_actor_selection
ybe_ocm_scene_battle_select_actor_selection
@help_window.hide if TIM::YBE_OCM::HIDE_BATTLE_HELP
skip_actor_selection if skip_target_selection?
end
#--------------------------------------------------------------------------
# new method: skip_target_selection?
#--------------------------------------------------------------------------
def skip_target_selection?
return false unless TIM::YBE_OCM::SKIP_NO_TARGET_CASE
!BattleManager.actor.input.item.need_selection?
end
#--------------------------------------------------------------------------
# new method: skip_enemy_selection
#--------------------------------------------------------------------------
def skip_enemy_selection
@enemy_window.deactivate
on_enemy_ok
end
#--------------------------------------------------------------------------
# new method: skip_actor_selection
#--------------------------------------------------------------------------
def skip_actor_selection
@actor_window.deactivate
on_actor_ok
end
end #Scene_Battle
#==============================================================================
# Big modifications with Skill and Item restoration
#==============================================================================
if TIM::YBE_OCM::SKILL_ITEMS_ORIGINAL_MENU
#==============================================================================
# Scene_Battle -> restore original windows
#==============================================================================
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# overwrite method: create_skill_window
#--------------------------------------------------------------------------
def create_skill_window
scene_battle_create_skill_window_abe
end
#--------------------------------------------------------------------------
# overwrite method: create_item_window
#--------------------------------------------------------------------------
def create_item_window
scene_battle_create_item_window_abe
end
#--------------------------------------------------------------------------
# overwrite method: command_skill
#--------------------------------------------------------------------------
def command_skill
scene_battle_command_skill_abe
end
#--------------------------------------------------------------------------
# overwrite method: command_item
#--------------------------------------------------------------------------
def command_item
scene_battle_command_item_abe
end
#--------------------------------------------------------------------------
# alias method: on_actor_cancel
#--------------------------------------------------------------------------
alias ybe_ocm_scene_battle_on_actor_cancel on_actor_cancel
def on_actor_cancel
ybe_ocm_scene_battle_on_actor_cancel
@status_window.show
end
#--------------------------------------------------------------------------
# alias method: on_enemy_cancel
#--------------------------------------------------------------------------
alias ybe_ocm_scene_battle_on_enemy_cancel on_enemy_cancel
def on_enemy_cancel
ybe_ocm_scene_battle_on_enemy_cancel
@status_window.show
case @actor_command_window.current_symbol
when :skill
@skill_window.show
when :item
@item_window.show
end
end
end # Scene_Battle
#==============================================================================
# Window_SkillList
#==============================================================================
class Window_SkillList < Window_Selectable
#--------------------------------------------------------------------------
# overwrite method: spacing -> restore original
#--------------------------------------------------------------------------
def spacing; super; end
end # Window_SkillList
#==============================================================================
# Window_ItemList
#==============================================================================
class Window_ItemList < Window_Selectable
#--------------------------------------------------------------------------
# overwrite method: spacing -> restore original
#--------------------------------------------------------------------------
def spacing; super; end
end # Window_ItemList
end # TIM::YBE_OCM::SKILL_ITEMS_ORIGINAL_MENU
#==============================================================================
# Window_BattleEnemy
#==============================================================================
class Window_BattleEnemy < Window_Selectable
if TIM::YBE_OCM::BATTLE_ENEMY_WINDOW_SHOW
#--------------------------------------------------------------------------
# overwrite method: initialize -> restore vanilla behavior
#--------------------------------------------------------------------------
def initialize(info_viewport)
super(0, info_viewport.rect.y, window_width, fitting_height(4))
refresh
self.visible = false
@info_viewport = info_viewport
end
#--------------------------------------------------------------------------
# overwrite method: col_max -> restore vanilla behavior
#--------------------------------------------------------------------------
def col_max; return 2; end
#--------------------------------------------------------------------------
# overwrite method: draw_item -> restore vanilla behavior
#--------------------------------------------------------------------------
def draw_item(index)
change_color(normal_color)
name = $game_troop.alive_members[index].name
draw_text(item_rect_for_text(index), name)
end
#--------------------------------------------------------------------------
# alias method: show -> restore vanilla behavior on top of Yanfly's effects
#--------------------------------------------------------------------------
alias ybe_ocm_win_benemy_show show
def show
if @info_viewport
width_remain = Graphics.width - width
self.x = width_remain
@info_viewport.rect.width = width_remain
select(0)
end
ybe_ocm_win_benemy_show
end
end # TIM::YBE_OCM::BATTLE_ENEMY_WINDOW_SHOW
#--------------------------------------------------------------------------
# overwrite method: update -> disable flash if option is selected
#--------------------------------------------------------------------------
if TIM::YBE_OCM::DISABLE_TARGET_FLASH
def update; super; end
end # TIM::YBE_OCM::BATTLE_ENEMY_WINDOW_SHOW
end # Window_BattleEnemy
end #$imported["TIM-YEA-ABE-OriginalMenu"]
It is provided as is, I can bugfix stuff but if you want more features on this I won't help any further (sorry :3).
Original thread: https://forums.rpgmakerweb.com/threads/yanfly-battle-engine-how-to-revert-it-to-look-default.183037/