MV Party Member that doesn't participate in battle? Plugin maybe?

Hey! It's me again.

I'm wondering if there's a plugin that allows me to have a party member be excluded from battle, but still be in the party. Like, for example, I want to have Harold be the leader of the party, and his character appearing in the formation menu, ect. But I only want Therese, Marsha, and Lucius to appear in battle. (Images below as an example)
1655512854689.png
1655512954881.png

Also, the HimeWorks Custom Party Leader is *NOT* what I want! Don't get me wrong, it's a good plugin, but I just want to remove Harold from the battles, and not the party entirely.


**Edit

I don't want to constantly remove the party member either... I just want to make it so Harold can stay out of battles while remaining in the party at all times!
I have not heard of a plugin that would do such a thing. It would most likely come with a plugin command that is quite literally the same effort as putting a remove member command in there.

I am curious though, what is the reason why remove party member needs to be avoided?
I have not heard of a plugin that would do such a thing. It would most likely come with a plugin command that is quite literally the same effort as putting a remove member command in there.

I am curious though, what is the reason why remove party member needs to be avoided?
Oh, it's because the party leader in my game can't fight, since its a monster hunter game (like pokemon,) but also, there are mechanics that involve the party leader doing things in battle (for example, a 'safari' game like pokemon, where the protagonist must act instead of their pets)
Don't see the issue with the leader being in battle then. Just remove his attack, and any other skill you don't want him to have, turn the target rate all the way down, and you should be fine. That way he can still use items and issue commands or whatever you intend him to do. You can also place his sprite behind all the actual combatants for extra effect.
The Hp gauges and stuff on the hud however... I suppose you could make the invisible via hudmaker...

Definitely a little finicky, but that's probably how I would approach it. Sorry if it doesn't help.
Oh! I never thought of it that way! Thank you so much for helping! That changes everything and gives me some ideas. Thank you! 🙂
Seem like this should fit what you want.
Hey! It's me again.

I'm wondering if there's a plugin that allows me to have a party member be excluded from battle, but still be in the party. Like, for example, I want to have Harold be the leader of the party, and his character appearing in the formation menu, ect. But I only want Therese, Marsha, and Lucius to appear in battle. (Images below as an example)View attachment 229663View attachment 229664
Also, the HimeWorks Custom Party Leader is *NOT* what I want! Don't get me wrong, it's a good plugin, but I just want to remove Harold from the battles, and not the party entirely.


**Edit

I don't want to constantly remove the party member either... I just want to make it so Harold can stay out of battles while remaining in the party at all times!
For now this is what I got. I have something I need to do. I will update the plugin later.

This plugin I made removes the first member from being a battle member. I assume your main character of your pokemon like game is the first member of the party. Maximum battle members is set to 1, however you can comment out lines 9 though 11 by add // before each line, or you can delete that part.

There should be a plugin out there that I remember that adds in a battle member once a battle member dies. I believe you get to choose the member that comes in. I do not remember the name of that plugin.

You can name the plugin FirstActorHidden.js
The plugin is free for noncommercial and commercial use. It can be edited and distributed.
JavaScript:
Game_Party.prototype.battleMembers = function() {
    return this.allMembers().slice(1, this.maxBattleMembers()).filter(function(actor) {
        return actor.isAppeared();
    });
};

// Maximum battle members
// You can comment out or delete lines 9 through 11
Game_Party.prototype.maxBattleMembers = function() {
    return 1;
};

Edit: I found the plugin that replaces battle members on death. It is really cool for pokemon like battles. You can have a max battle members of 1 with mine + the ability to select one of your other members when a member dies.

Torigoya is the author of Torigoya_ReplaceDeadMemberPlus.js
The plugin can be found on the Japanese RPG Maker forum, or on their website https://torigoya.hatenadiary.jp/
For now this is what I got. I have something I need to do. I will update the plugin later.

This plugin I made removes the first member from being a battle member. I assume your main character of your pokemon like game is the first member of the party. Maximum battle members is set to 1, however you can comment out lines 9 though 11 by add // before each line, or you can delete that part.

There should be a plugin out there that I remember that adds in a battle member once a battle member dies. I believe you get to choose the member that comes in. I do not remember the name of that plugin.

You can name the plugin FirstActorHidden.js
The plugin is free for noncommercial and commercial use. It can be edited and distributed.
JavaScript:
Game_Party.prototype.battleMembers = function() {
    return this.allMembers().slice(1, this.maxBattleMembers()).filter(function(actor) {
        return actor.isAppeared();
    });
};

// Maximum battle members
// You can comment out or delete lines 9 through 11
Game_Party.prototype.maxBattleMembers = function() {
    return 1;
};

Edit: I found the plugin that replaces battle members on death. It is really cool for pokemon like battles. You can have a max battle members of 1 with mine + the ability to select one of your other members when a member dies.

Torigoya is the author of Torigoya_ReplaceDeadMemberPlus.js
The plugin can be found on the Japanese RPG Maker forum, or on their website https://torigoya.hatenadiary.jp/
Absolutely astonishing! I'm blown away!
Thanks so much Zeireth!
Absolutely astonishing! I'm blown away!
Thanks so much Zeireth!
Umm.. The last part of the code I did not test. Max battle members of 1 is a mistake. Setting it to 2 should fix it, but it will gray out your other members in your party. Obviously there are much more to implement into the plugin.

Such as not being able to move the first member during formation. I believe Yanfly or some other plugin creators has made a plugin that locks members during formation, so I think that would help.

I hope you have a great night. Unfortunately I can not continue to work on it until Sunday or Monday.

Edit: I actually had some time left before I go to my friend's house. It turns out that it was much simpler to implement than I thought. The code is much different. I removed Game_Party.prototype.battleMembers.

In the function Game_Party.prototype.leader you will notice that it returns $gameActors.actor(1); Change 1 to your main character whom I assume is your trainer type character. For testing I set it to 1 which is Harold.

Do not add your trainer or main character to the party, they will still be the leader and their sprite will be the one walking on the map. Have fun 🙂

JavaScript:
// Maximum battle members
// You can comment out or delete lines 9 through 11
Game_Party.prototype.maxBattleMembers = function() {
    return 1;
};

Game_Party.prototype.leader = function() {
    return $gameActors.actor(1);
};
You will see in the photo that Harold is the leader, but is not in the party. Harold will not show up in battles or in menu but will run around in your maps. I hope that is what you wanted.
HaroldWhereAreYou.png
I have attached a plugin that can do what you're asking. I haven't tested it extensively to verify that there are no unintended side effects, but this should get you off to a good start, at least. It addresses some issues that would be present in the code that Zeireth posted.

With Zeireth's code, it wouldn't ever show your party leader's sprite walking around on the map. It would always treat the second member as the party leader instead. It would also show the party leader's portrait darkened when you open up the menu. Also, since it uses an incorrect number for maxBattleMembers(), it might not play nicely with some plugins that alter the battle UI.

My code should address those issues. It also locks the party leader slot, so you can't change it with the "Formation" command.

*edit* Alright, got the MV version up now, instead of a MZ version.
I have attached a plugin that can do what you're asking. I haven't tested it extensively to verify that there are no unintended side effects, but this should get you off to a good start, at least. It addresses some issues that would be present in the code that Zeireth posted.

With Zeireth's code, it wouldn't ever show your party leader's sprite walking around on the map. It would always treat the second member as the party leader instead. It would also show the party leader's portrait darkened when you open up the menu. Also, since it uses an incorrect number for maxBattleMembers(), it might not play nicely with some plugins that alter the battle UI.

My code should address those issues. It also locks the party leader slot, so you can't change it with the "Formation" command.

*edit* Alright, got the MV version up now, instead of a MZ version.

Thank you so much for this! But can you make a version that also removed the party leader slot in the Menu instead of just locking it?

I used your plugin above with RPG Maker MZ btw.

I'm trying to recreate Digimon World 3 party style where the Party Leader & Followers is visible on the map, but only the Followers is able to battle and visible on the Menu.
Thank you so much for this! But can you make a version that also removed the party leader slot in the Menu instead of just locking it?

I used your plugin above with RPG Maker MZ btw.

I'm trying to recreate Digimon World 3 party style where the Party Leader & Followers is visible on the map, but only the Followers is able to battle and visible on the Menu.
Sorry. For some reason, the forum didn't send me a notification about this post until 55 minutes ago, even though you apparently posted like 14 hours ago.

You're good now right? (I assume you're the person I helped with this on Reddit earlier today). If not, try this badboy out.
Sorry. For some reason, the forum didn't send me a notification about this post until 55 minutes ago, even though you apparently posted like 14 hours ago.

You're good now right? (I assume you're the person I helped with this on Reddit earlier today). If not, try this badboy out.

Sorry just got back from work~ Yupp! It's me on Reddit! I'm very very early in development right now, and your plugin really pave a way forward! Can't wait to explore more~

Original thread: https://forums.rpgmakerweb.com/threads/party-member-that-doesnt-participate-in-battle-plugin-maybe.148645/