Escape to "escape a conversation loop?"

Hi all,

I am designing conversations within my game, and one of the things I really like about games I have played in the past is when multiple choice conversations allow you to loop around and choose again from the choices. You can either choose the same choice to repeat or choose something else. However, something I didn't realize that I also depended upon was the ability to leave that type of conversation easily, rather than navigating to the choice that says goodbye.

I would instead like to "break" the conversation by pressing escape. This shouldn't apply to all conversations, but just to ones I choose.

Anyone know of a way to implement this? Not above using plugins etc, but this seems like something that a bunch of you non-noobs probably have thought of.

Here is a screenshot to show what I am thinking of.

Thanks in advance for the assistance!
IIRC, whenever you enter a choice, you can exit by pressing cancel.
it's a default feature.

what you can't do by default, is cancel a dialogue sequence.
they play out until the next branching (choice, end of dialogue or end of event sequence)

I don't have the code in front of me right now, but I remember seeing in the interpreter code, that show text, show choice and scripts always watch one instruction ahead, and queue an extra instruction if the next instruction is one of those.
that's why you can show choice while having one text event displayed on screen.
*that* is the part of the code that watches for cancel, IIRC.
If you only need to "escape" the loop when Choices are being shown, you can create a branch for "When Cancel" that will activate when the player presses Esc during one of these choices, like gstv87 said above.

If you need to allow the player to escape the loop during any point in the conversation, you can have a conditional branch after every text box or other action that checks whether the player is currently holding the Esc button. You might be able to just set the condition "B button is being pressed" as a normal conditional branch condition, or that might only detect new button presses, in which case you should choose the "Script" option inside the Conditional Branch dialogue and make the condition that the ESC symbol is being held down. The correct syntax might be Input.repeat?( :ESC ) but I'm not totally sure. It's been a few months since I've worked with MV's code.
Oh wow, super simple... Thanks for the explanation!

It's right here for anyone silly enough to need to have someone else tell this to them!

Original thread: https://forums.rpgmakerweb.com/threads/escape-to-escape-a-conversation-loop.77121/