Disable TAB to skip [SOLVED]

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
Exiscoming
Regular
Posts: 127
Joined: Tue Apr 29, 2014 5:37 pm
Contact:

Disable TAB to skip [SOLVED]

#1 Post by Exiscoming » Sat Aug 29, 2020 9:29 am

I want to replace the TAB button with another function, so I'd like to disable the skip function it has by default.
However, when trying this:

Code: Select all

init:
    $ config.keymap['dismiss'].remove('K_TAB')
I get an error message telling me: ValueError: list.remove(x): x not in list
The wiki says K_TAB should be the right keysyms. What am I doing wrong?
Last edited by Exiscoming on Sat Aug 29, 2020 11:44 am, edited 1 time in total.

User avatar
Somniarre
Newbie
Posts: 2
Joined: Fri Jul 31, 2020 1:26 pm
Github: shawna-p
itch: feniksdev
Contact:

Re: Disable TAB to skip

#2 Post by Somniarre » Sat Aug 29, 2020 11:31 am

You need to remove 'K_TAB' from the correct keymapping -- 'K_TAB' belongs to the group toggle_skip, not dismiss. So, you need

Code: Select all

init:
    $ config.keymap['toggle_skip'].remove('K_TAB')

Exiscoming
Regular
Posts: 127
Joined: Tue Apr 29, 2014 5:37 pm
Contact:

Re: Disable TAB to skip

#3 Post by Exiscoming » Sat Aug 29, 2020 11:44 am

Right, I understand now. Thank you!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]