# Help with coding

**URL:** <https://forum.choiceofgames.com/t/help-with-coding/23776>\
**Category:** General\
**Created:** [February 5, 2017, 9:14pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776 "2017-02-05T21:14:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shaniya\_Bowman](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shaniya_bowman/32/18265_2.png) [@Shaniya\_Bowman](https://forum.choiceofgames.com/u/Shaniya_Bowman)\
**Post date:** [February 5, 2017, 9:14pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776/1 "2017-02-05T21:14:22Z")

</div>

I am currently working on my first story and am having trouble with a few things.

1. How do you add multiple stat sections on the stats screen?

2. How do you add name, wealth, and age to the stats screen after one has been chosen?

if you could help that would be appreciated.

---

<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:** [February 5, 2017, 9:59pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776/2 "2017-02-05T21:59:04Z")

</div>

You can just have as many \*stat\_charts as you want.

I often find it easier to look at examples. Have a look at how Choice of Vampire does things. Compare it with the stats you see while playing the game.  
[https://www.choiceofgames.com/vampire/scenes/choicescript\_stats.txt](https://www.choiceofgames.com/vampire/scenes/choicescript_stats.txt)

You can do

Name: {name} Age: {age}  
Wealth: ${wealth}

outside of a startchart.

---

<div class="post-metadata">

**Author:** ![Shaniya\_Bowman](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shaniya_bowman/32/18265_2.png) [@Shaniya\_Bowman](https://forum.choiceofgames.com/u/Shaniya_Bowman)\
**Post date:** [February 7, 2017, 9:02pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776/3 "2017-02-07T21:02:32Z")

</div>

thanks, appreciate the help, got it figured out :). Just one more question. For some reason the startup scene won’t jump to the next scene once I put \*finish

---

<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:** [February 7, 2017, 9:25pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776/4 "2017-02-07T21:25:48Z")

</div>

Do you have your next scene in the scene\_list?

```
*scene_list
     startup
     nextscene

```

I would suggest against copying my coding, as the tabbing is off. 😅

---

<div class="post-metadata">

**Author:** ![Shaniya\_Bowman](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shaniya_bowman/32/18265_2.png) [@Shaniya\_Bowman](https://forum.choiceofgames.com/u/Shaniya_Bowman)\
**Post date:** [February 7, 2017, 9:52pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776/5 "2017-02-07T21:52:42Z")

</div>

```
*scene_list
  startup
  chapter1
  chapter2
  chapter3
  chapter4
  chapter5

```

yes it looks like 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:** [February 7, 2017, 9:56pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776/6 "2017-02-07T21:56:32Z")

</div>

How to format your code so it can be seen on the forum.

Paste code into window.  
Highlight all of the code.  
Click the preformatted text button. (It looks like `</>` and is next to the quote one and on the same bar as the other formatting and smilies choice.)  
Click reply.

![](https://global.discourse-cdn.com/choiceofgames/original/2X/4/42ad6b6f83fcee0cf73c37f5a6503deac46ad12f.png)

---

<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:** [February 7, 2017, 9:57pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776/7 "2017-02-07T21:57:17Z")

</div>

Does using \*goto\_scene instead of finish work?

---

<div class="post-metadata">

**Author:** ![Shaniya\_Bowman](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shaniya_bowman/32/18265_2.png) [@Shaniya\_Bowman](https://forum.choiceofgames.com/u/Shaniya_Bowman)\
**Post date:** [February 7, 2017, 10:09pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776/8 "2017-02-07T22:09:46Z")

</div>

```
*choice
  #Kingdom name
        *input_text kingdom
        
        *page_break
        Great. Now which creature are you?
    *choice
      #lion (+5 strength, +5 combat, +5 leadership, Intimidation +5).
        A lion. You will have long sharp teeth, a golden main and sharp claws.
        *set creature "Lion"
        *set strength +5
        *set combat +5
        *set leadership +5
        *set intimidation +5
        *goto action
        *goto_scene chapter1

```

this is what it looks like. and yes iv’e tried that but doesnt work

---

<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:** [February 7, 2017, 10:12pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776/9 "2017-02-07T22:12:52Z")

</div>

Perhaps it’s because the \*goto is nested under a \*choice?

Try putting the `*goto_scene chapter1` on its own line.

---

<div class="post-metadata">

**Author:** ![Shaniya\_Bowman](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shaniya_bowman/32/18265_2.png) [@Shaniya\_Bowman](https://forum.choiceofgames.com/u/Shaniya_Bowman)\
**Post date:** [February 7, 2017, 10:24pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776/10 "2017-02-07T22:24:18Z")

</div>

```
*choice
  #Kingdom name
        *input_text kingdom
        
        *page_break
        Great. Now which creature are you?
    *choice
      #lion (+5 strength, +5 combat, +5 leadership, Intimidation +5).
        A lion. You will have long sharp teeth, a golden main and sharp claws.
        *set creature "Lion"
        *set strength +5
        *set combat +5
        *set leadership +5
        *set intimidation +5
        *goto action
        *goto_scene chapter1

```

when i have it like that this is the error i get  
 ![](https://global.discourse-cdn.com/choiceofgames/original/3X/2/a/2a47d6c41e238823251b9256ce1a1983f2b4eb27.png)

---

<div class="post-metadata">

**Author:** ![Xionide](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/xionide/32/132695_2.png) [@Xionide](https://forum.choiceofgames.com/u/Xionide)\
**Post date:** [February 7, 2017, 10:28pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776/11 "2017-02-07T22:28:08Z")

</div>

So what’s happening is that you’re trying to go to a label that you don’t have in the file. Make sure you have a line “\*label action”.  
Or were you trying to go to the label action in chapter 1?

Edit: And usually you wouldn’t need both \*goto and \*goto\_scene in one choice. If you’re done with the file, then you should use \*finish, but if you plan to come back, you should use \*goto\_scene. And if you’re staying within the file, you use \*goto

---

<div class="post-metadata">

**Author:** ![Shaniya\_Bowman](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/shaniya_bowman/32/18265_2.png) [@Shaniya\_Bowman](https://forum.choiceofgames.com/u/Shaniya_Bowman)\
**Post date:** [February 7, 2017, 10:35pm UTC](https://forum.choiceofgames.com/t/help-with-coding/23776/12 "2017-02-07T22:35:01Z")

</div>

thanks that worked! 🙂 appreciate your time. and the others that helped as well 🙂
