Choice Menu Reads Response to Both Choices [CLOSED]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Ioja
Newbie
Posts: 15
Joined: Sat Apr 08, 2017 10:54 pm
Projects: Phoenix Season
Tumblr: galaxy-jar-studios
Contact:

Choice Menu Reads Response to Both Choices [CLOSED]

#1 Post by Ioja » Sat Jul 15, 2017 6:58 pm

Hi, total coding newbie here and I've read through several pages and forum questions I thought may help but didn't.

The problem: Every time the first option in a menu is chosen, it plays through the proper response and then plays through the response to the second choice, too, instead of going onwards into the game. So if you choose "How dare" it says the "She flinched," and then continues with "She pinched their ear." I've tried using different indentions, spacing, etc, but even if it's written right below "Stay silent" the first choice still reads it like it's a part of it. This happens to the other menus, too.

Code: Select all

menu:
        
        "\"How dare you?\"":
            "She flinched."
            
        "Stay silent":
            jump silent
    
label silent:

    "She pinched their ear." 
I've been comparing it to "The Question" script and so far the only real difference seems to be

Code: Select all

 $ bl_game = False
in the very beginning of the game, which i have no idea what to do with.
Last edited by Ioja on Sun Jul 16, 2017 7:02 pm, edited 2 times in total.

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Choice Menu Reads Response to Both Choices

#2 Post by Alex » Sat Jul 15, 2017 9:14 pm

The code executes line by line from top to bottom, so when you pick the first choice, it shows you the "She flinched." line and then run the next line that is label silent: and all its content.
So either put jump to another label in first choice or put away label silent.

User avatar
Ioja
Newbie
Posts: 15
Joined: Sat Apr 08, 2017 10:54 pm
Projects: Phoenix Season
Tumblr: galaxy-jar-studios
Contact:

Re: Choice Menu Reads Response to Both Choices

#3 Post by Ioja » Sat Jul 15, 2017 9:22 pm

Alex wrote:The code executes line by line from top to bottom, so when you pick the first choice, it shows you the "She flinched." line and then run the next line that is label silent: and all its content.
So either put jump to another label in first choice or put away label silent.

Thanks!!

Post Reply

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot]