Conditional branches based on party member positions?

Okay, so I'm considering working a "group/regroup" element into my project (think "End Roll," though that was made in RM2003.)  The regroup areas would be pretty simple, with three blank events to fill with party members (with a little situational dialogue), and would require the player to reform the party to continue.  However, I've got 21 possible party members in the game.  Obviously, this means that I'll have to make the events different based on who's in the party.  I thought it would be simplest to use branches based around the party info available in the cap I've attached.  I was thinking it could be something like, "if member{x} is Roy" or something like that.  Obviously that's not the exact code ^^"


Anyway, is there any way to do this with a script call?


Screenshot 2016-12-27 15.42.42.png
there are script call equivalents to all event commands, but most probably you aren't thinking it through - that script call would only allow you to reduce the event by a single line, replacing the control variable command with a script line in the conditional branch.


Because you can't replace the conditional branch - even in a script it would have to be programmed in the same way, unless you can automate the logic (and in that case, you could most probably use the same automation in the event as well.


If you can give a more detailed description for those who don't know the game you're referring to, we might be able to point you to something...
there are script call equivalents to all event commands, but most probably you aren't thinking it through - that script call would only allow you to reduce the event by a single line, replacing the control variable command with a script line in the conditional branch.


Because you can't replace the conditional branch - even in a script it would have to be programmed in the same way, unless you can automate the logic (and in that case, you could most probably use the same automation in the event as well.


If you can give a more detailed description for those who don't know the game you're referring to, we might be able to point you to something...

I added a little to the main question, but the basic idea is that it's an area where the group breaks up into individual sprites with situational dialogue.  I was thinking that the events could be set so that if a variable matched with a party member id, it would have a specific sprite and quote.  Here's a couple more caps to explain.  I hope they help.

Screenshot 2016-12-27 15.58.49.png

Screenshot 2016-12-27 16.18.42.png
you want to be able to talk to party members in a specific location? then forget all about conditional branches, that is what the condition "actor exists" is for.


Make one event for each of the possible party members, with one page per event only.


Then condition the page to the actor that it should stand for.


Finished


"Actor exists" is a condition that is true if that actor is in the party, so at any time there will only be those events visible that are in the party.


And since each event stands for only one actor, you can even use multiple pages conditioned to both a chapter variable and the actor to have those events give different texts depending on current story status - just remember to hide followers when you get to that area.

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branches-based-on-party-member-positions.72778/