diff data/npcs/ichiro.json @ 179:a7cdf8458edd

ichiro and hattori, plus stuff for querying npc state from the world
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Wed, 06 Apr 2011 19:39:46 +0200
parents
children 897eec397cbb
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/data/npcs/ichiro.json	Wed Apr 06 19:39:46 2011 +0200
@@ -0,0 +1,46 @@
+{
+    "start" : {
+        "text" : "I’m telling you, Hattori. The Hayashi clan will arrive any minute now.",
+        "events" : [
+            { "matches" : "world.npc_is('hattori', 'start')", "next": "state.prepared" }
+        ]
+    },
+    "prepared" : {
+        "text" : "It doesn’t hurt to be prepared.",
+        "events" : [
+            { "matches" : "world.npc_is('hattori', 'wait')", "next": "state.sitting" }
+        ]
+    },
+    "sitting" : {
+        "text" : "I just don’t like sitting out in the open like this.",
+        "events" : [
+            { "matches" : "world.npc_is('hattori', 'relax')", "next": "state.but" }
+        ]
+    },
+    "but" : {
+        "text" : "But-",
+        "events" : [
+            { "matches" : "world.npc_is('hattori', 'omm')", "next": "state.sigh" }
+        ]
+    },
+    "sigh" : {
+        "text" : "Sigh.",
+        "events" : [
+            { "matches" : "world.fire_started()", "next": "state.wakeup" }
+        ]
+    },
+    "wakeup" : {
+        "text" : "Hattori, wake up! Look! Smoke coming over the rise.",
+        "events" : [
+            { "matches" : "world.npc_is('hattori', 'letsgo')", "next": "state.cannon" }
+        ]
+    },
+    "cannon" : {
+        "text" : "What about the cannon?",
+        "events" : [
+            { "matches" : "world.npc_is('hattori', 'attack')", "next": "state.gone" }
+        ]
+    },
+    "gone" : {
+    }
+}