[
    {
        "id":"jan_start_select",
        "replies":[
            {
                "nextPhraseID":"jan_complete2",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"jan",
                        "value":100
                    }
                ]
            },
            {
                "nextPhraseID":"jan_return",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"jan",
                        "value":10
                    }
                ]
            },
            {
                "nextPhraseID":"jan_default"
            }
        ]
    },
    {
        "id":"jan_default",
        "message":"Hello kid. Please leave me to my mourning.",
        "replies":[
            {
                "text":"What is the problem?",
                "nextPhraseID":"jan_default2"
            },
            {
                "text":"Do you want to talk about it?",
                "nextPhraseID":"jan_default2"
            },
            {
                "text":"OK, bye.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"jan_default2",
        "message":"Oh, it's so sad. I really don't want to talk about it.",
        "replies":[
            {
                "text":"Please do.",
                "nextPhraseID":"jan_default3"
            },
            {
                "text":"OK, bye.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"jan_default3",
        "message":"Well, I guess it's OK to tell you. You seem to be a nice enough kid.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jan_default4"
            }
        ]
    },
    {
        "id":"jan_default4",
        "message":"My friend Gandir, his friend Irogotu, and I were down here digging this hole. We had heard there was a hidden treasure down here.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jan_default5"
            }
        ]
    },
    {
        "id":"jan_default5",
        "message":"We started digging and finally broke through to the cave system below. That's when we discovered them. The critters and bugs.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jan_default6"
            }
        ]
    },
    {
        "id":"jan_default6",
        "message":"Oh those critters. Damn bastards. Nearly killed me they did.\n\nGandir and I told Irogotu that we should stop the digging and leave while we still could.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jan_default7"
            }
        ]
    },
    {
        "id":"jan_default7",
        "message":"But Irogotu wanted to continue deeper into the dungeon. He and Gandir got into an argument and started fighting.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jan_default8"
            }
        ]
    },
    {
        "id":"jan_default8",
        "message":"That's when it happened. *sob* Oh what have we done?",
        "replies":[
            {
                "text":"Please go on.",
                "nextPhraseID":"jan_default9"
            }
        ]
    },
    {
        "id":"jan_default9",
        "message":"Irogotu killed Gandir with his bare hands. You could see the fire in his eyes. He almost seemed to enjoy it.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jan_default10"
            }
        ]
    },
    {
        "id":"jan_default10",
        "message":"I fled and haven't dared go back down there because of the critters and Irogotu himself.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jan_default11"
            }
        ]
    },
    {
        "id":"jan_default11",
        "message":"Oh that damn Irogotu. If only I could get to him. I'd show him one thing and another.",
        "replies":[
            {
                "text":"Do you think I could help?",
                "nextPhraseID":"jan_default11_1"
            }
        ]
    },
    {
        "id":"jan_default11_1",
        "message":"Do you think you could help me?",
        "replies":[
            {
                "text":"Sure, there may be some treasure in this for me.",
                "nextPhraseID":"jan_default12"
            },
            {
                "text":"Sure. Irogotu should pay for what he did.",
                "nextPhraseID":"jan_default12"
            },
            {
                "text":"No thanks, I would rather not be involved in this. It sounds dangerous.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"jan_default12",
        "message":"Really? You think you could help? Hmm, maybe you could. Beware of those bugs though, they're really tough bastards.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jan_default13"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"jan",
                "value":10
            }
        ]
    },
    {
        "id":"jan_default13",
        "message":"If you really want to help, go find Irogotu down in the cave, and get me back Gandir's ring.",
        "replies":[
            {
                "text":"Sure, I'll help.",
                "nextPhraseID":"jan_default14"
            },
            {
                "text":"Can you tell me the story again?",
                "nextPhraseID":"jan_background"
            },
            {
                "text":"Never mind, goodbye.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"jan_default14",
        "message":"Return to me when you are done. Bring me Gandir's ring from Irogotu down in the cave.",
        "replies":[
            {
                "text":"OK, bye.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"jan_return",
        "message":"Hello again kid. Did you find Irogotu down in the cave?",
        "replies":[
            {
                "text":"No, not yet.",
                "nextPhraseID":"jan_default14"
            },
            {
                "text":"Can you tell me your story again?",
                "nextPhraseID":"jan_background"
            },
            {
                "text":"Yes, I have killed Irogotu.",
                "nextPhraseID":"jan_complete",
                "requires":[
                    {
                        "requireType":"inventoryRemove",
                        "requireID":"ring_gandir",
                        "value":1
                    }
                ]
            }
        ]
    },
    {
        "id":"jan_background",
        "message":"Didn't you listen the first time I told you the story? Do I really have to tell you the story one more time?",
        "replies":[
            {
                "text":"Yes, please tell me the story again.",
                "nextPhraseID":"jan_default3"
            },
            {
                "text":"I wasn't listening that much the first time you told it. What was that about a treasure?",
                "nextPhraseID":"jan_default4"
            },
            {
                "text":"No, never mind. I remember it now.",
                "nextPhraseID":"jan_default14"
            }
        ]
    },
    {
        "id":"jan_complete2",
        "message":"Thanks for dealing with Irogotu earlier! I am forever in debt to you.",
        "replies":[
            {
                "text":"Bye.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"jan_complete",
        "message":"Wait, what? You actually went down there and returned alive? How did you manage that? Wow, I almost died going into that cave.\n\nOh thank you so much for bringing me back Gandir's ring! Now I can have something to remember him by.",
        "replies":[
            {
                "text":"Glad that I could help. Goodbye.",
                "nextPhraseID":"X"
            },
            {
                "text":"Shadow be with you. Goodbye.",
                "nextPhraseID":"X"
            },
            {
                "text":"Whatever. I only did it for the loot.",
                "nextPhraseID":"X"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"jan",
                "value":100
            }
        ]
    },
    {
        "id":"irogotu",
        "message":"Well hello there. Another adventurer coming to steal my bounty. This is MY CAVE. The treasure will be MINE!",
        "replies":[
            {
                "text":"Did you kill Gandir?",
                "nextPhraseID":"irogotu1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"jan",
                        "value":10
                    }
                ]
            }
        ]
    },
    {
        "id":"irogotu1",
        "message":"That whelp Gandir? He was in my way. I merely used him as a tool to dig deeper into the cave.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"irogotu2"
            }
        ]
    },
    {
        "id":"irogotu2",
        "message":"Besides, I never really liked him anyway.",
        "replies":[
            {
                "text":"I guess he deserved to die. Did he have a ring on him?",
                "nextPhraseID":"irogotu3"
            },
            {
                "text":"Jan mentioned something about a ring?",
                "nextPhraseID":"irogotu3"
            }
        ]
    },
    {
        "id":"irogotu3",
        "message":"NO! You cannot have it. It's mine! And who are you anyway kid, coming down here to disturb me?!",
        "replies":[
            {
                "text":"I'm not a kid anymore! Now give me that ring!",
                "nextPhraseID":"irogotu4"
            },
            {
                "text":"Give me that ring and we might both come out of here alive.",
                "nextPhraseID":"irogotu4"
            }
        ]
    },
    {
        "id":"irogotu4",
        "message":"No. If you want it you will have to take it from me by force, and I should tell you that my powers are great. Besides, you probably wouldn't dare fight me anyway.",
        "replies":[
            {
                "text":"Very well, let's see who dies here.",
                "nextPhraseID":"F"
            },
            {
                "text":"By the Shadow, Gandir will be avenged.",
                "nextPhraseID":"F"
            }
        ]
    }
]