MZ How to Preserve Unchosen Dialogue Choices and add a new one after a Choice has been Made?

Now that's an unwieldly question, my apologies. I think the best way to explain it is with a diagram.

The extended version is that I would like to make a game where you're asking people questions. You pick an option, you get a piece of dialogue. The next choice box then shows all the options you did NOT pick, and a NEW option in the place you didn't pick.

This is the best way I can describe it:

comic version.png


If you played any of the Sam and Max games, that's basically what I'm thinking of:
Sam-and-Max-Save-the-World-PC01212022-023339-80718.jpg


I am guessing it isn't a hard task to accomplish, but I'm struggling to figure out how to do it without making several versions of the same box in a crazy branching tree mess. Ideally I'd like to do it without a script, but I wouldn't mind a script either - I'm just not used to them yet.

Thank you, sorry if this isn't as clear as it could be.
Hi there!
Fun thing to make ^^

My first approach would use variables to do all the choice texts. You can se the Control Variables > Script:
1774548659030.png


So you have 4 choices? Before the choices, set each choice text inside a variable.
Use a label there so you can return to the same choice command after any choice is choosen.
After that, on each choice you choose, you can change the variable text that is relative to it.

1774548450050.png


On the end of the choices, you can set up a condition that will decide if the event must keep making choices.
You will need to find a way to track internally, what choice is chosen. Maybe another variable to keep track. Maybe store the choice text choosen into a result variable, and then check the variable result to do something about when that choice is choosen.

1774548624173.png


Hope it helps!
My first approach would use variables to do all the choice texts. You can se the Control Variables > Script:
I tried it out - you're kidding, it's that simple? Fantastic!

The great news is that it works. I only have Choice 1 & 2 set up here for context:
look ma i learned a thing today!.png

"TC1 (test choice 1) Clicked set to 1" as a quick track for context. I put "jump to label" at the end of each choice that isn't "end (end conversation)" as a lazy fix.

You will need to find a way to track internally, what choice is chosen. Maybe another variable to keep track. Maybe store the choice text choosen into a result variable, and then check the variable result to do something about when that choice is choosen.

1774548624173.png


Hope it helps!
The great news is that it works, the only problem is that it goes back to the default choices when I exit the conversation. WAIT - I figured it out as I was typing this:
1774578463468.png
Checking to see if the choices have or have not been clicked (0), then doing nothing if above 0 keeps track of the choices. My mind is blown and my day is saved, thank you. 😀

One last thing: is there any tutorials you prefer for an introduction to RPG Maker Javascripting? I've seen several, just want to know which one(s) you like. If you were already familiar with JS, then no worries.
I tried it out - you're kidding, it's that simple? Fantastic!

The great news is that it works. I only have Choice 1 & 2 set up here for context:
View attachment 363560

"TC1 (test choice 1) Clicked set to 1" as a quick track for context. I put "jump to label" at the end of each choice that isn't "end (end conversation)" as a lazy fix.


The great news is that it works, the only problem is that it goes back to the default choices when I exit the conversation. WAIT - I figured it out as I was typing this:
View attachment 363561
Checking to see if the choices have or have not been clicked (0), then doing nothing if above 0 keeps track of the choices. My mind is blown and my day is saved, thank you. 😀

One last thing: is there any tutorials you prefer for an introduction to RPG Maker Javascripting? I've seen several, just want to know which one(s) you like. If you were already familiar with JS, then no worries.
Nice it worked!! 😀
Have fun!

What I usually recommend is to just learn the basic javascript through here:

or here:

Once you learn the basics, you can start to read the rpg maker core codes and trying to change some behaviors.
The thing is, Javascript is javascript. So, when you get the basics, you will be able to read and understand a little bit of the RPG Maker core codes. Then it's just a matter of time to learn how the entire core codes works. Or just the part you need at the time ^^
What I usually recommend is to just learn the basic javascript through here:
or here:
Thanks again, I'll check 'em out. 😀

Original thread: https://forums.rpgmakerweb.com/threads/how-to-preserve-unchosen-dialogue-choices-and-add-a-new-one-after-a-choice-has-been-made.183019/