Party quest

I am working on a quest and have a part that the player chooses a question to ask and then they choose who asks it. I have it set to where it read how many party members there are:
1650117759308.png

Is there an easy way to see which members are all in the party and then have the show choices come up with only those members if there are more than one member of the team. Right now I have 8 people in the party for testing this stuff.
control variable command, use the game data section to get the ID of the actor in any given party position
control variable command, use the game data section to get the ID of the actor in any given party position
1650118393788.png

Is this correct?
EDIT: Nevermind, I got it. Do I have to do it for all the characters?
1650119604433.png
If you have 20 Party Members, shall the Selection include all 20 or just the first 4 which are also active in Battle? Or the first 8? Because if its more than 8 of them in the choices this is getting harder to solve.

I ask because in Final Fantasy 7 the Player could choose to have Actors on Member Slot 1 and 3
and keep Slot 2 Empty while there were still 5 other People available in the Party.
Its better to ask such stuff before trying a Solution to just find out the Solution is worthless because of something around the next corner.

I totally forgot about \P[1] code for Textboxes. Helping others often helps one self XD.
If you have 20 Party Members, shall the Selection include all 20 or just the first 4 which are also active in Battle? Or the first 8? Because if its more than 8 of them in the choices this is getting harder to solve.

I ask because in Final Fantasy 7 the Player could choose to have Actors on Member Slot 1 and 3
and keep Slot 2 Empty while there were still 5 other People available in the Party.
Its better to ask such stuff before trying a Solution to just find out the Solution is worthless because of something around the next corner.

I totally forgot about \P[1] code for Textboxes. Helping others often helps one self XD.
It can be up to 4 people in the party, but for my testing I am using all nine of my characters. So I can do it with the first four, but I still need it to tell who the four characters are.
1650130204384.png

1650130233768.png

So what do I do here? I have the party size taken care of, but I am still lost on the actors. I need it to read who is in the party and then after that it will give choices of who should ask the question. How do I set it all up?
Shoudn't you check which party member is actually in the party,

If id1 is in party then id1 aks something
Else if id2 is in party then id2 asks something

Or you can fill in a var / switch for every party
If id1 is in party then id1 switch on
Else if id2 is in party then id2 switch on

After that selection you can make a randomizing tree
Var 1000= 1-4
If var 1000 = 1 then if id1 = on then id1 asks something else go back to random var 1000
If var 1000= 2 then if id2 = on then id2 aks something else go back to random var.
Shoudn't you check which party member is actually in the party,

If id1 is in party then id1 aks something
Else if id2 is in party then id2 asks something

Or you can fill in a var / switch for every party
If id1 is in party then id1 switch on
Else if id2 is in party then id2 switch on

After that selection you can make a randomizing tree
Var 1000= 1-4
If var 1000 = 1 then if id1 = on then id1 asks something else go back to random var 1000
If var 1000= 2 then if id2 = on then id2 aks something else go back to random var.
1650131346428.png

This is the setup I have atm. This is only for a party of one. What would I do for the setup for a party of two or more? How would it be the easiest? Variable setup or something else?
Here is a scripting way of doing it. But you will have to do whatever you want with script commands.
But a way around that is to use a switch and variable.
When making the choice set the variable to the option picked 0-7 (all party members)
then turn switch on. Have a second event, or common event run when switch is on. Do stuff then turn switch off.
1650143739200.png

Code:
data = []
$game_party.members.each do |actor|
name = actor.name
data << name
end
list = [data,0]
setup_choices(list)
Fiber.yield while $game_message.choice?
pick = @branch[@indent]
case pick
when 0
$game_message.add("first")
when 1
$game_message.add("second")
end

This also just puts the names up. you would have to do more if you needed this to correlate with actor id's.

We can do more with the ids like this
1650144061459.png
Oh i made some thought Errors because i did not grasp what op was actualy trying to do at first.

Pseudeo Code:
Var1 = Party Size
If Var1 = 1
show choices with 1 answer
if var1 = 2
show choices with 2 answers
If Var1 = 3
show choices with 3 answers
if var1 = 4 or more
show choices with 4 answers
rest of code...

As Eventcode that could look like this:
actor0145546546.png
actor024584848.png

The Scriptline Solution seems to be nice and short, but maybe the Eventcode also helps a bit.
Oh i made some thought Errors because i did not grasp what op was actualy trying to do at first.

Pseudeo Code:
Var1 = Party Size
If Var1 = 1
show choices with 1 answer
if var1 = 2
show choices with 2 answers
If Var1 = 3
show choices with 3 answers
if var1 = 4 or more
show choices with 4 answers
rest of code...

As Eventcode that could look like this:
View attachment 223426View attachment 223425
The Scriptline Solution seems to be nice and short, but maybe the Eventcode also helps a bit.
This is amazing. I have one small issue to fix now. What about if I want to show face pics of the character who is asking the question?
I want to show face pics of the character who is asking the question?

Can you explain in detail what you mean by that?
and:
Are you sure you mean the one who is asking or perhaps the one who is answering?

Because i guess the one asking is always the same person NPC, so just select a Face Graphic
in the Textbox.
Can you explain in detail what you mean by that?
and:
Are you sure you mean the one who is asking or perhaps the one who is answering?

Because i guess the one asking is always the same person NPC, so just select a Face Graphic
in the Textbox.
So if I have Slick ask this face comes up:
1650168829271.png

Depending on who is asking the npc the question depends on whos face graphic shows up. Let me know if I need to explain a bit more.
In MZ this can be handled with a Codeline in the Show Text Command, in VX-Ace this is
not available.
There is complicated Evented Workaround or we can try to rebuild the textbox with scriptcommand.

Edit: The code works but i maybe used more game variables than needed.
In this example the previously used Variable 2, and now also 3 and 4. Else the Text would not have fit the Screen.
scriptlinetextbox15484.png

Previously we saved the chosen/selected Actor Id in Game Variable2, we now use this Variable to determine
which Face Graphic to show. Just tested it and it seems to work.

Some of the Message System Scripts could also offer this functionality and much more.
But i did not use them yet, so no clue.

Edit: Here the Code Edited for Copy paste and dont forget the Conditional Branch (If statement) from the Picture:
Code:
$game_message.face_name = $game_actors[$game_variables[2]].face_name
$game_message.face_index = $game_actors[$game_variables[2]].face_index
$game_message.background = 0
$game_message.position = 2
$game_message.add("Text")
Edit: Here the Code Edited for Copy paste and dont forget the Conditional Branch (If statement) from the Picture:
Code:
$game_message.face_name = $game_actors[$game_variables[2]].face_name
$game_message.face_index = $game_actors[$game_variables[2]].face_index
$game_message.background = 0
$game_message.position = 2
$game_message.add("Text")
So how does this work exactly? I have it setup, but don't know how it is supposed to work.
1650213257833.png
You inserted it in the wrong Place.
You replace the last Textbox that reads: "This was a Trick..." and the Change HP Command
with the last shown Scripted Textbox.

index.php


1. We check how many Party Members.
2. We show the correct Choice Window and ask the Player to choose a Party Member.
3. Than we use a Scripted Textbox to show the chosen Actors Face set in that Textbox.

I hope this explanation helps.
You inserted it in the wrong Place.
You replace the last Textbox that reads: "This was a Trick..." and the Change HP Command
with the last shown Scripted Textbox.

index.php


1. We check how many Party Members.
2. We show the correct Choice Window and ask the Player to choose a Party Member.
3. Than we use a Scripted Textbox to show the chosen Actors Face set in that Textbox.

I hope this explanation helps.
Here is my game file. You can take a look at it. Please let me know where I need to put the stuff.
Sorry, i dont think iam able to help you. Good luck, maybe someone else can explain/help in
a way that is more suited for this. Iam a casual user myself. And i got a little language barrier that grows enormous big when forced to explain complicated stuff XD.

My Browser says that this File is to big to be checked by my Antivirus, therfor iam not downloading it.
Sorry.
Sorry, i dont think iam able to help you. Good luck, maybe someone else can explain/help in
a way that is more suited for this. Iam a casual user myself. And i got a little language barrier that grows enormous big when forced to explain complicated stuff XD.

My Browser says that this File is to big to be checked by my Antivirus, therfor iam not downloading it.
Sorry.
Ok so I got it fixed correctly but now it is giving me this error:
1650327639715.png

1650327666628.png

Edit: Nevermind, I got it fixed, but now it doesn't show the face graphic of the character.
1650328161809.png
Figured it out for you.
The default face_name = thing doesn't work because of Galv's message bust.
Using bust_name also doesn't work. The information is lost as soon as the message is started.
But using the default data format you can make it work by doing this

Ruby:
person = $game_actors[$game_variables[2]].name
name = $game_actors[$game_variables[2]].face_name
index = $game_actors[$game_variables[2]].face_index
@params = [name, index, 0, 2]
command_101
$game_message.add("Hi, my name is #{person}")

Original thread: https://forums.rpgmakerweb.com/threads/party-quest.146815/