# So there is this error that makes no sense

**URL:** <https://forum.choiceofgames.com/t/so-there-is-this-error-that-makes-no-sense/1755>\
**Category:** ChoiceScript Help\
**Created:** [October 2, 2013, 8:23pm UTC](https://forum.choiceofgames.com/t/so-there-is-this-error-that-makes-no-sense/1755 "2013-10-02T20:23:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samuel\_H\_Young](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/samuel_h_young/32/275971_2.png) [@Samuel\_H\_Young](https://forum.choiceofgames.com/u/Samuel_H_Young)\
**Post date:** [October 2, 2013, 8:23pm UTC](https://forum.choiceofgames.com/t/so-there-is-this-error-that-makes-no-sense/1755/1 "2013-10-02T20:23:37Z")

</div>

error: line 1142  
it is illegal to fall out of a \*choice statement, you must \*goto or \*finish before the end of the indented block

But line 1142 is

```

#Stay in his default form and by your side- you do not yet know what the best course of action is but you would like to have Beckham comfortable and at the ready.

```

It’s a choice! Can anyone help me with this?

---

<div class="post-metadata">

**Author:** ![FairyGodfeather](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/fairygodfeather/32/16709_2.png) [@FairyGodfeather](https://forum.choiceofgames.com/u/FairyGodfeather)\
**Post date:** [October 2, 2013, 8:45pm UTC](https://forum.choiceofgames.com/t/so-there-is-this-error-that-makes-no-sense/1755/2 "2013-10-02T20:45:06Z")

</div>

You need a goto after the choice, or a finish

So

```

*choice
    #Stay in his default form and by your side- you do not yet know what the best course of action is but you would like to have Beckham comfortable and at the ready.
        *goto nextscene
    #Or Stay in his default form and by your side- you do not yet know what the best course of action is but you would like to have Beckham comfortable and at the ready.
        *finish

```

---

<div class="post-metadata">

**Author:** ![Cataphrak](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cataphrak/32/2883_2.png) [@Cataphrak](https://forum.choiceofgames.com/u/Cataphrak)\
**Post date:** [October 2, 2013, 8:48pm UTC](https://forum.choiceofgames.com/t/so-there-is-this-error-that-makes-no-sense/1755/3 "2013-10-02T20:48:40Z")

</div>

Generally, when quicktest gives an error like that, it’s not referring to the option in the line cited, but the option in the indented “#” block before that.

---

<div class="post-metadata">

**Author:** ![Samuel\_H\_Young](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/samuel_h_young/32/275971_2.png) [@Samuel\_H\_Young](https://forum.choiceofgames.com/u/Samuel_H_Young)\
**Post date:** [October 2, 2013, 8:54pm UTC](https://forum.choiceofgames.com/t/so-there-is-this-error-that-makes-no-sense/1755/4 "2013-10-02T20:54:25Z")

</div>

@Cataphrak  
EDIT:  
Wait, so the error is in the line before the line indicated?

---

<div class="post-metadata">

**Author:** ![Samuel\_H\_Young](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/samuel_h_young/32/275971_2.png) [@Samuel\_H\_Young](https://forum.choiceofgames.com/u/Samuel_H_Young)\
**Post date:** [October 2, 2013, 9:39pm UTC](https://forum.choiceofgames.com/t/so-there-is-this-error-that-makes-no-sense/1755/5 "2013-10-02T21:39:19Z")

</div>

@Caddmuss  
There’s a \*choice at the end of the option

So I think it may just be indicating the choice that’s before it, which is incomplete.

---

<div class="post-metadata">

**Author:** ![Caddmuss](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/caddmuss/32/424_2.png) [@Caddmuss](https://forum.choiceofgames.com/u/Caddmuss)\
**Post date:** [October 2, 2013, 9:00pm UTC](https://forum.choiceofgames.com/t/so-there-is-this-error-that-makes-no-sense/1755/6 "2013-10-02T21:00:48Z")

</div>

I’m not sure that’s quicktest (having never used it), but it looks like a playthrough error to me.

\*choice’s need a \*goto or \*goto\_scene to continue to a new section, otherwise you’d end up in the next choice’s content at the end. You use \*label’s to denote a beginning of a section.

E.g.

```
Where are you going next?

*choice
  #Option A
    *goto optA
  #Option B
    *goto optB

*label optA
You chose Option A.

*label optB
You chose Option B.

```

Alternatively, I use \*fake\_choice’s if I’m doing something quick, but all choices end up in the same place after.

```
What gender are you?

*fake_choice
  #Male
    *set gender "Male"
  #Female
    *set gender "Female"

So you're ${gender}? Cool.

```

---

<div class="post-metadata">

**Author:** ![Havenstone](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/havenstone/32/198451_2.png) [@Havenstone](https://forum.choiceofgames.com/u/Havenstone)\
**Post date:** [October 3, 2013, 3:37pm UTC](https://forum.choiceofgames.com/t/so-there-is-this-error-that-makes-no-sense/1755/7 "2013-10-03T15:37:10Z")

</div>

Is there a \*goto at the end of the option?

It would be handy to see the context – can you post the whole block of text around the choice?

---

<div class="post-metadata">

**Author:** ![Samuel\_H\_Young](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/samuel_h_young/32/275971_2.png) [@Samuel\_H\_Young](https://forum.choiceofgames.com/u/Samuel_H_Young)\
**Post date:** [October 3, 2013, 3:38pm UTC](https://forum.choiceofgames.com/t/so-there-is-this-error-that-makes-no-sense/1755/8 "2013-10-03T15:38:38Z")

</div>

@Havenstone  
I realized that it’s indicating the choice before it, which was incomplete (i.e. I hadn’t expanded it with a \*goto, \*finish, or \*choice)
