Help - Search - Members - Calendar
Full Version: Battle Menu Text Alignment
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
revolverwinds
Hello all,

My game only uses one character and when I enter the battle process his command menu appears on the far left while his sprite(I'm using a side view system) appears way to the right. How would I go about changing where the command menu text is drawn(so it aligns to the right)? I would be happily grateful for some instruction.

Decedent
Sounds like your using a script to make the battles side view. I would first search the topic where you found the script for other people asking the same thing. Generally in the script somewhere you will find values for stuff like command window X and Y positions. It's different for every script, but if you can get the idea of what your looking for you can try what I did.

Find the line of script that looks like it may change the value (lets say its at 300). Change that to something extremely different (like 1), remember the old value, save then test it in the troop page. If the window moves, you know that's what you have to change. If not, return the value back to what it was before, and try another.

I would highly recommend backing up your game or at least the script when doing this, you may accidently change a value, or put too many spaces into something and save without realising.
revolverwinds
Thank you for your reply, however the custom system I'm using doesn't impact the menu. My project is still running the old game values as it pertains to how the menu is drawn. So, would you happen to know how you would influence these qualities in the basic game script?
Jens of Zanicuud
The answer is here:

Scene Battle 3, line 81.

CODE
@actor_command_window.x = @actor_index * 160


Window X value is set this way.
Try modifying that value.

To align it far right, try setting it to 480, replacing the existing value.

Scene Battle 3, line 81.
CODE
@actor_command_window.x = 480


Try and let me know...

Jens
revolverwinds
Thank you again. However, I'm afraid that didn't work. I'm using minkoff's system, and while I'm almost certain that it doesn't modify the general battle menu, I'm wondering if perhaps it does. I can't find any part of it that might, and certainly the guide doesn't have any mention of windows that I can find.
Jens of Zanicuud
Press CTRL + F in the script form and search for

@actor_command_window.x =

This is the method which controls that window.

If there are any other instances of this

@actor_command_window.x = @actor_index * 160

replace them all with this:

@actor_command_window.x = 480

I hope this could help...

Jens
revolverwinds
The script I'm using must be overriding it somehow wacko.gif . But alas, I've come to accept the menu as it is. Thank you for your attention to my question irregardless.
Jens of Zanicuud
Don't give up this way smile.gif
Just send me a link to your project Data (i.e. upload zipped Data folder to Mediafire and PM me the link).
Between four days, I'll fix it.

Jens
revolverwinds
That's very kind of you. I'll be sure to send it to you.
Vexus
Try this custom menu layout for combat:

http://forum.chaos-project.com/index.php?topic=2506.0

I had your problem too with a side view battle system. (Tough mine was that it was silly for the command window showing at the bottom when the characters are in the middle of the screen.)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.