Using ShowMenu("save") as the Yes action hasn't worked. The save occurs with the prompt still present. Loading essentially traps the player at the prompt.
Alternatively, I've tried to have the Yes action send the player to another label where the save screen will be opened automatically for them.
To this end, I'm trying to use renpy.call_in_new_context(). However, doing so causes the save to occur before on the line before the save screen is called. When the game is loaded, the player is sent right back to the save screen via the next line, which is renpy.call_in_new_context().
The following is a minimal example of trying to use call_in_new_context in this way.
Code: Select all
# The script of the game goes in this file.
# Declare characters used by this game. The color argument colorizes the
# name of the character.
define e = Character("Eileen")
# The game starts here.
label start:
# Show a background. This uses a placeholder by default, but you can
# add a file (named either "bg room.png" or "bg room.jpg") to the
# images directory to show it.
scene bg room
# This shows a character sprite. A placeholder is used, but you can
# replace it by adding a file named "eileen happy.png" to the images
# directory.
show eileen happy
# These display lines of dialogue.
e "You've created a new Ren'Py game."
$ renpy.call_in_new_context("_game_menu", _game_menu_screen="save")
e "Once you add a story, pictures, and music, you can release it to the world!"
# This ends the game.
return