Loading eol_json_parser.py +6 −1 Original line number Diff line number Diff line Loading @@ -113,9 +113,14 @@ def main(argv): f.write( f"{interaction['Actor']['Name']}: {interaction['Text']}\n\n") # Iterate over choices for choice in interaction['Responses']: #Check if this is an end choice of the current script if choice['NextInteractionID'] == int(app_config.get("LAST_INTERACTION")): #Check if the current scene is the last one from the current chapter if idx_scene == len(chapter["Scenes"]) - 1: # Check if the current chatper is the last one from the scenario if idx_chapter == len(contents["Chapters"]) -1: f.write( f"@choice \"{choice['Text']}\" goto:FIN\n") Loading Loading
eol_json_parser.py +6 −1 Original line number Diff line number Diff line Loading @@ -113,9 +113,14 @@ def main(argv): f.write( f"{interaction['Actor']['Name']}: {interaction['Text']}\n\n") # Iterate over choices for choice in interaction['Responses']: #Check if this is an end choice of the current script if choice['NextInteractionID'] == int(app_config.get("LAST_INTERACTION")): #Check if the current scene is the last one from the current chapter if idx_scene == len(chapter["Scenes"]) - 1: # Check if the current chatper is the last one from the scenario if idx_chapter == len(contents["Chapters"]) -1: f.write( f"@choice \"{choice['Text']}\" goto:FIN\n") Loading