view data/npcs/monk.json @ 511:58843eca336b

Kill the tea cup when the monk takes it.
author Simon Cross <hodgestar@gmail.com>
date Sat, 09 Apr 2011 23:17:15 +0200
parents 77cfc17ac949
children
line wrap: on
line source

{
    "start" : {
        "text" : "Oh poor thing, a tailless fox! What happened to you, little one?",
        "auto_next_text" : "Grrrr...",
        "auto_next": "state.unfortunate"
    },
    "unfortunate" : {
        "text" : "Unfortunate, I’m sure. That’s why I keep my lucky fox tail handy.",
        "auto_next_text" : "Yip yip!",
        "auto_next" : "state.you_dont_speak"
    },
    "you_dont_speak" : {
        "text" : "You don’t speak, of course. Forgive a silly old man. I lose my senses when I haven’t had my tea! Mmm, a fine brew of oolong! But there’s a demon in the attic and I’m too scared to fetch the tea leaves. Pity you don’t understand me, or you could get me a cup!",
        "auto_next": "state.no_tea"
    },
    "no_tea" : {
        "text" : "Oh, what I wouldn’t do for a cup of tea.",
        "events" : [
            { "matches" : "world.fox.item == 'teacupfull'", "next": "state.got_tea" }
        ]
    },
    "got_tea" : {
        "text" : "My tea! Oh, heavenly! Such aroma, what a taste... Just what I need. Mmm...",
        "auto_next": "state.distracted",
        "on_exit" : "world.missions.monk_tea = True; world.fox.item = None"
    },
    "distracted" : {
        "on_entry" : "drop_item('tail_shapeshift')"
    }
}