Yanfly Party System, but without replacing the original Formation command

I want to use Yanfly's Party System, but I would also like to maintain the original Formation command in the main menu. I'm using another script that hides reserve party members in the main menu, so the original Formation command would be used to swap the positions of characters in the current battling party. Yanfly's Party System would then be called using Plugin Commands, available under certain circumstances (ie. accessible from save points.) Is there a way to do this?
bump
if you want any modification or compatibility patch to any plugin, the absolute minimum you have to give is links to the websites of all plugins involved - otherwise no one can help you.

That said, I think it will be better to take a step back and describe what you want in your game instead of how you want to do it.
Especially if you want that much of messing around with formation it might be easier to make a new plugin for the specific results youÄre interested in instead of mixing up several plugins in ways they were never intended.
The Party System plugin in question is here: http://www.yanfly.moe/wiki/Party_System_(YEP)

I want to restrict access to reserve party members in my game to specific circumstances (only at a save point, or an inn, or some such.) I'm working on a battle formation system, though, which means the order of characters in the party is important. I need to allow the player to rearrange the order of their current battling party whenever they see fit. RPG Maker's default Formation command can do just that, particularly with a very simple, three-line plugin that hides reserve party members in the main menu. The problem is that Yanfly's Party System seems to completely replace the original Formation menu command. Ideally, I want the in-built formation command in the main menu, and Yanfly's Party System accessible through evented plugin commands.

If no solution can be found, I could do away with the Party System plugin, and create my own party swap function through eventing (and find a simpler plugin to change the number of battlers.) I would prefer, though, to use the Yanfly plugin situationally, because it's has a pretty slick interface.
then I wouldn't use any plugin, but simply don't have the actors in the party at all.
and at the save points, you adda way to reconfigure the party by adding or removing actors only there.
You can use plugin commands in the yanfly party system to lock four members of the current party, which prevents them from being removed. The use region events, or something similar to unlock them when you're in the vicinity of a save point, and lock them again when you move away from it.
The party system does still allow you to rearrange the current party members without removing them from the party.
You could try opening YEP_PartySystem.js in the editor of your choice, search for these lines, and delete them (or comment them out):
Spoiler
Code:
Scene_Menu.prototype.commandFormation = function() {
    $gameParty.loadActorImages();
    SceneManager.push(Scene_Party);
};
Or (my personal preference) you could save the following as a .js file and import like a plugin, loading it immediately after Yanfly's Party System:
Spoiler
Code:
Scene_Menu.prototype.commandFormation = function() {
    this._statusWindow.setFormationMode(true);
    this._statusWindow.selectLast();
    this._statusWindow.activate();
    this._statusWindow.setHandler('ok',     this.onFormationOk.bind(this));
    this._statusWindow.setHandler('cancel', this.onFormationCancel.bind(this));
};
In theory the first option avoids creating the override; the second makes a new override equivalent to the default behaviour.

Edit: also, the default system allows access to reserve party members.
Thanks everyone for your responses.

then I wouldn't use any plugin, but simply don't have the actors in the party at all.
and at the save points, you adda way to reconfigure the party by adding or removing actors only there
I would miss out on Yanfly's lovely party interface, though this would probably be a more graceful solution.

You could try opening YEP_PartySystem.js in the editor of your choice, search for these lines, and delete them (or comment them out):
Spoiler
Code:
Scene_Menu.prototype.commandFormation = function() {
$gameParty.loadActorImages();
SceneManager.push(Scene_Party);
};
Or (my personal preference) you could save the following as a .js file and import like a plugin, loading it immediately after Yanfly's Party System:
Spoiler
Code:
Scene_Menu.prototype.commandFormation = function() {
this._statusWindow.setFormationMode(true);
this._statusWindow.selectLast();
this._statusWindow.activate();
this._statusWindow.setHandler('ok', this.onFormationOk.bind(this));
this._statusWindow.setHandler('cancel', this.onFormationCancel.bind(this));
};
In theory the first option avoids creating the override; the second makes a new override equivalent to the default behaviour.

Edit: also, the default system allows access to reserve party members.
This seems to work exactly how I wanted. Thank you very much. (And I got around access to reserve party with a very simple Window_MenuStatus.prototype.maxItems plugin.)

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-party-system-but-without-replacing-the-original-formation-command.112512/