Mercurial > skaapsteker
diff data/npcs/kaneda.json @ 321:b244d01a8881
Hook up kaneda and kumiko.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 00:49:54 +0200 |
parents | 6696ffd51ac2 |
children | c4b14a517500 |
line wrap: on
line diff
--- a/data/npcs/kaneda.json Sat Apr 09 00:56:34 2011 +0200 +++ b/data/npcs/kaneda.json Sat Apr 09 00:49:54 2011 +0200 @@ -1,3 +1,4 @@ + { "start" : { "events" : [ @@ -6,43 +7,38 @@ }, "kumiko" : { "text" : "Ah, here is the fabled beauty, Kumiko.", - "events" : [ - { "matches" : "npcs.kumiko.state == 'kaneda'", "next": "state.tear" } - ] + "auto_next" : "state.tear", + "on_exit" : "switch_to('kumiko')" }, "tear" : { "text" : "When I heard of your legendary charm, I rushed to your home right away. It is true what they say about your radiant glow. Ah, but what’s this? A tear?", - "events" : [ - { "matches" : "npcs.kumiko.state == 'jumped'", "next": "state.vase" } - ] + "auto_next": "state.vase", + "on_exit" : "switch_to('kumiko')" }, "vase" : { "text" : "Hmm, well, never mind that. Do show me around your charming home. Hmm? Is that a broken vase I see?", - "events" : [ - { "matches" : "npcs.kumiko.state == 'fallen'", "next": "state.hmm" } - ] + "auto_next": "state.hmm", + "on_exit" : "switch_to('kumiko')" }, "hmm" : { "text" : "Hmm.", - "events" : [ - { "matches" : "npcs.kumiko.state == 'shallwe'", "next": "state.smell" } - ] + "auto_next" : "state.smell", + "on_exit" : "switch_to('kumiko')" }, "smell" : { "text" : "Yes. But only if you explain that horrible smell!", - "events" : [ - { "matches" : "npcs.kumiko.state == 'dropped'", "next": "state.wontstand" } - ] + "auto_next" : "state.wontstand", + "on_exit" : "switch_to('kumiko')" }, "wontstand" : { "text" : "Kumiko-san, I won’t stand for this! A torn kimono, a house in disarray, dirt everywhere and that pungent stench. You are clearly no home maker! And to blame it all on a fox?", - "events" : [ - { "matches" : "npcs.kumiko.state == 'but'", "next": "state.wonthear" } - ] + "auto_next": "state.wonthear", + "on_exit" : "switch_to('kumiko')" }, "wonthear" : { "text" : "I won’t hear any more from you.", - "auto_next": "state.gone" + "auto_next": "state.gone", + "on_exit" : "switch_to('kumiko')" }, "gone" : { }