Page 1 of 1

[SOLVED]Replace rollback with History

Posted: Tue Aug 17, 2021 12:55 pm
by amaturemanga
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

Re: Replace rollback with History

Posted: Wed Aug 18, 2021 12:13 pm
by amaturemanga
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' ]