(Help) How to program party-specific events.

Hello,

This is my first ever post in the forums.
I am currently working on a project whose ideas I've been writing down for quite some time and I've reached the point where I am in need of implementing complex eventing to achieve the goals I have set for the story and its interactions.
The question I have is the following, I have reached a point in which the story and the world the player is in will become fully open for exploration. Now, there will be some events and "cutscenes" that will take place along this phase of the game. What I want to do is the following: I want to setup events (be it text boxes, movements and interactions) that will change depending on the party formation (i.e. if X and Y character are in the party, then W event will occur; however if X is in the party and not Y, then V event will occur and so on and so forth).
Granted, I know how to make it conditional if only one character (besides the protagonist) is on the party, but what I am trying to account for are the different formations that might be possible (i.e. X with Y, A with X, Y with A, B with C and so on). So the question would be, how do I create an event where it is not only conditional for X character to be in the party, but also if Y, Z, A, B and/or C are present as well?
I know it is sort of a complicated question and I am not very good explaining what I want, but I am in dire need of some guidance/help here so I am willing to explain it as much as possible so you can get the idea that I am trying to implement.

Thanks in advance.
Have a wonderful day.
You would just need to put more if statements INSIDE the first if statement. Or you can click on script under the conditions and use && (and) or || (or)

Original thread: https://forums.rpgmakerweb.com/threads/help-how-to-program-party-specific-events.145531/