documentation indexreference manualfunction index

renpy.save

Function: renpy.save (filename, extra_info=""):

Saves the current game in filename.

filename - A string, giving the filename to save in. Note that this does not correspond to any particular file on disk, but should be treated as an arbitrary game identifier. Normal save slots are base-10 representations of integers, while other names will not show up in the file-picker.

extra_info - Additional information saved with the game. This is usually the value of save_name.

renpy.take_screenshot must be called before renpy.save, except when inside the game menu, where it has been automatically called.

Example

python:
    renpy.take_screenshot()
    renpy.save("chapter2", "Start of chapter 2.")

documentation indexreference manualfunction index