Problems removing choices

I’m having trouble with the right option for this!

I can see there is a disable reuse command but what I am trying to do is this:
There is an opportunity in the game to sneak upstairs or downstairs, you can do this initially or after speaking to people. I want to remove this option if it has been tried before, which means removing the option from choices of someone you may speak to After sneaking etc!

I am looking at selectable_if as the way forward?

Thanks for any pointers!

Use a temp variable (we can call it sneakery). For any choice that involves the sneaking option, put a *set sneaker +1 after it. Then for each choice you can do *selectable_if (sneakery < 1). If I understand the situation correctly, that should have it where once they have chosen one of the sneaking options, they would remain visible but no longer selectable.

1 Like

many thanks, here is where I got to:

*choice
#Enter bar
*goto bar
*selectable_if (sneakup = false)
#Sneak upstairs
*goto sneakup
#Sneak downstairs
*goto sneakd
#Sneak upstairs
*temp sneakup true
*label sneakup
Test your luck
*choice
#Lucky
You loiter around until Bill is distracted

So, I am labelling sneak up as true when you try that, and if you then speak to someone it should see that the option is only selectable if not tried before

Except, this isn’t working?!

I always use numbers for variables, even binary ones. True/false was always tougher for me to grasp. I know how to explain it numerically but not really this way. That said, I do think the temp variable and the label shouldn’t be the same word. Also, the temp variable may need to be established earlier.

1 Like
*if (snuck_upstairs = false) # Sneak upstairs.
  *set snuck_upstairs true
1 Like

Thank you both indeed for your help.

I am sorry, it isn’t working:

*choice
					#Enter bar
						*goto bar
					*if (snuck_upstairs = false)
						#Sneak upstairs
							*goto sneakup
					#Sneak downstairs
						*goto sneakd
			#Sneak upstairs
				*label sneakup
				*set snuck_upstairs true
				Test your luck
				*choice

I get non existant variable snuck_upstairs

I have tried if, selectable if and selectable_if

Because you need to establish the temp variable earlier, above all the choices. A good rule of thumb is to put all temp variables you may need in a chapter at the very beginning of it. *temp whatever 0 or false so that the game knows it exists, tuck that at the very beginning of this chapter file.

1 Like

Its fixed- thanks a million!

1 Like