Quick Save/Load keybinds

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
Brufh
Newbie
Posts: 1
Joined: Fri Jun 23, 2017 10:23 am
Contact:

Quick Save/Load keybinds

#1 Post by Brufh »

Hello, is it possible to rebind my keys to have a quick save/load. I know about 00keymap.rpy but i'm not sure what command i should use to bind q.save and q.load.

User avatar
DannyGMaster
Regular
Posts: 113
Joined: Fri Sep 02, 2016 11:07 am
Contact:

Re: Quick Save/Load keybinds

#2 Post by DannyGMaster »

Modifying the default keymap in 00keymap.rpy seems to be bit tricky and could break things if you don't know exactly what you're doing. So I think it's safer to add new keymaps to the main screens in your game.

If you will have your quick_menu screen up all the time, you can add a key statement at the beginning (in screens.rpy):

Code: Select all

screen quick_menu():

    key "q" action QuickSave() #Set the Q key in your keyboard to Quicksave when pressed
    key "l" action QuickLoad()  #Same for L key

    ## Ensure this appears on top of other screens.
    zorder 100

    if quick_menu:
    #### The rest of the quick_menu
You can also have them in the say screen, or in any screen you will be using where save and load operations can be performed.
The silent voice within one's heart whispers the most profound wisdom.

Post Reply

Who is online

Users browsing this forum: No registered users