How do I check the party leader with variables?

I need to make an area only passable if you have a specific character as the leader

i saw this guy doing it in this video but he didn't show it all (is at the right timestamp)

No, it's not at the right timestamp, it's one step too late.

here he checks which character ID is stored in the variable for the first member.
In your case you would allow passage if it is the correct number, and not for all other numbers.

The key is to fill the variable with the actor ID of the first member - which is not done here but earlier.
For more modern makers that is a default function of control variable in the game data section.

There should be something similar in control variable even for RM2K(3), but I never worked with them so I can't tell you where to look or how it is named.
There is no option in the variables for this, the only game I saw that made it possible to check the leader was done entirely through simulation with events. There are 4 variables to store the positions of the time members and four more for when the player wants to reorder.

I remember he created this in Rm2k to have the option of having reserve members that could replace the main 4 for battle strategies.

The creator of this fangame probably used some PATCH, but the only ones we recommend are those made for version 1.12a (Steam), because they are released by EULA:
We also do not have a support area and tutorials for using PATCHES here in the official community as this is one of the terms of the EULA.

Solution without PATCH:

----------REMOVED----------​

I removed the method used because it is for advanced developers and also because it would involve creating a menu with a map or Pictures.
There is no option in the variables for this, the only game I saw that made it possible to check the leader was done entirely through simulation with events. There are 4 variables to store the positions of the time members and four more for when the player wants to reorder.

I remember he created this in Rm2k to have the option of having reserve members that could replace the main 4 for battle strategies.

The creator of this fangame probably used some PATCH, but the only ones we recommend are those made for version 1.12a (Steam), because they are released by EULA:
We also do not have a support area and tutorials for using PATCHES here in the official community as this is one of the terms of the EULA.

Solution without PATCH:

----------REMOVED----------​

I removed the method used because it is for advanced developers and also because it would involve creating a menu with a map or Pictures.
I'm kinda familiar with making menus with pictures a little bit, i wouldn't mind taking many steps to achieve it cuz i kinda need for my game

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-check-the-party-leader-with-variables.167649/