How do you handle a "random" scene.

Let's say, you have 10 actors in game and you are only allowed to choose up to random 3 actors in your game for a certain event , how do you handle the event especially regarding the dialogues and sprites?

For example : if I choose actor 1,2,3 the scene will be :
Actor 1,2,3 appear in the event scene
Dialogues :
Actor 1 : Hello
Actor 2 : Hi
Actor 3 : How are you?

If I choose actor 2,3,4 , the scene will be :
Actor 2,3,4 appear in the event scene
Dialogues :
Actor 4 : I see you
Actor 2 : Hi
Actor 3 : How are you?
Have a whole lot of conditional branches, lol. There's not really another way around it.
Let's say, you have 10 actors in game and you are only allowed to choose up to random 3 actors in your game for a certain event , how do you handle the event especially regarding the dialogues and sprites?

For example : if I choose actor 1,2,3 the scene will be :
Actor 1,2,3 appear in the event scene
Dialogues :
Actor 1 : Hello
Actor 2 : Hi
Actor 3 : How are you?

If I choose actor 2,3,4 , the scene will be :
Actor 2,3,4 appear in the event scene
Dialogues :
Actor 4 : I see you
Actor 2 : Hi
Actor 3 : How are you?
The best way to do is that you will have all actors's conversation included but only show of those actors who is in Party
For a start, don't set up all the actors in the Actors tab.

If you're only going to have 3 party members in your game, only create 3 actors in the Actors tab.

When the player chooses the actor/class, etc, use the Change Actor Images, Change Actor Name, Change Actor Class commands. That way, you only have to worry about 3 actors.

Then if you want the correct names/faces to show, you can use a script/plugin that will let you say "use the face of actor 1" and it'll just grab whatever the correct face is, rather than you having to use conditional branches to decide which face should be shown.
The best way to do is that you will have all actors's conversation included but only show of those actors who is in Party
Not possible, because the other remaining actors don't appear in the scene.


Using a lot of conditional branches is possible, but it's prone of errors, so the only way I must find a character plugin, then.
it's possible for me to add a catherpillar's function then find a plugin to scatter the party at the same time.
I think you misinterpreted the instruction. And apparently didn't even see mine.
For a start, don't set up all the actors in the Actors tab.

If you're only going to have 3 party members in your game, only create 3 actors in the Actors tab.

When the player chooses the actor/class, etc, use the Change Actor Images, Change Actor Name, Change Actor Class commands. That way, you only have to worry about 3 actors.

Then if you want the correct names/faces to show, you can use a script/plugin that will let you say "use the face of actor 1" and it'll just grab whatever the correct face is, rather than you having to use conditional branches to decide which face should be shown.

I noticed. Right now I'm not at my PC with RMMV installed, therefore I can't test it.
how do you handle the event especially regarding the dialogues and sprites?
one way would be to add a dialogue manager where you would send a line to it, with the name of the actor speaking, and it itself will put up the message window, with the corresponding picture, name and name color.

you would have something like
Code:
say_line(actor, "line as text")
or
Code:
say_line(actor, line_from_database)
with database being a collection of
Code:
actor => "name", faceSheet, faceID, colorID

lineX => "this is a line\nof text. Broken down\nwith escape characters"

for the actual conditioning, that's good ol' storytelling, there's no way around it.
write, write more, and write again until you've worked out all possible combinations.

at the moment of triggering the line, you grab which actor is available, set the "actor" variable, and pass the call.... the manager would do the rest.
Then if you w the correct names/faces to show, you can use a script/plugin that will let you say "use the face of actor 1" and it'll just grab whatever the correct face is, rather than you having to use conditional branches to decide which face should be shown.
This would only work if all different characters have the same personalities, and would have nothing unique to say or do. Of course, if that's okay for the game, then it should be an effective way of getting it done.

Using a lot of conditional branches is possible, but it's prone of errors, so the only way I must find a character plugin, then.
Prone to errors, only if you don't playtest your events. There should be no errors if you get your eventing right.
How is it "random" if you've got to choose which actors? And why'd you think using event is prone to errors?

Eventing is the simplest and safest way to do things. All you got to do is prepare all possible condition and use invisible dummy event. Then use move route to change those dummy event's graphic while cover it with fadeout. If you go by 3 out of 4 actors, then there's only 4 possible condition. if it's including 2 out of 4 actors, then there's total 10 possible combination. That ain't even complicated. Unless I miss something?

eventing2.JPG
@Neka Music This is a "How do I...?" (implementation) question and so belongs in the Support forum for the engine you are using. However, you have not included that in the info under your avatar.

Please post and confirm which engine it is so that this can be moved.
Thanks.
RMMV.

I agree with Kuro DCupu. I will do this with eventing. Dummy events are absolutely the easiest and safest way, never think of it. Thanks
@Neka Music Thanks for the clarification. I see the info under your avatar says (for 'Primarily Uses:') N/A. That category is more for those who are almost exclusively Resource makers. For anyone developing a game, it is very much applicable. It would be helpful, therefore, if you could change that to MV so that people know which engine it is and can reply appropriately.
Thanks.

Moved to: RPGMaker MV

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-handle-a-random-scene.94849/