[
    {
        "id":"jolnor_select_1",
        "replies":[
            {
                "nextPhraseID":"jolnor_default_3",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"vilegard",
                        "value":30
                    }
                ]
            },
            {
                "nextPhraseID":"jolnor_default_2",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"vilegard",
                        "value":20
                    }
                ]
            },
            {
                "nextPhraseID":"jolnor_default"
            }
        ]
    },
    {
        "id":"jolnor_default",
        "message":"Walk with the Shadow my child.",
        "replies":[
            {
                "text":"What is this place?",
                "nextPhraseID":"jolnor_chapel_1"
            },
            {
                "text":"I was told to talk to you about why everyone in Vilegard is suspicious of outsiders.",
                "nextPhraseID":"jolnor_suspicious_1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"vilegard",
                        "value":10
                    }
                ]
            }
        ]
    },
    {
        "id":"jolnor_default_2",
        "message":"Walk with the Shadow my child.",
        "replies":[
            {
                "text":"Can you tell me again what this place is?",
                "nextPhraseID":"jolnor_chapel_1"
            },
            {
                "text":"Let's talk about those missions for gaining trust that you talked about earlier.",
                "nextPhraseID":"jolnor_quests_1"
            },
            {
                "text":"I require healing. Can I see what items you have available?",
                "nextPhraseID":"jolnor_shop_1"
            }
        ]
    },
    {
        "id":"jolnor_default_3",
        "message":"Walk with the Shadow my friend.",
        "replies":[
            {
                "text":"Can you tell me again what this place is?",
                "nextPhraseID":"jolnor_chapel_1"
            },
            {
                "text":"I require healing. Can I see what items you have available?",
                "nextPhraseID":"jolnor_shop_1"
            }
        ]
    },
    {
        "id":"jolnor_chapel_1",
        "message":"This is Vilegard's place of worship for the Shadow. We praise the Shadow in all its might and glory.",
        "replies":[
            {
                "text":"Can you tell me more about the Shadow?",
                "nextPhraseID":"jolnor_shadow_1"
            },
            {
                "text":"I require healing. Can I see what items you have available?",
                "nextPhraseID":"jolnor_shop_1"
            },
            {
                "text":"Whatever. Just show me your goods.",
                "nextPhraseID":"jolnor_shop_1"
            }
        ]
    },
    {
        "id":"jolnor_shadow_1",
        "message":"The Shadow protects us from the dangers of the night. It keeps us safe and comforts us when we sleep.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_select_1"
            }
        ]
    },
    {
        "id":"jolnor_shop_1",
        "replies":[
            {
                "nextPhraseID":"S",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"vilegard",
                        "value":30
                    }
                ]
            },
            {
                "nextPhraseID":"jolnor_shop_2"
            }
        ]
    },
    {
        "id":"jolnor_shop_2",
        "message":"I don't trust you enough yet to feel comfortable trading with you.",
        "replies":[
            {
                "text":"Why are you that suspicious?",
                "nextPhraseID":"jolnor_suspicious_1"
            },
            {
                "text":"Very well.",
                "nextPhraseID":"jolnor_select_1"
            }
        ]
    },
    {
        "id":"jolnor_suspicious_1",
        "message":"Suspicious? No, I wouldn't call it suspicion. I would rather call it that we are careful nowadays.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_suspicious_2"
            }
        ]
    },
    {
        "id":"jolnor_suspicious_2",
        "message":"In order to gain the trust of the village, an outsider must prove that they are not here to cause trouble.",
        "replies":[
            {
                "text":"Sounds like a good idea. There are a lot of selfish people out there.",
                "nextPhraseID":"jolnor_suspicious_3"
            },
            {
                "text":"That sounds really unnecessary. Why not trust people in the first place?",
                "nextPhraseID":"jolnor_suspicious_4"
            }
        ]
    },
    {
        "id":"jolnor_suspicious_3",
        "message":"Yes, right. You seem to understand us well, I like that.",
        "replies":[
            {
                "text":"Is there anything I can do to gain your trust?",
                "nextPhraseID":"jolnor_gaintrust_select"
            }
        ]
    },
    {
        "id":"jolnor_suspicious_4",
        "message":"We have learned from history not to trust outsiders, and you are an outsider. Why should we trust you?",
        "replies":[
            {
                "text":"What can I do to gain your trust?",
                "nextPhraseID":"jolnor_gaintrust_select"
            },
            {
                "text":"You are right. You probably should not trust me.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_select",
        "replies":[
            {
                "nextPhraseID":"jolnor_gaintrust_return_2",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"vilegard",
                        "value":30
                    }
                ]
            },
            {
                "nextPhraseID":"jolnor_gaintrust_return",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"vilegard",
                        "value":20
                    }
                ]
            },
            {
                "nextPhraseID":"jolnor_gaintrust_1"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_return_2",
        "message":"With your help earlier, you have already gained our trust.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_default_3"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_return",
        "message":"As I said before, you have to help some people here in Vilegard to gain our trust.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_quests_1"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_1",
        "message":"If you do us a favor, we might consider trusting you. There are three people I can think of that are influential here in Vilegard, that you should try to help.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_gaintrust_2"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_2",
        "message":"First, there is Kaori. She lives up in the northern part of Vilegard. Ask her if she wants help with anything.",
        "replies":[
            {
                "text":"OK. Talk to Kaori. Got it.",
                "nextPhraseID":"jolnor_gaintrust_3"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"kaori",
                "value":5
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_3",
        "message":"Then there is Wrye. Wrye also lives up in the northern part of Vilegard. Many people here in Vilegard seek her advice on various things.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_gaintrust_4"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_4",
        "message":"She recently lost her son in a tragic way. If you can gain her trust, you will have a strong ally here.",
        "replies":[
            {
                "text":"Talk to Wrye. Got it.",
                "nextPhraseID":"jolnor_gaintrust_5"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"wrye",
                "value":10
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_5",
        "message":"And last but not least, I have a favor to ask of you as well.",
        "replies":[
            {
                "text":"What favor is that?",
                "nextPhraseID":"jolnor_gaintrust_6"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_6",
        "message":"North of Vilegard is a tavern called the Foaming Flask. In my opinion, this tavern is a guard station in guise for Feygard.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_gaintrust_7"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_7",
        "message":"The tavern is almost always visited by the Feygard royal guard of Lord Geomyr.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_gaintrust_8"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_8",
        "message":"They are probably here to spy on us, since we are followers of the Shadow. Lord Geomyr's forces always try to make life difficult for us and the Shadow.",
        "replies":[
            {
                "text":"Yes, they seem like troublemakers all around.",
                "nextPhraseID":"jolnor_gaintrust_9"
            },
            {
                "text":"I am sure they have their reasons for doing what they do.",
                "nextPhraseID":"jolnor_gaintrust_10"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_9",
        "message":"Right. Troublemakers indeed.",
        "replies":[
            {
                "text":"What do you want me to do?",
                "nextPhraseID":"jolnor_gaintrust_11"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_10",
        "message":"Yes, their reason is to make life miserable for us, I am sure.",
        "replies":[
            {
                "text":"What do you want me to do?",
                "nextPhraseID":"jolnor_gaintrust_11"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_11",
        "message":"My reports say that there is a guard stationed outside the tavern, to keep an eye on potential dangers.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_gaintrust_12"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_12",
        "message":"I want you to make sure the guard disappears somehow. How you do that is purely up to you.",
        "replies":[
            {
                "text":"I am not sure I should upset the Feygard patrol guards. This could really get me into trouble.",
                "nextPhraseID":"jolnor_gaintrust_13"
            },
            {
                "text":"For the Shadow, I will do as you ask.",
                "nextPhraseID":"jolnor_gaintrust_14"
            },
            {
                "text":"OK, I hope this leads to some treasure in the end.",
                "nextPhraseID":"jolnor_gaintrust_14"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"jolnor",
                "value":10
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_13",
        "message":"It's your choice. You can at least go check out the tavern and see if you find anything suspicious.",
        "replies":[
            {
                "text":"Maybe.",
                "nextPhraseID":"jolnor_gaintrust_15"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_14",
        "message":"Good. Report back to me when you are done.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_gaintrust_15"
            }
        ]
    },
    {
        "id":"jolnor_gaintrust_15",
        "message":"So, in order to gain our trust here in Vilegard, I would suggest you help Kaori, Wrye and me.",
        "replies":[
            {
                "text":"Thank you for the information. I will be back when I have something to report.",
                "nextPhraseID":"X"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"vilegard",
                "value":20
            }
        ]
    },
    {
        "id":"jolnor_quests_1",
        "message":"I would suggest you help Kaori, Wrye and me to gain our trust.",
        "replies":[
            {
                "text":"About that guard outside the Foaming Flask tavern...",
                "nextPhraseID":"jolnor_guard_select"
            },
            {
                "text":"About those tasks...",
                "nextPhraseID":"jolnor_quests_2"
            },
            {
                "text":"Never mind, let's get back to those other topics.",
                "nextPhraseID":"jolnor_select_1"
            }
        ]
    },
    {
        "id":"jolnor_quests_2",
        "message":"Yes, what about them?",
        "replies":[
            {
                "text":"What was I supposed to do again?",
                "nextPhraseID":"jolnor_suspicious_2"
            },
            {
                "text":"I have done all the tasks you asked me to do.",
                "nextPhraseID":"jolnor_quests_select_1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"jolnor",
                        "value":30
                    }
                ]
            },
            {
                "text":"Never mind, let's get back to those other topics.",
                "nextPhraseID":"jolnor_select_1"
            }
        ]
    },
    {
        "id":"jolnor_guard_select",
        "replies":[
            {
                "nextPhraseID":"jolnor_guard_completed",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"jolnor",
                        "value":30
                    }
                ]
            },
            {
                "nextPhraseID":"jolnor_guard_1"
            }
        ]
    },
    {
        "id":"jolnor_guard_1",
        "message":"Yes, what about him. Have you removed him yet?",
        "replies":[
            {
                "text":"Yes, he will leave his post as soon as this shift is over.",
                "nextPhraseID":"jolnor_guard_2",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"jolnor",
                        "value":20
                    }
                ]
            },
            {
                "text":"Yes, he is removed.",
                "nextPhraseID":"jolnor_guard_2",
                "requires":[
                    {
                        "requireType":"inventoryRemove",
                        "requireID":"ffguard_qitem",
                        "value":1
                    }
                ]
            },
            {
                "text":"No, but I am working on it.",
                "nextPhraseID":"jolnor_gaintrust_14"
            }
        ]
    },
    {
        "id":"jolnor_guard_completed",
        "message":"Yes, you dealt with him earlier. Thank you for your help.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_quests_1"
            }
        ]
    },
    {
        "id":"jolnor_guard_2",
        "message":"Very good. Thank you for your help.",
        "replies":[
            {
                "text":"No problem. Let's get back to those other tasks we talked about.",
                "nextPhraseID":"jolnor_quests_2"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"jolnor",
                "value":30
            }
        ]
    },
    {
        "id":"jolnor_quests_select_1",
        "replies":[
            {
                "nextPhraseID":"jolnor_quests_select_2",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"kaori",
                        "value":20
                    }
                ]
            },
            {
                "nextPhraseID":"jolnor_quests_kaori_1"
            }
        ]
    },
    {
        "id":"jolnor_quests_kaori_1",
        "message":"You still need to help Kaori with her task.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_select_1"
            }
        ]
    },
    {
        "id":"jolnor_quests_select_2",
        "replies":[
            {
                "nextPhraseID":"jolnor_quests_completed",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"wrye",
                        "value":90
                    }
                ]
            },
            {
                "nextPhraseID":"jolnor_quests_wrye_1"
            }
        ]
    },
    {
        "id":"jolnor_quests_wrye_1",
        "message":"You still need to help Wrye with her task.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_select_1"
            }
        ]
    },
    {
        "id":"jolnor_quests_completed",
        "message":"Good. You helped all three of us.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_quests_completed_2"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"vilegard",
                "value":30
            }
        ]
    },
    {
        "id":"jolnor_quests_completed_2",
        "message":"I suppose that shows some dedication, and that we are ready to trust you now.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_quests_completed_3"
            }
        ]
    },
    {
        "id":"jolnor_quests_completed_3",
        "message":"You have our thanks, friend. You will always find shelter here in Vilegard. We welcome you into our village.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"jolnor_select_1"
            }
        ]
    }
]