Creating a "Stat Screen" with assignable points

Hello,
I was trying to create a Stat Screen with assignable points for my game,
such as the one in “The Great Tournament” novel has.

See link: The Great Tournament

I was looking for instruction in the “Customizing the ChoiceScript Stats Screen” page
in Choice of Games, but I could’t find the instruction for this setting.

Does somebody know where i can find such instructions?

Thank you in advance.

1 Like

You can find more info on the stats screen here on the wiki.

1 Like

Here an example what i use if your still intrested

*label start

You have ${strength} strength, ${agility} agility, and ${intelligence} intelligence.
You have ${free_points} free points remaining.

*choice
  #Assign attribute points
    *goto assign_points
  #Use free points
    *goto free_points_menu
  #Continue
    *goto next_scene

*label assign_points

You have ${free_points} points to distribute among your attributes.

Strength: ${strength}
Agility: ${agility}
Intelligence: ${intelligence}

*choice
  #Add point to Strength
    *if (free_points > 0)
      *set strength + 1
      *set free_points - 1
      *goto assign_points
    *else
      You have no free points remaining.
      *goto assign_points
  #Add point to Agility
    *if (free_points > 0)
      *set agility + 1
      *set free_points - 1
      *goto assign_points
    *else
      You have no free points remaining.
      *goto assign_points
  #Add point to Intelligence
    *if (free_points > 0)
      *set intelligence + 1
      *set free_points - 1
      *goto assign_points
    *else
      You have no free points remaining.
      *goto assign_points
  #Done
    *goto start

*label free_points_menu

You have ${free_points} free points remaining. How would you like to allocate them?

*choice
  #Add to Strength
    *input_number strength_bonus How many points do you want to add to Strength?
      *if (strength_bonus <= free_points)
        *set strength + strength_bonus
        *set free_points - strength_bonus
        *goto start
      *else
        You don't have enough free points.
        *goto free_points_menu
  #Add to Agility
    *input_number agility_bonus How many points do you want to add to Agility?
      *if (agility_bonus <= free_points)
        *set agility + agility_bonus
        *set free_points - agility_bonus
        *goto start
      *else
        You don't have enough free points.
        *goto free_points_menu
  #Add to Intelligence
    *input_number intelligence_bonus How many points do you want to add to Intelligence?
      *if (intelligence_bonus <= free_points)
        *set intelligence + intelligence_bonus
        *set free_points - intelligence_bonus
        *goto start
      *else
        You don't have enough free points.
        *goto free_points_menu
  #Done
    *goto start

*label next_scene