How to show chapters based on previous choice?

Discussion in 'CHYOA General' started by airwreck, Mar 27, 2017.

  1. airwreck

    airwreck Really Experienced

    For my story, A New Home, the protagonist has a simple choice of either buying a new bed from IKEA or Honest Ted's Furniture Emporium. After he chooses, the story is pretty much the same in either branch until the bed is delivered. The problem is that it was rather redundant making the same chapters for each of the branches.

    Is there a way to make a chapter only be available if the reader chooses one parameter? For example, if the protagonist buys the bed from IKEA then only the chapter of the IKEA delivery guys shows up and not option the Honest Ted showing up.
     
  2. Nemo of Utopia

    Nemo of Utopia CHYOA Guru

    Make it game mode and use a condition. I would have thought you of all people could figure that one out airwreck...
     
    gene.sis likes this.
  3. airwreck

    airwreck Really Experienced

    I never got around to trying game mode with conditions and there's a bug with that particular story. Thanks.
     
  4. Nemo of Utopia

    Nemo of Utopia CHYOA Guru

    Whenever you edit the conditions you have to go back to the beginning of the story to make them trigger properly. Hope that helps...
     
  5. gene.sis

    gene.sis CHYOA Guru

    Depending on the content/answers to the "Receive bed"-chapter it could also be possible to use if-statements inside that chapter without using any conditions.
     
  6. airwreck

    airwreck Really Experienced

    Do you know of a story that has conditional branching of chapters that I can check out its code?
     
  7. dingsdongs

    dingsdongs Really Really Experienced

  8. airwreck

    airwreck Really Experienced

    Thanks!