Writer's Portal Update: Labels and Branches

Hello Episodians!

We have an in-demand update for the Writer’s Portal this week: adding labels inside of branches! You can now bring your readers directly to the result of a choice with a label, without having to write a separate branch for this option! This function works within regular and timed choices.

Here’s how to use it: At the spot in which you’d like to take your reader directly to the branched choices, place “goto [name of label]” . Inside of the branch you’d like them to end up in, write “label [name of label]”.

An example would be:

INT. BLACK - NIGHT
NARRATOR
You have chosen to be a villain.

ROSE
Hi, are you a hero or a villain?
goto villainbranch

choice “I’m a hero!” {
YOU
I’m a hero!
} “I’m a villian” {
label villianbranch
YOU
I’m a villain!
}

What could this could be used for: This could be used in conjunction with flags or points to easily keep readers in branches based on their previous choices, while giving others the opportunity to choose.

As always, please let us know what you think, or if you have any issues in the thread below or by contacting our support team!

With Love,
Episode

90 Likes

Oh my…

2 Likes

Yes! I’ve been needing this to become a thing! :sob:

5 Likes

Now this is going to get my mind all over the places of understanding labels and branching…

19 Likes

Thank you so much, this is sooooo awesome :star_struck:

tenor

Happy Dance :tada:

3cG1

7 Likes

@Melani3 Does this only work with choices or can we also put labels inside if statements?

3 Likes

I am majorly confused as to what this is on about…? So is it saying we can put labels inside choices? But if you’re writing what’s happening inside that choice then why would you need a label? :thinking:

Can someone simplify it for me :joy:

11 Likes

Same. I thought we had this. Now I am so confused…@JemU776 get your teaching butt here please and explain!

6 Likes

I is confustion :rofl:

2 Likes

I think it could be used like this. Let’s say you had a LI choice with Bob and Brad (names chosen randomly lol), but if the reader has tied points, they get to make a choice.

if (BOB > BRAD) {
goto bob_choose
} elif (BRAD > BOB) {
goto brad_choose
} else {
continue
}

NARRATOR
Your points are tied. Who do you choose?
choice
“Bob” {
label bob_choose
NARRATOR
Text here.
} “Brad” {
label brad_choose
NARRATOR
Text here
}

Someone correct me if I’m wrong lol as I haven’t actually tried this yet. But that’s an example of how I think you can use it.
Honestly I’m so used to the old way that I’ll probably continue to keep my labels outside of choices/brackets.

20 Likes

What do you normally do it?

3 Likes

Without having labels in choices, I would do the above example this way:

if (BOB > BRAD) {
goto bob_choose
} elif (BRAD > BOB) {
goto brad_choose
} else {
continue
}

NARRATOR
Your points are tied. Who do you choose?
choice
“Bob” {
goto bob_choose
} “Brad” {
goto brad_choose
}

label bob_choose
NARRATOR
Storyline goes here.
goto end_story

label brad_choose
NARRATOR
Storyline goes here.
goto end_story

label end_story

4 Likes

Ah, I see, thank you! I’ll probably do it the old way too.

1 Like

Oui, @EliseC explained it well :blob_sun:

if (BAD) {

goto villainbranch <—if they have chosen being bad before and have the gain/flag BAD (or whatever the gain name is), then this goto will take them to the label it shares the same name with (so goto villainbranch will lead to label villainbranch, which we know is inside the choice “I’m a villain” down below)

} elif (GOOD) {

goto herobranch<—if they have chosen being good before and have the gain/flag GOOD (or whatever the gain name is), then this goto will take them to the label it shares the same name with (so goto herobranch will lead to label herobranch, which we know is inside the choice “I’m a hero!” down below)

} else {
<—Here they may have previously been good or bad or chose another option, since they didn’t gain GOOD or BAD so in this case, they have the option to choose whether to be good or bad in this situation.
}

#else pathway continues (you are asked if you’d like to play through the hero or villain choice) So in other words, it’s your choice. See, it’s fun being neutral : D

WISE SOUL
Hi, are you a hero or a villain for this choice?

choice “I’m a hero!” {

label herobranch (people who had gain/flag GOOD and then reached goto herobranch there were lead here)

YOU
I’m a hero!

#continue

} “I’m a villain” {

label villainbranch (people who had the gain/flag BAD and then reached goto villainbranch there were lead here)

YOU
I’m a villain!

#continue

}

#Back to the main story-line

Also since labels are allowed in choices, it appears that you can include dressing games and CC template inside of choices now. In addition, they appear to work with if/elif/else (labels go inside). When I tried/coded it, it didn’t give me an error although I have yet to test it for myself on the app (I’m not on my phone right now lol) :blob_hearts:

18 Likes

THANK YOU :sob:

1 Like

YES, YES, FINALLY! :heart_eyes:

1 Like

Honestly I don’t really see the use for this, exept maybe for having to use less code since you don’t have to rewrite the same choice over and over again.
But maybe I don’t fully get it?

A delete story button would have been more useful, or removing of gains :wink:

5 Likes

I can’t think of a use of this for my story :no_mouth: it would be nice if we had a choice inside a choice instead, but thanks for the update.

1 Like

You can already have choices inside of choices…? It’s slightly confusing but it’s doable.

1 Like

You need to put a label inside the choice that leads you to a label outside that choice, as far as I know.

1 Like