Mercurial > skaapsteker
comparison data/npcs/hattori.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 | 691278e89399 |
comparison
equal
deleted
inserted
replaced
192:52344e9cab82 | 193:897eec397cbb |
---|---|
1 { | 1 { |
2 "start" : { | 2 "start" : { |
3 "text" : "Ichiro, there is nothing to fear. Uesugi will light the signal fire if they come close.", | 3 "text" : "Ichiro, there is nothing to fear. Uesugi will light the signal fire if they come close.", |
4 "events" : [ | 4 "events" : [ |
5 { "matches" : "world.npc_is('ichiro', 'prepared')", "next": "state.wait" } | 5 { "matches" : "npcs.ichiro.state == 'prepared'", "next": "state.wait" } |
6 ] | 6 ] |
7 }, | 7 }, |
8 "wait" : { | 8 "wait" : { |
9 "text" : "There’s nothing more for us to do but sit and wait. Sasuke will arrive with our cannon in a while. We can’t take on the entire Hayashi clan without it.", | 9 "text" : "There’s nothing more for us to do but sit and wait. Sasuke will arrive with our cannon in a while. We can’t take on the entire Hayashi clan without it.", |
10 "events" : [ | 10 "events" : [ |
11 { "matches" : "world.npc_is('ichiro', 'sitting')", "next": "state.relax" } | 11 { "matches" : "npcs.ichiro.state == 'sitting'", "next": "state.relax" } |
12 ] | 12 ] |
13 }, | 13 }, |
14 "relax" : { | 14 "relax" : { |
15 "text" : "Relax! You’re with me, the most fearsome katana in the East. We’re not moving from this spot until we have to. Besides, I need to meditate.", | 15 "text" : "Relax! You’re with me, the most fearsome katana in the East. We’re not moving from this spot until we have to. Besides, I need to meditate.", |
16 "events" : [ | 16 "events" : [ |
17 { "matches" : "world.npc_is('ichiro', 'but')", "next": "state.omm" } | 17 { "matches" : "npcs.ichiro.state == 'but'", "next": "state.omm" } |
18 ] | 18 ] |
19 }, | 19 }, |
20 "omm" : { | 20 "omm" : { |
21 "text" : "Ommmmm...", | 21 "text" : "Ommmmm...", |
22 "events" : [ | 22 "events" : [ |
23 { "matches" : "world.npc_is('ichiro', 'wakeup')", "next": "state.letsgo" } | 23 { "matches" : "npcs.ichiro.state == 'wakeup'", "next": "state.letsgo" } |
24 ] | 24 ] |
25 }, | 25 }, |
26 "letsgo" : { | 26 "letsgo" : { |
27 "text" : "Ha- huh? Uesugi’s fire! Let’s go!", | 27 "text" : "Ha- huh? Uesugi’s fire! Let’s go!", |
28 "events" : [ | 28 "events" : [ |
29 { "matches" : "world.npc_is('ichiro', 'cannon')", "next": "state.attack" } | 29 { "matches" : "npcs.ichiro.state == 'cannon'", "next": "state.attack" } |
30 ] | 30 ] |
31 }, | 31 }, |
32 "attack" : { | 32 "attack" : { |
33 "text" : "It will have to catch up. Attack!", | 33 "text" : "It will have to catch up. Attack!", |
34 "auto_next": "state.gone" | 34 "auto_next": "state.gone" |