Is there a way for event to check formation order?

Okay, so I have this party with two members. I want an event to check witch of the party members is first in formation to determine what happens. For example, if you talk to a person, he or she responds differently to each party member.

Is there a way to do this with or without scripts?
you use control variable : game data to load the ID of the actor in a specified position into a variable and then check that ID with a conditional branch
Thank you so much! I doubt that I would have figured this out on my own and it will be a huge part of my game. Thumbs up for a quick answer 🙂 !
Then I suggest you follow the first link in my signature and work through the tutorials there.


It'll probably take you a few weeks to work through them (simple reading would be a waste of your time, you need to work through them), but that is important because there are a lot of such tiny specials that are usually only learned from tutorials and can't be seen without help.
Thanks for the tip! I might check them out later... Haven't got few weeks time right now though. I've had Ace for a year or two now so I'm pretty comfortable with the basics, just some stuff I need to figure out - and I find it best to google and search when a problem arrives. This time I couldn't find the right words (or there just wasn't anything to be found) with my search, so I decided to ask here, as you guys are awesome and usually come up with pretty nice answers pretty fast 🙂 !

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-for-event-to-check-formation-order.43035/