VXAce Adjusting Yanfly's Battle Engine?

So I love the script, but for my new project I prefer the look of the default battle window with the bars next to the name. How would I be able to have both that and all the feature the script has? I assume it's as easy as deleting a chunk of the script but I'm not too sure where would be best
EDIT: I realise this is not the right place to post. Oops.

I've moved this thread to Script Support (from VX Support). Thank you.

Hi!

Changing this back to the original window was not as simple as commenting a few lines, the reason being that another class in the engine uses this display: when selecting a skill or an item, the actor's face is displayed on the side, using the display with the actor's face.
1752524610271.png


I did a modification of the script such that the bars are displayed like you want, but the actor's face will still be used when selecting a skill or item, unless you want another specifc behavior.
1752524703620.png


You can put my 'patch' below yanfly's script
Ruby:
#==============================================================================
# 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
    draw_basic_area(basic_area_rect(index), actor)
    draw_gauge_area(gauge_area_rect(index), actor)
  end
  #--------------------------------------------------------------------------
  # overwrite method: item_rect
  #--------------------------------------------------------------------------
  def item_rect(index); super(index); end
end #Window_BattleStatus

#==============================================================================
# Window_BattleStatusAid
#==============================================================================
class Window_BattleStatusAid < Window_BattleStatus
  #--------------------------------------------------------------------------
  # restore aliased methods: col_max, draw_item
  #--------------------------------------------------------------------------
  def col_max; ybe_wbstatus_col_max; end 
  def draw_item(index); ybe_wbstatus_draw_item(index); end
end #Window_BattleStatusAid
I tried deleting a chunk of script and although it gave me what I wanted, I think I cut too much since using items no longer worked. This, though? Definitely better than what I did. I can work around the sole portrait issue. Thank you for your help!
Hi!

Changing this back to the original window was not as simple as commenting a few lines, the reason being that another class in the engine uses this display: when selecting a skill or an item, the actor's face is displayed on the side, using the display with the actor's face.
View attachment 345052

I did a modification of the script such that the bars are displayed like you want, but the actor's face will still be used when selecting a skill or item, unless you want another specifc behavior.
View attachment 345053

You can put my 'patch' below yanfly's script
Ruby:
#==============================================================================
# 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
    draw_basic_area(basic_area_rect(index), actor)
    draw_gauge_area(gauge_area_rect(index), actor)
  end
  #--------------------------------------------------------------------------
  # overwrite method: item_rect
  #--------------------------------------------------------------------------
  def item_rect(index); super(index); end
end #Window_BattleStatus

#==============================================================================
# Window_BattleStatusAid
#==============================================================================
class Window_BattleStatusAid < Window_BattleStatus
  #--------------------------------------------------------------------------
  # restore aliased methods: col_max, draw_item
  #--------------------------------------------------------------------------
  def col_max; ybe_wbstatus_col_max; end
  def draw_item(index); ybe_wbstatus_draw_item(index); end
end #Window_BattleStatusAid
Hi again, just tested out using a full party and noticed an issue.
1756513755020.png

The last party member's HP bar is visible, as you can see. I was testing out skills and items, and this was one of two unfortunate surprises
The last party member's HP bar is visible, as you can see. I was testing out skills and items, and this was one of two unfortunate surprises
I'm not sure I understand your sentence here.

From the picture I see, there are two issues:
-the hp/mp are not displayed next to the names
-there are hp/mp bars at the bottom of the party window that are overlapping, maybe they are from each party members?

I don't have these issues (using only Yanfly Battle Engine and my script).
Do you use any other script that might change the display of the battle menu? Maybe some battle scripts like addons to the battle engine?

Can you try this on an empty project with just my script and Yanfly's to see if you have issues?
Been a while, but progress has been slow. Life stuff. Seen your update too and I hope you're doing well.

Anyways, turns out the issue was another script clashing with your patch. But unfortunately there is a new issue: enemy animations remain fixated on the same spot, ignoring the position.

1777304249067.png
1777304328136.png
Hello, just so you know the script evolved a bit since there has been more than one request since yours about this, to keep the chain of reference (or is it a loop now?), here is the latest thread and you can find the last version of my "patch" on my git repo.

But unfortunately there is a new issue: enemy animations remain fixated on the same spot, ignoring the position.
This is somehow to be expected as they were tracking the character's rectangle on the window (or more precisely it's x position). I can change this to be centered on the rectangle and stuff, but you might not see a huge difference between your first or second member being hit and some animations may be hard to see as they are displayed below the window. Alternatively, I can disable the animation and the popups to be faithful to the default battle system if you want?
...Funny enough I did find it not long after I posted, hoping there might be the off-chance I got lucky. The version in the repo is perfect, the issue is fixed, you are amazing, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/adjusting-yanflys-battle-engine.178881/