view data/npcs/tetsuo.json @ 528:52b38b803782

Skeleton for dead monsters
author Stefano Rivera <stefano@rivera.za.net>
date Sun, 10 Apr 2011 00:09:20 +0200
parents e1436dacca69
children 354f84b945f8
line wrap: on
line source

{
    "start" : {
        "events" : [
            { "matches" : "npcs.kaneda2.state !=  'start'", "next": "state.joy" }
        ]
    },
    "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" : "npcs.kaneda2.state ==  'preposterous'", "next": "state.shoddy" }
        ]
    },
    "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')"
    }
}