# Lateral Scenes?

**URL:** <https://forum.choiceofgames.com/t/lateral-scenes/35243>\
**Category:** ChoiceScript Help\
**Created:** [February 11, 2018, 2:09am UTC](https://forum.choiceofgames.com/t/lateral-scenes/35243 "2018-02-11T02:09:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eos](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eos/32/109207_2.png) [@Eos](https://forum.choiceofgames.com/u/Eos)\
**Post date:** [February 11, 2018, 2:09am UTC](https://forum.choiceofgames.com/t/lateral-scenes/35243/1 "2018-02-11T02:09:43Z")

</div>

Is there a way to make some scenes non-linear? As in, each scene, instead of progressing one-by-one, can progress to a number of other scenes? For example, if you want to make a traversible map, each with different locations, could you assign each location a scene and move through them as your character chooses? And if so, how would you go about doing it? Thanks in advance.

---

<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:** [February 11, 2018, 2:18am UTC](https://forum.choiceofgames.com/t/lateral-scenes/35243/2 "2018-02-11T02:18:37Z")

</div>

You can either, depending on how big the scenes for the locations are use labels in the same scene, or use go\_subs ir goto\_scene.

---

<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:** [February 11, 2018, 6:12am UTC](https://forum.choiceofgames.com/t/lateral-scenes/35243/3 "2018-02-11T06:12:01Z")

</div>

You mean something like, say… 3 different parts of a district which have their own event, and all of them progress simultaneously?

The work can be quite… complicated, but it’s certainly doable. You’ll need a lot of `*goto`s and conditional checks to create such a scene (if I understand you correctly).

---

<div class="post-metadata">

**Author:** ![Eos](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/eos/32/109207_2.png) [@Eos](https://forum.choiceofgames.com/u/Eos)\
**Post date:** [February 11, 2018, 3:09pm UTC](https://forum.choiceofgames.com/t/lateral-scenes/35243/4 "2018-02-11T15:09:15Z")

</div>

As in, the scene a player progresses to may change depending on the choices a player makes in their current 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:** [February 11, 2018, 3:26pm UTC](https://forum.choiceofgames.com/t/lateral-scenes/35243/5 "2018-02-11T15:26:58Z")

</div>

As said, several ways, depending on how big things are:  
Example

```
*label housetour
*choice
   *disable_reuse #Go to the attic
      *goto attic
   *disable_reuse #Go to the basement
      *goto basement
   *disable_reuse #Go to the garden
      *goto garden

*label attic
TEXT
*goto housetour

*label basement
TEXT
*goto housetour

etc

```

This would be alternate path for one scene, coming back to the initial choice

```
*choice
   #Take the green path
      *goto green
   #Take the blue path
      *goto blue

*label green
TEXT
*goto door

*label blue
TEXT
*goto door

*label door

```

This would lead from point A to point B by two different paths

```
*choice
   #Help Martha
      *go_sub martha
      *finish
   #Help Laura
      *go_sub laura
      *finish

```

This would lead to a subscene like this:

```
code for helping Martha
*return

```

the return moves you back to where you came from and thus to the ‘finish’ aka the next scene on the list then  
The scenelist should look like this

```
1_sceneone
2_scenetwo (this is e.g. where the choice for martha and laura is)
3_scenethree
4_scenefour
epilogue
martha
laura

```

the finish would then proceed the story to the third scene.  
EDIT: (forgot stuff)

fourth option is goto\_scene

```
*choice
   #go to spain
      *goto_scene spain1
   #go to Japan
      *goto_scene japan1

```

with the scenelist looking like this

```
1_one
2_two (here you'd pick where to go)
spain1
spain2
spain3
japan1
japan2
japan3
3_backhome
4_four
5_five
epilogue

with the final bit in both spain3 and japan3 being *goto_scene 3_backhome

```

IIRC

---

<div class="post-metadata">

**Author:** ![Avery\_Moore](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/avery_moore/32/57275_2.png) [@Avery\_Moore](https://forum.choiceofgames.com/u/Avery_Moore)\
**Post date:** [February 11, 2018, 3:37pm UTC](https://forum.choiceofgames.com/t/lateral-scenes/35243/6 "2018-02-11T15:37:15Z")

</div>

Yeah, this is pretty easily done. Let’s say there’s a map with five locations; Village, Forest, Mountain, Desert and Swamp. First you’d need to make six files. “Village”, “Forest”, “Mountain”, “Desert”, “Swamp” and “Map”

On the page that says map, the text should read something like this:

Where do you want to go next?

\*choice  
#The Village  
\*goto\_scene Village  
#The Forest  
\*goto\_scene Forest  
#The Mountain  
\*goto\_scene Mountain  
#The Desert  
\*goto\_scene Desert  
#The Swamp  
\*goto\_scene Swamp

Whenever you choose to leave any of these areas, you just need to use the code:  
\*goto\_scene Map

---

<div class="post-metadata">

**Author:** ![needs-to-be-loved](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/needs-to-be-loved/32/47215_2.png) [@needs-to-be-loved](https://forum.choiceofgames.com/u/needs-to-be-loved)\
**Post date:** [February 11, 2018, 6:33pm UTC](https://forum.choiceofgames.com/t/lateral-scenes/35243/7 "2018-02-11T18:33:17Z")

</div>

In addition to this, can you track chosen options by a different code than setting variables for them ?

---

<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:** [February 11, 2018, 6:35pm UTC](https://forum.choiceofgames.com/t/lateral-scenes/35243/8 "2018-02-11T18:35:41Z")

</div>

> [@needs-to-be-loved](#):
>
> In addition to this, can you track chosen options by a different code than setting variables for them ?

Depends what you wish to do.  
If you want to check where obe has been later, you’ll need a variable.  
If you just want people not to go somewhere twice, either use hide\_reuse or disable\_reuse, or, again a variable.

---

<div class="post-metadata">

**Author:** ![needs-to-be-loved](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/needs-to-be-loved/32/47215_2.png) [@needs-to-be-loved](https://forum.choiceofgames.com/u/needs-to-be-loved)\
**Post date:** [February 11, 2018, 9:31pm UTC](https://forum.choiceofgames.com/t/lateral-scenes/35243/9 "2018-02-11T21:31:21Z")

</div>

But as far as i know \*hide and \*disable commands reset after going to a scene and coming back. Im ok with setting a variable though, just wanted to see if there is another option.

---

<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:** [February 11, 2018, 9:32pm UTC](https://forum.choiceofgames.com/t/lateral-scenes/35243/10 "2018-02-11T21:32:41Z")

</div>

If you use a go\_sub instead of goto\_scene it should keep the options.  
I dunno if you wouldn’t be running risk of looping, so a variable is a better idea.
