slightly better documentation for storyline.rpy

This commit is contained in:
Map 2024-10-03 07:22:12 -05:00
parent c8b5c68649
commit e82064ef6b

View file

@ -1,4 +1,4 @@
init -1 python: init python:
def ending_image(): def ending_image():
#0b0000, DCBA, flash the bits with |=, check with & #0b0000, DCBA, flash the bits with |=, check with &
endings = 0b0000 endings = 0b0000
@ -10,8 +10,7 @@ init -1 python:
persistent.old_endings = persistent.endings persistent.old_endings = persistent.endings
persistent.endings = endings persistent.endings = endings
# Sequences through the chapter_list list with chapter_list_index as a pointer
init python:
def next_story_chapter(): def next_story_chapter():
global chapter_list_index, current_chapter, chapter_list, ending_route_number, chapter_list_length, ending_chapters_determined global chapter_list_index, current_chapter, chapter_list, ending_route_number, chapter_list_length, ending_chapters_determined
@ -33,6 +32,7 @@ init python:
else: else:
renpy.call("lending") renpy.call("lending")
# Adds ending chapters to chapter_list and sets the ending number
def setup_ending(ending): def setup_ending(ending):
global ending_route_number, chapter_list, chapter_list_length, ending_chapters_determined global ending_route_number, chapter_list, chapter_list_length, ending_chapters_determined