# Nested Choices? I'm not sure what to call this

**URL:** <https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228>\
**Category:** ChoiceScript Help\
**Created:** [May 12, 2021, 5:14am UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228 "2021-05-12T05:14:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [May 12, 2021, 5:14am UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/1 "2021-05-12T05:14:51Z")

</div>

```

You find Polanski standing on one of the various bridges that overlooks a large pool of water inside the station. Unlike usual, she’s not wearing her uniform. Instead Polanski has opted for a pair of short heels which buckle over her feet, a pair of stockings which alternate between white and purple and a dark blue dress which leaves her shoulders exposed. She does not notice you as you approach at first; completely focused on the water and the various kinds of life that exist within it. When she does finally notice you she nearly jumps out of her skin. 

“O-oh! Hey… Captain! Good morning! I mean evening…” she starts as she immediately begins to fidget. 

“Polanski… remember to breathe.” you tell her. 

“Of course, Captain. What did you need?” she says as she relaxes enough to at least have a conversation with. 

*label PolanskiStationConversation

*choice
     *hide_reuse# "I was wondering if you wanted to come with me somewhere. I think I saw an arcade in the market." 
      *if (Polanski >= 70)
       *set Polanski +3
       *goto Arcade
      *if (Polanski <= 69)
       *set Polanski -2
       *goto PolanskiStationConversation
     *hide_reuse# "I came to check up on you and make sure you're doing alright." 
      "I'm doing okay, Captain. I really like the water here. It's... peaceful." 
      *set Polanski +1
      *goto PolanskiStationConversation
     *hide_reuse #"Just making sure you're not doing anything against regulations."
      "Nothing against regulations, Captain. Just... enjoying the scenery. Was there something else you needed?"
       *set Polanski -1 
       *goto PolanskiStationConversation
     *hide_reuse #"That's all, for now, Polanski."
      "Of course, Captain. I'll see you around." Polanski replies as she goes back to looking at the water with a far away look on her features. 
      *goto StationChoices

```

I’m trying to create a loop here that displays the text below the choices but without having to create a new label for it since these options are small and generally speaking would not require an entire label.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [May 12, 2021, 5:18am UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/2 "2021-05-12T05:18:00Z")

</div>

Also I have no idea what happened with the ` that was supposed to separate the code from the rest.

Edit: That is apparently exactly how it works.

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [May 12, 2021, 7:35am UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/3 "2021-05-12T07:35:05Z")

</div>

Apologies for the additional bump.

It would seem that this works for dialogue or descriptions that only take up a single line. However, many of the choices (their descriptions specifically) are taking up multiple paragraphs of dialogue and description.

Will this require a label? Or is there a way to input code in a way that makes it more efficient?

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [May 12, 2021, 10:14am UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/4 "2021-05-12T10:14:15Z")

</div>

I’m not certain what exactly you want to do. can these options be repeated (as in will the choice appear several times?)

as for having multiple parapgraphs in a flavor text: that boils down to formatting, aka it needs the correct indentation:

```
*choice
   #option
      text
      (free line with indents)
      text
      (free line)
      text
   #option

```

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [May 12, 2021, 6:06pm UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/5 "2021-05-12T18:06:00Z")

</div>

Thankies!

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [May 12, 2021, 6:08pm UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/6 "2021-05-12T18:08:20Z")

</div>

Also, if I understand you correctly, this choicebody is called a few times, right?

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [May 12, 2021, 6:08pm UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/7 "2021-05-12T18:08:59Z")

</div>

Correct. Within the context of this specific situation.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [May 12, 2021, 8:18pm UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/8 "2021-05-12T20:18:33Z")

</div>

So, if I understood you correctly, you will need labels to ‘call’ the choicebody again.

A gosub might work well here?

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [May 12, 2021, 8:22pm UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/9 "2021-05-12T20:22:48Z")

</div>

No need. The text will only be repeated within this same scene.

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [May 12, 2021, 8:53pm UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/10 "2021-05-12T20:53:37Z")

</div>

ah, not a sub\_scene. a gosub.

basically

```
text

text

*gosub choice

text text

text
*gosub choice

text
*finish (end of chapter)

*label choice
*choice
   #choicestuff
      text
      
      text
      *return

```

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [May 12, 2021, 9:05pm UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/11 "2021-05-12T21:05:09Z")

</div>

Never considered it. I’ll give it a try though I think the less wordy way will be to nest it.

---

<div class="post-metadata">

**Author:** ![RascaldeesV2](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/rascaldeesv2/32/144587_2.png) [@RascaldeesV2](https://forum.choiceofgames.com/u/RascaldeesV2)\
**Post date:** [May 12, 2021, 9:25pm UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/12 "2021-05-12T21:25:00Z")

</div>

Apologies. I forgot to include the line of code that allows a save in the last update. I will include that in the patch that I make today. I was testing a few lines of code and just forgot to put the \*sm line back in.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/choiceofgames/original/3X/e/f/efe1497a762edecdb6d569a1c4abee87508bf002.png) [@system](https://forum.choiceofgames.com/u/system)\
**Post date:** [May 13, 2021, 9:25pm UTC](https://forum.choiceofgames.com/t/nested-choices-im-not-sure-what-to-call-this/100228/13 "2021-05-13T21:25:19Z")

</div>

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.
