Small Scene_Menu and $game_party requests

Hello fellow makers, this time I'm looking for help with something I've requested 4 years ago for Ace, and now I'm finding myself in search of the same stuff for MV.

I want to make the menu to only scroll and quick scroll to active battle members. This way I can lock the players from accessing to the skills, equipments, and status from the inactive members. (In my project you access to the party formation window on a guild house with a plugin command from an NPC).

In this thread is where I requested the custom script for Ace and it worked without problem back then. It might help for reference since Yato explained everything she changed on $game_party to achieve it on Ace. Probably that snippet can be ported to a plugin, but I'm not sure how different is the menu system now.

Thank you very much for reading this 🙏 all your help is really appreciated.
Are you using a plugin with the same Scene_Army scene from before? If the MV version is using the same setup, this should work:

Code:
//=============================================================================
// MenuScrollFix.js
//=============================================================================

/*:
 * @plugindesc Port of the menu tweak Racheal did for Oriceles.
 *
 * @author Racheal (Original), John Clifford (Port)
 *
 * @help
 *
 * Plug and play.
 *
 *
 */

(function() {  
    var _Game_Party_initialize = Game_Party.prototype.initialize;
    Game_Party.prototype.initialize = function() {
        _Game_Party_initialize.call(this);
        this._inArmy = false;
    };
   
    Game_Party.prototype.isInArmy = function() {
        return this._inArmy;
    };

    Game_Party.prototype.members = function() {
        return this.isInArmy() ? this.allMembers() : this.battleMembers()
    };
   
    var _Scene_Army_start = Scene_Army.prototype.start;
    Scene_Army.prototype.start = function() {
        $gameParty._inArmy = true;
        _Scene_Army_start.call(this);
    };
   
    var _Scene_Army_terminate = Scene_Army.prototype.terminate;
    Scene_Army.prototy.terminate = function() {
        $gameParty._inArmy = false;
        _Scene_Army_terminate.call(this);
    };
})();

Let me know whether this is the case or whether I need to take a different approach to it. I can easily just implement it in the menu itself if you're not using an army scene any more.
No because Galv haven't ported that one yet and I haven't opened a request for it, right now I'm planning to use Yanfly Party Manager. Gonna try this now. Then again, thank you!!!

Edit:
Tested, it's working flawlessly.
Okay, it probably won't work then. Let me know if that's the case and I'll try something else.
Tes, It's working perfectly. Actually worked on the default main menu without a problem, thank you very much!!! 🙏

Original thread: https://forums.rpgmakerweb.com/threads/small-scene_menu-and-game_party-requests.75191/