Conditional Branch of two party members?

Basically I'm creating a kind of chest that with the help of Hime's “Actor Inventory” script, depending on which actor is in the party, it gives an option of which actor to give the item.

I'm trying to do it with a conditional branch, but the problem is that it only allows me to choose one actor, not two, so I'm trying to find a way to make it active depending on the 2 actors in the party.
1748224038198.png

Or you can do the conditional branch for both actors and not use the event condition.
But if you want the event to only show if both actors are in the party then that would require a script to add on more conditions.
View attachment 341482
Or you can do the conditional branch for both actors and not use the event condition.
But if you want the event to only show if both actors are in the party then that would require a script to add on more conditions.

I just tested that, and it works with the 2 actors in the party!

However, now I should find a way to make it with 3 actors in the party (that would be the limit of companions in my project), Which, I think, is already much more complicated..
However, now I should find a way to make it with 3 actors in the party (that would be the limit of companions in my project), Which, I think, is already much more complicated..
then you do a conditional branch inside a conditional branch. They can be layered as much as you want, but the window only lets you see so much data. when you layer them too much you don't see what some are. Go ahead and try and you'll see what I mean.
I'm unsure if i'm understanding this correctly, but can't you just have all the conditional branches on one page that activates the SelfSwitch to another page with the actual graphic/commands/etc?
Clip.PNG


In the senario where your party had a random assortment of Actors in it, you could get a list of active party members via,
Code:
$game_party.members.map { |actor| actor.name }
#or, functionally the same
$game_party.members.map(&:name)
and go from there.
I'm unsure if i'm understanding this correctly, but can't you just have all the conditional branches on one page that activates the SelfSwitch to another page with the actual graphic/commands/etc?
View attachment 341497

In the senario where your party had a random assortment of Actors in it, you could get a list of active party members via,
Code:
$game_party.members.map { |actor| actor.name }
#or, functionally the same
$game_party.members.map(&:name)
and go from there.
Look how silly I am! I hadn't thought about that in the first image!
I just tested it and it works great!
Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-of-two-party-members.177920/