# Issue with the Stats Screen

**URL:** <https://forum.choiceofgames.com/t/issue-with-the-stats-screen/33277>\
**Category:** ChoiceScript Help\
**Created:** [December 16, 2017, 2:12am UTC](https://forum.choiceofgames.com/t/issue-with-the-stats-screen/33277 "2017-12-16T02:12:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RiceCake](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/ricecake/32/43683_2.png) [@RiceCake](https://forum.choiceofgames.com/u/RiceCake)\
**Post date:** [December 16, 2017, 2:12am UTC](https://forum.choiceofgames.com/t/issue-with-the-stats-screen/33277/1 "2017-12-16T02:12:41Z")

</div>

I’m having trouble with getting the stats to show up on the stats screen. I type in exactly what it says on the Choice of Games website,

\*stat\_chart  
percent leadership  
percent strength

just to try and get the hang of it, and it displays an error message. It says ‘non-existent variable: leadership’. Is there something I’m missing? Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![EclecticEccentric](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eclecticeccentric/32/112816_2.png) [@EclecticEccentric](https://forum.choiceofgames.com/u/EclecticEccentric)\
**Post date:** [December 16, 2017, 2:14am UTC](https://forum.choiceofgames.com/t/issue-with-the-stats-screen/33277/2 "2017-12-16T02:14:01Z")

</div>

Do you have the variable named “leadership”? Is it a numerical variable?

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [December 16, 2017, 2:28am UTC](https://forum.choiceofgames.com/t/issue-with-the-stats-screen/33277/3 "2017-12-16T02:28:18Z")

</div>

Leadership is the variable name. You need to put that as

```plaintext
*create leadership 10 (or 50 for opposed stats)

```

In your startup file below title and author, before the game text.  
Also the name does not have to be _leadership_ it can be whatever you see fitting for whats is needed as long as it is one word or has \_ in it.

This:

[![](https://img.youtube.com/vi/BqKSrLCC4f8/maxresdefault.jpg "(OUTDATED, see description for detail) [ChoiceScript] Basic Setup") ](https://www.youtube.com/watch?v=BqKSrLCC4f8)

Has helped me greatly getting started, in addition to the tutorial here.

---

<div class="post-metadata">

**Author:** ![DUNGEON\_MASTER](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dungeon_master/32/56675_2.png) [@DUNGEON\_MASTER](https://forum.choiceofgames.com/u/DUNGEON_MASTER)\
**Post date:** [December 16, 2017, 7:06am UTC](https://forum.choiceofgames.com/t/issue-with-the-stats-screen/33277/4 "2017-12-16T07:06:23Z")

</div>

> [@RiceCake](#):
>
> non-existent variable: leadership

as the error message says the variable named leadership doesn’t exist i.e. you have to create one

Put `*create leadership 30` in startup.txt

NOTE : \*create can be used only in starting of startup.txt

---

<div class="post-metadata">

**Author:** ![RiceCake](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/ricecake/32/43683_2.png) [@RiceCake](https://forum.choiceofgames.com/u/RiceCake)\
**Post date:** [December 18, 2017, 11:57pm UTC](https://forum.choiceofgames.com/t/issue-with-the-stats-screen/33277/5 "2017-12-18T23:57:57Z")

</div>

Is it the same for opposed variables? Do you type them the same way you do with regular ones?

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [December 19, 2017, 12:00am UTC](https://forum.choiceofgames.com/t/issue-with-the-stats-screen/33277/6 "2017-12-19T00:00:19Z")

</div>

opposed looks like this:

```
*stat_chart
   opposed_pair Conventional
      Unconventional

```

You only need a  
\*create conventional (or what have you)  
though.

on the note of opposed stats:  
Folks, can the display names for opposed stats be changed like with the others and if yes, how?

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [December 19, 2017, 2:45am UTC](https://forum.choiceofgames.com/t/issue-with-the-stats-screen/33277/7 "2017-12-19T02:45:10Z")

</div>

> [@RiceCake](#):
>
> Is it the same for opposed variables?

Yep  
One variable for a pair of opposed variables.

i.e.  
`*create good 85` = 85% good X 15% bad

> [@MeltingPenguins](#):
>
> Folks, can the display names for opposed stats be changed like with the others and if yes, how?

Just do it

```choicescript
*stat_chart
   percent superspicystat
      The Left Stat
      The Right Stat
```
