Skip to content

Instantly share code, notes, and snippets.

@tehbeard
Created April 22, 2012 10:37
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 tehbeard/2463388 to your computer and use it in GitHub Desktop.
Save tehbeard/2463388 to your computer and use it in GitHub Desktop.
Vocalise File format
#Vocalise File Format, Version 1.0
id: "start" # Id addressable nodes
type: "bool" # Branching options!
text: "Do you wish to continue?"
t: # inline nodes
type: "msg"
text: "ok, carry on"
next:
type: "menu"
options:
'0':
name: "rabbit"
prompt:
type: "msg"
text: "You are eaten by a cute little rabbit"
next: "start" # non-linear graphs using id's
'1':
name: "mouse"
prompt:
type: "msg"
text: "You squish the mouse"
next:
type: "inpstr" # Input prompts to gather data
text: "Enter a word"
variable: "foo"
next: "endit" # Reference prompts passed into the PromptBuilder object
f:
type: "msg"
text: "maybe next time"
next: "NULL" # Exit prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment