Commit d9c711f5 authored by Studer Brendan's avatar Studer Brendan
Browse files

added comments

parent e77fb6af
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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")