Commit 79c06d42 authored by Studer Brendan's avatar Studer Brendan
Browse files

.

parent 59e147d2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ def main(argv):
                        # Iterate over choices 
                        for choice in interaction['Responses']:

                            stat_update = f"set:Authenticity+={choice['Authenticity']};Respect+={choice['Respect']};Compassion+={choice['Compassion']};Hope+={choice['Hope']};Empathy+={choice['Empathy']};current_scene={scene_name}"
                            stat_update = f"set:Authenticity+={choice['Authenticity']};Respect+={choice['Respect']};Compassion+={choice['Compassion']};Hope+={choice['Hope']};Empathy+={choice['Empathy']}"
                            
                            #Check if this is an end choice of the current script
                            if choice['NextInteractionID'] == int(app_config.get("LAST_INTERACTION")):
@@ -145,17 +145,17 @@ def main(argv):
                                        #f.write(
                                        #f"@choice \"{choice['Text']}\" {stat_update} goto:FIN\n")
                                        f.write(
                                        f"@choice \"{choice['Text']}\" {stat_update};next_scene=FIN goto:Scores \n")
                                        f"@choice \"{choice['Text']}\" {stat_update};next_scene=\"FIN\" goto:Scores \n")
                                    else:
                                        #f.write(
                                        #f"@choice \"{choice['Text']}\" {stat_update} goto:{normalize_string(contents['Chapters'][idx_chapter + 1]['Name']) + '_intro'}\n")
                                        f.write(
                                        f"@choice \"{choice['Text']}\" {stat_update};next_scene={normalize_string(contents['Chapters'][idx_chapter + 1]['Name']) + '_intro'} goto:Scores \n")
                                        f"@choice \"{choice['Text']}\" {stat_update};next_scene=\"{normalize_string(contents['Chapters'][idx_chapter + 1]['Name']) + '_intro'}\" goto:Scores \n")
                                else:
                                    #f.write(
                                    #    f"@choice \"{choice['Text']}\" {stat_update} goto:{normalize_string(chapter['Scenes'][idx_scene+1]['Title'])}\n")
                                    f.write(
                                        f"@choice \"{choice['Text']}\" {stat_update};next_scene={normalize_string(chapter['Scenes'][idx_scene+1]['Title'])} goto:Scores \n")
                                        f"@choice \"{choice['Text']}\" {stat_update};next_scene=\"{normalize_string(chapter['Scenes'][idx_scene+1]['Title'])}\" goto:Scores \n")
                            else:
                                f.write(
                                    f"@choice \"{choice['Text']}\" {stat_update} goto:.{choice['NextInteractionID']}\n")