Hi, I've been taking a crack at this for a while but can't seem to wrap my head around how. I want to create a party selection mechanic where you can only have 3 (excluding the main character) members in your party at all times, but you can switch out with unselected members like in Persona 5.
So far I've managed to logic my way around how this would be done. In the hub world, I have all possible party members (7 in total excluding the mc) standing around and when you interact with them you can chose to add them to the party.
I made it so that when your party has 5 or more members, it will prompt you to remove one of these 5 (again, excluding the mc). I did this by making a Conditional Branch with "$gameParty.members().length>=5" in the Script option.
The part that I am having trouble with is everything afterword. I want to make it to where the game will make you choose one of the currently added members you want to remove, but I can't seem to figure out how to go about that. Firstly, how exactly would you detect which members are added? Like what code/conditional statement would I have to do for the game to say "partymemberA is in the party"? And secondly, how can I made it so that whichever party members are detected show up in the choice options? Would I have to make like 49 versions of the choice box but with different names or is there a simpler way of doing this?
I'm not super good with coding, I only figured out the "$gameParty.members()" thing because someone else posted something similar in this forum and I have beginner level Java knowledge.
Any help would be appreciated!
So far I've managed to logic my way around how this would be done. In the hub world, I have all possible party members (7 in total excluding the mc) standing around and when you interact with them you can chose to add them to the party.
I made it so that when your party has 5 or more members, it will prompt you to remove one of these 5 (again, excluding the mc). I did this by making a Conditional Branch with "$gameParty.members().length>=5" in the Script option.
The part that I am having trouble with is everything afterword. I want to make it to where the game will make you choose one of the currently added members you want to remove, but I can't seem to figure out how to go about that. Firstly, how exactly would you detect which members are added? Like what code/conditional statement would I have to do for the game to say "partymemberA is in the party"? And secondly, how can I made it so that whichever party members are detected show up in the choice options? Would I have to make like 49 versions of the choice box but with different names or is there a simpler way of doing this?
I'm not super good with coding, I only figured out the "$gameParty.members()" thing because someone else posted something similar in this forum and I have beginner level Java knowledge.
Any help would be appreciated!