Hello Airshipcanon
Actually it is not officially supported by the script BUT there is a way to do it !
I'm going to use yanfly plugin button common event :
http://yanfly.moe/2016/01/23/yep-061-button-common-events/
AND
Yanfly base parameters control (this one is optional) but you will need it if you want full control over leadership :
http://yanfly.moe/2016/03/25/yep-86-base-parameter-control/
Before using that you have to understand how lecode system works:
When you place "ally" cells, the event will have an ID and this ID is very important because the lowest event ID will be the first ally location depending of ally leadership.
By default, ally leadership = ally agility stat
If an ally agility is equal to one other ally agility, then the last one in the party formation will have the leadership :
So if we have ally X with 95 agility (first position in party)
Ally Y with 90 agility (second position in party)
Ally Z with 90 agility (third position in party)
Ally X will be first because he got the highest agility stat
Ally Z will be second because he have the same agility as ally Y but he is the last one in the formation
Ally Y will be last
So ally X will be by default on the lower event "ally" ID, ally Z just after and so on.
Now you can force positioning by settings the cells :
You can use yanfly base parameter control to set a state that will greatly boost a player agility stat (so it will be the first to play, so he will be on the lowest ID event) with the tag :
<agi Plus: +999>
(you have to inflict the state before the battle starts and don't forget to remove the state afterward or agility based attacks will deal extreme damages :
(In troop event, condition turn 0 + 1 span BATTLE remove all actors agility buff))
Now the question is :
How to force the player to chose the lowest position ID?
With the yanfly common event button you can use a
plugin command :
TriggerButton Ok
If you set up a common event like this :
Wait 1 frame
Plugin command: TriggerButton Ok
with parallel process
when the switch X is activated, you just have to activate the switch X just before a battle starts and the player won't have the time to do anything the battle will start where you set up the positions (it will accept default positioning phase very very fast)
Don't forget to put your switch back to OFF on the first battle turn or the game will press Enter button forever on a loop.
(In troop event, condition turn 0 + 1 span BATTLE Set the switch X to OFF)