Trouble with returning to a list of chioces

Hi. I am coding for the first time, so my code is probably sub par at best. I almost have it working the way I want it to, but when I make the first choice (whichever one I choose), it doesn’t get grayed out. The other choices gray out correctly, but the first one errors out if you click it a second time. Is there a way to get this to work?

If this isn’t the way to post this, or if it’s supposed to be somewhere else, I’m sorry. This is my first post.

Here’s what I’ve written:
*choice
#You decide to check the end table.
On an end table by the side of the bed, there’s a welcome basket and beneath that a drawer.
*disable_reuse
*label endtable
*choice
#You search the basket.
It has a leather bound book with a channel guide and wi-fi info hand written inside. Your brows crinkle. It would seem Ro took the time to write everything in this book. You are impressed by ${Ro_posspro} dedication, especially given how many channels ${Ro_subpro}’s written down. $!{Ro_subpro}’s also written a guide to some of the local eateries with ${Ro_posspro} own opinions of each, though this is a small town so there truly are only a few. There’s also a remote to the TV in the basket.
*disable_reuse
*goto endtable
#You open the drawer.
You open the drawer of the end table. Inside, you find a few novels and some paper, pens, and pencils. There’s also a coloring book and some colored pencils. You smile to yourself and wonder what other hidden treasures Ro might have hidden in these rooms.
*disable_reuse
*goto endtable
#You decide not to check anything else with the end table.
*disable_reuse
*goto roomchoice
#You walk into the bathroom.
You stand and head toward the bathroom. The bathroom is clean and minimalistic. It has a bathtub and shower combo to one side and a toilet on the other. There’s a large counter with two sinks against the outside wall with a long rectangular window over it allowing the sun to shine into the bathroom.
*disable_reuse
*label bathroom
*choice
#You look at the window.
There’s a privacy shield that can be slid across the window, which is a nice touch.
*disable_reuse
*goto bathroom
#You check the hamper.
You locate the hamper for dirty towels in the corner by the tub. It’s wicker with a white bag inserted to hold soiled linens.
*disable_reuse
*goto bathroom
#You are finished searching the bathroom.
*goto roomchoice
#You decide to check out the desk.
The desk is a basic rectangular design with no ornamentation. It appears to be made of oak. The top is a flat surface for writing or using a laptop, underneath the desktop, there are two thin drawers. You sit in the desk chair a moment.
*disable_reuse
*label desk
*choice
#You open the first drawer.
Opening the drawer you find it empty.
*disable_reuse
*goto desk
#You open the second drawer.
This drawer contains a paper with the wi-fi password and instructions for how to access the network.
*disable_reuse
*goto desk
#You are finished searching the desk.
*goto roomchoice
#You decide that you are done searching the room.

So what might be the problem is that you have the *disable_reuses off by themselves.

My understanding of the command is that it needs to be with the actual choice.

So it would be:

*disable_reuse #You decide to check the end table.

Try that, maybe?

1 Like

Thanks for the suggestion. I did try it, but it didn’t work. Thanks for taking the time to reply though.

Hm too bad. What error are you getting?

1 Like

I tried it again, and I think it may have worked this time. I’ll rerun it to be sure. Thank you so much.

After trying it several different ways, this fixed it.

Thank you!

Well, I hope I helped at least a bit! :smile:

1 Like