Created
May 22, 2012 05:58
-
-
Save dtgay/2766933 to your computer and use it in GitHub Desktop.
looping through text objects in yaml file for point-and-click-arthur
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text_lines = [] | |
for dialog_object in gametext["PLACES"]["start"]["ACTIONS"]["first_visit"]["DIALOG"]: | |
for text in dialog_object["TEXT"]: | |
text_lines.append(text) | |
txt = text_lines[0] | |
txt2 = text_lines[1] | |
txt3 = text_lines[2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment