How to disable saving temporarily?
Forum rules
Questions about Ren'Py should go in the Ren'Py Questions and Announcements forum.
Questions about Ren'Py should go in the Ren'Py Questions and Announcements forum.
-
- Newbie
- Posts: 14
- Joined: Thu Aug 11, 2022 5:38 pm
- Contact:
How to disable saving temporarily?
So basically what I'm trying to do is prevent the user from accessing the saves/loads/quicksaves during a minigame so that they don't cheat. So far from what I've seen, it's possible to completely the remove the saves/loads screen by removing everything under the screen label that corresponds to it. However, I haven't seen any temporary solutions. How could I possibly prevent the player from saving or loading or accessing these screens for a limited amount of time?
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3823
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: How to disable saving temporarily?
During the part you want to disable saving, set the variable "_game_menu" to None and disable keybinds for the escape key, and probably disable the quick menu also with $quick_menu = False
Then once the player is past the point you want to disable saving, re-enable them.
The default _game_menu is save
Then once the player is past the point you want to disable saving, re-enable them.
The default _game_menu is save
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Newbie
- Posts: 14
- Joined: Thu Aug 11, 2022 5:38 pm
- Contact:
Re: How to disable saving temporarily?
That seems to have worked. Thank you!
Re: How to disable saving temporarily?
To prevent players from cheating during a minigame, you can disable the save/load features temporarily. This means setting a flag or variable when the minigame starts and then checking it before allowing access to the save/load screens. Once the minigame is over, you can reset the flag to restore access. This way, players won't be able to cheat by saving/loading during the minigame.
Who is online
Users browsing this forum: No registered users