# Finish command problem

**URL:** <https://forum.choiceofgames.com/t/finish-command-problem/26836>\
**Category:** ChoiceScript Help\
**Created:** [May 21, 2017, 4:39pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836 "2017-05-21T16:39:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Brandon1](https://forum.choiceofgames.com/u/Brandon1)\
**Post date:** [May 21, 2017, 4:39pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836/1 "2017-05-21T16:39:01Z")

</div>

I’ve recently started working with choicescript and I ran into a problem with the finish command.

When I use it at the end of my first scene, and then open the game in firefox, it seems to be treating it like a page\_break command. It takes me to the next scene, but instead of displaying “next chapter,” it’s displaying the usual “next” button.

I’m sure this is a simple problem, but I just wondered how I could fix this. Thank you.

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [May 21, 2017, 5:04pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836/2 "2017-05-21T17:04:47Z")

</div>

Hm. If you click that “Next” button, does it proceed to the next chapter regardless?

---

<div class="post-metadata">

**Author:** ![Brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Brandon1](https://forum.choiceofgames.com/u/Brandon1)\
**Post date:** [May 21, 2017, 5:45pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836/3 "2017-05-21T17:45:56Z")

</div>

Yes, it does. I’ve also tried changing the label and it remains the same.

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [May 21, 2017, 5:52pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836/4 "2017-05-21T17:52:18Z")

</div>

Would you mind posting your code so we can take a look to see what’s wrong?

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [May 21, 2017, 5:52pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836/5 "2017-05-21T17:52:52Z")

</div>

Well, I don’t think this problem’s a big deal.

Anyway, try typing the command in this format:

```
*finish [title]

```

the [title] placeholder can be replaced with any words. These words will then take over the place of the usual “Next” word.

---

<div class="post-metadata">

**Author:** ![Brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Brandon1](https://forum.choiceofgames.com/u/Brandon1)\
**Post date:** [May 21, 2017, 6:15pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836/6 "2017-05-21T18:15:26Z")

</div>

It isn’t super important, I just think it would look better if it was clear that the chapter ended here. Regardless I was just curious, so this is my code.

```
"Well $!{name}, I think it's about time for us to head back to base. The sooner we warn them, the better."

The two of you pick up the backpacks you brought and take one last look around the cabin for anything that is left behind. You find a photo on the floor next to your cot, and realize that it's a picture of you and your best friend on the playground when you two were in middle school.

Do you keep the photo?

*choice
  #Yes.
    *set photo true
    *finish
  #No.
    *finish

```

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [May 21, 2017, 6:31pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836/7 "2017-05-21T18:31:01Z")

</div>

Do you have your scenes listed in your startup file?

---

<div class="post-metadata">

**Author:** ![Brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Brandon1](https://forum.choiceofgames.com/u/Brandon1)\
**Post date:** [May 21, 2017, 6:34pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836/8 "2017-05-21T18:34:41Z")

</div>

Yes, they don’t have to include file types, do they?

---

<div class="post-metadata">

**Author:** ![Minnow](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Minnow](https://forum.choiceofgames.com/u/Minnow)\
**Post date:** [May 21, 2017, 7:44pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836/9 "2017-05-21T19:44:20Z")

</div>

> [@Brandon1](#):
>
> …they don’t have to include file types, do they?

You are correct; file types are unnecessary in the `*scene_list` in your startup.txt.

> [@Brandon1](#):
>
> …so this is my code.

What happens if you test the suggestion @Szaal gave, and add a custom description to your `*finish` command? Something like this:

```choicescript
*choice
  #Yes.
    *set photo true
    *finish Next Chapter
  #No.
    *finish Next Chapter

```

As an alternative, you could do what traditional books do, and include your “Next Chapter” information at the beginning of the next chapter, rather than at the end of the previous. Perhaps a single page at the start of the chapter with the chapter number and title in bold, separated from the rest of the chapter by a `*page_break` command?

I suppose it may depend on how important the chapter change should be to your readers. A “Next Chapter” button is less intrusive (but easier to mistakenly overlook) than a “Next Chapter” title page. I know I, personally, usually remember to read the “Next” buttons at the bottom, but occasionally forget.

---

<div class="post-metadata">

**Author:** ![DUNGEON\_MASTER](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/dungeon_master/32/56675_2.png) [@DUNGEON\_MASTER](https://forum.choiceofgames.com/u/DUNGEON_MASTER)\
**Post date:** [May 21, 2017, 7:48pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836/10 "2017-05-21T19:48:37Z")

</div>

No they dont have to include file types but the files should be .txt and of UTF-8 encoding  
And like @Szaal said you can type anything you want in the place of next.

---

<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:** [May 21, 2017, 7:52pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836/11 "2017-05-21T19:52:25Z")

</div>

That’s entirely intentional. If you don’t want a page break, use `*goto_scene` instead.

---

<div class="post-metadata">

**Author:** ![Brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@Brandon1](https://forum.choiceofgames.com/u/Brandon1)\
**Post date:** [May 21, 2017, 9:14pm UTC](https://forum.choiceofgames.com/t/finish-command-problem/26836/12 "2017-05-21T21:14:12Z")

</div>

Thanks for all of the help. I think I’ll just do what you said @Minnow and make a separate page for the following chapter. I doubt anyone would notice the difference anyway.
