Hopefully this is the right place to post this since it's kind of a script edit/request.
One of my game's gimmicks is the ability to recruit and collect a lot of characters. Whenever you earn a new character, I use the 'Add Party Member' command. Naturally you can only use 4 characters in battle, so the player uses Formation to choose who's in those 4 spots, with the other characters left in reserves. I'm also using Yanfly's Party Select script to make it so that players can only access the Formation screen from a specific location, so they have to plan their team carefully before heading out on mission.
Normal so far, right?
I've recently added Teleport Markers to the game that, when stepped on, check if X Actor is in the party, and if they are, the player is asked if they would like to teleport. If they say yes, that Actor loses 1 MP and the player teleports to a place they otherwise couldn't reach. If X Actor is NOT in the party, it's supposed to just say "you don't have anyone with the power to activate this".
However, I've found that even when X Actor is NOT in the Active Party, but is still 'unlocked' and selectable in Formation, the game counts them as being 'in the party' and the event activates regardless. I realize this is probably due to unlocked characters being added using the 'Add Party Member' command, but there's literally no other way to make new characters available to select, so I don't know how to get around this issue.
At first I thought it was an issue with Yanfly's Party Select but I removed the script and Enabled the Formation screen and tested it and it still recognized the character as in the active party when they weren't.
This not only ruins the Teleport Markers, but pretty much my whole game as many cutscenes and battles will have special dialogue based on who's in the active party at the time so it's gonna be a clusterf*ck of EVERYBODY throwing random lines out of the ether, lol!
What I need is for the game to only ever recognize the top 4 characters as 'in the party' for the purpose of 'if X Actor is in party' based conditionals. Is there a way to accomplish this?