Skip to content

Instantly share code, notes, and snippets.

@dtgay
Created May 22, 2012 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dtgay/2766933 to your computer and use it in GitHub Desktop.
Save dtgay/2766933 to your computer and use it in GitHub Desktop.
looping through text objects in yaml file for point-and-click-arthur
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