I would like to offer choices in a menu that do not appear u

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
Sum Gai
Newbie
Posts: 2
Joined: Thu Aug 06, 2009 12:27 am
Contact:

I would like to offer choices in a menu that do not appear u

#1 Post by Sum Gai »

hmm... Ran out of space in the topic to type my question.

Basically I want to offer choices in a menu that do not appear unless certain requirements are met.

for example: It would never occur to you to ask your date to the ice park unless someone had already told you she loves skating, thus if someone mentions she likes skating, the ice park appears as a choice on the menu when you take her out.

I'd love to stick some of the menu choices in 'if' statements, but I havn't figured out how to pull that off as part of the same menu.

thank you.

KimiYoriBaka
Miko-Class Veteran
Posts: 636
Joined: Thu May 14, 2009 8:15 pm
Projects: Castle of Arhannia
Contact:

Re: I would like to offer choices in a menu that do not appear u

#2 Post by KimiYoriBaka »

according the wiki page, you put a if condition after the string showing the choice like so:

Code: Select all

menu:
    "Where should I ask her to go with me?"

    "movies":
         jump go_to_movies
    "restaurant':
         jump go_to_restaurant
    "skate park" if told_about_skating:
         jump go_skating
    "my bedroom" if total_pervert:
         jump get_slapped

Sum Gai
Newbie
Posts: 2
Joined: Thu Aug 06, 2009 12:27 am
Contact:

Re: I would like to offer choices in a menu that do not appear u

#3 Post by Sum Gai »

That you very much.

I apologize for not being able to find it on my own. I really did look around.

With this I think I have all the tools I need to get started.

Again, thank you.

Post Reply

Who is online

Users browsing this forum: arewar, Rhapsy