I dont know how to link choices together

So I’ve been looking at choicescript tutorials (i’ve been using choicescript ide) but I don’t really understand how to like link choices? like I have three choices down but i’m not sure how to continue would it be like linking scenes?

Sorry if im not making sense even with the tutorials choicescript is still kinda confusing for me

Hi Leo well it’s kinda complicated but I will simplify
In ChoiceScript you can link choices together using the *choice command and the *goto command. Here’s explanation
Start by defining a label using *label to mark a specific point in your story. For example:

*label start
``` Use the `*choice` command to present the player with a set of options eeach option is defined using the `*selectable_if` command which determines whether the choice is available based on certain conditions For example:

*choice
#Option 1
*selectable_if (condition1)
Text for option 1.
*goto label1
#Option 2
*selectable_if (condition2)
Text for option 2.
*goto label2

After each option, you use the `*goto` command to specify the label where the story should jump to next This determines the flow of the narrative based on the player's choice For example if the player selects "Option 1" the story will jump to `label1`:

*label label1
Text after selecting Option 1.
*goto next_label

Continue the story from the label where the player has been directed. You can have multiple labels and use `*goto` to link them together based on the player's choices
By linking choices together using `*goto` commands, you create a branching narrative where the story diverges based on the playere decision
Hop I helped you Leo anything you wanna now don't be afraid to ask :)
1 Like

I think im getting it, so I cant just put *choice and then continue from that choice, I have do label and goto right?

Well…You can indeed continue the story directly from a *choice block without using labels and *goto commands Let me clarify the different approaches

Approach 1 Using Labels and *goto Commands

*label start
Welcome to the beginning of the story.

*label choice_block
*choice
   #Go left
      You decide to go left.
      *goto left_scene
   #Go right
      You choose to go right.
      *goto right_scene
   #Stay put
      You decide to stay where you are.
      *goto stay_scene

*label left_scene
You find yourself in a mysterious forest.
This is the continuation of the story after going left.

*label right_scene
You arrive at a bustling marketplace.
This is the continuation of the story after going right.

*label stay_scene
You remain where you are, observing your surroundings.
This is the continuation of the story after staying put.

In this approach, after the *choice block, each option is followed by a *goto command, which directs the story to a specific label indicating the next scene. The labels are defined with the *label command, and the scenes continue from there.

Approach 2 Continuing Directly from *choice

*label start
Welcome to the beginning of the story.

*choice
   #Go left
      You decide to go left.
      This is the continuation of the story after going left.
   #Go right
      You choose to go right.
      This is the continuation of the story after going right.
   #Stay put
      You decide to stay where you are.
      This is the continuation of the story after staying put.

In this approach the story continues directly from the *choice block without using labels and *goto commands. After each option you can provide the text that follows the chosen option representing the continuation of the story.

Both approaches are valid and depend on your preference and the structure of your story The first approach using labels and *goto commands provides more flexibility if you want to have distinct scenes and separate blocks of text The second approach allows for a more streamlined flow especially for shorter and simpler story segments.

Let me know if you have any further questions don’t be afraid to ask