MZ Hiding specific Followers without removing them from Battle

Hi! as the tittle says I would like to hide followers ,3 and 4 in the map without removing them from the battle party members, so in battle there are still 4 fighters but on the map only 2 follower, to have less of a longer following line, it could be even just making them transparent not to touch with many things, but I can´t figure out how to do it.

thanks a mil in advance!! 👋
Hmmm, I guess you modify just one line to decide how many it makes. Like I changed maxBattleMembers to a number (currently 3). Put this as plugin. If you want just one dude after the main character, change 3 to 2.

Game_Followers.prototype.setup = function() {
this._data = [];
for (let i = 1; i < 3; i++) {
this._data.push(new Game_Follower(i));
}
};
I believe the TyrusWoo Follower Control plugin may have what you're looking for. It has a "Non-Combat" class that you can add members to.
Hmmm, I guess you modify just one line to decide how many it makes. Like I changed maxBattleMembers to a number (currently 3). Put this as plugin. If you want just one dude after the main character, change 3 to 2.

Game_Followers.prototype.setup = function() {
this._data = [];
for (let i = 1; i < 3; i++) {
this._data.push(new Game_Follower(i));
}
};
This will absolutely work. Alternatively, one could do this approach:

Code:
(function() {

const_GameFollower_isVisible = Game_Follower.prototype.isVisible;
Game_Follower.prototype.isVisible = function() {
    
    if (this.actor() && this.actor().index() >= 2) {
      return false;
    }
    
    // feel free to add any other rule here
    
    // no custom rule applies, resume original code
    return _GameFollower_isVisible.call(this);
}

})();
That worked perfect!! thanks a million! (EDIT: And thank you all guys for the responses! I didn´t saw them when makikng the response!)
Hmmm, I guess you modify just one line to decide how many it makes. Like I changed maxBattleMembers to a number (currently 3). Put this as plugin. If you want just one dude after the main character, change 3 to 2.

Game_Followers.prototype.setup = function() {
this._data = [];
for (let i = 1; i < 3; i++) {
this._data.push(new Game_Follower(i));
}
};

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/hiding-specific-followers-without-removing-them-from-battle.177978/