Can't find any info about MainMenu()

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
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Can't find any info about MainMenu()

#1 Post by Obscura »

I'm searching for any info about what MainMenu() actually does.

Aside from sending the player back to the Main Menu screen (and quitting the current game), is this the equivalent a full restart?

So the call stack is set back to 0, while persistent variables remain untouched?

Thanks!
Coming Out On Top - An Adult Gay Dating Sim
website

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

Re: Can't find any info about MainMenu()

#2 Post by Alex »

Looks like it just sends player to main menu - https://www.renpy.org/doc/html/screen_a ... nu-actions
If you get any issues with your variables, check if they set properly:
https://www.renpy.org/doc/html/python.html
https://www.renpy.org/doc/html/save_load_rollback.html

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: Can't find any info about MainMenu()

#3 Post by IrinaLazareva »

Also see 00action_menu.rpy file in renpy/common folder (class MainMenu).

User avatar
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Re: Can't find any info about MainMenu()

#4 Post by Obscura »

Ah, thanks everyone!
Coming Out On Top - An Adult Gay Dating Sim
website

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], sine12