add chats
This commit is contained in:
parent
8f43531b47
commit
94328e0b93
12 changed files with 372 additions and 14 deletions
42
static/chat/treehouse/dev/chats/test.json
Normal file
42
static/chat/treehouse/dev/chats/test.json
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"nodes": {
|
||||
"init": {
|
||||
"kind": "say",
|
||||
"content": "hello! nice to meet you.",
|
||||
"then": "question1"
|
||||
},
|
||||
"question1": {
|
||||
"kind": "ask",
|
||||
"questions": [
|
||||
{ "content": "Who are you?", "then": "whoAreYou" },
|
||||
{ "content": "What is this?", "then": "whatIsThis" }
|
||||
]
|
||||
},
|
||||
"whoAreYou": {
|
||||
"kind": "say",
|
||||
"content": "I'm liquidex. y'know, the guy running this place.",
|
||||
"then": "question1"
|
||||
},
|
||||
"whatIsThis": {
|
||||
"kind": "say",
|
||||
"content": "this is a test of the treehouse dialogue system. basically, I made myself a little framework for writing conversations between characters, and this is a test page for it.",
|
||||
"then": "whatIsThisQuestion"
|
||||
},
|
||||
"whatIsThisQuestion": {
|
||||
"kind": "ask",
|
||||
"questions": [
|
||||
{ "content": "Right.", "then": "question1" },
|
||||
{
|
||||
"content": "\"Dialogues\", seriously? What, are you British?",
|
||||
"then": "british"
|
||||
}
|
||||
]
|
||||
},
|
||||
"british": {
|
||||
"kind": "say",
|
||||
"content": "no, but I think British is pretty damn funny.",
|
||||
"then": "question1"
|
||||
},
|
||||
"end": { "kind": "end" }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue