[ACE] Battle Status Window Sliding

Ronove

♫꒰・‿・๑꒱
Veteran
Joined
Mar 12, 2012
Messages
1,028
Reaction score
345
First Language
English
Primarily Uses
RMVXA
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!
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
1,884
Reaction score
890
First Language
Spanish
Primarily Uses
RMVXA
BattleScene, update_info_viewport.
backtrack from there.

you want to look at the objects window_partycommand and window_actorcommand.
it would read -@window.x, or something like that, that means at some point the window shifts to the left, beyond the x = 0.
 

Ronove

♫꒰・‿・๑꒱
Veteran
Joined
Mar 12, 2012
Messages
1,028
Reaction score
345
First Language
English
Primarily Uses
RMVXA
@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. :kaojoy:

Mod can close this now since it's been solved.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
1,884
Reaction score
890
First Language
Spanish
Primarily Uses
RMVXA
that window was among the first things I modified as well :D
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

A wave of cold air has hit Canada... I know it's "always cold", but this one is especially cold... I'm freezing to death lol.
Have fun with English: a "fire grenade" is not portable napalm but a fire extinguisher tool.
2 days ago someone tried to convert me to Islam. Today youtube tried to convert me to Catholicism. The only thing left would be to meet sone Jehova's witnesses.
I just successfully tested changing music by region, and changing it between continents on the world map after getting on/off the airship. I had to override the default audio transitions with eventing to make it change smoothly but it worked.
Stream will be going live shortly with some more Witcher 3, then we will switch to another game! Feel free to drop by~

Forum statistics

Threads
93,419
Messages
912,200
Members
122,925
Latest member
JoetSmith
Top