# The show stats button in Choicescript?

**URL:** <https://forum.choiceofgames.com/t/the-show-stats-button-in-choicescript/12335>\
**Category:** ChoiceScript Help\
**Created:** [October 9, 2015, 6:38pm UTC](https://forum.choiceofgames.com/t/the-show-stats-button-in-choicescript/12335 "2015-10-09T18:38:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Job\_Mot](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/job_mot/32/88655_2.png) [@Job\_Mot](https://forum.choiceofgames.com/u/Job_Mot)\
**Post date:** [October 9, 2015, 6:38pm UTC](https://forum.choiceofgames.com/t/the-show-stats-button-in-choicescript/12335/1 "2015-10-09T18:38:07Z")

</div>

Dear Everyone,  
How do I add a show stats button to my game once I have made a stats chart?  
Regards  
Jonas

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [October 9, 2015, 7:12pm UTC](https://forum.choiceofgames.com/t/the-show-stats-button-in-choicescript/12335/2 "2015-10-09T19:12:29Z")

</div>

So you should have two stats: Something like `given_name` and `surname`. From there you make a third: `full_name` and then display that. It should look something like this:

```
*temp given_name "Jessie"
*temp surname "Doe"
*temp full_name ""
Blah, Blah, Player Selects Name Here
*set full_name (given_name & " ") & surname
*stat_chart given_name Name
```

---

<div class="post-metadata">

**Author:** ![Job\_Mot](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/job_mot/32/88655_2.png) [@Job\_Mot](https://forum.choiceofgames.com/u/Job_Mot)\
**Post date:** [October 9, 2015, 7:20pm UTC](https://forum.choiceofgames.com/t/the-show-stats-button-in-choicescript/12335/3 "2015-10-09T19:20:32Z")

</div>

Dear Reaperoa,  
Thanks that works great is it possible for you to help  
me the other question I just put as I want the player to be able  
to look at the stats whenever they want.  
Best Regards  
Job

---

<div class="post-metadata">

**Author:** ![Silhuetta](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/silhuetta/32/24847_2.png) [@Silhuetta](https://forum.choiceofgames.com/u/Silhuetta)\
**Post date:** [October 9, 2015, 8:12pm UTC](https://forum.choiceofgames.com/t/the-show-stats-button-in-choicescript/12335/4 "2015-10-09T20:12:31Z")

</div>

Basically, just make put \*stat\_chart in your choicescript\_stats text file.

The stats will be accessible at any time for the player to see. The only time they wouldn’t be would be if you put an \*if statement in your chart.

For example:  
\*if (magic = true)  
percent magic

So, if “magic” was set to true before, it would show you the percent magic that the player has. Otherwise, it wouldn’t show up at all, at least until the condition was made true.
