Invisible Chapter content

Discussion in 'Site Feedback' started by The Marksman, Dec 19, 2022.

  1. The Marksman

    The Marksman Virgin

    So I was perusing the delightful little story Don't let a friend Impregnate your wife (purely for science, mind you) and failed to get the ending I wanted. I flicked over to the story map, but clicking on a given chapter, doesn't make that chapter's content appear, instead I'm reminded that I need to enable conditional variables instead. I've seen this before once or twice and its always intrigued me.

    That's very interesting to me, how exactly are they hiding the content? I know it uses conditional variables obviously, but which ones, and do I need to implement some code?
     
  2. gene.sis

    gene.sis CHYOA Guru

    One way to hide the content when Game Mode is off is to use this if statement:
    Code:
    {if@ a > 100000}Text when Game Mode is off.{else}Text when Game Mode is on.{endif}
    (You can use any variable name for "a" and it doesn't matter if that variable is actually used in the game or not.)

    The message that you should activate Game Mode would go to the if part. The actual chapter content (including all necessary if statements) goes into the else part.

    Though even if this isn't used, you wouldn't see the whole content of the chapter as only one part of any if statement will be shown.
     
    The Marksman and insertnamehere like this.
  3. The Marksman

    The Marksman Virgin

    Thanks much.
     
  4. The Marksman

    The Marksman Virgin

    Next question.

    Is it possible to change the order of the various choices at the bottom of a chapter?
     
  5. gene.sis

    gene.sis CHYOA Guru

    For authors, this is currently not possible.

    If you are planning on having a chapter that should be above another chapter but will be published later, you can keep the first chapter in draft mode. (This won't work when you publish the story as it will publish all current chapters.)