Created
February 12, 2013 08:42
-
-
Save Kibo/4761009 to your computer and use it in GitHub Desktop.
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
{ | |
"id": 1, | |
"actors": [ | |
{ | |
"id": 1, | |
"name": "John" | |
}, | |
{ | |
"id": 2, | |
"name": "Emily" | |
} | |
], | |
"conversations": [ | |
{ | |
"id": 1, | |
"title": "In the village", | |
"dialogs": [ | |
{ | |
"id": 1, | |
"isChoice": false, | |
"codeBefore": "this.onlyOnce = true", | |
"codeAfter": "this.onlyOnce = false", | |
"conditionsString": "this.onlyOnce == true", | |
"actor": 1, | |
"conversant": 2, | |
"menuText": "", | |
"dialogText": "Excuse me, do you know something about cave outside the village?", | |
"outgoingLins": [ | |
2 | |
] | |
}, | |
{ | |
"id": 2, | |
"isChoice": false, | |
"codeBefore": "this.onlyOnce = true", | |
"codeAfter": "this.onlyOnce = false", | |
"conditionsString": "this.onlyOnce == true", | |
"actor": 2, | |
"conversant": 1, | |
"menuText": "", | |
"dialogText": "People is losing there.", | |
"outgoingLins": [ | |
3 | |
] | |
}, | |
{ | |
"id": 3, | |
"isChoice": true, | |
"codeBefore": "", | |
"codeAfter": "", | |
"conditionsString": "", | |
"outgoingLinks": [ | |
4, | |
5, | |
6 | |
] | |
}, | |
{ | |
"id": 4, | |
"isChoice": false, | |
"codeBefore": "", | |
"codeAfter": "", | |
"conditionsString": "", | |
"actor": 1, | |
"conversant": 2, | |
"menuText": "Ask about mayor.", | |
"dialogText": "Where can I find the mayor.", | |
"outgoingLins": [ | |
41 | |
] | |
}, | |
{ | |
"id": 41, | |
"isChoice": false, | |
"codeBefore": "", | |
"codeAfter": "", | |
"conditionsString": "", | |
"actor": 2, | |
"conversant": 1, | |
"menuText": "", | |
"dialogText": "The mayour is in the inn.", | |
"outgoingLins": [ | |
3 | |
] | |
}, | |
{ | |
"id": 5, | |
"isChoice": false, | |
"codeBefore": "this.onlyOnce = true", | |
"codeAfter": "this.onlyOnce = false", | |
"conditionsString": "this.onlyOnce == true", | |
"actor": 1, | |
"conversant": 2, | |
"menuText": "Ask about path.", | |
"dialogText": "How to get there?", | |
"outgoingLins": [ | |
51 | |
] | |
}, | |
{ | |
"id": 51, | |
"isChoice": false, | |
"codeBefore": "", | |
"codeAfter": "", | |
"conditionsString": "", | |
"actor": 2, | |
"conversant": 1, | |
"menuText": "", | |
"dialogText": "Folow the river.", | |
"outgoingLins": [ | |
52 | |
] | |
}, | |
{ | |
"id": 52, | |
"isChoice": false, | |
"codeBefore": "", | |
"codeAfter": "", | |
"conditionsString": "", | |
"actor": 1, | |
"conversant": 2, | |
"menuText": "", | |
"dialogText": "How much time does it take path.", | |
"outgoingLins": [ | |
53 | |
] | |
}, | |
{ | |
"id": 53, | |
"isChoice": false, | |
"codeBefore": "", | |
"codeAfter": "player.education += 10", | |
"conditionsString": "", | |
"actor": 2, | |
"conversant": 1, | |
"menuText": "", | |
"dialogText": "About 1 hour.", | |
"outgoingLins": [ | |
3 | |
] | |
}, | |
{ | |
"id": 6, | |
"isChoice": false, | |
"codeBefore": "", | |
"codeAfter": "", | |
"conditionsString": "", | |
"actor": 1, | |
"conversant": 2, | |
"menuText": "Leave", | |
"dialogText": "Good bye", | |
"outgoingLins": [] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment