Question about links.

Discussion in 'CHYOA General' started by TheDespaxas, Dec 19, 2016.

  1. TheDespaxas

    TheDespaxas Really Really Experienced

    Hi
    I write a lot but I still haven't used most of the variables, conditional branches, links etc.

    I read a few post or guides but would like a few clarifications.

    If I want Chapter A and Chapter B to both be followed by the same chapter C.

    Do I have to create a chapter after both A and B before linking those to C?

    Do I link A and B directly to C?

    Can the readers see the titles or text of the link chapters if it is the first solution?

    Is there a way for the names of the next chapter to be different on two chapters but link to the same one?
     
  2. gene.sis

    gene.sis CHYOA Guru

    If chapter C already exists (e.g. in "branch 1"), you can create following chapters for A and B and link them to chapter C. (If you click "Link Chapter" at a chapter with content, you will loose that content when you save the chapter.)

    If chapter C doesn't exist, you can create chapter C as an answer for chapter A and create a following chapter for B and link it to chapter C. (or as answer for B and link from following chapter of A)

    The linked chapters "title" will be shown as answer at bottom of the previous chapter.
    Clicking on that answer forwards the reader to the link destination where the chapter title of the destination chapter will be shown as title

    Code:
    A Chapter Title: Green Chapter
    Answer: Red Chapter
    B Chapter Title: Blue Chapter
    Answer: Go Yellow (links to C)
    C Chapter Title: Red Chapter
    So chapter B will show "Go Yellow" as answer, but after clicking on it, the reader will be forwarded to a chapter with title "Red Chapter"

    Currently, only the answers can be different. The chapter title stays the same.

    Theoretically, it should be possible to implement the same functionality of Conditional Branches - If-Statements for chapter titles/answers. Maybe you want to leave a suggestion about this at the site feedback.


    There is a workaround to create links for both base chapters, but I don't think, that it is intended to be used to achieve different answers.
     
    TheDespaxas likes this.
  3. TheDespaxas

    TheDespaxas Really Really Experienced

    Thanks this exactly what I wanted to know. The bit about different answers linking to the same chapter is what I was trying to ask in the last part. The way you explained to do it is just what I was looking for.