[
    {
        "id":"zombie1",
        "message":"Fresh flesh!",
        "replies":[
            {
                "text":"By the Shadow, I will slay you.",
                "nextPhraseID":"F"
            },
            {
                "text":"Yuck, what are you? And what is that smell?",
                "nextPhraseID":"F"
            }
        ]
    },
    {
        "id":"prisoner1",
        "message":"Nooo, I will not be imprisoned again!",
        "replies":[
            {
                "text":"But I am not...",
                "nextPhraseID":"F"
            }
        ]
    },
    {
        "id":"prisoner2",
        "message":"Aaaa! Who's there? I will not be enslaved again!",
        "replies":[
            {
                "text":"Calm down, I was just...",
                "nextPhraseID":"F"
            }
        ]
    },
    {
        "id":"flagstone_guard0",
        "message":"Ah, another mortal. Prepare to become part of my undead army!",
        "replies":[
            {
                "text":"Shadow take you.",
                "nextPhraseID":"F"
            },
            {
                "text":"Prepare to die once more.",
                "nextPhraseID":"F"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"flagstone",
                "value":31
            }
        ]
    },
    {
        "id":"flagstone_guard1",
        "message":"Die mortal!",
        "replies":[
            {
                "text":"Shadow take you.",
                "nextPhraseID":"F"
            },
            {
                "text":"Prepare to meet my blade.",
                "nextPhraseID":"F"
            }
        ]
    },
    {
        "id":"flagstone_guard2",
        "message":"What, a mortal in here that is not marked by my touch?",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_guard2_2"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"flagstone",
                "value":50
            }
        ]
    },
    {
        "id":"flagstone_guard2_2",
        "message":"You seem delicious and soft, will you be part of the feast?",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_guard2_3"
            }
        ]
    },
    {
        "id":"flagstone_guard2_3",
        "message":"Yes, I think you will. My undead army will spread far outside of Flagstone once I am done with you.",
        "replies":[
            {
                "text":"By the Shadow, you must be stopped!",
                "nextPhraseID":"F"
            },
            {
                "text":"No! This land must be protected from the undead!",
                "nextPhraseID":"F"
            }
        ]
    },
    {
        "id":"flagstone_sentry",
        "replies":[
            {
                "nextPhraseID":"flagstone_sentry_return4",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"flagstone",
                        "value":60
                    }
                ]
            },
            {
                "nextPhraseID":"flagstone_sentry_return3",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"flagstone",
                        "value":40
                    }
                ]
            },
            {
                "nextPhraseID":"flagstone_sentry_select0"
            }
        ]
    },
    {
        "id":"flagstone_sentry_select0",
        "replies":[
            {
                "nextPhraseID":"flagstone_sentry_return2",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"flagstone",
                        "value":30
                    }
                ]
            },
            {
                "nextPhraseID":"flagstone_sentry_return1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"flagstone",
                        "value":10
                    }
                ]
            },
            {
                "nextPhraseID":"flagstone_sentry_1"
            }
        ]
    },
    {
        "id":"flagstone_sentry_1",
        "message":"Halt! Who's there? No one is allowed to approach Flagstone.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_2"
            }
        ]
    },
    {
        "id":"flagstone_sentry_2",
        "message":"You should turn back while you still can.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_3"
            }
        ]
    },
    {
        "id":"flagstone_sentry_3",
        "message":"Flagstone has been overrun by undead, and we are standing guard here to make sure no undead escape.",
        "replies":[
            {
                "text":"Can you tell me the story about Flagstone?",
                "nextPhraseID":"flagstone_sentry_4"
            }
        ]
    },
    {
        "id":"flagstone_sentry_4",
        "message":"Flagstone Prison was built a few hundred years ago by house Gorland of Stoutford and used until the Noble Wars, when the house was vanquished. This dreadful place has been abandoned ever since.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_8"
            }
        ]
    },
    {
        "id":"flagstone_sentry_5",
        "message":"",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_6"
            }
        ]
    },
    {
        "id":"flagstone_sentry_6",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_8"
            }
        ]
    },
    {
        "id":"flagstone_sentry_7",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_8"
            }
        ]
    },
    {
        "id":"flagstone_sentry_8",
        "message":"For years, no one took notice of Flagstone, although there were occasional reports from travelers of terrible screams coming from the camp.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_9"
            }
        ]
    },
    {
        "id":"flagstone_sentry_9",
        "message":"But recently, undead started pouring out of Flagstone and started to threaten Stoutford and the trade routes nearby.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_10"
            }
        ]
    },
    {
        "id":"flagstone_sentry_10",
        "message":"So, here we are. I have to guard the road from undead, so that they do not spread farther than Flagstone.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_11"
            }
        ]
    },
    {
        "id":"flagstone_sentry_11",
        "message":"So, I would advise you to leave unless you want to be overrun by undead.",
        "replies":[
            {
                "text":"Can I investigate the Flagstone ruins?",
                "nextPhraseID":"flagstone_sentry_12"
            },
            {
                "text":"Yes, I should leave.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"flagstone_sentry_12",
        "message":"Are you really sure you want to head in there? Well, OK, fine by me.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_13"
            }
        ]
    },
    {
        "id":"flagstone_sentry_13",
        "message":"I won't stop you, and I won't mourn you if you never return.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_14"
            }
        ]
    },
    {
        "id":"flagstone_sentry_14",
        "message":"Go ahead. Let me know if there's anything I can tell you that would help.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_15"
            }
        ]
    },
    {
        "id":"flagstone_sentry_15",
        "message":"Return here if you need my advice.",
        "replies":[
            {
                "text":"OK. I will return to you if there is anything I need help with.",
                "nextPhraseID":"X"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"flagstone",
                "value":10
            }
        ]
    },
    {
        "id":"flagstone_sentry_return1",
        "message":"Hello again. Did you enter Flagstone? I am surprised you actually returned.",
        "replies":[
            {
                "text":"Can you tell me the story again?",
                "nextPhraseID":"flagstone_sentry_4"
            },
            {
                "text":"There is a guardian in the lower levels of Flagstone that cannot be approached and the former prisoners are undead now.",
                "nextPhraseID":"flagstone_sentry_20",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"flagstone",
                        "value":20
                    }
                ]
            }
        ]
    },
    {
        "id":"flagstone_sentry_20",
        "message":"A guardian and undead prisoners you say? This is troubling news, since it means there is some larger force behind all this.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_21"
            }
        ]
    },
    {
        "id":"flagstone_sentry_21",
        "message":"You should look for the former warden. Maybe he has something to do with all of this. If you find him you should return here with any important news.",
        "replies":[
            {
                "text":"OK, I will go and look for the former warden.",
                "nextPhraseID":"X"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"flagstone",
                "value":30
            }
        ]
    },
    {
        "id":"flagstone_sentry_22",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_23"
            }
        ]
    },
    {
        "id":"flagstone_sentry_23",
        "message":"Oh this looks most interesting. Let's take a look. Hmm. It has got some weird inscriptions on it that say 'Daylight Shadow'. Maybe you could try these words on the demon? So perhaps the warden did have something to do with the demon after all?",
        "replies":[
            {
                "text":"That might work. Thank you.",
                "nextPhraseID":"X"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"flagstone",
                "value":40
            }
        ]
    },
    {
        "id":"flagstone_sentry_return2",
        "message":"Hello again. Have you found the former warden in Flagstone yet?",
        "replies":[
            {
                "text":"I slew the former warden and found a peculiar necklace among his remains.",
                "nextPhraseID":"flagstone_sentry_23",
                "requires":[
                    {
                        "requireType":"inventoryRemove",
                        "requireID":"necklace_flagstone",
                        "value":1
                    }
                ]
            },
            {
                "text":"Can you tell me the story again?",
                "nextPhraseID":"flagstone_sentry_3"
            },
            {
                "text":"Not yet. I have to keep looking.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"flagstone_sentry_40",
        "message":"You found the necklace? Good. Here, give it to me.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_41"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"flagstone",
                "value":40
            }
        ]
    },
    {
        "id":"flagstone_sentry_41",
        "message":"Now, let's see here. Ah yes, it is as I thought. The necklace contains a password.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"flagstone_sentry_42"
            }
        ]
    },
    {
        "id":"flagstone_sentry_42",
        "message":"'Daylight Shadow'. That must be it. You should try to approach the guardian with this password.",
        "replies":[
            {
                "text":"Thanks, bye.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"flagstone_sentry_return3",
        "message":"Hello again. How is the investigation of the undead in Flagstone going?",
        "replies":[
            {
                "text":"No progress yet.",
                "nextPhraseID":"flagstone_sentry_43"
            }
        ]
    },
    {
        "id":"flagstone_sentry_43",
        "message":"Well, keep looking. Return to me if you need my advice."
    },
    {
        "id":"flagstone_sentry_return4",
        "message":"Hello again. It seems something happened inside Flagstone that made the undead weaker. I'm sure we have you to thank for it.",
        "replies":[
            {
                "text":"In the depths of Flagstone, I had to fight a winged demon and found a prisoner called Narael. He told me that he has been there for a very long time, and is too weak to leave.",
                "nextPhraseID":"flagstone_sentry_45"
            }
        ]
    },
    {
        "id":"narael",
        "message":"Thank you, thank you for freeing me from that monster.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"narael_select"
            }
        ]
    },
    {
        "id":"narael_select",
        "replies":[
            {
                "nextPhraseID":"narael_9",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"flagstone",
                        "value":60
                    }
                ]
            },
            {
                "nextPhraseID":"narael_1"
            }
        ]
    },
    {
        "id":"narael_1",
        "message":"I have been a captive here for what seems to be an eternity.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"narael_2"
            }
        ]
    },
    {
        "id":"narael_2",
        "message":"Oh, the things they did to me. Thank you so much for freeing me.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"narael_3"
            }
        ]
    },
    {
        "id":"narael_3",
        "message":"I was once a citizen in Nor City, and worked on the excavation of Mount Galmore.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"narael_4"
            }
        ]
    },
    {
        "id":"narael_4",
        "message":"After a while, the day came when I wanted to quit the assignment and return to my wife.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"narael_5"
            }
        ]
    },
    {
        "id":"narael_5",
        "message":"The officer in charge would not let me, and I was sent to Flagstone as a prisoner for disobeying orders.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"narael_6"
            }
        ]
    },
    {
        "id":"narael_6",
        "message":"If only I could see my wife once more. I have hardly any life left in me, and I don't even have enough strength to leave this place.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"narael_7"
            }
        ]
    },
    {
        "id":"narael_7",
        "message":"I guess my fate is to perish here, but now as a free man at least.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"narael_8"
            }
        ]
    },
    {
        "id":"narael_8",
        "message":"Now leave me to my fate. I do not have the strength to leave this place.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"narael_9"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"flagstone",
                "value":60
            }
        ]
    },
    {
        "id":"narael_9",
        "message":"If you find my wife Taurum in Nor City, please tell her I'm alive and that I haven't forgotten about her.",
        "replies":[
            {
                "text":"I will. Goodbye.",
                "nextPhraseID":"X"
            },
            {
                "text":"I will. Shadow be with you.",
                "nextPhraseID":"X"
            }
        ]
    }
]