Question on conditional chapters and variables

Discussion in 'CHYOA General' started by Kazza, Nov 20, 2019.

  1. Kazza

    Kazza Experienced

    Hello fellow writers!

    I was wondering if y'all could help clarify something for one of the stories I'm currently writing. In my newest story 'Futa Island' I have a chapter that houses all the emails that you receive over the course of the story. It was handy in the beginning but is starting to look a bit untidy and bloated.

    I would like to add some extra conditions to the chapters so that you can mark emails as being read and hide them away but this will add a lot of extra variables that are more for ease of use really and not story dependent.

    I've already tested it and know how to implement this, but I'm worried if I add too many variables that my story might get a bit slow or buggy. Am, I worrying for nothing or is their a limit to the amount of variables one story can handle?

    Does anyone have experience in this?
    (FYI my story already has around a dozen or more variables already and this would probably end up doubling that on top of all the future variables I will also eventually need to add)
     
  2. gene.sis

    gene.sis CHYOA Guru

    That's no problem.

    If you have one or more "lines" of emails (like in writing emails back and forth), you could use two variables for each line.

    example (for one "line"):
    "can see up to" = 6
    "read up to" = 4
    chapter "email 2" - conditions: "can see up to" > 1; "read up to" < 3; NOT VISIBLE ANYMORE
    chapter "email 3" - conditions: "can see up to" > 2; "read up to" < 4; NOT VISIBLE ANYMORE
    chapter "email 4" - conditions: "can see up to" > 3; "read up to" < 5; VISIBLE
    chapter "email 5" - conditions: "can see up to" > 4; "read up to" < 6; VISIBLE
    chapter "email 6" - conditions: "can see up to" > 5; "read up to" < 7; VISIBLE
    chapter "email 7" - conditions: "can see up to" > 6; "read up to" < 8; NOT YET VISIBLE
    chapter "email 8" - conditions: "can see up to" > 7; "read up to" < 9; NOT YET VISIBLE
     
    Kazza likes this.
  3. Kazza

    Kazza Experienced

    Thanks! :D