view data/npcs/ichiro.json @ 198:4e7ca5cf57fa

syntax fix for accessing world properties
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Wed, 06 Apr 2011 22:15:44 +0200
parents 897eec397cbb
children 74c875f7b1f5
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.fire_started", "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" : {
    }
}