"Conditions to view this chapter"

Discussion in 'Site Feedback' started by CrocodileHAZARD, Dec 3, 2018.

  1. So right now, I'm working on a story segment that uses the percentage(progress) variables over Boolean and Numerical variables. Now I'm wanting to effectively lock out a chapter unless the reader has reached a certain percentage with one specific variable. At this part, I'm confused and not sure which is the best way to block the chapter off.

    Assuming that I require 20% or more for "X" variable, then how should I set up the chapter to reflect that? Inversely, how should I set up another chapter to show up when the percentage is less than 20%, specifically in a way that only one or the other shows up?
     
  2. gene.sis

    gene.sis CHYOA Guru

    Add a condition
    Code:
    X > 19
    Add a condition
    Code:
    X < 20
    (or do I miss something?)
     
  3. No, that's honestly what I figured. I was curious if there was a way to set up "X >= 20" but I wasn't seeing it.
     
  4. gene.sis

    gene.sis CHYOA Guru

    No, currently there aren't comparison operators <= and >=
    As there are only integers, it's not necessary, though it would obviously be easier.
     
  5. Well it's not really breaking anything so I'm not all that worked up over it. Just wanted to make sure that "x > 19" and "x < 20" still covered the same parameters without ">=" and "<=" being available.