# How do you get choices to work?

**URL:** <https://forum.choiceofgames.com/t/how-do-you-get-choices-to-work/46925>\
**Category:** ChoiceScript Help\
**Created:** [December 3, 2018, 5:58am UTC](https://forum.choiceofgames.com/t/how-do-you-get-choices-to-work/46925 "2018-12-03T05:58:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewNameSameBro](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@NewNameSameBro](https://forum.choiceofgames.com/u/NewNameSameBro)\
**Post date:** [December 3, 2018, 5:58am UTC](https://forum.choiceofgames.com/t/how-do-you-get-choices-to-work/46925/1 "2018-12-03T05:58:31Z")

</div>

I’m new to coding and using Choicescript. I’ve been stuck trying to get choices to go where I need them to go for a while now. I can only get the first one out of three to work. The other two aren’t showing up when I test it. How do you get two of the choices to lead to death, while the other to the next chapter? There aren’t any impacts to stats or variables with this one. (I see lots of Tylenol in my future trying to implement variables, commands, stats, etc. into the story.)  
Here’s an example of how it looks:

```
*choice
  #Decision
      Text
*goto_scene death
*choice
  #Decision
      Text
*goto_death scene
*choice
  #Decision
      Text
*goto_ scene chapter2

```

I have chapter2 in the scenes folder and on the startup list.

---

<div class="post-metadata">

**Author:** ![sviyagin](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/sviyagin/32/50885_2.png) [@sviyagin](https://forum.choiceofgames.com/u/sviyagin)\
**Post date:** [December 3, 2018, 6:03am UTC](https://forum.choiceofgames.com/t/how-do-you-get-choices-to-work/46925/2 "2018-12-03T06:03:32Z")

</div>

You should check out the intro to choicescript stuff [here](https://www.choiceofgames.com/make-your-own-games/choicescript-intro/)

Since you haven’t posted it in code, I don’t know what your indentations look like. You could have problems there. You also have a command that doesn’t exist (\*goto\_death scene --\> it should be \*goto\_scene death). The biggest thing though, is that a choice should look like this:

```
*choice
  #a 
    Text 
    *goto next
  #b 
    Text
    *goto_scene death
  #c 
    text
    *finish

```

You don’t use the \*choice command everytime you have a new option, that’s what the #'s are for

You should also check out the [wiki](http://choicescriptdev.wikia.com/wiki/ChoiceScript_Wiki)

Edit: since you have edited your original post, I have more to say

The commands associated with your options must be in the body of the option, which you can see in my example above. You also don’t need a \*goto\_scene chapter2 if in your startup chapter two comes directly after this, you need to use the \*finish command

---

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [December 3, 2018, 6:32am UTC](https://forum.choiceofgames.com/t/how-do-you-get-choices-to-work/46925/3 "2018-12-03T06:32:28Z")

</div>

Check out the links listed above. Also look at the example code for dragon to see how it can be used.  
[https://www.choiceofgames.com/dragon/scenes/startup.txt](https://www.choiceofgames.com/dragon/scenes/startup.txt)

I’m going to disagree slightly with sviyagin, in that i think the use of goto\_scene instead of finish is perfectly acceptable to use, and sometimes trying to use both seems to cause unnecessary confusion to people new to choicescript. I almost never use finish, because I find it easier to be 100% sure of where I’m pointing the goto that way (instead of having to be sure I haven’t changed the order of scenes in the startup,) but either will do the trick, it’s personal preference 🙂

---

<div class="post-metadata">

**Author:** ![will](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/will/32/132033_2.png) [@will](https://forum.choiceofgames.com/u/will)\
**Post date:** [December 3, 2018, 7:41am UTC](https://forum.choiceofgames.com/t/how-do-you-get-choices-to-work/46925/4 "2018-12-03T07:41:43Z")

</div>

> you need to use the finish command

Well, you don’t _need_ to. I don’t think I’ve ever used the \*finish command actually. I’ve even got a part where depending on what you’ve done in the game you can start in one scene and swap to another, or if you get to the other scene first, you could swap to the first!

Anyway the OP really needs to take a gander through the tutorial. I recommend this one: [ChoiceScript Guide](http://www.maderealstories.com/games/ChoiceScriptTutorial.html).

What I did myself was actually make a little document with all of the commands and interactions explicitly written out for my own benefit. Looks like this:

> **like this**
>
> Like this:
> 
> ![like%20this](https://global.discourse-cdn.com/choiceofgames/original/3X/f/e/fe9e591c27daf694f99f428a488fcb40d2d4065a.png)

Like 19 pages of that actually. The process of creating it really helped a lot with internalising all of the basic elements of the markup language so I could focus on solving the more complicated problems. I never need to refer to it now.

---

<div class="post-metadata">

**Author:** ![expectedoperator](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/expectedoperator/32/75295_2.png) [@expectedoperator](https://forum.choiceofgames.com/u/expectedoperator)\
**Post date:** [December 3, 2018, 8:27am UTC](https://forum.choiceofgames.com/t/how-do-you-get-choices-to-work/46925/5 "2018-12-03T08:27:06Z")

</div>

Definitely check out the links everyone mentioned, especially the wiki! It’s something I’ve looked at often, and I find it very helpful.

> [@Jacic](#):
>
> i think the use of goto\_scene instead of finish is perfectly acceptable to use

> [@will](#):
>
> Well, you don’t _need_ to.

Now that I’ve put the checkpoint system into my WIP, I’m not sure how or where I could even use \*finish, since everything has to jump over to the checkpoint scene first. 🤔

---

<div class="post-metadata">

**Author:** ![NewNameSameBro](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@NewNameSameBro](https://forum.choiceofgames.com/u/NewNameSameBro)\
**Post date:** [December 5, 2018, 2:19am UTC](https://forum.choiceofgames.com/t/how-do-you-get-choices-to-work/46925/6 "2018-12-05T02:19:18Z")

</div>

I made a mistake on the example. I meant to put \*goto\_scene death. But I found my mistake. I must have overread where it said you have to indent the \*goto. Thanks for everyone’s help.
