Using the Percentage Variable

Discussion in 'CHYOA General' started by daisyphoenix, Jul 29, 2016.

  1. daisyphoenix

    daisyphoenix Virgin

    I'm trying to make a story where the reader can pick the sexual preference of the character based on the choices made in sexual encounters. I wanted to set this up as a percentage of the encounters in relation to the number of options given. It looks like you give the percentage a set variable rather then a true percentage, such as 50% or 1 choice out of 2 choices presented.

    I'm wondering what the difference is between the percentage variable and the value variable. The about seem the same to me.
     
  2. gene.sis

    gene.sis CHYOA Guru

    A numeric variables can have a value from -100000 to +100000. The variable will be shown as number.
    A progress (percentage) variable can have a value from 0 to 100. The variable will be shown as progress bar with percentage.

    The behavior of both is the same. If you add 50 to a variable with value 20, it will be 70. If a variable exceeds the maximum, it will be set to the maximum (Same with minimum).

    Examples for the use of a progress variable:
    - Progress of the whole story
    - Sympathy of non-player-characters
    - Arousal
    - Health (would usually start with 100%)
    - Skills
    - ...
     
  3. daisyphoenix

    daisyphoenix Virgin

    Thank you gene, that was very helpful. :)