view data/npcs/tetsuo.json @ 593:75e955c11154

Fix skip sabotaging deal bug
author Neil Muller <drnlmuller@gmail.com>
date Sun, 10 Apr 2011 19:29:40 +0200
parents 8f7bd983e394
children
line wrap: on
line source

{
    "start" : {
        "events" : [
            { "matches" : "True", "next": "state.joy" }
        ],
        "on_exit": "if npcs.kaneda2.state == 'start': switch_to('kaneda2')"
    },
    "joy" : {
        "text" : "Kaneda-san, nothing would bring me more joy.",
        "auto_next" : "state.inspect",
        "on_exit" : "switch_to('kaneda2')"
    },
    "inspect" : {
        "text" : "Naturally, as soon as I inspect the goods.",
        "auto_next" : "state.inspecting",
        "on_exit" : "switch_to('kaneda2')"
    },
    "inspecting" : {
        "events" : [
            { "matches" : "world.missions.kanedas_agreement_disrupted", "next": "state.shoddy" }
        ],
        "on_exit": "if npcs.kaneda2.state == 'inspecting': switch_to('kaneda2')"
    },
    "shoddy" : {
        "text" : "You should speak! The shoddy nature of your goods is simply unacceptable.",
        "auto_next" : "state.cheat",
        "on_exit" : "switch_to('kaneda2')"
    },
    "cheat" : {
        "text" : "At least we don’t cheat our buyers with damaged goods like you city folk!",
        "auto_next" : "state.riddance",
        "on_exit" : "switch_to('kaneda2')"
    },
    "riddance" : {
        "text" : "Good riddance.",
        "auto_next": "state.done"
    },
    "done" : {
        "on_entry": "drop_item('tail_steal')"
    }
}