Hiding variables on the stat page, until or if used

For my game, I want to implement a feature where the reader chooses from three unique family backgrounds and that will provide them with a respective personality stat of the opposed pair variety. How can I make it so that the respective stat is only visible when that option is selected?

1 Like
*if (rich = true)
 *stat_chart
  Random stats
*if (poor = true)
 *stat_chart
   Random stats
*if (middle_class = true)
  *stat_chart
   Random stats

And so on and in the startup

*create rich false
*create poor false
*create middle_class false

And set it true later like

  #I was rich description
   *set rich true

  #I was poor description
   *set poor true

  #I was middle class
   *set middle_class true

And so on…

1 Like

You could also remove the = true and just have *if (rich) and that’d work too.

2 Likes

Thank you both, I was able to perfectly implement the feature and I hope to make good use of it.

1 Like