Disabling save until certain parts help?

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
LolitaOfJustice
Newbie
Posts: 3
Joined: Tue Jul 25, 2017 3:30 pm
Tumblr: lolitaofjustice
Contact:

Disabling save until certain parts help?

#1 Post by LolitaOfJustice »

I tried to find another topic with this but I didn't have much luck, maybe I was looking too much into it. Anyways. I have a question in regards to code. I want to disable the save button from the bottom of the game and when you right click/hit esc UNTIL a certain point in the game. You know how in some visual novels, the game will give you a save prompt of "would you like to save" and then you hit yes/no and it saves etc, and it keeps doing that at certain points? I wanna do that in my game but I can't figure out how to code it. Basically I don't want the players to have the option to save whenever they want, only at certain points. Is there a line of code I can put at those certain points that would enable and disable save based on the circumstances? Thanks in advance!
Hi-hi! It's me the lolita of justice! Ready to bring justice everywhere! ^u^

User avatar
vollschauer
Veteran
Posts: 231
Joined: Sun Oct 11, 2015 9:38 am
Github: vollschauer
Contact:

Re: Disabling save until certain parts help?

#2 Post by vollschauer »

Then remove or disable the save button and change

Code: Select all

_game_menu_screen = "save"
to whatever you prefer to show up ...when you right click/hit ESC

https://www.renpy.org/doc/html/store_va ... enu_screen

And at your certain point's you can show the save dialog screen ....

Post Reply

Who is online

Users browsing this forum: Bing [Bot]