The problem of switching between NVL mode and ADV mode
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.
- Michiyo6918
- Veteran
- Posts: 262
- Joined: Fri Nov 11, 2011 12:26 am
- Projects: ╮(╯▽╰)╭
- Location: Look behind you
- Contact:
The problem of switching between NVL mode and ADV mode
I'm encountering a really big problem right now. My game's using both NVL and ADV mode and it requires me to switch back and forth between those two. Normally if my VN was a linear story then there wouldn't have any problem. But since my VN is a visual novel... and has pretty much choice so I will need to add a lot of choice in the story while using both NVL and ADV mode. This is when the problem came up.
If I use the ADV's menu choice then the NVL text will be cleared up when the choices appear.
But if I use the NVL's menu choice then when my VN's in ADV mode, the choice will always appears on top of the screen where the sprites are standing
I read through this thread but still couldn't figure out how to do it. (Where should I put the code? How can I make the code take effect?)
Oh, another question would be how to keep the text box up during the transition.
I know 1 way to do it is use "window show", but I don't know why but it didn't work. I figured the NVL mode must have mess with that...
If I use the ADV's menu choice then the NVL text will be cleared up when the choices appear.
But if I use the NVL's menu choice then when my VN's in ADV mode, the choice will always appears on top of the screen where the sprites are standing
I read through this thread but still couldn't figure out how to do it. (Where should I put the code? How can I make the code take effect?)
Oh, another question would be how to keep the text box up during the transition.
I know 1 way to do it is use "window show", but I don't know why but it didn't work. I figured the NVL mode must have mess with that...
-
- Veteran
- Posts: 479
- Joined: Tue Jun 05, 2012 2:01 am
- Contact:
Re: The problem of switching between NVL mode and ADV mode
(For reference, the code:I read through this thread but still couldn't figure out how to do it. (Where should I put the code? How can I make the code take effect?)
Code: Select all
init python:
adv_menu = menu
use_nvl_menu = False
def menu(*args, **kwargs):
if use_nvl_menu:
return nvl_menu(*args, **kwargs)
else:
return adv_menu(*args, **kwargs)
Not sure what you're asking about the text box...
- Michiyo6918
- Veteran
- Posts: 262
- Joined: Fri Nov 11, 2011 12:26 am
- Projects: ╮(╯▽╰)╭
- Location: Look behind you
- Contact:
Re: The problem of switching between NVL mode and ADV mode
That easy...? Woa, thank youPut the code anywhere; use "$ use_nvl_menu = True" when you switch into NVL mode, and "$ use_nvl_menu = False" when you switch back to ADV.
Not sure what you're asking about the text box...
Uhm, about the text box... I want to keep the text box on the screen during the transition (character's transition, BG's transition). You know, normally the text box will disappear for a second when "with dissolve/fade" or some kind of other transition commands run. I want to keep the text box sticks to the screen but I don't know how...
-
- Veteran
- Posts: 479
- Joined: Tue Jun 05, 2012 2:01 am
- Contact:
Re: The problem of switching between NVL mode and ADV mode
Unfortunately, as far as I can tell, there isn't any straightforward way to override the "disappears immediately" behavior for say screens.
-
- Regular
- Posts: 70
- Joined: Sun Jul 15, 2007 2:36 pm
- Projects: EH...
- Contact:
Re: The problem of switching between NVL mode and ADV mode
I'm still not sure if there's an ideal way to do this, but (for ADV, at least) you can keep the window up during transitions with:Michiyo6918 wrote:Uhm, about the text box... I want to keep the text box on the screen during the transition (character's transition, BG's transition). You know, normally the text box will disappear for a second when "with dissolve/fade" or some kind of other transition commands run. I want to keep the text box sticks to the screen but I don't know how...
Code: Select all
window show
Code: Select all
window hide
- Michiyo6918
- Veteran
- Posts: 262
- Joined: Fri Nov 11, 2011 12:26 am
- Projects: ╮(╯▽╰)╭
- Location: Look behind you
- Contact:
Re: The problem of switching between NVL mode and ADV mode
I tried to do it but no use. Maybe because I used NVL mode in my game so those codes are no longer work for the ADV mode... that's why I try to find a resolution for this.@berration wrote:I'm still not sure if there's an ideal way to do this, but (for ADV, at least) you can keep the window up during transitions with:Michiyo6918 wrote:Uhm, about the text box... I want to keep the text box on the screen during the transition (character's transition, BG's transition). You know, normally the text box will disappear for a second when "with dissolve/fade" or some kind of other transition commands run. I want to keep the text box sticks to the screen but I don't know how...When you want the transitions to apply to the window again, use:Code: Select all
window show
Code: Select all
window hide
-
- Veteran
- Posts: 479
- Joined: Tue Jun 05, 2012 2:01 am
- Contact:
Re: The problem of switching between NVL mode and ADV mode
What do you have config.empty_window set to?
Who is online
Users browsing this forum: LuckyT