[ACE] Battle Status Window Sliding

Hi!

In the default RPG Maker VX Ace battle system, you have your window with the hp/mp/name/etc. It moves around if there are other windows around it namely switching left or right depending on if it's fight/run or attack/magic/etc. dialog box. Then when those are gone, it goes back to the center. It does the same thing in Yanfly's battle engine and well, I dislike the moving.

So my question: How do I stop the main status box from moving at all? I'd like it to stay to one side if at all possible. Just point me in the right direction if you know which script/which line.

I realize this is probably really simple but I am still not very good with scripting at all so any help would be appreciated.

Thank you!
BattleScene, update_info_viewport.
backtrack from there.

you want to look at the objects window_partycommand and window_actorcommand.
it would read [email protected], or something like that, that means at some point the window shifts to the left, beyond the x = 0.
@gstv87 Thank you! Took a bit to find exactly what you meant but I got it!

For anyone curious it was pretty much in Scene_Battle

#--------------------------------------------------------------------------
# * Update Information Display Viewport
#--------------------------------------------------------------------------
def update_info_viewport
move_info_viewport(0) if @party_command_window.active
move_info_viewport(128) if @actor_command_window.active
move_info_viewport(64) if BattleManager.in_turn?
end
#--------------------------------------------------------------------------
# * Move Information Display Viewport
#--------------------------------------------------------------------------
def move_info_viewport(ox)
current_ox = @info_viewport.ox
@info_viewport.ox = [ox, current_ox + 16].min if current_ox < ox
@info_viewport.ox = [ox, current_ox - 16].max if current_ox > ox
end

and then just comment out where the game errors after you comment all that out (I think there were two?). Huzzah.
Thanks a lot. 😂

Mod can close this now since it's been solved.
that window was among the first things I modified as well 😀

Original thread: https://forums.rpgmakerweb.com/threads/ace-battle-status-window-sliding.95434/