# Help with "error startup line 2"

**URL:** <https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497>\
**Category:** ChoiceScript Help\
**Created:** [October 17, 2015, 12:11am UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497 "2015-10-17T00:11:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rigmorafaith](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Rigmorafaith](https://forum.choiceofgames.com/u/Rigmorafaith)\
**Post date:** [October 17, 2015, 12:11am UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497/1 "2015-10-17T00:11:00Z")

</div>

Hi! I just started using choicescript, and I’m still confused, even though I read the “intro to choicescript” and “important choicescript commands” webpages. My problem is that when I type the line,  
\*create self-defense 20  
an error comes up when I try to use the index. It says “startup line 2: invalid create instruction, value must be a number, true/false, or a quoted string: self-defense 20”. I’ve tried putting quotes around the 20, and changing it to this:  
\*title: The Witch’s Child  
\*create etiquette  
\*set etiquette 20  
\*create self-defense  
\*set self-defense 20  
This is lines 1 to 5. Is there something that I’m suppose to put to tell the game to actually start? I tried putting \*startup and startup without the star, but that didn’t work. I also don’t see why it’s skipping the line about etiquette. I also tried indenting them using the tab button. Anyways, I should probably add that I’m really confused with trying to code this and so I’m probably missing something very obvious, and any help would be appreciated. Thank you very much!

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [October 17, 2015, 12:19am UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497/2 "2015-10-17T00:19:07Z")

</div>

Only alphanumeric or underscores are allowed in variable names. The dash ( **-** ) is invalid, instead use and underscore: _self\_defense_.

---

<div class="post-metadata">

**Author:** ![Rigmorafaith](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Rigmorafaith](https://forum.choiceofgames.com/u/Rigmorafaith)\
**Post date:** [October 17, 2015, 12:38am UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497/3 "2015-10-17T00:38:13Z")

</div>

Hi! Thank you for responding so quickly to my question. However, the game seems to think that it still has the dash, even though I used an underscore this time. I saved the changes, closed the old index, then opened it again, but it’s still saying the same thing. This is the text document:

 ![](https://global.discourse-cdn.com/choiceofgames/original/2X/c/c446698fcc74c771d65e0545fdc8a2d69aab616f.png)

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [October 17, 2015, 12:38am UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497/4 "2015-10-17T00:38:52Z")

</div>

Try F5, it may still be caching the old version.

---

<div class="post-metadata">

**Author:** ![Rigmorafaith](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Rigmorafaith](https://forum.choiceofgames.com/u/Rigmorafaith)\
**Post date:** [October 17, 2015, 12:39am UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497/5 "2015-10-17T00:39:21Z")

</div>

But then this is the game text whenever I try to open it:

 ![](https://global.discourse-cdn.com/choiceofgames/original/2X/0/0b9c3d8979785d344d337e017ed50374e319fbc7.png)

Thank you again for trying to help me. I’m using notepad, if that might matter.

---

<div class="post-metadata">

**Author:** ![RETowers](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/retowers/32/21477_2.png) [@RETowers](https://forum.choiceofgames.com/u/RETowers)\
**Post date:** [October 17, 2015, 1:05am UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497/6 "2015-10-17T01:05:59Z")

</div>

Oh, you’re not creating etiquette with a starting value. It’s just:

```
*create etiquette 20
*create self_defense 20

```

And \*title should not have a colon in it.

---

<div class="post-metadata">

**Author:** ![Rigmorafaith](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Rigmorafaith](https://forum.choiceofgames.com/u/Rigmorafaith)\
**Post date:** [October 17, 2015, 1:12am UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497/7 "2015-10-17T01:12:44Z")

</div>

So, I’m trying to press F5 when I’m on the screen where it opens my game after I click index- that’s what you mean, right? I did that, then reopened it, but it’s just acting like it’s refreshing and the same thing pops up. It’s still the same exact thing as the last screenshot. Thank again for trying to help me; I don’t know why my computer is being so ridiculous. I changed those things you suggested in your previous message.

---

<div class="post-metadata">

**Author:** ![Silverstone](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/silverstone/32/9901_2.png) [@Silverstone](https://forum.choiceofgames.com/u/Silverstone)\
**Post date:** [October 17, 2015, 1:27am UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497/8 "2015-10-17T01:27:04Z")

</div>

I forget how to use the indents for quoting code. This is a snippet from my own wip startup. Might help you with the layout of your one. (My scene list is indented but i forgot how to show that, sorry). Also, why are you making a stat chart in startup?

* * *

\*title The Gift: Uprising  
\*author CV Cottle  
\*scene\_list  
startup  
welcome  
childhood  
lab\_five  
ageten  
family10  
ending  
anna\_talk  
task\_day  
prologue  
jargon  
beasts  
skills  
skill\_boost  
hints  
death

\*create name “Unknown”  
\*create surname " "  
\*create gender “Unknown”  
\*create male false  
\*create female false  
\*create age “Unknown”

\*comment status/skills  
\*create lifeforce 100  
\*create vigor 10  
\*create smarts 0  
\*create hunt 0  
\*create cook 0  
\*create charm 10  
\*create mma 0  
\*create sneak 0

---

<div class="post-metadata">

**Author:** ![dfabulich](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dfabulich/32/198373_2.png) [@dfabulich](https://forum.choiceofgames.com/u/dfabulich)\
**Post date:** [October 17, 2015, 1:28am UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497/9 "2015-10-17T01:28:07Z")

</div>

In my experience, people have problems with this when they have multiple copies of startup.txt on their computer. They’re editing one file, but viewing another in their browser.

Try backing up your files, deleting all copies of ChoiceScript from your computer, refreshing your browser to make sure the game is really gone, then starting afresh.

---

<div class="post-metadata">

**Author:** ![Rigmorafaith](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Rigmorafaith](https://forum.choiceofgames.com/u/Rigmorafaith)\
**Post date:** [October 17, 2015, 1:43am UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497/10 "2015-10-17T01:43:51Z")

</div>

@Silverstone, Thank you for showing me some of your code. I forgot to add the scene list at the beginning-though I just have the start of one, I guess I’ll build it as I go on. As for the stat chart, I was going to show it at the very beginning and end of the game.  
@dfabulich, Thank you for your suggestion. I’ll try to do that and see if it fixes this problem. I’ll have to get back to you later- probably tomorrow, hopefully.

Thank you to all the people who are trying to help me.

---

<div class="post-metadata">

**Author:** ![Silverstone](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/silverstone/32/9901_2.png) [@Silverstone](https://forum.choiceofgames.com/u/Silverstone)\
**Post date:** [October 17, 2015, 1:51am UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497/11 "2015-10-17T01:51:52Z")

</div>

No worries. Oh okay, I did that to between one of the chapters. Hope your game begins to work now.

---

<div class="post-metadata">

**Author:** ![Rigmorafaith](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Rigmorafaith](https://forum.choiceofgames.com/u/Rigmorafaith)\
**Post date:** [October 18, 2015, 11:00pm UTC](https://forum.choiceofgames.com/t/help-with-error-startup-line-2/12497/12 "2015-10-18T23:00:28Z")

</div>

Thank you, guys, for your help. @dfabulich, that seems to have fixed the problem. Thank you very much for your help!
