I'm having some difficulty with changing the title screen for my VN. Here is the goal:
The player will see the "main_menu_default" screen the first time they start the program, since persistent.title wouldn't have a value. Once the player clears the prologue, their decisions will determine which character they are going to be playing as. I want to change the title screen based on which character they get. I added the following code to the ends of each route:
Code: Select all
init -2:
$ persistent.title = "Tristan Title"
Code: Select all
init -2:
$ persistent.title = "Cooper Title"
Code: Select all
screen main_menu:
tag menu
if persistent.title == "Tristan Title":
use main_menu_tristan
elif persistent.title == "Cooper Title":
use main_menu_cooper
else:
use main_menu_default
screen main_menu_default:
tag menu
imagemap:
ground "title.png"
hover "titlehover.png"
hotspot (386, 147, 195, 74) action Start()
hotspot (581, 147, 170, 75) action ShowMenu("load")
hotspot (751, 146, 157, 78) action ShowMenu("preferences")
hotspot (0,678,46,40) action OpenURL("https://www.patreon.com/aego?ty=h")
hotspot (1238,679,37,36) action OpenURL("https://twitter.com/projectaego")
alpha False
screen main_menu_tristan:
tag menu
imagemap:
ground "tristantitle.png"
hover "tristantitlehover.png"
hotspot (1089, 429, 144, 27) action Start()
hotspot (1089, 458, 143, 31) action ShowMenu("load")
hotspot (1131, 493, 101, 27) action ShowMenu("preferences")
hotspot (1147, 522, 85, 27) action ShowMenu()
hotspot (1143, 555, 91, 27) action ShowMenu()
alpha False
screen main_menu_cooper:
tag menu
imagemap:
ground "coopertitle.png"
hover "coopertitlehover.png"
hotspot (40, 427, 163, 32) action Start()
hotspot (39, 458, 160, 36) action ShowMenu("load")
hotspot (45, 494, 117, 31) action ShowMenu("preferences")
hotspot (44, 527, 103, 30) action ShowMenu()
hotspot (44, 559, 97, 29) action ShowMenu()
alpha False
I'm pretty stumped on this one. My programming knowledge is pretty limited, but I followed the directions on here: https://www.renpy.org/wiki/renpy/doc/co ... g_the_game
Thanks in advance for your help here, it is much appreciated!