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.
It seems that unlike nvl_menu, ren'py doesn't provide a default constant\reference for the adv_menu (or at least i couldn't find one). However, since we know that ren'py always starts with the adv style menu, we know that the "menu" name must reference the adv menu object, so you can simply save another reference to it exactly like nvl_menu. Then it's just a matter of changing the style of menu you want whenever you like.
Here is an example:
define adv_menu = menu #be sure this is always executed before you change the menu to something else
label start:
$menu = nvl_menu
menu:
"This menu is novel style":
jump nextmenu
label nextmenu:
$menu = adv_menu
menu:
"This menu is normal style":
jump start
Pyr0 wrote: ↑Thu Aug 10, 2017 5:20 am
It seems that unlike nvl_menu, ren'py doesn't provide a default constant\reference for the adv_menu (or at least i couldn't find one). However, since we know that ren'py always starts with the adv style menu, we know that the "menu" name must reference the adv menu object, so you can simply save another reference to it exactly like nvl_menu. Then it's just a matter of changing the style of menu you want whenever you like.
Here is an example:
define adv_menu = menu #be sure this is always executed before you change the menu to something else
label start:
$menu = nvl_menu
menu:
"This menu is novel style":
jump nextmenu
label nextmenu:
$menu = adv_menu
menu:
"This menu is normal style":
jump start