[
    {
        "id":"remgard_bridge",
        "replies":[
            {
                "nextPhraseID":"remgardb_helped_1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"remgard",
                        "value":35
                    }
                ]
            },
            {
                "nextPhraseID":"remgardb_helped_n",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"remgard",
                        "value":31
                    }
                ]
            },
            {
                "nextPhraseID":"remgardb_helped_y",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"remgard",
                        "value":30
                    }
                ]
            },
            {
                "nextPhraseID":"remgardb_help_return",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"remgard",
                        "value":20
                    }
                ]
            },
            {
                "nextPhraseID":"remgardb_1"
            }
        ]
    },
    {
        "id":"remgardb_1",
        "message":"Halt! No one is allowed to enter or exit Remgard.",
        "replies":[
            {
                "text":"Why? Is there something wrong?",
                "nextPhraseID":"remgardb_2"
            }
        ]
    },
    {
        "id":"remgardb_2",
        "message":"Wrong? You bet there is. Several of the townspeople have disappeared, and we are still conducting the investigation.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_3"
            }
        ]
    },
    {
        "id":"remgardb_3",
        "message":"We are searching for them in the town, and questioning everyone for clues on where they might be.",
        "replies":[
            {
                "text":"Please continue.",
                "nextPhraseID":"remgardb_5"
            },
            {
                "text":"Maybe they just left?",
                "nextPhraseID":"remgardb_4"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"remgard",
                "value":10
            }
        ]
    },
    {
        "id":"remgardb_4",
        "message":"No, I highly doubt that.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_5"
            }
        ]
    },
    {
        "id":"remgardb_5",
        "message":"Considering our town is surrounded by lake Laeroth, we guards are able to keep a watchful eye on everything going on here. We are able to keep a log of who comes and goes, since this bridge is our only connection to the mainland.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_6"
            }
        ]
    },
    {
        "id":"remgardb_6",
        "message":"For your sake, it is probably safer for you to remain out of town until our investigation is complete.",
        "replies":[
            {
                "text":"I am willing to help you with the investigation if you want.",
                "nextPhraseID":"remgardb_help_1"
            },
            {
                "text":"OK, I will leave you to your investigation.",
                "nextPhraseID":"X"
            },
            {
                "text":"How about you allow me to enter town anyway, so that I can trade. I promise to be quick.",
                "nextPhraseID":"remgardb_7"
            }
        ]
    },
    {
        "id":"remgardb_7",
        "message":"No. As I said, no one except us guards are allowed to enter or exit town until our investigation is completed. I suggest you leave now."
    },
    {
        "id":"remgardb_help_1",
        "message":"Hmm, yes, that might be a good idea actually. Considering you made it up here, you must have some knowledge of the surroundings.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_help_2"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"remgard",
                "value":15
            }
        ]
    },
    {
        "id":"remgardb_help_2",
        "message":"Tell you what. You might be able to help us.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_help_2b"
            }
        ]
    },
    {
        "id":"remgardb_help_2b",
        "message":"There is an abandoned house some way to the east of here, on a peninsula on the northern shore of lake Laeroth.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_help_3"
            }
        ]
    },
    {
        "id":"remgardb_help_3",
        "message":"We have reason to believe that this cabin is inhabited by someone, since we have seen candlelight coming from there during the night across the lake. We are not certain though, it could just be the moonlight on the water.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_help_4"
            }
        ]
    },
    {
        "id":"remgardb_help_4",
        "message":"That's where you come in, and might be able to help us.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_help_5"
            }
        ]
    },
    {
        "id":"remgardb_help_5",
        "message":"I must stay here and guard the bridge, but you could go over there and peek inside.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_help_6"
            }
        ]
    },
    {
        "id":"remgardb_help_6",
        "message":"Now, I must warn you - this could be dangerous. If it is as we suspected, then the person in the cabin could be a ... shall we say ... persuasive talker.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_help_7"
            }
        ]
    },
    {
        "id":"remgardb_help_7",
        "message":"So, if you really want to help us, the task I ask of you is that you only peek inside that cabin and identify if there's anyone there, and if so who that might be.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_help_8"
            }
        ]
    },
    {
        "id":"remgardb_help_8",
        "message":"Report back to me as soon as possible, and do not speak for too long with anyone that might be there.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_help_9s"
            }
        ]
    },
    {
        "id":"remgardb_help_9s",
        "replies":[
            {
                "nextPhraseID":"X",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"remgard",
                        "value":20
                    }
                ]
            },
            {
                "nextPhraseID":"remgardb_help_9"
            }
        ]
    },
    {
        "id":"remgardb_help_9",
        "message":"Would you be willing to do this task for us?",
        "replies":[
            {
                "text":"Sure, I would be happy to help.",
                "nextPhraseID":"remgardb_help_10"
            },
            {
                "text":"I'll do it. I sure hope there will be some reward for this though.",
                "nextPhraseID":"remgardb_help_10"
            },
            {
                "text":"No way, this sounds way too dangerous for me.",
                "nextPhraseID":"remgardb_help_9d"
            },
            {
                "text":"Actually, I have already been there. There is a woman called Algangror in the cabin.",
                "nextPhraseID":"remgardb_helped_y",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"algangror",
                        "value":10
                    }
                ]
            },
            {
                "text":"Actually, I have already been there, but the cabin was empty.",
                "nextPhraseID":"remgardb_helped_n",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"algangror",
                        "value":10
                    }
                ]
            }
        ]
    },
    {
        "id":"remgardb_help_9d",
        "message":"I don't blame you for declining. After all, it could be a dangerous task. Didn't hurt to ask though."
    },
    {
        "id":"remgardb_help_10",
        "message":"Excellent. Report back as soon as possible.",
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"remgard",
                "value":20
            }
        ]
    },
    {
        "id":"remgardb_help_return",
        "message":"Did you find anything in that abandoned house?",
        "replies":[
            {
                "text":"Not yet. What was I supposed to do again?",
                "nextPhraseID":"remgardb_help_2b"
            },
            {
                "text":"Not yet, I am still working on it.",
                "nextPhraseID":"remgardb_help_10"
            },
            {
                "text":"There is a woman called Algangror in the cabin.",
                "nextPhraseID":"remgardb_helped_y",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"algangror",
                        "value":10
                    }
                ]
            },
            {
                "text":"Yes, I have been there, but the cabin was empty.",
                "nextPhraseID":"remgardb_helped_n",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"algangror",
                        "value":10
                    }
                ]
            }
        ]
    },
    {
        "id":"remgardb_helped_y",
        "message":"Algangror, sigh. Then it is as we feared. This is terrible news.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_helped_1"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"remgard",
                "value":30
            }
        ]
    },
    {
        "id":"remgardb_helped_1",
        "message":"You should go visit our village elder, Jhaeld, and talk to him about what we should do next. I will let you enter Remgard to speak to him.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_helped_2"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"remgard",
                "value":35
            }
        ]
    },
    {
        "id":"remgardb_helped_2",
        "message":"You can probably find him in the tavern to the southeast, since that's where he spends most of his time.",
        "replies":[
            {
                "text":"I will go see him.",
                "nextPhraseID":"R"
            }
        ]
    },
    {
        "id":"remgardb_helped_n",
        "message":"Thank you for scouting that cabin. It's a relief to hear that it is empty. Our fears might not be true then after all.",
        "replies":[
            {
                "text":"You are welcome. Anything else I can help you with?",
                "nextPhraseID":"remgardb_helped_n_2"
            },
            {
                "text":"You are welcome. Now, about that reward?",
                "nextPhraseID":"remgardb_helped_n_3"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"remgard",
                "value":31
            }
        ]
    },
    {
        "id":"remgardb_helped_n_2",
        "message":"I guess you have proven yourself to be useful. We might have more work for you if you are interested.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_helped_1"
            }
        ]
    },
    {
        "id":"remgardb_helped_n_3",
        "message":"No no, we did not discuss any reward. But there might be one for you if you are willing to help us further.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"remgardb_helped_1"
            }
        ]
    }
]