Page 1 of 1

How can I skip the use of a second label?

Posted: Fri Sep 08, 2017 6:55 pm
by Flashlight
Hi so I'm trying to have two options of dialogue for the user to choose from.
I would like for them to choose option 1 but when it is chosen it also reads the dialogue for label 2.
How can I stop it from reading the second label and continuing on with the story?

menu:
"Stay quiet.":
jump a1

"Demand who's speaking.":
jump a2

label a1:
"Sam sits quietly for a moment."


label a2:
s "W-whos there?"

If jump one is chosen it will read label 1 but label 2 as well. Please help!

Re: How can I skip the use of a second label?

Posted: Fri Sep 08, 2017 7:08 pm
by Remix
label a1:
... "Sam sits quietly for a moment."
... return

most labels should have 'return' at the end unless they jump elsewhere and never return

Re: How can I skip the use of a second label?

Posted: Fri Sep 08, 2017 7:17 pm
by Flashlight
Remix wrote:
Fri Sep 08, 2017 7:08 pm
label a1:
... "Sam sits quietly for a moment."
... return

most labels should have 'return' at the end unless they jump elsewhere and never return
Using return ends the game for me at that point.
I want it to continue but without using label 2.
Am I using command or?...

Re: How can I skip the use of a second label?

Posted: Fri Sep 08, 2017 8:01 pm
by Imperf3kt
If you have two labels, one after the other, with no return, jump or call between them, then the game will move between them as if nothing happened.

The solution is dependant on how you structured your game.
Sounds like you want to jump over label b, so just write jump label_c at the end of the a label

Re: How can I skip the use of a second label?

Posted: Fri Sep 08, 2017 8:21 pm
by Flashlight
Imperf3kt wrote:
Fri Sep 08, 2017 8:01 pm
If you have two labels, one after the other, with no return, jump or call between them, then the game will move between them as if nothing happened.

The solution is dependant on how you structured your game.
Sounds like you want to jump over label b, so just write jump label_c at the end of the a label
Ah ha! Problem solved!!! Thank you so much!