# Problems creating stats

**URL:** <https://forum.choiceofgames.com/t/problems-creating-stats/1547>\
**Category:** ChoiceScript Help\
**Created:** [July 20, 2013, 11:55am UTC](https://forum.choiceofgames.com/t/problems-creating-stats/1547 "2013-07-20T11:55:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trask84](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/trask84/32/1228_2.png) [@Trask84](https://forum.choiceofgames.com/u/Trask84)\
**Post date:** [July 20, 2013, 11:55am UTC](https://forum.choiceofgames.com/t/problems-creating-stats/1547/1 "2013-07-20T11:55:55Z")

</div>

Hey Guys (and Gals)

I am working on a game, but I can’t seem to create any stats for it.

I used the following

\*create Charisma  
\*create Stealth  
\*create Combativeness  
\*create Loyalty

I did this in the exact same place as the game create Leadership and strength stood. but i keep getting error msg when trying it out. Is there someone familiar with this issue, or should I code it differently?

cheers

---

<div class="post-metadata">

**Author:** ![youwish12](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@youwish12](https://forum.choiceofgames.com/u/youwish12)\
**Post date:** [July 20, 2013, 11:59am UTC](https://forum.choiceofgames.com/t/problems-creating-stats/1547/2 "2013-07-20T11:59:16Z")

</div>

You have to give it a value. Try:

\*create Charisma 50  
\*create Stealth 50

And so on…

---

<div class="post-metadata">

**Author:** ![Trask84](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/trask84/32/1228_2.png) [@Trask84](https://forum.choiceofgames.com/u/Trask84)\
**Post date:** [July 20, 2013, 12:06pm UTC](https://forum.choiceofgames.com/t/problems-creating-stats/1547/3 "2013-07-20T12:06:40Z")

</div>

I tried that already before posting (sorry forgot to say so in my post), both 20 and 50 but still gave the same error

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [July 20, 2013, 12:16pm UTC](https://forum.choiceofgames.com/t/problems-creating-stats/1547/4 "2013-07-20T12:16:24Z")

</div>

What is the actual error message?  
Note that \*create will only work in startup.txt if you rename that file or try to use a different one it won’t work.

---

<div class="post-metadata">

**Author:** ![Trask84](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/trask84/32/1228_2.png) [@Trask84](https://forum.choiceofgames.com/u/Trask84)\
**Post date:** [July 20, 2013, 12:22pm UTC](https://forum.choiceofgames.com/t/problems-creating-stats/1547/5 "2013-07-20T12:22:00Z")

</div>

Ah that actually could be the problem then,

In the scene list, I have renamed the scene startup with intro. could this be the issue

the error i get is line 4 : non existing variable charisma (charisma value 50)

---

<div class="post-metadata">

**Author:** ![Trask84](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/trask84/32/1228_2.png) [@Trask84](https://forum.choiceofgames.com/u/Trask84)\
**Post date:** [July 20, 2013, 12:53pm UTC](https://forum.choiceofgames.com/t/problems-creating-stats/1547/6 "2013-07-20T12:53:37Z")

</div>

\*title The Academy  
\*scene\_list  
startup  
Basic Training  
Advanced Training  
First Mission  
Graduation

\*create charisma 50  
\*create stealth 50  
\*create combat 50

copyright 2013 by Yanick D. Goossens

\*page\_break

this is how it looks in my editor

---

<div class="post-metadata">

**Author:** ![CJW](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cjw/32/111787_2.png) [@CJW](https://forum.choiceofgames.com/u/CJW)\
**Post date:** [July 21, 2013, 10:18am UTC](https://forum.choiceofgames.com/t/problems-creating-stats/1547/7 "2013-07-21T10:18:00Z")

</div>

You need to keep startup called startup.txt - it doesn’t need to appear in the ‘scene\_list’ because it’s the startup.txt file in which you’re declaring the scene list (so it’s completely redundant).

Your formatting looks correct, I can’t understand why it’s throwing that error from the information you provided.

The only other thing you can do if you’re still having problems is to upload your game somewhere, so I can take a closer look.

---

<div class="post-metadata">

**Author:** ![Trask84](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/trask84/32/1228_2.png) [@Trask84](https://forum.choiceofgames.com/u/Trask84)\
**Post date:** [July 22, 2013, 7:01am UTC](https://forum.choiceofgames.com/t/problems-creating-stats/1547/8 "2013-07-22T07:01:50Z")

</div>

Thanks for the help @CJW

I will try to start from a blank program again and see if it fixes the issue, if not I will msg you with a link to the game.
