comparison data/npcs/ichiro.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 a7cdf8458edd
children 74c875f7b1f5
comparison
equal deleted inserted replaced
192:52344e9cab82 193:897eec397cbb
1 { 1 {
2 "start" : { 2 "start" : {
3 "text" : "I’m telling you, Hattori. The Hayashi clan will arrive any minute now.", 3 "text" : "I’m telling you, Hattori. The Hayashi clan will arrive any minute now.",
4 "events" : [ 4 "events" : [
5 { "matches" : "world.npc_is('hattori', 'start')", "next": "state.prepared" } 5 { "matches" : "world.npcs.hattori.state == 'start'", "next": "state.prepared" }
6 ] 6 ]
7 }, 7 },
8 "prepared" : { 8 "prepared" : {
9 "text" : "It doesn’t hurt to be prepared.", 9 "text" : "It doesn’t hurt to be prepared.",
10 "events" : [ 10 "events" : [
11 { "matches" : "world.npc_is('hattori', 'wait')", "next": "state.sitting" } 11 { "matches" : "npcs.hattori.state == 'wait'", "next": "state.sitting" }
12 ] 12 ]
13 }, 13 },
14 "sitting" : { 14 "sitting" : {
15 "text" : "I just don’t like sitting out in the open like this.", 15 "text" : "I just don’t like sitting out in the open like this.",
16 "events" : [ 16 "events" : [
17 { "matches" : "world.npc_is('hattori', 'relax')", "next": "state.but" } 17 { "matches" : "npcs.hattori.state == 'relax'", "next": "state.but" }
18 ] 18 ]
19 }, 19 },
20 "but" : { 20 "but" : {
21 "text" : "But-", 21 "text" : "But-",
22 "events" : [ 22 "events" : [
23 { "matches" : "world.npc_is('hattori', 'omm')", "next": "state.sigh" } 23 { "matches" : "npcs.hattori.state == 'omm'", "next": "state.sigh" }
24 ] 24 ]
25 }, 25 },
26 "sigh" : { 26 "sigh" : {
27 "text" : "Sigh.", 27 "text" : "Sigh.",
28 "events" : [ 28 "events" : [
29 { "matches" : "world.fire_started()", "next": "state.wakeup" } 29 { "matches" : "world.fire_started", "next": "state.wakeup" }
30 ] 30 ]
31 }, 31 },
32 "wakeup" : { 32 "wakeup" : {
33 "text" : "Hattori, wake up! Look! Smoke coming over the rise.", 33 "text" : "Hattori, wake up! Look! Smoke coming over the rise.",
34 "events" : [ 34 "events" : [
35 { "matches" : "world.npc_is('hattori', 'letsgo')", "next": "state.cannon" } 35 { "matches" : "npcs.hattori.state == 'letsgo'", "next": "state.cannon" }
36 ] 36 ]
37 }, 37 },
38 "cannon" : { 38 "cannon" : {
39 "text" : "What about the cannon?", 39 "text" : "What about the cannon?",
40 "events" : [ 40 "events" : [
41 { "matches" : "world.npc_is('hattori', 'attack')", "next": "state.gone" } 41 { "matches" : "npcs.hattori.state == 'attack'", "next": "state.gone" }
42 ] 42 ]
43 }, 43 },
44 "gone" : { 44 "gone" : {
45 } 45 }
46 } 46 }