# Non-existent variable stealth

**URL:** <https://forum.choiceofgames.com/t/non-existent-variable-stealth/9237>\
**Category:** Game Development\
**Created:** [May 7, 2015, 5:13am UTC](https://forum.choiceofgames.com/t/non-existent-variable-stealth/9237 "2015-05-07T05:13:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lunarnuke](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@Lunarnuke](https://forum.choiceofgames.com/u/Lunarnuke)\
**Post date:** [May 7, 2015, 5:13am UTC](https://forum.choiceofgames.com/t/non-existent-variable-stealth/9237/1 "2015-05-07T05:13:45Z")

</div>

Hey can someone help me with this issue? I keep getting a message saying choicescript\_stats line 3: Non-existent variable 'stealth". here is my code,  
\*stat\_chart  
text name  
percent stealth  
opposed\_pair public support  
public distain  
percent weapons  
percent charisma  
text Stealth  
text weapons  
text Charisma

---

<div class="post-metadata">

**Author:** ![SwanMaiden](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/swanmaiden/32/4215_2.png) [@SwanMaiden](https://forum.choiceofgames.com/u/SwanMaiden)\
**Post date:** [May 7, 2015, 5:19am UTC](https://forum.choiceofgames.com/t/non-existent-variable-stealth/9237/2 "2015-05-07T05:19:22Z")

</div>

Did you do

```
*create stealth ""

```

or

```
*create stealth 0

```

at the top of your startup.txt? Your error line reads to me like you just forgot to make the variable, which means that your stats page can’t access it; if it’s not created, it doesn’t exist yet!

---

<div class="post-metadata">

**Author:** ![Lunarnuke](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@Lunarnuke](https://forum.choiceofgames.com/u/Lunarnuke)\
**Post date:** [May 7, 2015, 5:24am UTC](https://forum.choiceofgames.com/t/non-existent-variable-stealth/9237/3 "2015-05-07T05:24:49Z")

</div>

thank you so much for that, if you don’t mind answering?  
do I do the same things for the opposing stats?

---

<div class="post-metadata">

**Author:** ![SwanMaiden](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/swanmaiden/32/4215_2.png) [@SwanMaiden](https://forum.choiceofgames.com/u/SwanMaiden)\
**Post date:** [May 7, 2015, 5:29am UTC](https://forum.choiceofgames.com/t/non-existent-variable-stealth/9237/4 "2015-05-07T05:29:44Z")

</div>

Mhm! That sounds right.

You can read a bit more about opposed pairs here: [Customizing the ChoiceScript Stats Screen - Choice of Games LLC](https://www.choiceofgames.com/make-your-own-games/customizing-the-choicescript-stats-screen/)

I don’t use them much, so maybe a forum-goer with more experience can chime in if I’m wrong here. 😅

---

<div class="post-metadata">

**Author:** ![seabean](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/seabean/32/96835_2.png) [@seabean](https://forum.choiceofgames.com/u/seabean)\
**Post date:** [May 7, 2015, 5:50am UTC](https://forum.choiceofgames.com/t/non-existent-variable-stealth/9237/5 "2015-05-07T05:50:53Z")

</div>

You don’t have to have the opposed stat in your startup. Say one stat’s name is ‘good’, and the opposed name is ‘bad’. ‘Good’ will be a variable, but ‘bad’ doesn’t need to be defined, it’ll depend only on what the value of ‘good’ is.

---

<div class="post-metadata">

**Author:** ![Lunarnuke](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@Lunarnuke](https://forum.choiceofgames.com/u/Lunarnuke)\
**Post date:** [May 8, 2015, 3:42am UTC](https://forum.choiceofgames.com/t/non-existent-variable-stealth/9237/6 "2015-05-08T03:42:24Z")

</div>

okay so I will just have do \*create good? or what not?

---

<div class="post-metadata">

**Author:** ![ballmot](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/ballmot/32/198924_2.png) [@ballmot](https://forum.choiceofgames.com/u/ballmot)\
**Post date:** [May 8, 2015, 3:58am UTC](https://forum.choiceofgames.com/t/non-existent-variable-stealth/9237/7 "2015-05-08T03:58:15Z")

</div>

Exactly, just like what SwanMaiden said, you have to use either

```
*create good ""
or
*create good 0
or
*create good false
```
