A Party Member who Use Multiple Slot

Hello, I am making an RPG game and I am wondering this for a while now.

I want to ask, Regarding party members mechanic. Is it possible to make a party Member use 2 or more slot that usually reserved for 4 party members? Sorry if it wasn't clear...

Example: A Character, that has a unique gimmick. Causing it to use another slot, resulting in a usually 4 members max in a party into 3 max until that member is removed.))
I can't think of an easy way to do it. You could rewrite the maxBattleMembers() method to count extra when that actor's in the party, but that wouldn't stop you from adding them as the fourth member.

How are you changing your party? Just the regular Formation command?
You could rewrite the maxBattleMembers() method to count extra when that actor's in the party


I think the reverse would be the direction for this.


Maybe something like:

Game_Party.prototype.maxBattleMembers = function() {
if ($gameParty.members().some(actor => actor.actorId() === X)) return 3;
return 4;


should do the trick @Wolfystroker .


Throw that in a js file below any other plugins in plugin manager that affect the game party ad any battle plugins (just in case)

And obviously replace X with the actor ID of the party member that you want to have this happen for.
I think the reverse would be the direction for this.
You have a number of BBCode tags in there which would make the code non-functional.

Also, it has the exact same problem I already described - that will return 4 up to the point where you add the "fat" actor as your fourth party member. There's nothing in there to prevent that situation.

Whether your logic is starting at 4 and counting the fat actor extra or starting at 3 unless the fat actor isn't present doesn't make a difference.
that was me trying to bold the X and make the text bigger. fixing it now
It still will only work if the fat actor is not the last one added by the player.

That's why I asked the OP how they're moving actors into and out of the party.
If it's Grid Battle, I think it's here.

Spoiler
If it's Grid Battle, I think it's here.
What does that comment/link have to do with the thread?
Depending on how these members join and leave the party, you can do this with a variable and conditions.

Let's say that when the game starts there is only one party member, then you create a variable called "PartySize" to take the value 1. You can only let a new member join the party if this variable is equal to 3 or less, so anytime someone is going to enter the party, you must use a condition. From now on, whenever a character leaves or joins the party, you should manage this variable, adding and subtracting values accordingly. When someone joins the party, add 1, and when someone leaves the party, subtract 1. When that fat character joins the party, you add 2 to this variable, not 1. And when the PartySize variable is already 3, he can't join the party.

I think this only works if the method of changing party members is done with an event, like talking to the character you want to add to the party and talking to the character you want to remove from the party.
Then:

Spoiler: Party Size Change Script
Game_Party.prototype.maxBattleMembers = function() {
const indexLarge = $gameActors.actor(X).index();
if (indexLarge <= 3) return 3;
return 4;
};


Tested, works fine. First one was a rush job. This one works with the standard formation change.

Just replace the X with the multislot party member
Tested, works fine.
...how? Not only doesn't that stop you from putting the actor into the formation, when you start a battle it crashes from an infinite loop.
What does that comment/link have to do with the thread?
But I don't know, maybe you can answer his question already. I just want to express my opinion.
Since I don't know what the owner of the post wants, I'm going to suggest this.
But I don't know, maybe you can answer his question already. I just want to express my opinion.
What are you talking about?

The OP did not ask for a different battle system. That's not an opinion.

Since I don't know what the owner of the post wants, I'm going to suggest this.
If you don't understand what the poster is asking, why are you suggesting anything?
@ATT_Turan @Puppet Knight You cannot simply dynamically adjust the maxBattleMembers function without the risk of side effects or crashing the game. This function is also used elsewhere, e.g., on battle start to initialize the battlers' sprites, or in the save/load menu.
Did a few quick tests with this, seemed OK but I might've missed something.
Spoiler: plugin code
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Actor notetag <party slots: X>: occupy more party battle slots.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/173471/
 * @help Free to use and/or modify for any project, no credit required.
 */
;void (function() {
  const TAG_NAME = "party slots";
  const getTag = function(id) { return $dataActors[id].meta[TAG_NAME]; };
  const getSize = function(id) { return parseInt(getTag(id), 10) || 1; };

  const alias_max = Game_Party.prototype.maxBattleMembers;
  Game_Party.prototype.maxBattleMembers = function() {
    const r = alias_max.apply(this, arguments);  // default
    const a = this._actors;
    const s = a.map(getSize);
    const L = a.length;
    let c = 0;
    let n = 0;
    while (n < L) {
      c += s[n];
      if (c > r) break;
        ++n;
    }
    return n;
  };

  // Patch - create maximum followers on init.
  const alias_foll = Game_Followers.prototype.initialize;
  Game_Followers.prototype.initialize = function() {
    alias_foll.apply(this, arguments);
    const m = alias_max.call($gameParty);
    while (this._data.length < m)
      this._data.push(new Game_Follower(this._data.length + 1));
  };

})();
This is purely a mechanical edit: no correspondingly "big" menu elements or anything.
@Aerosys I didn't try to, I've been waiting for the OP to write back with how they create their party. 😛
What are you talking about?

The OP did not ask for a different battle system. That's not an opinion.


If you don't understand what the poster is asking, why are you suggesting anything?
It's just a suggestion. You asked a strange question. My help is not strange. This is something anyone can do. It's their choice. If the owner doesn't like it, just skip my question. It's a backup option.
You asked a strange question.
No, I didn't.

My help is not strange.
Yes, it really is. When someone asks a question and you post a link to a plugin that has nothing to do with their question, that is very strange.

This is something anyone can do. It's a backup option.
How? Which words from the first post do you think that plugin has anything to do with? Switching to a grid battle system is not connected to changing how many actors you're allowed to bring into battle.
No, I didn't.


Yes, it really is. When someone asks a question and you post a link to a plugin that has nothing to do with their question, that is very strange.


How? Which words from the first post do you think that plugin has anything to do with? Switching to a grid battle system is not connected to changing how many actors you're allowed to bring into battle.
If it's Grid Battle, I think it's here.

This is what I asked the owner of the post, is it true that no one understands him 100%? Since he didn't answer anything, I'll start with an example.

Tell him that this is our feeling again, understand him and then answer me why, why are you interested in me, and we will help him.

Maybe you should wait for him to answer me first and then ask me.
This is what I asked the owner of the post, is it true that no one understands him 100%?
You did not ask the OP anything. I don't know what page you're looking at.

Also, everyone in the thread except you does understand him 100%. His question is very clear.

Are you even translating the posts into your native language? It doesn't seem like you have any idea what anyone is saying.

I'm not going to keep going back and forth with you, but when you come into threads and drop these posts that have nothing to do with what people are actually talking about, that's literally spam.

And it doesn't help anyone.

Original thread: https://forums.rpgmakerweb.com/threads/a-party-member-who-use-multiple-slot.173471/