Add missing logic to 'next_story_chapter' function

Modify define statements
This commit is contained in:
Iggy 2024-08-11 23:13:20 -03:00
parent 366c62d484
commit 6a32d84d24

View file

@ -14,16 +14,15 @@ define ending_routes = {
1: ["chapter_11A", "chapter_12A", "chapter_12_5D", "chapter_13A", "chapter_14A"] 1: ["chapter_11A", "chapter_12A", "chapter_12_5D", "chapter_13A", "chapter_14A"]
} }
# Index number for the current position of the general chapters array
define chapter_index = 0
# This will store the name of the label as a string
define current_chapter = None
default chapters_array_length = len(general_chapters) - 1 default chapters_array_length = len(general_chapters) - 1
define ending_route_number = None default chapter_index = 0 # Index number for the current position of the general chapters array
define ending_chapter_index = 0
default current_chapter = general_chapters[chapter_index] # This stores the name of the label as a string
default ending_route_number = None
default ending_chapter_index = 0
init -1 python: init -1 python:
@ -51,6 +50,11 @@ init python:
next_ending_chapter() next_ending_chapter()
return return
chapter_index += 1
current_chapter = general_chapters[chapter_index]
renpy.call(current_chapter)
def is_end_of_chapters(): def is_end_of_chapters():
return chapter_index >= chapters_array_length return chapter_index >= chapters_array_length