changeset 201:e27c45d38605

maneki and fishmonger
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Wed, 06 Apr 2011 22:32:58 +0200
parents 4e3f9cb49489
children a11325bc5ff0
files data/npcs/fishmonger.json data/npcs/maneki.json
diffstat 2 files changed, 54 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/data/npcs/fishmonger.json	Wed Apr 06 22:32:58 2011 +0200
@@ -0,0 +1,17 @@
+{
+    "start" : {
+        "events" : [
+            { "matches" : "world.all_fishmonger_demons_dead", "next": "state.saved" }
+        ]
+    },
+    "saved" : {
+        "text" : "Thank the deities, I am saved! If you ever need some fish, my fox friend, I’m your man.",
+        "auto_next": "state.salmon"
+    },
+    "salmon" : {
+        "text" : "Here you go, fox. A delicious fresh salmon – I caught it just this morning.",
+        "auto_next": "state.done"
+    },
+    "done" : {
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/data/npcs/maneki.json	Wed Apr 06 22:32:58 2011 +0200
@@ -0,0 +1,37 @@
+{
+    "start" : {
+        "text" : "Greetings, fox. Ah, but you are no ordinary fox, are you?",
+        "events" : [
+            { "matches" : "I am a kitsune.", "next": "state.thoughtasmuch" },
+            { "matches" : "I’m perfectly normal.", "next": "state.sure" },
+            { "matches" : "You’re not even a real cat!", "next": "state.unkind" }
+        ]
+    },
+    "thoughtasmuch" : {
+        "text" : "Ah, I thought as much, and I bet you’ve been causing lots of trouble already.",
+        "auto_next": "state.anycase"
+    },
+    "sure" : {
+        "text" : "Sure you are.",
+        "auto_next": "state.anycase"
+    },
+    "unkind" : {
+        "text" : "Oh, that’s very unkind! Be careful or you might just hurt my feelings!",
+        "auto_next": "state.anycase"
+    },
+    "anycase" : {
+        "text" : "In any case, I think somebody like you could help me out. The fishmonger’s house has been infested by demons and he can’t get out. What’s a poor cat without a delectable fish? Rescue him and I’ll give you this ratty old fox tail. I have a feeling you could use it.",
+        "auto_next": "state.waiting"
+    },
+    "waiting" : {
+        "events" : [
+            { "matches" : "world.got_salmon", "next": "state.goodjob" }
+        ]
+    },
+    "goodjob" : {
+        "text" : "Good job, kitsune! You’re far braver than I am. And here, as promised – a fox tail!",
+        "auto_next": "state.yum"
+    },
+    "yum" : {
+    }
+}
\ No newline at end of file