Is something wrong with my code?

label stepmother_react_1
} “Be sweet” {
MARGOT (talk_handsonhips_neutral)
It was great, thank you for the upgrade
gain Sweetgirl

} “Be cold” {
MARGOT (talk_armscrossed_angry_loop)
Fine, the update was not needed
gain Coldgirl
}

Thats the code and it’s saying somethings wrong but I don’t know what

1 Like

you forgot to put choice!!

label stepmother_react_1
choice
“Be sweet” {
MARGOT (talk_handsonhips_neutral)
It was great, thank you for the upgrade
gain Sweetgirl

“Be cold” {
MARGOT (talk_armscrossed_angry_loop)
Fine, the update was not needed
gain Coldgirl
}

2 Likes

Thank you

1 Like

Np!!

1 Like

Be sure to add the choice after dialogue too
I forget sometimes lol

2 Likes

It’s saying this now:

Unexpected choice: Did you include a choice without a line of dialogue before it

What does that mean now?

1 Like

You have to add some dialog

1 Like

FOR EXAMPLE!!
MARGOT (talk_think)
How should I respond?)

choice
“Be sweet” {
MARGOT (talk_handsonhips_neutral)
It was great, thank you for the upgrade
gain Sweetgirl

“Be cold” {
MARGOT (talk_armscrossed_angry_loop)
Fine, the update was not needed
gain Coldgirl
}

2 Likes

just question do you need label in front of this choice?

1 Like

Add some dialogue before the word “choice”!

FYI, If you don’t want dialogue with your choice, you can scale your speechbubble to 0% :wink:

And perhaps you’d like to add a label after the choice where the branches merge? Example:

choice
“Be sweet” {
MARGOT (talk_handsonhips_neutral)
It was great, thank you for the upgrade
gain Sweetgirl
goto LABELNAMEHERE
} “Be cold” {
MARGOT (talk_armscrossed_angry_loop)
Fine, the update was not needed
gain Coldgirl
goto LABELNAMEHERE
}

label LABELNAMEHERE

3 Likes

I’m trying to make this a remembered choice so whenever the main character speaks to her stepmom she will act kindly or cold

Thank you!

1 Like

Thank you!!

label has nothing to do with rememberig choice.

For remembering you eather have to name the choice or use gains

labels are for sending reader back or forth to specific spot in script marked as label… for examle if you will add option to skipp chapter you will use label so the script knows the one who wants to skipp should go directly to the end.

1 Like

Oh okay! Thank you

:smiley: Sorry to correct you again :rofl: :sweat_smile: but adding here goto and label is unnecessary too because after reader choices one of the options the script goes to the end after the whole choice automatically

This will work but is a completely unnecessary code in this case.

This will do the exact same thing:

NARR
How do you want to react?
choice
“Be sweet” {
MARGOT (talk_handsonhips_neutral)
It was great, thank you for the upgrade
gain Sweetgirl
} “Be cold” {
MARGOT (talk_armscrossed_angry_loop)
Fine, the update was not needed
gain Coldgirl
}

1 Like

It’s no problem at all!
I learn from this too :joy: So, thank you.

1 Like

:slight_smile: Uf…I dont want to sound like bad or anything. :slight_smile:
The logic of gotos and labels is correct but you usually need it in more complex branches when you put somethig related to choice outside of the brackets…

example is CC - you cant have labels inside choice so you have to put the whole CC (which needs lot of labels) outside the choice - then you need labels

example where labels and gotos are necessy for choice:

label CC
NARR
Whoom would you like to customize?
choice “MC” {
goto MC
} “LI1” {
goto LI1
} “LI2” {
goto LI2
} “I am done” {
goto end
}

############################
label MC
NARR
Add the CC for MC here
goto CC
############################
label LI1
NARR
Add the CC for LI here
goto CC
############################
label LI2
NARR
Add the CC for L2 here
goto CC
############################
label end
NARR
Here you start your story

2 Likes