view data/npcs/maneki.json @ 628:1fdfc7f03d98

Stop flying when you land.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 07 May 2011 20:30:25 +0200
parents e1436dacca69
children
line wrap: on
line source

{
    "start" : {
        "text" : "Greetings, fox. Ah, but you are no ordinary fox, are you?",
        "choices" : [
            { "text" : "I am a kitsune.", "next": "state.thoughtasmuch" },
            { "text" : "I’m perfectly normal.", "next": "state.sure" },
            { "text" : "You’re not even a real cat!", "next": "state.unkind" }
        ]
    },
    "thoughtasmuch" : {
        "text" : "Ah, I thought as much, and I bet you’ve been causing lots of trouble already.",
        "auto_next": "state.anycase"
    },
    "sure" : {
        "text" : "Sure you are.",
        "auto_next": "state.anycase"
    },
    "unkind" : {
        "text" : "Oh, that’s very unkind! Be careful or you might just hurt my feelings!",
        "auto_next": "state.anycase"
    },
    "anycase" : {
        "text" : "In any case, I think somebody like you could help me out. The fishmonger’s house has been infested by demons and he can’t get out. What’s a poor cat without a delectable fish? Rescue him and I’ll give you this ratty old fox tail. I have a feeling you could use it.",
        "auto_next": "state.waiting"
    },
    "waiting" : {
        "events" : [
            { "matches" : "world.fox.item == 'salmon'", "next": "state.goodjob" }
        ]
    },
    "goodjob" : {
        "text" : "Good job, kitsune! You’re far braver than I am. And here, as promised – a fox tail!",
        "auto_next": "state.yum"
    },
    "yum" : {
        "on_entry": "drop_item('tail_shield')"
    }
}