Hiding an entire choice

Hiding individual choices is something I’m familiar with. What about hiding the entire option if X stat is not Y value?

The best way I could think to code this would be…

*if (X >= Y) *choice

But something tells me this may be impossible with CScript. Is there a way to do this that I’m not seeing?

Edit:

Clarification.

*fake_choice
*if (Engineering >= 50)
#I want to create machines. It is not my issue what people do with them outside of this facility. If I don’t build them, someone else will anyway and I will simply be out of a job.
Practical, as ever. Though a bit jaded. But that’s the nature of the world, isn’t it? Either you do it and get paid for it or someone else will and you’ll have to seek employment elsewhere. You’re almost there, though, at the point where you’ve saved up enough money to move to another city and not leave behind half of what you own. Perhaps when you make that move, things will be better than they were before.
*Cynical +5

I know how to do this ^

I’m talking about the choice not even appearing at all. The uh… best way I could explain would be…

*if (Engineering >= 50) *fake_choice
*if (Engineering >= 50)
#I want to create machines. It is not my issue what people do with them outside of this facility. If I don’t build them, someone else will anyway and I will simply be out of a job.
Practical, as ever. Though a bit jaded. But that’s the nature of the world, isn’t it? Either you do it and get paid for it or someone else will and you’ll have to seek employment elsewhere. You’re almost there, though, at the point where you’ve saved up enough money to move to another city and not leave behind half of what you own. Perhaps when you make that move, things will be better than they were before.
*Cynical +5

Hiding the ENTIRE choice and just replacing it with a page break if X is not at least Y.

*if (X >= Y)
   *choice
      #Option 1
         text
      #Option etc...
         text

nest it

1 Like

Oh. Dude, you are omnipresent. Thanks.

And if X does not fit the correct value, would the *else at the end just be…

*else
*page_break

?

You don’t need an else. Not every if needs an else, if the if is false, it will just skip everything nested under if and proceed as normal

1 Like

Gotcha. So that I don’t have to open another thread, is there a way to make information collapse instead of having to go to another page? I searched ‘collapse’ on the wiki but… nothing popped up. So it either doesn’t exist or it’s not a collapse command.

What do you mean by “collapse”

1 Like

You click on a piece of text. It opens a box that has words in it without navigating to another screen. You click the box again, it collapses the box. Same screen the entire time to reduce the need to click away.

Like on wikipedia so that you can view something like ‘Etymology’ without having to view the entire page at once but also don’t have to navigate away from it.

I don’t believe there is as a part of choicescript.

1 Like

Thanks again

Why not use *selectable_if command?

Edit:

1 Like

I think they wanted to hide the entire decision (so if the condition is false, the player doesn’t have to make a choice there), not just one choice, but if you want to hide one choice, doing you suggest like this is probably the way to go.

1 Like

Eden hit it on the head. I was looking to see if it was possible to hide an entire choice decision.

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