comparison data/npcs/tetsuo.json @ 311:5250c77b352a

Hook up kaneda2 and tetsuo converstaion.
author Simon Cross <hodgestar@gmail.com>
date Sat, 09 Apr 2011 00:38:53 +0200
parents d2e4fb016627
children e1436dacca69
comparison
equal deleted inserted replaced
310:50b8c8372ff2 311:5250c77b352a
1 { 1 {
2 "start" : { 2 "start" : {
3 "events" : [ 3 "events" : [
4 { "matches" : "npcs.kaneda2.state == 'start'", "next": "state.joy" } 4 { "matches" : "npcs.kaneda2.state != 'start'", "next": "state.joy" }
5 ] 5 ]
6 }, 6 },
7 "joy" : { 7 "joy" : {
8 "text" : "Kaneda-san, nothing would bring me more joy.", 8 "text" : "Kaneda-san, nothing would bring me more joy.",
9 "events" : [ 9 "auto_next" : "state.inspect",
10 { "matches" : "npcs.kaneda2.state == 'signing'", "next": "state.inspect" } 10 "on_exit" : "switch_to('kaneda2')"
11 ]
12 }, 11 },
13 "inspect" : { 12 "inspect" : {
14 "text" : "Naturally, as soon as I inspect the goods.", 13 "text" : "Naturally, as soon as I inspect the goods.",
15 "events" : [ 14 "auto_next" : "state.inspecting",
16 { "matches" : "npcs.kaneda2.state == 'ofcourse'", "next": "state.inspecting" } 15 "on_exit" : "switch_to('kaneda2')"
17 ]
18 }, 16 },
19 "inspecting" : { 17 "inspecting" : {
20 "events" : [ 18 "events" : [
21 { "matches" : "npcs.kaneda2.state == 'preposterous'", "next": "state.shoddy" } 19 { "matches" : "npcs.kaneda2.state == 'preposterous'", "next": "state.shoddy" }
22 ] 20 ]
23 }, 21 },
24 "shoddy" : { 22 "shoddy" : {
25 "text" : "You should speak! The shoddy nature of your goods is simply unacceptable.", 23 "text" : "You should speak! The shoddy nature of your goods is simply unacceptable.",
26 "events" : [ 24 "auto_next" : "state.cheat",
27 { "matches" : "npcs.kaneda2.state == 'pah'", "next": "state.cheat" } 25 "on_exit" : "switch_to('kaneda2')"
28 ]
29 }, 26 },
30 "cheat" : { 27 "cheat" : {
31 "text" : "At least we don’t cheat our buyers with damaged goods like you city folk!", 28 "text" : "At least we don’t cheat our buyers with damaged goods like you city folk!",
32 "events" : [ 29 "auto_next" : "state.riddance",
33 { "matches" : "npcs.kaneda2.state == 'insult'", "next": "state.riddance" } 30 "on_exit" : "switch_to('kaneda2')"
34 ]
35 }, 31 },
36 "riddance" : { 32 "riddance" : {
37 "text" : "Good riddance.", 33 "text" : "Good riddance.",
38 "events" : [ 34 "auto_next": "state.done"
39 { "matches" : "npcs.kaneda2.state == 'gone'", "next": "state.done" }
40 ]
41 }, 35 },
42 "done" : { 36 "done" : {
43 } 37 }
44 } 38 }