Code: Select all
screen main_menu:
# This ensures that any other menu screen is replaced.
tag menu
if persistent.ending_1 and persistent.ending_2 and persistent.ending_3 and persistent.ending_4 and persistent.ending_5:
$ persistent.true = True
if persistent.true = True:
use main_menu2
else:
use main_menu1
screen main_menu1:
tag menu
# The background of the main menu.
window:
style "mm_root"
# The main menu buttons.
imagemap:
ground "mm_idle.png"
hover "mm_hover.png"
hotspot (648,429,115,54) action Start()
hotspot (614,541,118,43) action ShowMenu("load")
hotspot (568,483,186,49) action ShowMenu("preferences")
hotspot (754,472,122,52) action Help()
hotspot (744,532,110,50) action ShowMenu("quit1")
screen main_menu2:
tag menu
# The background of the main menu.
window:
#style "gm_root"
background "title2.png"
# The main menu buttons.
imagemap:
ground "mm_idle4.png"
hover "mm_hover2.png"
hotspot (648,429,115,54) action Start()
hotspot (614,541,118,43) action ShowMenu("load")
hotspot (568,483,186,49) action ShowMenu("preferences")
hotspot (754,472,122,52) action Help()
hotspot (744,532,110,50) action ShowMenu("quit1")
hotspot (170,468,164,46) action Start("bananas")
init -2 python:
# Make all the main menu buttons be the same size.
style.mm_button.size_group = "mm"
Code: Select all
label start:
$ persistent.ending_1 = False
$ persistent.ending_2 = False
$ persistent.ending_3 = False
$ persistent.ending_4 = False
$ persistent.ending_5 = False
$ persistent.true = False
Code: Select all
k "Nothing."
#"End 1"
$ persistent.ending_1 = True
return
The above results in main_menu2, with the "unlockable hotspot" being used permanently, no matter how many times I delete the persistent data. I've also tried another method, but I'll post that if necessary.
This is for my NaNoRenO project so I would greatly appreciate a speedy response. Thanks in advance.