Game Mode how to: different options according which thread you came from(?)

Discussion in 'Authors' Hangout' started by Myocastor_Coypus, Jun 2, 2019.

  1. Myocastor_Coypus

    Myocastor_Coypus Experienced

    So, I would like some help determining whether a thing I wanna do is possible and how to do it. In case it's a little basic, apologies for my being a dunce in programming.

    I have a chapter, let's call it A.

    There are several different threads leading to chapter A.

    At the end of chapter A you can do x, y & z.

    I want there to be another option, let's call it z", at the end of chapter A, only available if you arrived at chapter A via a particular thread.

    So if you arrived at A via any of the other threads, you would see options x, y & z at the end,
    whereas,
    if you came from the special thread, you would see x, y, z & z".

    Does that make sense, and is it doable?
    Thanks
     
  2. Ben Rosewood

    Ben Rosewood Really Experienced

    Yes this is doable

    You would have to select the option 'Conditions to View this Chapter' for chapter z"
    From their, you can use variables to block access to chapters.

    For example, in one of my threads for 'Taming the Dom' the player needs to have scored 18% or more 'Domination' for 2 of the 3 options to appear.
     
  3. Myocastor_Coypus

    Myocastor_Coypus Experienced

    Ok. That's reassuring. I shall get tinkering then...
     
  4. gene.sis

    gene.sis CHYOA Guru

    If the chapter should be actually invisible in the options list, you have to disable the story option "Show inaccessible chapters." Otherwise, the option will be visible but not accessible.
    The chapter will still be visible on the story map.
     
    Ben Rosewood likes this.
  5. Myocastor_Coypus

    Myocastor_Coypus Experienced

    Right. Thanks. Better tweak that...
     
  6. scratch

    scratch Virgin

    Similarly, can I have multiple chapters lead to the same one?

    That is, chapter N gives you choices A, B, and C. The only difference between A, B, and C are some invisible score options, but all three choices should bring you to Chapter M. Is that doable?
     
  7. Ben Rosewood

    Ben Rosewood Really Experienced

    Yes this would be do-able via the 'link chapter' option which is in the margin on the right side of the screen (just above the 'delete chapter' option)
     
    gene.sis likes this.
  8. scratch

    scratch Virgin

    thanks!
     
  9. gene.sis

    gene.sis CHYOA Guru

    Please note that link chapters never have content. If you use the link "Link Chapter" on a chapter with content and save the chapter, the content will be lost.
     
  10. scratch

    scratch Virgin

    yep, figured that out. I think i'm running into a bug, though? It seems like if all chapters A B C leading to chapter M are linking chapters, I can no longer edit chapter M because there's a glitch with the way the editor tries to generate the chapter title. Any workarounds?
     
  11. Myocastor_Coypus

    Myocastor_Coypus Experienced

    Do you mean every time you try to save the chapter it says "Title field" required and doesn't provide a title field? 'Cos that happens to me every so often. It usually works again a few times refreshing the page.
     
  12. gene.sis

    gene.sis CHYOA Guru

    Chapter M shouldn't be a child of A, B, and C. (Not quite sure but I think the "Title field" issue occurs when you try to edit the child of a Linking chapter.)

    If chapter A doesn't modify variables, use the structure
    N
    M=A (direct access)
    B > links to M=A
    C > links to M=A​
    (After following B or C, the title will be the title of A so you might want to use the other possibility anyway.)

    If chapter A modifies variables, use the structure
    N
    M (use any condition which makes the chapter unaccessible like "a > 100,000")
    A > links to M
    B > links to M
    C > links to M​
    (If the reader follows a link, the conditions of a link destination are ignored. However, the Score Changes of both chapters gets applied to the reader's score.)
     
  13. scratch

    scratch Virgin

    oh very interesting, thank you! This should do what I'm looking for.