comparison data/npcs/kumiko.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 77228c101cfc
children e06c54d7701f
comparison
equal deleted inserted replaced
192:52344e9cab82 193:897eec397cbb
4 "auto_next": "state.temptingfate" 4 "auto_next": "state.temptingfate"
5 }, 5 },
6 "temptingfate" : { 6 "temptingfate" : {
7 "text" : "The room smells fresh, I have my best kimono on and I’ve set out my most magnificent vase. Everything is perfect (just like me)!", 7 "text" : "The room smells fresh, I have my best kimono on and I’ve set out my most magnificent vase. Everything is perfect (just like me)!",
8 "events" : [ 8 "events" : [
9 { "matches" : "world.vase_broken()", "next": "state.broken" } 9 { "matches" : "world.vase_broken", "next": "state.broken" }
10 ] 10 ]
11 }, 11 },
12 "broken" : { 12 "broken" : {
13 "text" : "Oh no, my beautiful vase! What will the businessman think to see it broken on the floor?", 13 "text" : "Oh no, my beautiful vase! What will the businessman think to see it broken on the floor?",
14 "events" : [ 14 "events" : [
15 { "matches" : "world.fish_in_house()", "next": "state.badsmell" } 15 { "matches" : "world.fish_in_house", "next": "state.badsmell" }
16 ] 16 ]
17 }, 17 },
18 "badsmell" : { 18 "badsmell" : {
19 "text" : "Oh my, what is that terrible smell? Rotten fish? Oh, this won’t do at all!", 19 "text" : "Oh my, what is that terrible smell? Rotten fish? Oh, this won’t do at all!",
20 "events" : [ 20 "events" : [
21 { "matches" : "world.torn_kimono()", "next": "state.torn" } 21 { "matches" : "world.torn_kimono", "next": "state.torn" }
22 ] 22 ]
23 }, 23 },
24 "torn" : { 24 "torn" : {
25 "text" : "Shoo, dirty fox! Oh, look what you’ve done – you’ve made a great big tear in my finest silk kimono. What will the businessman think of a ragged dress like this?", 25 "text" : "Shoo, dirty fox! Oh, look what you’ve done – you’ve made a great big tear in my finest silk kimono. What will the businessman think of a ragged dress like this?",
26 "events" : [ 26 "events" : [
27 { "matches" : "world.npc_is('kaneda','kumiko')", "next": "state.kaneda" } 27 { "matches" : "npcs.kaneda.state == 'kumiko'", "next": "state.kaneda" }
28 ] 28 ]
29 }, 29 },
30 "kaneda" : { 30 "kaneda" : {
31 "text" : "Kaneda-san! I have been waiting for you.", 31 "text" : "Kaneda-san! I have been waiting for you.",
32 "events" : [ 32 "events" : [
33 { "matches" : "world.npc_is('kaneda','tear')", "next": "state.jumped" } 33 { "matches" : "npcs.kaneda.state == 'tear'", "next": "state.jumped" }
34 ] 34 ]
35 }, 35 },
36 "jumped" : { 36 "jumped" : {
37 "text" : "Oh, Kaneda-san, a dirty little fox jumped on me just as you were approaching and ripped my kimono.", 37 "text" : "Oh, Kaneda-san, a dirty little fox jumped on me just as you were approaching and ripped my kimono.",
38 "events" : [ 38 "events" : [
39 { "matches" : "world.npc_is('kaneda','vase')", "next": "state.fallen" } 39 { "matches" : "npcs.kaneda.state == 'vase'", "next": "state.fallen" }
40 ] 40 ]
41 }, 41 },
42 "fallen" : { 42 "fallen" : {
43 "text" : "I am sorry, Kaneda-san, it must just have fallen over. It was probably pushed by that mean-spirited fox.", 43 "text" : "I am sorry, Kaneda-san, it must just have fallen over. It was probably pushed by that mean-spirited fox.",
44 "events" : [ 44 "events" : [
45 { "matches" : "world.npc_is('kaneda','hmm')", "next": "state.shallwe" } 45 { "matches" : "npcs.kaneda.state == 'hmm'", "next": "state.shallwe" }
46 ] 46 ]
47 }, 47 },
48 "shallwe" : { 48 "shallwe" : {
49 "text" : "Shall we- go on?", 49 "text" : "Shall we- go on?",
50 "events" : [ 50 "events" : [
51 { "matches" : "world.npc_is('kaneda','smell')", "next": "state.dropped" } 51 { "matches" : "npcs.kaneda.state == 'smell'", "next": "state.dropped" }
52 ] 52 ]
53 }, 53 },
54 "dropped" : { 54 "dropped" : {
55 "text" : "I- A fox came in and dropped an old fish?", 55 "text" : "I- A fox came in and dropped an old fish?",
56 "events" : [ 56 "events" : [
57 { "matches" : "world.npc_is('kaneda','wontstand')", "next": "state.but" } 57 { "matches" : "npcs.kaneda.state == 'wontstand'", "next": "state.but" }
58 ] 58 ]
59 }, 59 },
60 "but" : { 60 "but" : {
61 "text" : "But-", 61 "text" : "But-",
62 "events" : [ 62 "events" : [
63 { "matches" : "world.npc_is('kaneda','wonthear')", "next": "state.curse" } 63 { "matches" : "npcs.kaneda.state == 'wonthear'", "next": "state.curse" }
64 ] 64 ]
65 }, 65 },
66 "curse" : { 66 "curse" : {
67 "text" : "Curse you, fox! I’ll be doomed to a peasant life forever!" 67 "text" : "Curse you, fox! I’ll be doomed to a peasant life forever!"
68 } 68 }