"Back Buttons"

So in RPG Maker VX ACE, I've been working on a guild system, and it has a bunch of "show choice" commands. The problem is, I don't work with loops that often, so I can't figure out how to make it so that when I press the back button it goes to the previous choices. Can anyone help me with this?
I've moved this thread to Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.



Can you show us screenshots of one of your events? Its a bit difficult to guide if you don't know where the person wants to go.


For example I wouldn't use loops for this, but labels in most cases - but which solution is best depends on how many options there are and what the structure is in general.


Loops are better for simple choices with limited options, labels are better (but also more difficult to use) for multi-level-decisions.
I think Yanfly has a script where you can set button presses to call common events: Its pretty easy and possible to event that with keypresses and loops, but it steps over that boundry so you dont have to. I'm not sure if you can customize so that the keypresses are only available at a specific event, but I guess it should be possible. 


If you have no problem with setting up the keyfunctions then I agree with Andar, that labels seems to be what you want to go for. Add conditional branches for the keypress inside the common event and add labes on each sections of the choices, and add jump to labels accordingly.


Edit: Also realised that my statement was pretty stupid... If you use the choices commands adding keypresses to act as a back button function is not necessary.
I'm sorry but I think you misunderstood. This is using the "show choice" command and I have a choice named back. What I want this to do if you select it is to bring you back to the previous "show choice" command. I'm wondering if I can use loop to do this but so far I haven't progressed. 🙁


Or it's just that I'm too noob to understand what you're trying to say. 
I'm sorry but I think you misunderstood. This is using the "show choice" command and I have a choice named back. What I want this to do if you select it is to bring you back to the previous "show choice" command. I'm wondering if I can use loop to do this but so far I haven't progressed. 🙁


Or it's just that I'm too noob to understand what you're trying to say. 



Yes, It was I that got it wrong, didnt realize first that you are using the show choice commands.


What you need to do, for an example:


Use the show choices command with a branch (Its listed in the "when cancel" list to the right. All the way at the bottom).


So if you add a label before the choice commands you want it to jump to lets name it: Jump to Choices 1.


Then add a jump to label, and chose the specific label in question in the when cancel branch on the other show choices command.


Input your choices like normal, and then when you get to the specific choice command and press cancel the label will trigger and take you back to the start of the other show choices command.


I could make an example for you if anything I say is pretty confusing.
I'll try doing what you recommended and if I can't get it well then I'm too stupid
I'll try doing what you recommended and if I can't get it well then I'm too stupid



Nah man, it takes some time to get used to dont worry about it. 


I do however embrace that you try to work it out yourself, cause you will learn much about it in the process. If you can't figure it out I'll try and help you further 🙂
Alright I just tried it and it actually worked!!! Thanks so much!
Alright I just tried it and it actually worked!!! Thanks so much!



Glad it worked out 🙂
This is using the "show choice" command and I have a choice named back. What I want this to do if you select it is to bring you back to the previous "show choice" command. I'm wondering if I can use loop to do this

No, you shouldn't use loops in this case


If the back option is inside the show choice, then using a loop requires a lot of logic design, because different loops can't cross themselves.


In such a case, the labels are a lot easier - make a label before each choice command, and inside the back button place a go to label to the correct label.
This is the basic idea. Also I'm sorry, even if I don't want/care my editor puts itself in Spanish.


But let's learn some basic Spanish! (?).


"Mostrar elecciones" = Show choices.


"Cuando [option name]" = When [option name]


"Ciclo" = Cycle / Loop cycle (I don't remember how was it called in English)


"Romper ciclo" = Break cycle/loop


0174ac8001.png



Technically what I'm doing is using cycles. The other way to do this is by using labels. More basic spanish!


"Etiqueta" = Label


"Ir a etiqueta" = Go to label


3e26c86efb.png



I prefer using labels because of personal taste, because they always behave as I hope them do (also I don't know if you can nest one loop inside another, label loops on the other hand can). But cycles are a little easier.


I hope this helps you, salut!
Thanks to all of you, I only felt the need tot use loops because I heard it on an unreliable source (looks at the internet) so I thought that was how you were supposed to use it.Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/back-buttons.61171/