[solved]renpy.display_menu() and displaying the chat box

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
Iylae
Regular
Posts: 73
Joined: Sat Jan 09, 2016 6:57 am
Location: Cornwall, UK
Contact:

[solved]renpy.display_menu() and displaying the chat box

#1 Post by Iylae » Sat Jan 16, 2016 4:10 pm

So I noticed that the following will display a message in the chatbox when you show a menu:

Code: Select all

menu:
     "This is shown in the chatbox"

     "Menu choice 1":
         jump result1

     "Menu choice 2":
         jump result2
However, I am building dynamic menus using renpy.display_menu(), but I can't find any documentation on a python equivalent of showing a message in the chatbox at the same time as the menu.

Is there a python equivalent that will let me do this, or is there a way of using renpy.display_menu() without hiding the chat box with what was displayed previously?

If it's a complicated solution, I just need a point towards the right functions, not the answer on a plate.

Thanks.
Last edited by Iylae on Sat Jan 16, 2016 9:48 pm, edited 1 time in total.

philat
Eileen-Class Veteran
Posts: 1853
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: renpy.show_menu() and displaying the chat box

#2 Post by philat » Sat Jan 16, 2016 7:40 pm

Does show_menu() even exist? I don't see it in the documentation... http://www.renpy.org/doc/html/statement ... oice-menus

But in any case, you can use a renpy.say with interact set to False.

renpy.say(None, "blah blah blah", interact=False)

User avatar
Iylae
Regular
Posts: 73
Joined: Sat Jan 09, 2016 6:57 am
Location: Cornwall, UK
Contact:

Re: renpy.show_menu() and displaying the chat box

#3 Post by Iylae » Sat Jan 16, 2016 9:47 pm

Should've been display_menu(). My fault, I had written my own function that uses display_menu() and named it show_menu(). Gotten so used to using it now.

Your solution with renpy.say(interact=False) works a charm. That's all I needed, thanks!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]