What should i write to make one choice lead back to the last one made

I’m trying to have a choice lead back to the same list of choices so the reader can try them all but don’t know how to write that out.
I want filing cabinet and the shelf to lead back sp I can click on the desk which is the correct choice.

*choice
#Filing cabinet
It’s locked
*finish
#The desk
On the desk you find a few files, they must have been left behind when this place was abandoned
*finish
#The Shelf
There’s nothing but dust on here.
*finish

1 Like

for future reference, just use labels and hide_reuse commands

*label search
*choice
   *hide_reuse #Filing cabinet
      It’s locked
      *goto search
   *hide_reuse #The desk
      On the desk you find a few files, they must have been left behind when this place was abandoned
      *goto search
   *hide_reuse #The Shelf
      There’s nothing but dust on here.
      *goto search
2 Likes

Thank you for this it worked

1 Like

I found that if you need to restart the chapter (because you die or something else, not restarting the entire game) the options still aren’t choosable as the “restart” doesn’t clean the *hide_reuse to say somehow. I had used temp variables and *selectable_if to solve that issue, like this:

*label temps
*temp ch1 0
*temp ch2 0
*temp ch3 0

*label search
*choice
   *selectable_if (ch1 = 0) #Filing cabinet
      *set ch1 1
      It’s locked
      *goto search
   *selectable_if (ch2 = 0) #The desk
      *set ch2 1
      On the desk you find a few files, they must have been left behind when this place was abandoned
      *goto search
   *selectable_if (ch3 = 0) #The Shelf
      *set ch3 1
      There’s nothing but dust on here.
      *goto search
2 Likes

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.