I'm not sure if this issue has been addressed already or not, but...
Line 31 in pis1_mornings.rpy throws an error, because
renpy.game.persistent._seen_ever["label_name"] is True only if the game has passed (has "seen") this label. In any other case it throws an error, because there is no such key in the dictionary.
This is not
renpy.seen_label() function that can be either True or False. Apparently
renpy.game.persistent._seen_ever is a dictionary and a label in there either exists and is True or does not exist at all. In case it doesn't exist, the game stops there and throws an error, as reported
here
It means that you can not use
renpy.game.persistent._seen_ever as you do here on line 31 (starting code sample from line 30):
Python:
if meg_intro_done == True and day_number == 5 and mcity_done == False:
if renpy.game.persistent._seen_ever["mcity1"] and renpy.game.persistent._seen_ever["meetingcop1"] and renpy.game.persistent._seen_ever["mtroom"]:
"Se ha detectado que ya has visto la siguiente escena:\n\"Meg visita la ciudad para reunirse con la Srta. Cooper.\""
Would there be a single key to check in a dictionary, I'd use a simple piece of Python code:
Python:
python:
if "label_name" in renpy.game.persistent._seen_ever:
seen_stuff = True
else:
seen_stuff = False
if seen_stuff:
do whatever stuff
Since in this case there are 3 keys to check, I would rather use Python's
try and
except statements like this in this case (starting with line 30):
Python:
if meg_intro_done == True and day_number == 5 and mcity_done == False:
python:
seen_stuff = True
try:
renpy.game.persistent._seen_ever["mcity1"]
renpy.game.persistent._seen_ever["meetingcop1"]
renpy.game.persistent._seen_ever["mtroom"]
except:
seen_stuff = False
if seen_stuff:
"Se ha detectado que ya has visto la siguiente escena:\n\"Meg visita la ciudad para reunirse con la Srta. Cooper.\""
Now instead of Ren'Py code there is a section of Python code that gives a True value to a variable
seen_stuff.
In case any of these 3 labels do not exist in the dictionary,
try statement ends with an error message that
except will handle by setting variable
seen_stuff to False.
Python code ends there and Ren'Py continues by checking the value of
seen_stuff.
I tested it and it's working this way.