# Error in ChoiceScript based on the \*title command?

**URL:** <https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397>\
**Category:** ChoiceScript Help\
**Created:** [January 19, 2017, 9:08pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397 "2017-01-19T21:08:56Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deathrocker99](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Deathrocker99](https://forum.choiceofgames.com/u/Deathrocker99)\
**Post date:** [January 19, 2017, 9:08pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/1 "2017-01-19T21:08:56Z")

</div>

![](https://global.discourse-cdn.com/choiceofgames/original/3X/1/c/1c50a33b4fd346fac1231a43b89f4a79c8ae09b1.png)

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/7/5/7590ce0915399959663c5c942b152df34ff11d96.png)

Hey all, I am trying to start off a new game using ChoiceScript. I made a post yesterday asking for a tutorial and I found help, thank you FairyGodfeather. But I’m having trouble with it, as when I finished startup.txt, it’s telling me the title isn’t on the first line? As you can see, the title is on line one. Can someone help me with this, and if I have any other mistakes in here can you let me know?

---

<div class="post-metadata">

**Author:** ![ChibaHateme](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/chibahateme/32/18011_2.png) [@ChibaHateme](https://forum.choiceofgames.com/u/ChibaHateme)\
**Post date:** [January 19, 2017, 9:30pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/2 "2017-01-19T21:30:57Z")

</div>

One possible problem could be here:

```
 *scene_list
     Startup ----> startup

```

It could be that startup has to be written in lower case letters.

Also maybe the problem comes because you have nothing in the “chapter 1.txt” files?  
To test this you could use this code:

```
*title Apocalypse?
*author Deathrocker99
*scene_list
     startup
*create strength 0
*[...]
*create skincolor "unknown"

Test
*ending

```

---

<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:** [January 19, 2017, 9:45pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/3 "2017-01-19T21:45:37Z")

</div>

Quick test indicates it’s that you’ve capitalized your scene names. Use lower case alphanumeric characters only [`a-z` `0-9` and underscore (`_`)].

(That’s a super odd error message for what’s causing the problem, I’ll look into getting it to report a better one.)

---

<div class="post-metadata">

**Author:** ![Deathrocker99](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Deathrocker99](https://forum.choiceofgames.com/u/Deathrocker99)\
**Post date:** [January 20, 2017, 1:17pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/4 "2017-01-20T13:17:47Z")

</div>

Thank you, I think I fixed that problem now, but I have part of chapter 1 and it’s not going to it. A \*create nor \*finish command is working, which is what it tells me to do on the wiki

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/b/3/b3b92973216cdb0048291e94328873f68d8a3141.png)

 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/b/6/b6db118c29ee99334d705451c604b41cbe14bcab.png)

Thanks for your help though!

---

<div class="post-metadata">

**Author:** ![ChibaHateme](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/chibahateme/32/18011_2.png) [@ChibaHateme](https://forum.choiceofgames.com/u/ChibaHateme)\
**Post date:** [January 20, 2017, 1:28pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/5 "2017-01-20T13:28:02Z")

</div>

Since the error message is pretty clear it would help if you could upload a picture of the startup.txt or type the code into a post. Because I don’t think you started one of your variables with a number or “%!&/(=…” right? Just double check to make sure.

**Edit:**

About \*finish like the wiki explains if your startup.txt has no text you can just keep it out of the code and it should jump to the “chapter 1.txt”. However, if it’s still not working with or without a \*finish try using \*goto\_scene. Because the command \*finish will always send you to the next file you listed in the \*scene\_list and \*goto\_scene will take you to a certain scene you want to select.

```
*title ... 
*author -""-
*scene_list
   startup
   chapter 1
*create var1
*create [...]
*create varx
*goto_scene chapter 1

```

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [January 20, 2017, 4:15pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/6 "2017-01-20T16:15:56Z")

</div>

You can’t have spaces in the scene names. Try underscores instead. That might be what’s causing your problems.

(Both in the scene list and the name of the .txt file)

---

<div class="post-metadata">

**Author:** ![Deathrocker99](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Deathrocker99](https://forum.choiceofgames.com/u/Deathrocker99)\
**Post date:** [January 20, 2017, 4:59pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/7 "2017-01-20T16:59:18Z")

</div>

Thank you very much! This solved my problem

---

<div class="post-metadata">

**Author:** ![Deathrocker99](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Deathrocker99](https://forum.choiceofgames.com/u/Deathrocker99)\
**Post date:** [January 20, 2017, 5:09pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/8 "2017-01-20T17:09:10Z")

</div>

May I ask you one more question? Sorry to be a pain

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [January 20, 2017, 5:39pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/9 "2017-01-20T17:39:00Z")

</div>

Sure. As long as it’s either coding or forum related.

---

<div class="post-metadata">

**Author:** ![Deathrocker99](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Deathrocker99](https://forum.choiceofgames.com/u/Deathrocker99)\
**Post date:** [January 20, 2017, 8:04pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/10 "2017-01-20T20:04:04Z")

</div>

How do I get the description stats on the stat page? (EX: Gender, name) I don’t want it to be part of the percentage chart, just on that page. There’s nothing on the wiki besides the percentage chart and the “inventory”

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [January 20, 2017, 8:14pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/11 "2017-01-20T20:14:58Z")

</div>

The stat\_chart can be used to display text too. You just need to type “text” in front of the variable instead of “percent”

---

<div class="post-metadata">

**Author:** ![Deathrocker99](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Deathrocker99](https://forum.choiceofgames.com/u/Deathrocker99)\
**Post date:** [January 20, 2017, 8:16pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/12 "2017-01-20T20:16:28Z")

</div>

Okay, I’ll check that out. Thank you so much for your help! I’m sorry I’m such a newbie with ChoiceScript, you probably get these same questions over and over. Thanks!

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [January 20, 2017, 8:16pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/13 "2017-01-20T20:16:57Z")

</div>

From time to time 🙂

---

<div class="post-metadata">

**Author:** ![Deathrocker99](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Deathrocker99](https://forum.choiceofgames.com/u/Deathrocker99)\
**Post date:** [January 20, 2017, 8:18pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/14 "2017-01-20T20:18:54Z")

</div>

I have the beginning of my story/plot idea so far, it’s just the coding that I’m awful at. Hopefully soon I’ll make it to the WIP page, thank you

---

<div class="post-metadata">

**Author:** ![Deathrocker99](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Deathrocker99](https://forum.choiceofgames.com/u/Deathrocker99)\
**Post date:** [January 21, 2017, 4:16pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/15 "2017-01-21T16:16:31Z")

</div>

Another ChoiceScript question? I’m such a pain I know 😑

---

<div class="post-metadata">

**Author:** ![Silhuetta](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/silhuetta/32/24847_2.png) [@Silhuetta](https://forum.choiceofgames.com/u/Silhuetta)\
**Post date:** [January 21, 2017, 4:50pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/16 "2017-01-21T16:50:12Z")

</div>

What are you having trouble with? I’m not a Choicescript guru, but I’ll try to help you out. 🙂

---

<div class="post-metadata">

**Author:** ![Deathrocker99](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Deathrocker99](https://forum.choiceofgames.com/u/Deathrocker99)\
**Post date:** [January 21, 2017, 5:04pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/17 "2017-01-21T17:04:13Z")

</div>

I know it has to do something with the \*if command, but I want to make a choice available to a person if they’re a girl. I’m in the “character creation” part, and I’m on body types. I want to make the “curvy” body type choice available to girls only, yet the choice is in with the rest of the body types

---

<div class="post-metadata">

**Author:** ![Silhuetta](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/silhuetta/32/24847_2.png) [@Silhuetta](https://forum.choiceofgames.com/u/Silhuetta)\
**Post date:** [January 21, 2017, 5:08pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/18 "2017-01-21T17:08:08Z")

</div>

Basically, you would have to fall into an \*if statement and then follow behind with some choices. For example:

```
*if girl = true 
    *choice
          #I have a curvy body.
             *set curvy_body true
             *goto end
           #I have an athletic body.
             *set athletic_body true
             *goto end

*elseif boy = True 
           *goto end

```

Edit: my tabbing is off because I don’t know how to tab correctly on a phone. Just make sure that that each command is tabbed under the other. Also, make sure that you have true/false variables for the different body shapes if they are going to surface again down the line.

---

<div class="post-metadata">

**Author:** ![Deathrocker99](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Deathrocker99](https://forum.choiceofgames.com/u/Deathrocker99)\
**Post date:** [January 21, 2017, 5:34pm UTC](https://forum.choiceofgames.com/t/error-in-choicescript-based-on-the-title-command/23397/19 "2017-01-21T17:34:47Z")

</div>

Alrighty, thank you very much! It works now!
