The intention: When the player clicks one option, the main menu adds a "bonus date", and when the player finishes the current (unchanged by this choice!) route, they will see the "bonus date" button on the main menu. They can then click it and experience the small, short, unconnected scene.
The problem: Despite all this coding, I cannot unlock the path, nor can I see the path unlocked visually.
Traceback/Error: The game runs just fine, there are no errors to report.
SCREENS.RPY
Code: Select all
##############################################################################
# Main Menu
#
# Screen that's used to display the main menu, when Ren'Py first starts
# http://www.renpy.org/doc/html/screen_special.html#main-menu
screen main_menu():
# This ensures that any other menu screen is replaced.
tag menu
add "fortmenu.png"
if persistent.ending == "Somnus":
use main_menu_2
else:
use main_menu_default
##############################################################################
screen main_menu_default:
tag menu
add "fortmenu.png"
# The main menu buttons.
imagemap:
ground "800600.png"
idle "fortmenu.png"
hover "fortmenu2.png"
alpha False
# This is so that everything transparent is invisible to the cursor.
hotspot (619, 432, 166, 34) action Start()
hotspot (622, 464, 163, 28) action ShowMenu("load")
hotspot (619, 495, 170, 24) action ShowMenu("preferences")
hotspot (652, 521, 109, 34) action Help()
hotspot (650, 555, 115, 30) action Quit(confirm=False)
###############################################################################
screen main_menu_2:
# This ensures that any other menu screen is replaced.
tag menu
add "800600.png"
# The main menu buttons.
imagemap:
ground "800600.png"
idle "fortmenuwalksnoline.png"
hover "fortmenuwalks.png"
alpha False
# This is so that everything transparent is invisible to the cursor.
hotspot (619, 432, 166, 34) action Start()
hotspot (622, 464, 163, 28) action ShowMenu("load")
hotspot (619, 495, 170, 24) action ShowMenu("preferences")
hotspot (636, 405, 134, 29) action ShowMenu("bonus3")
hotspot (652, 521, 109, 34) action Help()
hotspot (650, 555, 115, 30) action Quit(confirm=False)
##############################################################################
Code: Select all
menu:
"Sure, Somnus! It's a date.":
if persistent.Somnus:
$ persistent.Somnus = True
jump wherego
"Uh...":
jump wherego
Code: Select all
label bonus3:
scene black with dissolve
scene bg spacebase with dissolve
show som with dissolve
som "this is filler text"
return MainMenu