Reset story vars when chapter select initializes

This commit is contained in:
Map 2024-10-03 07:21:59 -05:00
parent 6b93689456
commit c8b5c68649

View file

@ -42,10 +42,17 @@ define ending_4_tuple = [
label chapter_select: label chapter_select:
$ quick_menu = False # Hides bottom quick menu UI python:
quick_menu = False # Hides bottom quick menu UI
$ anonscore = 0 # Reset story vars. Not that it terribly matters.
$ fangscore = 0 anonscore = 0
fangscore = 0
wingStory = False
chapter_list = base_chapter_list
chapter_list_index = 0
chapter_list_length = get_chapter_list_length()
camera: camera:
yanchor 0.0 xanchor 0.0 rotate None zoom 1.0 yanchor 0.0 xanchor 0.0 rotate None zoom 1.0
@ -83,14 +90,14 @@ label chapter_select_go_back:
window auto hide window auto hide
$ select_chapter() $ chapter_select()
init python: init python:
# Some of this would be much easier to do if we could just reorganize how the chapters are laid out, but breaking translations is way more of a hassle to fix # Some of this would be much easier to do if we could just reorganize how the chapters are laid out, but breaking translations is way more of a hassle to fix
def select_chapter(): def chapter_select():
global current_chapter, quick_menu, ending_route_number, chapter_list_index, chapter_list, ending_chapters_determined, chapter_list_length global current_chapter, quick_menu, ending_route_number, chapter_list_index, chapter_list, ending_chapters_determined, chapter_list_length
selected_label = display_chapter_choices() # Returns a label of the chapter to jump to selected_label = display_chapter_choices() # Returns a label of the chapter to jump to