Looking for script for party leader's position in battle

leader.png


I'm making an action sequence that brings all my three characters to the same x position, which is about leader's X + 100.
To do that I need a script for the leader's X position.

I know this script.
$subject.battler().x

And I found these two.
$gameParty.members()[0]
$gameParty.leader()

However, adding .x to them didn't work.

I can save the x into a variable with $subject.battler().x for further usage, but I'd like to learn how to get x and y position of each character.

Any help is appreciated. Thank you so much.

Original thread: https://forums.rpgmakerweb.com/threads/looking-for-script-for-party-leaders-position-in-battle.153224/