Randomly selected dialog how to do it ?

I have a bonfire and while sitting next to it after regeneration hp/mp, is to include a conversation between the characters which is randomly selected, every time we use the bonfire we can find another one

how to do it ?
You can very easily do this process with a randomized variable.

Go to Control Variable in your Event Commands, and make a variable with the setting at the bottom of "Random". Set your range to however many dialogue choices you have, then click OK.
(Note, if I chose a range from say 0-4, keep in mind 0 is counted as one of the possibilities. So picking 0-4 is actually a total of 5 choices, not 4. After all, the variable value could be 0,1,2,3, or 4.)

What will happen is the variable will be randomly chosen for any number in the range you set.

Now, underneath THAT, make a Conditional Branch for each of your possible Variable's values.
[if Random Dialogue Variable = 0
Text text text

if Random Dialogue Variable = 1
Other text other text...

etc]


Hope that helps!
I believe my first 7 tutorials were all about dialogue, including random dialogue using different methods. Such as arrays. Check them out to see if they are any help And give you any ideas.

My link is below.
Moved to: MZ Support
You can very easily do this process with a randomized variable.

Go to Control Variable in your Event Commands, and make a variable with the setting at the bottom of "Random". Set your range to however many dialogue choices you have, then click OK.
(Note, if I chose a range from say 0-4, keep in mind 0 is counted as one of the possibilities. So picking 0-4 is actually a total of 5 choices, not 4. After all, the variable value could be 0,1,2,3, or 4.)

What will happen is the variable will be randomly chosen for any number in the range you set.

Now, underneath THAT, make a Conditional Branch for each of your possible Variable's values.
[if Random Dialogue Variable = 0
Text text text

if Random Dialogue Variable = 1
Other text other text...

etc]


Hope that helps!
thanks, works perfectly

Original thread: https://forums.rpgmakerweb.com/threads/randomly-selected-dialog-how-to-do-it.156387/