# Help, errors :/

**URL:** <https://forum.choiceofgames.com/t/help-errors/38692>\
**Category:** ChoiceScript Help\
**Created:** [May 10, 2018, 10:27am UTC](https://forum.choiceofgames.com/t/help-errors/38692 "2018-05-10T10:27:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YeThatFella](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/yethatfella/32/56742_2.png) [@YeThatFella](https://forum.choiceofgames.com/u/YeThatFella)\
**Post date:** [May 10, 2018, 10:27am UTC](https://forum.choiceofgames.com/t/help-errors/38692/1 "2018-05-10T10:27:14Z")

</div>

I’m having trouble with stats ingame, can anyone help me?

choicescript\_stats line 3: Non-existent variable ‘evil’  
This is in my stat file:  
My life…  
\*stat\_chart  
opposed\_pair evil  
good

I don’t know what’s wrong.  
Help please.

---

<div class="post-metadata">

**Author:** ![anon8836198](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon8836198](https://forum.choiceofgames.com/u/anon8836198)\
**Post date:** [May 10, 2018, 10:35am UTC](https://forum.choiceofgames.com/t/help-errors/38692/2 "2018-05-10T10:35:52Z")

</div>

Have you declared “evil” in startup text file?

---

<div class="post-metadata">

**Author:** ![YeThatFella](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/yethatfella/32/56742_2.png) [@YeThatFella](https://forum.choiceofgames.com/u/YeThatFella)\
**Post date:** [May 10, 2018, 10:37am UTC](https://forum.choiceofgames.com/t/help-errors/38692/3 "2018-05-10T10:37:00Z")

</div>

How? What, i don’t know what you mean.

---

<div class="post-metadata">

**Author:** ![anon8836198](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon8836198](https://forum.choiceofgames.com/u/anon8836198)\
**Post date:** [May 10, 2018, 10:43am UTC](https://forum.choiceofgames.com/t/help-errors/38692/4 "2018-05-10T10:43:03Z")

</div>

You need to create (declare) permanent variables in startup.txt for the game to recognize them. That also goes for stat screen.

Here’s a nice wiki that has tons of material that will help you learn both basic and advanced CS:

> **[A Basic Tutorial](https://choicescriptdev.fandom.com/wiki/A_Basic_Tutorial)**
>
> Welcome to A Basic Tutorial, and indeed, to the wonderful (if sometimes wacky!) world of ChoiceScript Game Development. There are a number of basics concepts that are necessary to understand in learning, using and discussing ChoiceScript, and this...
