Hi, I'm making hybrid VN/RPG for my friend for his birthday. I want it to look as typical RPG so I want to disable saving in battles.
An hour ago I have learned action SensitiveIf(expression) by which I made save buttons insensitive. The problem is right click and esc button. They start game_menu which is as default save screen as I read. This bypass those insensitive buttons and makes my effort pointless.
I have made additional screen with game stats. It will be perfect if it led there instead of save screen. The question is how?
[SOLVED] How to change where right click leads?
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.
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.
[SOLVED] How to change where right click leads?
Last edited by M0ti on Wed Jan 06, 2016 8:16 pm, edited 1 time in total.
- PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: How to change where right click leads?
Set _game_menu_screen to where you want it to go. For example,
Code: Select all
$ _game_menu_screen = "stats"
[code]Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
Re: How to change where right click leads?
Would that not change it for the whole game, both VN and RPG parts?PyTom wrote:Set _game_menu_screen to where you want it to go. For example,
Code: Select all
$ _game_menu_screen = "stats"
Another option is to create a screen just with the key statement overriding the default for menu (Showing/hiding stats screen instead) and show it during RPG battles. I always do it this way and it hasn't failed (yet).
Re: How to change where right click leads?
Code: Select all
$ _game_menu_screen = "stats"The other solution sounds awesome too but for my level it's too much and what PyTom suggested is exactly what I was looking for. This stat screen includes navigation which is part of so everything works and I can go sleep now. Thank you both
Who is online
Users browsing this forum: Bing [Bot]


