<SOLVED> Can Character Formation Affect Events?

Hi, I'm new here, and I just downloaded RPG Maker 2003 a week ago, so there's probably a lot I still don't know.

I was wondering if I could make events happen if a party formation is in a specific way.

Ex: You can only get through to a new area if X is on the map.
Spoiler
Kinda like in Super Mario Odyssey where you can only get through certain doors with certain outfits on.

I was hoping to make places like "gamers only clubs" where you can only get in if you are a certain character on the map.

Thanks in advance,
Me
Use the Conditional Branch on tab 3 of the Event Command Menu
Select tab 2
Select 'Actor' and then the particular actor needed, "is in the party"
Do the stuff that gets them in the club.
In the 'Else' branch, do the stuff (e.g. "Clear off! Members only!") if the actor is not present.
That's makes sense, but what I want to know is if I can make these interactions formation specific.

Ex: if organized as A, B, C, no entry - if organized as B, A, C, entry allowed
I know how to do that in Ace with script calls, but not how to do it in 2k3, as I have never used it. (For my first reply, I had to open up my copy of the engine and look to see where everything was.)

Just to be more precise - is it that you want Actor B to be the party leader, or do the others also have to be in a specific order? If it's just B as party leader, that will almost certainly be easier to achieve.
It's possible to achieve, but you will have to check a lot of variables to do so.

Basically, you will have to save each character party position on each variable for that position, and check them all separately for this. Plus, you will have to create your own system that address each character in said position.
All I really want to do is detect who the party leader is, not so much the exact orginazation of the party.
I was hoping to get info on how to achieve this...
it should work this way.
http://www.mediafire.com/file/ar26y6c6ywas4md/Project1_new2k3.rar

WOA, dude! this worked! This is crazy!!

I was wondering how to do this myself!
This is works pretty well.
From what I understand, each variable is set to a specific party member, and not a party position.
Really my only complaint is that setting the formation manually (through the menu) doesn't work, but this isn't that much of a problem.
Can I please get the code for this so I can add this system to my own game? (I can give you credit if you would like.)
Really my only complaint is that setting the formation manually (through the menu) doesn't work
Yes, obviously if you use this method, you have to disable formation from the menu, and use a custom group change.

Can I please get the code for this so I can add this system to my own game? (I can give you credit if you would like.)
Of course!
Great! Thank you very much!
Can you please share that code that you used to detect the party leader?
O___o"
Is already present in the demo!
The condition if hero 1 = XX <- (is the character's id)
Check which is the first party member (the leader)

You find it in the events/people in front of the clubs
oh wait, sorry, I didn't know that you could open downloaded projects with RPG Maker. -_-'

Thank you so much for the help!

Do you want credit for letting me use the code?
do you, it's the same for me.
thanks again broskintini

Original thread: https://forums.rpgmakerweb.com/threads/solved-can-character-formation-affect-events.89781/