comparison data/npcs/kaneda.json @ 193:897eec397cbb

Fix state checks for hattori, ichiro, kaneda and kumiko. In the process provide easier access to other npcs.
author Simon Cross <hodgestar@gmail.com>
date Wed, 06 Apr 2011 21:44:54 +0200
parents e7413a565421
children 6696ffd51ac2
comparison
equal deleted inserted replaced
192:52344e9cab82 193:897eec397cbb
1 { 1 {
2 "start" : { 2 "start" : {
3 "events" : [ 3 "events" : [
4 { "matches" : "world.npc_is('kumiko', 'torn')", "next": "state.kumiko" } 4 { "matches" : "npcs.kumiko.state == 'torn'", "next": "state.kumiko" }
5 ] 5 ]
6 }, 6 },
7 "kumiko" : { 7 "kumiko" : {
8 "text" : "Ah, here is the fabled beauty, Kumiko.", 8 "text" : "Ah, here is the fabled beauty, Kumiko.",
9 "auto_next": "state." 9 "auto_next": "state."
10 "events" : [ 10 "events" : [
11 { "matches" : "world.npc_is('kumiko', 'kaneda')", "next": "state.tear" } 11 { "matches" : "npcs.kumiko.state == 'kaneda'", "next": "state.tear" }
12 ] 12 ]
13 }, 13 },
14 "tear" : { 14 "tear" : {
15 "text" : "When I heard of your legendary charm, I rushed to your home right away. It is true what they say about your radiant glow. Ah, but what’s this? A tear?", 15 "text" : "When I heard of your legendary charm, I rushed to your home right away. It is true what they say about your radiant glow. Ah, but what’s this? A tear?",
16 "events" : [ 16 "events" : [
17 { "matches" : "world.npc_is('kumiko', 'jumped')", "next": "state.vase" } 17 { "matches" : "npcs.kumiko.state == 'jumped'", "next": "state.vase" }
18 ] 18 ]
19 }, 19 },
20 "vase" : { 20 "vase" : {
21 "text" : "Hmm, well, never mind that. Do show me around your charming home. Hmm? Is that a broken vase I see?", 21 "text" : "Hmm, well, never mind that. Do show me around your charming home. Hmm? Is that a broken vase I see?",
22 "events" : [ 22 "events" : [
23 { "matches" : "world.npc_is('kumiko', 'fallen')", "next": "state.hmm" } 23 { "matches" : "npcs.kumiko.state == 'fallen'", "next": "state.hmm" }
24 ] 24 ]
25 }, 25 },
26 "hmm" : { 26 "hmm" : {
27 "text" : "Hmm.", 27 "text" : "Hmm.",
28 "events" : [ 28 "events" : [
29 { "matches" : "world.npc_is('kumiko', 'shallwe')", "next": "state.smell" } 29 { "matches" : "npcs.kumiko.state == 'shallwe'", "next": "state.smell" }
30 ] 30 ]
31 }, 31 },
32 "smell" : { 32 "smell" : {
33 "text" : "Yes. But only if you explain that horrible smell!", 33 "text" : "Yes. But only if you explain that horrible smell!",
34 "events" : [ 34 "events" : [
35 { "matches" : "world.npc_is('kumiko', 'dropped')", "next": "state.wontstand" } 35 { "matches" : "npcs.kumiko.state == 'dropped'", "next": "state.wontstand" }
36 ] 36 ]
37 }, 37 },
38 "wontstand" : { 38 "wontstand" : {
39 "text" : "Kumiko-san, I won’t stand for this! A torn kimono, a house in disarray, dirt everywhere and that pungent stench. You are clearly no home maker! And to blame it all on a fox?", 39 "text" : "Kumiko-san, I won’t stand for this! A torn kimono, a house in disarray, dirt everywhere and that pungent stench. You are clearly no home maker! And to blame it all on a fox?",
40 "events" : [ 40 "events" : [
41 { "matches" : "world.npc_is('kumiko', 'but')", "next": "state.wonthear" } 41 { "matches" : "npcs.kumiko.state == 'but'", "next": "state.wonthear" }
42 ] 42 ]
43 }, 43 },
44 "wonthear" : { 44 "wonthear" : {
45 "text" : "I won’t hear any more from you.", 45 "text" : "I won’t hear any more from you.",
46 "auto_next": "state.gone" 46 "auto_next": "state.gone"