Switchable Party system setup

Hi there,

I ask anybody who would have an idea of a switchable setup from a menu. I’m aware that this would be a bit tricky due to the fact that its based off of a menu so I’ll try to explain the best I can.

I’ve setup 5 party members and 4 is your limit of how many characters you can choose and when you select another party members, you must unselect a different party member because if you have more than 4, there will be a dialogue saying “The number of participants in battle is over by number amount”.

Does anybody have an idea of what structure I could do for this?

Does anybody have an idea of what
structure I could do for this?

Any reason this cannot be a simple array?

Check if it’s full before adding a new party member. When clicking, check if the array contains said party member. If it does not → add it; if it does → remove it.