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.
-
amaturemanga
- Regular
- Posts: 94
- Joined: Sun Mar 08, 2015 6:55 pm
- Deviantart: amaturemanga
- Skype: amature.manga
-
Contact:
#1
Post
by amaturemanga » Tue Aug 17, 2021 12:55 pm
Hi there i'd like to replace rollback with the history screen so that instead of rollback the history screen is called. I already disabled rollback and i understand that to change the keymap it would be
Code: Select all
init:
$ config.keymap['history'].append('mousedown_4')
$ config.keymap['rollback'].remove('mousedown_4')
would this go in screens.rpy? or would i need an additional function to be able to call history in 00keymap.rpy. Thanks
Last edited by
amaturemanga on Wed Aug 18, 2021 12:13 pm, edited 1 time in total.
-
amaturemanga
- Regular
- Posts: 94
- Joined: Sun Mar 08, 2015 6:55 pm
- Deviantart: amaturemanga
- Skype: amature.manga
-
Contact:
#2
Post
by amaturemanga » Wed Aug 18, 2021 12:13 pm
doing this allowed me to do it so this topic is solved
Code: Select all
init python:
config.underlay.append(renpy.Keymap(history = ShowMenu("history")))
config.keymap["rollback"] = []
config.keymap["history"] = ['K_PAGEUP', 'repeat_K_PAGEUP', 'K_AC_BACK', 'mousedown_4' ]
Users browsing this forum: Bing [Bot]