Hide Variables?

Discussion in 'CHYOA General' started by sexybjgal69, Oct 4, 2020.

  1. sexybjgal69

    sexybjgal69 Virgin CHYOA Backer

    I know you can select variables to be hidden.

    If you have them visible for a few chapters can you hide them from the player's view again?

    Do you just simply create the variable then select the hide icon? Or will this create a seen and unseen variable?
     
  2. MidbossMan

    MidbossMan Really Really Experienced

    Yes, you can hide a variable at any chapter by entering a change in variable and choosing the mark that shows a crossed out "no" symbol. You can re-enable it in any other chapter by choosing the one that shows an eye symbol.

    Note that if you only want to change the visible or invisible status without modifying the player's score as a change, a good way to do it is adding 0. That way, the numerical value won't change, just whatever visibility status you wanted.
     
    insertnamehere, Almax and gene.sis like this.
  3. Almax

    Almax Really Experienced

    All of this, but remember! You can't do it with booleans. If a boolean is visible, you'll have to assume what it would be to make it invisible (in other words, ya can't make it invisible unless it's a chapter that already changes it -- and then you can't make it visible unless the chapter sets its value either).
     
  4. gene.sis

    gene.sis CHYOA Guru

    Good point.

    The only way to do that would be to set up two link that link to the destination chapter.
    Link 1 has condition true and sets the variable to true and hidden/visible
    Link 2 has condition false and sets the variable to false and hidden/visible

    But that's kind of an awkward workaround.
     
    MidbossMan and insertnamehere like this.