- Nov 27, 2019
- 1,204
- 6,289
I have 13 scenes that are default = False. After each scene is viewed, I have them set up as $ scene = True.
There is a message that should come up in my scene selection map that will say "All scenes viewed and repeatable".
How can I group these variables so that when all 13 scenes are viewed, the message will appear?
I have hover messages that appear for different scenes:
(This is just a snippet of my "myscreens.rpy" script)
Thank you for the help
There is a message that should come up in my scene selection map that will say "All scenes viewed and repeatable".
How can I group these variables so that when all 13 scenes are viewed, the message will appear?
I have hover messages that appear for different scenes:
(This is just a snippet of my "myscreens.rpy" script)
Code:
hotspot (201, 620, 181, 128):
if ch4home1complete:
action Jump("hilda")
else:
action NullAction()
hovered Function(set_castle_map_hint_text, "hilda")
unhovered Function(clear_castle_map_hint_text)
frame:
style "mapHintFrame"
xalign 0.5
yalign 0.97
xsize 800
ysize 120
hbox:
xalign 0.5
yalign 0.5
text castle_map_hint_text
init python:
castle_map_hint_text = ""
def set_castle_map_hint_text(option):
global ch4home1complete
global castle_map_hint_text
if option == "hilda":
if not ch4home1complete:
castle_map_hint_text = "View the 'Home' scene to unlock"
else:
castle_map_hint_text = ""
elif option == "fionastories":
castle_map_hint_text = "Fiona tells enchanting stories to her sister"
elif option == "bryn":
if not queenmainstory1complete:
castle_map_hint_text = "View 'Tunrida's Room 1' scene to unlock"
def clear_castle_map_hint_text():
global castle_map_hint_text
castle_map_hint_text = ""