palom

Villager
Member
Joined
Aug 23, 2017
Messages
10
Reaction score
0
First Language
spanish
Primarily Uses
RMVXA
Hi, I have characters that can join to you just chatting, but I want to put a limit of the party members numbers since I don't want 4 characters on my engine, so if the ammount of members is reached a "Party full" message would pop up.

Is there an optimal way to do it? I don't want to use something sub optimal as conditional branches for each possible character.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,749
Reaction score
15,315
First Language
English
Primarily Uses
RMMV
Unless you're using a plugin, the player can't add members to your party unless you give them a way to.

So, on any event that COULD add a member to your party, you just check how many are there already, and if the maximum has been reached, don't let them add another - or give them the option to remove one.

Control Variables > Game Data > Other > Party Size

will set a variable to the number of actors currently in the party.
 

palom

Villager
Member
Joined
Aug 23, 2017
Messages
10
Reaction score
0
First Language
spanish
Primarily Uses
RMVXA
Woah, that was simpler than I thought. Thank you. I'll do that.
 

Latest Threads

Latest Profile Posts

Redesigning characters after such a long time feels great. Makes me excited to work on an old game again.
Phone menu to replace main menu WIP:
It's been that long since I wrote a plugin, it took me 4 attempts to realize it's != rather than #. In a 40-line plugin, 20 of those lines being documentation!
Disk Check Plugin - Running on Linux:
RMMV-Game-Mint.png
workin on some graphics for my game. was originally planning on doing a cartoony style for the town but I might stick with this instead

Forum statistics

Threads
116,093
Messages
1,095,689
Members
151,467
Latest member
talvinr
Top