# Non-existent variable error, need help

**URL:** <https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326>\
**Category:** ChoiceScript Help\
**Created:** [July 4, 2017, 7:19pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326 "2017-07-04T19:19:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [July 4, 2017, 7:19pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/1 "2017-07-04T19:19:42Z")

</div>

Hello! I must ask for help once more!  
I do not know what is the issue here, I rechecked spelling and the startup, can’t seem to find the problem. I hope you can help.

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/e/3/e31921843d17b9129277f95a52d34abfe004f743.PNG)  
I get this random error I’ve never gotten before:  
chapter2 line 1336: Non-existent variable ‘owner\_info’  
Help?  
😃

---

<div class="post-metadata">

**Author:** ![ParrotWatcher](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/parrotwatcher/32/49963_2.png) [@ParrotWatcher](https://forum.choiceofgames.com/u/ParrotWatcher)\
**Post date:** [July 4, 2017, 7:21pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/2 "2017-07-04T19:21:09Z")

</div>

Did you `*create owner_info false` in your startup file?

---

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [July 4, 2017, 7:21pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/3 "2017-07-04T19:21:38Z")

</div>

Obviously. You take me for a newbie sire!  
Jk.  
Yeah, I did that.  
That’s the thing about it being weird.  
The variable’s there. I think it has something to do with \*selectable\_if command.  
😃

---

<div class="post-metadata">

**Author:** ![ParrotWatcher](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/parrotwatcher/32/49963_2.png) [@ParrotWatcher](https://forum.choiceofgames.com/u/ParrotWatcher)\
**Post date:** [July 4, 2017, 7:30pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/4 "2017-07-04T19:30:38Z")

</div>

And is it definitely a Boolean (i.e. `true` or `false`, without any quotation marks)? 😜

---

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [July 4, 2017, 7:31pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/5 "2017-07-04T19:31:20Z")

</div>

Yeah. No quotation marks. True/false.  
😃

---

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [July 4, 2017, 7:32pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/6 "2017-07-04T19:32:41Z")

</div>

Think this might be one of those errors that have no explanation nor solution at all.

---

<div class="post-metadata">

**Author:** ![Fiogan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fiogan/32/215832_2.png) [@Fiogan](https://forum.choiceofgames.com/u/Fiogan)\
**Post date:** [July 4, 2017, 7:43pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/7 "2017-07-04T19:43:17Z")

</div>

Can you copy-paste the code with the \*create variable from startup so we could see? I believe you, that it’s there, I just think sometimes looking at the code in question can lead to useful ideas or suggestions.

Also occasionally, when I’ve had odd errors, deleting both the lines in question and then re-typing them has had good results for me…

---

<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:** [July 4, 2017, 7:44pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/8 "2017-07-04T19:44:21Z")

</div>

Maybe if you shared what your startup looks like to see if you missed something?

Though I’m sure it’s fine, it can’t hurt. I swear I sometimes get the most random errors and reworking the scene usually fixes it in some way. Maybe create a new variable for owner\_info and use it instead. 😛

---

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [July 4, 2017, 7:46pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/9 "2017-07-04T19:46:05Z")

</div>

![](https://global.discourse-cdn.com/choiceofgames/original/3X/d/c/dc0eaf2f17ae3cdb4fc7a28b10180680dd5ce8e2.PNG)  
Here ya go.  
Anything else you need?  
😃  
It’s very…hmm, an odd error.

---

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [July 4, 2017, 7:46pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/10 "2017-07-04T19:46:29Z")

</div>

Did so, I’m afraid. It didn’t work.  
😃

---

<div class="post-metadata">

**Author:** ![Fiogan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fiogan/32/215832_2.png) [@Fiogan](https://forum.choiceofgames.com/u/Fiogan)\
**Post date:** [July 4, 2017, 7:47pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/11 "2017-07-04T19:47:00Z")

</div>

Sorry, I mean, can you copy-paste the actual text instead of screen shots? And you’ve tried deleting both lines and re-typing them? You could also try clearing your cache so you’re sure you’re running the latest version of all your files, then, perhaps?

---

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [July 4, 2017, 7:48pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/12 "2017-07-04T19:48:05Z")

</div>

Sorry if this sounds stupid, but do you want the entire code of startup?  
😃

---

<div class="post-metadata">

**Author:** ![Fiogan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fiogan/32/215832_2.png) [@Fiogan](https://forum.choiceofgames.com/u/Fiogan)\
**Post date:** [July 4, 2017, 7:48pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/13 "2017-07-04T19:48:43Z")

</div>

Sure? You can always put it under a cut with `[details=startup] [/details]`. (I’m sure I’m the one who sounds stupid, fishing about for a solution to a very odd error with you all, so I wouldn’t worry about sounding silly or anything. ;p )

---

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [July 4, 2017, 7:49pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/14 "2017-07-04T19:49:38Z")

</div>

Brace yourself.  
😃

\*create name “Unknown”  
\*create class “Unknown”  
\*create house “Unknown”  
\*create gender “male”  
\*create he “he”  
\*create gender “female”  
\*create him “him”  
\*create his “his”  
\*create man “man”  
\*create sir “sir”  
\*create mr “Mr.”  
\*create dalkan\_relationship 30  
\*create zerphis\_relationship 20  
\*create archers 0  
\*create huscarls 0  
\*create knights 0  
\*create mages 0  
\*create emperor\_relationship 10  
\*create qolen\_relationship 30  
\*create elena\_relationship 10  
\*create tasal\_relationship 10  
\*create william\_relationship 30  
\*create aeyron\_relationship 20  
\*create enzo\_relationship 10  
\*create tars\_relationship 20  
\*create renown 5  
\*create gold 0  
\*create titanium\_sword false  
\*create knight “Knight: You rely on your strength, on your mount and value honor above all.”  
\*create hunter “Hunter: You rely on your sharp eye and settle most of the deals with a well placed arrow.”  
\*create assassin “Assassin: You rely on your agility and use intrigue to solve matters.”  
\*create mage “Mage: You rely on your wisdom and use spells to balance the odds.”  
\*create warhawk “Warhawk: You rely on your ironflesh, you settle deals with violence and have a bad temper.”  
\*create deathbringer “Deathbringer: You rely on dark magic and willpower, intimidation ensures that you’re always safe.”  
\*create mercenary “Mercenary Captain: You rely on your men and place their needs above all, you use leadership.”  
\*create scholar “Scholar: You rely on your intelligence, you prefer to settle deals with diplomacy.”  
\*create men\_preference false  
\*create both false  
\*create none false  
\*create women\_preference false  
\*create inspired\_troops false  
\*create claim false  
\*create ladders false  
\*create iron\_sword false  
\*create iron\_armor false  
\*create horse false  
\*create bow false  
\*create leather\_armor false  
\*create assassin\_robes false  
\*create throwing\_knives false  
\*create dagger false  
\*create magical\_staff false  
\*create war false  
\*create warfavor 10  
\*create magical\_robes false  
\*create magical\_spellbook false  
\*create iron\_warhammer false  
\*create aeyron\_alliance false  
\*create hardened\_iron false  
\*create death\_bringer false  
\*create iron\_greatsword false  
\*create iron\_pike false  
\*create book false  
\*create shortsword false  
\*create slace\_armor false  
\*create mastercraft\_bow false  
\*create mastercraft\_sword false  
\*create owner\_info false  
\*create vassal false  
\*create knights 0  
\*create huscarls 0  
\*create archers 0  
\*create mages 0  
\*create leadership 30  
\*create strength 30  
\*create willpower 30  
\*create intelligence 30  
\*create agility 30  
\*create magic 30  
\*create perception 30  
\*create endurance 30  
\*create health 100  
\*create armor 0  
\*achievement first\_blood visible 10 First Blood  
You slew the great beast by taking the minimal damage possible!  
\*achievement zerphis visible 20 Friends In High Places  
Zerphis, the divine of hate thinks highly of you!  
\*achievement battle visible 20 A Commando  
Win the battle for Castle Hearth!  
\*achievement william visible 10 Romance: William  
Start a romance with William Rivaldog.  
\*achievement sword visible 20 The Sword Of Justice  
Purchase a legendary sword, “The Eclipse”.  
\*achievement enzo visible 10 Strength Of Will  
Meet Enzo Fransez, a soulguard.  
\*achievement tasal visible 20 Best Friends  
Befriend Tasal Masaji.  
\*achievement bigbattle visible 30 The Challenger  
In the battle at the ruins of the Forgotten, challenge 2 lords in battle and win!  
\*achievement fighter visible 30 Champion Of The Realm  
Win the tournament of the realm.  
\*achievement aeyron visible 30 Through Unity, There is power  
Befriend the Aeyron bloodline.  
\*achievement duelmaster visible 10 Duel of the century  
Have a duel with the furious blademaster in the enemy camp.  
\*achievement ally visible 40 A Leader  
Unite every region to fight against the Emperor.  
\*achievement legend visible 50 A Legend  
Defeat the Emperor and his forces.  
Edit: You asked for it.  
😃

---

<div class="post-metadata">

**Author:** ![ParrotWatcher](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/parrotwatcher/32/49963_2.png) [@ParrotWatcher](https://forum.choiceofgames.com/u/ParrotWatcher)\
**Post date:** [July 4, 2017, 7:52pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/15 "2017-07-04T19:52:08Z")

</div>

> [@N1GHTMAR3](#):
>
> \*create gender “male”  
> \*create he “he”  
> \*create gender “female”

Well, I’ve no idea what your problem is, but you don’t need to create `gender` twice…

---

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [July 4, 2017, 7:52pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/16 "2017-07-04T19:52:43Z")

</div>

_COUGH_  
Shh.  
Every genius is crazy in a way.  
😃

---

<div class="post-metadata">

**Author:** ![Fiogan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fiogan/32/215832_2.png) [@Fiogan](https://forum.choiceofgames.com/u/Fiogan)\
**Post date:** [July 4, 2017, 7:56pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/17 "2017-07-04T19:56:16Z")

</div>

Also you’ll want to indent the achievement texts or you’ll have an error, like so:

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/d/2/d266ff649c3772fcbaff78c4c3e28e82c0831404.png)

So, I threw your code into [CSIDE](https://forum.choiceofgames.com/t/cside-the-choicescript-ide/27622) and typed up the snippet from your main scene, like so:

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/d/4/d40f5656ef7a0a4c3b23b7cac572275827c985b9.png)

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/9/f/9fc3b706746983f97ed3b866f3b9684e4e9de4fd.png)

And it worked perfectly.

Are you running the game in a browser when you get the error?

---

<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:** [July 4, 2017, 7:56pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/18 "2017-07-04T19:56:40Z")

</div>

By the way, do you get this error runnning quicktest/randomtest or playing through the game? Apparently quicktest can give weird errors even if it is fine.

(Aaand ninja’d by @Fiogan once again! Haha!)

---

<div class="post-metadata">

**Author:** ![N1GHTMAR3](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/n1ghtmar3/32/142049_2.png) [@N1GHTMAR3](https://forum.choiceofgames.com/u/N1GHTMAR3)\
**Post date:** [July 4, 2017, 7:57pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/19 "2017-07-04T19:57:21Z")

</div>

Welp, I just click “index” and off with you.  
😃  
(Yes, I use firefox).

---

<div class="post-metadata">

**Author:** ![Fiogan](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fiogan/32/215832_2.png) [@Fiogan](https://forum.choiceofgames.com/u/Fiogan)\
**Post date:** [July 4, 2017, 7:58pm UTC](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326/20 "2017-07-04T19:58:18Z")

</div>

Try saving all your files, closing all your files, opening up a private browser window, and running your game? I can’t help wondering if, for some reason, it’s reading an older version of the startup file.

[Next page](https://forum.choiceofgames.com/t/non-existent-variable-error-need-help/28326.md?page=2)
