view data/npcs/ichiro.json @ 294:74c875f7b1f5

Fill in remaining missions and make remaining npc state machines pass basic sanity tests.
author Simon Cross <hodgestar@gmail.com>
date Fri, 08 Apr 2011 22:09:01 +0200
parents 897eec397cbb
children fed9689803ae
line wrap: on
line source

{
    "start" : {
        "text" : "I’m telling you, Hattori. The Hayashi clan will arrive any minute now.",
        "events" : [
            { "matches" : "world.npcs.hattori.state ==  'start'", "next": "state.prepared" }
        ]
    },
    "prepared" : {
        "text" : "It doesn’t hurt to be prepared.",
        "events" : [
            { "matches" : "npcs.hattori.state ==  'wait'", "next": "state.sitting" }
        ]
    },
    "sitting" : {
        "text" : "I just don’t like sitting out in the open like this.",
        "events" : [
            { "matches" : "npcs.hattori.state ==  'relax'", "next": "state.but" }
        ]
    },
    "but" : {
        "text" : "But-",
        "events" : [
            { "matches" : "npcs.hattori.state ==  'omm'", "next": "state.sigh" }
        ]
    },
    "sigh" : {
        "text" : "Sigh.",
        "events" : [
            { "matches" : "world.missions.fire_started_on_road", "next": "state.wakeup" }
        ]
    },
    "wakeup" : {
        "text" : "Hattori, wake up! Look! Smoke coming over the rise.",
        "events" : [
            { "matches" : "npcs.hattori.state ==  'letsgo'", "next": "state.cannon" }
        ]
    },
    "cannon" : {
        "text" : "What about the cannon?",
        "events" : [
            { "matches" : "npcs.hattori.state ==  'attack'", "next": "state.gone" }
        ]
    },
    "gone" : {
    }
}