Troops Arrangement Help!

How can I make the enemy troops automatically align ike the actors?

Spoiler
[IMG]http://orig12.deviantart.net/3bf7/f/2015/094/7/7/party_by_espillam-d8ofmzj.jpg[/IMG]Pokemon sprites are place holders.
Here's the code I used to make the actors apear in the battle scene:

Spoiler
=beginBasic Side View Battle Scriptby Fomar0153Version 1.0----------------------Notes----------------------No requirementsDisplays battlers for the player's party.----------------------Instructions----------------------You will need to import battlers for the party to usethey should be named like this:name_battlere.g.Ralph_battler----------------------Known bugs----------------------None=endclass Game_Actor < Game_Battler #-------------------------------------------------------------------------- # ● New Method battler_name #-------------------------------------------------------------------------- def battler_name return actor.name + "_battler" end #-------------------------------------------------------------------------- # ● Rewrites use_sprite? #-------------------------------------------------------------------------- def use_sprite? return true end #-------------------------------------------------------------------------- # ● New Method screen_x #-------------------------------------------------------------------------- def screen_x return 450 end #-------------------------------------------------------------------------- # ● New Method screen_y #-------------------------------------------------------------------------- def screen_y return 120 + self.index * 40 end #-------------------------------------------------------------------------- # ● New Method screen_z #-------------------------------------------------------------------------- def screen_z return 100 endendclass Spriteset_Battle #-------------------------------------------------------------------------- # ● Rewrites create_actors #-------------------------------------------------------------------------- def create_actors @actor_sprites = $game_party.battle_members.reverse.collect do |actor| Sprite_Battler.new(@viewport1, actor) end endend 
Theres a button in the troops settings that automaticaly aligns them in an horizontal line.

Spoiler
[IMG]http://orig07.deviantart.net/f975/f/2015/094/6/1/arrange_by_espillam-d8ofn0c.jpg[/IMG]
Is there a way to make that button arrange the troops like the actors. Or is there a similar script that can arrange the enemy troops?

Thank you.

Pokemon Sprites are place holders, I'm not doing anything pokemon related, I'll be using my own sprites.
No, you cannot change what things in the editor do. You can only change what things in the scripts do. You would have to write a script that calculates the positions of the enemy sprites rather than taking it from the x and y in the database.
On the troops window, you can click and drag the actual troop image (the one that you can see) across the background.
I don't think that script is controlling where your actor sprites are, either. Your screen_x method returns the same value for all actors, but clearly they're not at the same x coordinate.

Original thread: https://forums.rpgmakerweb.com/threads/troops-arrangement-help.38581/