mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-24 10:38:56 +01:00
Add missing logic to 'next_story_chapter' function
Modify define statements
This commit is contained in:
parent
366c62d484
commit
6a32d84d24
1 changed files with 11 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue