Player Choices [Solved]

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
Mayuko
Newbie
Posts: 5
Joined: Wed Apr 19, 2017 6:30 pm
Contact:

Player Choices [Solved]

#1 Post by Mayuko » Thu May 18, 2017 11:50 pm

Sorry for having so many doubts xD

Is there a way to make all the choices appear on the menu, even if the player can't choose one because he doesn't have enough points?
Last edited by Mayuko on Fri May 19, 2017 3:06 pm, edited 1 time in total.

User avatar
SuperbowserX
Veteran
Posts: 230
Joined: Sat Jan 07, 2017 3:09 pm
Contact:

Re: Player Choices

#2 Post by SuperbowserX » Fri May 19, 2017 2:53 am

You can do something like this:

Code: Select all

label whatdoyousaytoher:
menu:
    "What do you say to her?"
    "Hello!":
        "You say hi to the girl."
         ...
    "Did you see John anywhere?":
        "You ask her."
         ...
    "So, wanna go have coffee?":
        if courage < 5:
            "You do not have enough {b}courage{/b}..."
             jump whatdoyouaskher
        "Hey, let's go have coffee!"
That if statement will only run if you don't meet the requirement to do the action and it will loop the player back to the menu.

Mayuko
Newbie
Posts: 5
Joined: Wed Apr 19, 2017 6:30 pm
Contact:

Re: Player Choices

#3 Post by Mayuko » Fri May 19, 2017 3:06 pm

Ooh, that really helped. Thank very much ^^

Post Reply

Who is online

Users browsing this forum: Black Cat 2412