select_chapter function improvements

This commit is contained in:
Iggy 2024-08-21 21:25:09 -03:00
parent 59c229db73
commit 233a801aa5

View file

@ -28,8 +28,16 @@ init python:
def select_chapter():
global selected_tuple, current_chapter
selected_tuple = renpy.display_menu(tuples_index)
current_chapter = renpy.display_menu(selected_tuple)
while True:
selected_tuple = renpy.display_menu(tuples_index + [("Go Back", "go_back")])
if selected_tuple == "go_back":
renpy.jump("chapter_select")
current_chapter = renpy.display_menu(selected_tuple + [("Go Back", "go_back")])
if current_chapter == "go_back":
continue
else:
break
set_stats()
@ -76,6 +84,8 @@ label chapter_select:
"Ending 4":
$ anon_score = 4
$ fang_score = 4
"Exit to main menu":
return
$ lock_scores = True
call initstats(anon_score, fang_score) from _call_initstats_2