I'm trying to limit the number of actors in my party from 8 to 4. Unfortunately, I'm completely new and have no idea what I'm doing. Is there a plugin for this, or something I need to add to the recruitment script?
Limit number of Actors in party
RPG Maker MV SupportBy default the party size has no limit, but only the first 4 show in battle or as on-map followers.
When adding a new member, you can use Control Variables > Game Data > Other > Party Members to store the current party size in a variable, then use a Conditional Branch to check that variable and decide whether there's room for anyone else. Example:
When adding a new member, you can use Control Variables > Game Data > Other > Party Members to store the current party size in a variable, then use a Conditional Branch to check that variable and decide whether there's room for anyone else. Example:
Code:
◆Control Variables:#0001 PartySize = Party Members
◆If:PartySize < 4
◆Text:None, Window, Bottom
: :Welcome, Harold!
◆Change Party Member:Add Harold
◆
:Else
◆Text:None, Window, Bottom
: :The party is full!
◆
:End
and with that, do i just add it to each of the characters?
because the player can't go around adding party members whenever they want - YOU decide when a new member can be added - YOU are in complete control of the number of members they can have.
At each point where a new member could be added, set a variable to the current party size as shown above, then use a conditional branch to see if that variable is less than 4. If it is, let them add the party member. If it's 4 (or more, but that should never be the case if you do it in every spot), don't let them add a new member.
Are you giving them an option to kick out an existing member so they can be replaced by a new one? If so, you'll have to add that logic in as well.
At each point where a new member could be added, set a variable to the current party size as shown above, then use a conditional branch to see if that variable is less than 4. If it is, let them add the party member. If it's 4 (or more, but that should never be the case if you do it in every spot), don't let them add a new member.
Are you giving them an option to kick out an existing member so they can be replaced by a new one? If so, you'll have to add that logic in as well.
after testing caethyril's suggestion, it was actually exactly what i was looking for! able to add/remove as needed and still maintain 4 max party. i was just so intimidated by all the options that i didn't know what to do, but now i feel a little more confident.
Original thread: https://forums.rpgmakerweb.com/threads/limit-number-of-actors-in-party.135228/