[
    {
        "id":"erinith",
        "replies":[
            {
                "nextPhraseID":"erinith_complete_1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"erinith",
                        "value":50
                    }
                ]
            },
            {
                "nextPhraseID":"erinith_givenpotion_1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"erinith",
                        "value":40
                    }
                ]
            },
            {
                "nextPhraseID":"erinith_givenpotion_1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"erinith",
                        "value":41
                    }
                ]
            },
            {
                "nextPhraseID":"erinith_givenpotion_1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"erinith",
                        "value":42
                    }
                ]
            },
            {
                "nextPhraseID":"erinith_needspotions_1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"erinith",
                        "value":30
                    }
                ]
            },
            {
                "nextPhraseID":"erinith_needsbook_1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"erinith",
                        "value":20
                    }
                ]
            },
            {
                "nextPhraseID":"erinith_needsbook_1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"erinith",
                        "value":21
                    }
                ]
            },
            {
                "nextPhraseID":"erinith_1"
            }
        ]
    },
    {
        "id":"erinith_complete_1",
        "message":"Thank you for all your help earlier."
    },
    {
        "id":"erinith_1",
        "message":"Please, you have to help me!",
        "replies":[
            {
                "text":"What's wrong?",
                "nextPhraseID":"erinith_story_1"
            }
        ]
    },
    {
        "id":"erinith_story_1",
        "message":"I was setting up camp here during the night, and was attacked by some bandits while asleep.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_story_2"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"erinith",
                "value":10
            }
        ]
    },
    {
        "id":"erinith_story_2",
        "message":"Ack, this wound doesn't seem to be healing itself.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_story_3"
            }
        ]
    },
    {
        "id":"erinith_story_3",
        "message":"At least I managed to keep them from getting my book. I'm sure they were after the book.",
        "replies":[
            {
                "text":"Seems like a valuable book then. This sounds interesting, please go on.",
                "nextPhraseID":"erinith_story_4"
            },
            {
                "text":"What happened?",
                "nextPhraseID":"erinith_story_4"
            }
        ]
    },
    {
        "id":"erinith_story_4",
        "message":"I managed to throw the book in among the trees over there during the attack.\n[Points to the trees directly to the north]",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_story_5"
            }
        ]
    },
    {
        "id":"erinith_story_5",
        "message":"I don't think they managed to get the book. It's probably still somewhere among those trees.",
        "replies":[
            {
                "text":"What is in the book?",
                "nextPhraseID":"erinith_story_6"
            }
        ]
    },
    {
        "id":"erinith_story_6",
        "message":"Oh, I can't say really.",
        "replies":[
            {
                "text":"I could help you find that book if you want.",
                "nextPhraseID":"erinith_story_7"
            },
            {
                "text":"What would it be worth for you to get that book back?",
                "nextPhraseID":"erinith_story_gold_1"
            }
        ]
    },
    {
        "id":"erinith_story_7",
        "message":"You would? Oh thank you.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_story_8"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"erinith",
                "value":20
            }
        ]
    },
    {
        "id":"erinith_story_8",
        "message":"Please go look for it among those trees to the northeast."
    },
    {
        "id":"erinith_story_gold_1",
        "message":"Worth? Well, I was hoping you would help me anyway, but I guess 200 gold could do.",
        "replies":[
            {
                "text":"200 gold it is then. I'll go look for your book.",
                "nextPhraseID":"erinith_story_gold_2"
            },
            {
                "text":"A lousy 200 gold, is that all you can do? Fine, I'll go look for your stupid book.",
                "nextPhraseID":"erinith_story_gold_2"
            },
            {
                "text":"Keep your gold, I'll return your book for you anyway.",
                "nextPhraseID":"erinith_story_7"
            },
            {
                "text":"No, I am not getting involved in this. Goodbye.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"erinith_story_gold_2",
        "message":"Make it quick.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_story_8"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"erinith",
                "value":21
            }
        ]
    },
    {
        "id":"erinith_needsbook_1",
        "message":"Have you found that book yet?",
        "replies":[
            {
                "text":"Not yet, I am still looking.",
                "nextPhraseID":"erinith_story_8"
            },
            {
                "text":"Yes, here is your book.",
                "nextPhraseID":"erinith_needsbook_2",
                "requires":[
                    {
                        "requireType":"inventoryRemove",
                        "requireID":"erinith_book",
                        "value":1
                    }
                ]
            }
        ]
    },
    {
        "id":"erinith_needsbook_2",
        "replies":[
            {
                "nextPhraseID":"erinith_needsbook_3_2",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"erinith",
                        "value":21
                    }
                ]
            },
            {
                "nextPhraseID":"erinith_needsbook_3_1"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"erinith",
                "value":30
            }
        ]
    },
    {
        "id":"erinith_needsbook_3_1",
        "message":"You found it! Oh thank you so much. I was so worried that I had lost it.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_needspotions_2"
            }
        ]
    },
    {
        "id":"erinith_needsbook_3_2",
        "message":"You found it! Oh thank you so much. In return, here is the gold I promised you.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_needspotions_2"
            }
        ],
        "rewards":[
            {
                "rewardType":"dropList",
                "rewardID":"gold200"
            }
        ]
    },
    {
        "id":"erinith_needspotions_1",
        "message":"Thank you for helping me find my book earlier.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_needspotions_2"
            }
        ]
    },
    {
        "id":"erinith_needspotions_2",
        "message":"I am still hurt by this wound that I got from the attack during the night.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_needspotions_3"
            }
        ]
    },
    {
        "id":"erinith_needspotions_3",
        "message":"Ack, it hurts so bad and it doesn't seem to be healing itself.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_needspotions_4"
            }
        ]
    },
    {
        "id":"erinith_needspotions_4",
        "message":"I am really in need of some stronger healing here. Maybe some potions would do.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_needspotions_5"
            }
        ]
    },
    {
        "id":"erinith_needspotions_5",
        "message":"I have heard that the potion makers these days have potions of major health, and not just the regular potions of health.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_needspotions_6"
            }
        ]
    },
    {
        "id":"erinith_needspotions_6",
        "message":"One of those would surely do. Otherwise, I think four regular potions of health would be enough.",
        "replies":[
            {
                "text":"I'll go get those potions for you.",
                "nextPhraseID":"erinith_needspotions_7"
            },
            {
                "text":"Here, take this bonemeal potion instead. It's very potent in healing deep wounds.",
                "nextPhraseID":"erinith_gavepotion_bm_1",
                "requires":[
                    {
                        "requireType":"inventoryRemove",
                        "requireID":"bonemeal_potion",
                        "value":1
                    }
                ]
            },
            {
                "text":"Here, take this potion of major health.",
                "nextPhraseID":"erinith_gavepotion_major_1",
                "requires":[
                    {
                        "requireType":"inventoryRemove",
                        "requireID":"health_major2",
                        "value":1
                    }
                ]
            },
            {
                "text":"Here, take this potion of major health.",
                "nextPhraseID":"erinith_gavepotion_major_1",
                "requires":[
                    {
                        "requireType":"inventoryRemove",
                        "requireID":"health_major",
                        "value":1
                    }
                ]
            },
            {
                "text":"Here, take these four regular potions of health.",
                "nextPhraseID":"erinith_gavepotion_reg_1",
                "requires":[
                    {
                        "requireType":"inventoryRemove",
                        "requireID":"health",
                        "value":4
                    }
                ]
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"erinith",
                "value":31
            }
        ]
    },
    {
        "id":"erinith_needspotions_7",
        "message":"Thank you my friend. Please hurry back."
    },
    {
        "id":"erinith_gavepotion_bm_1",
        "message":"Bonemeal potion? But ... but ... we are not allowed to use them since they are prohibited by Lord Geomyr.",
        "replies":[
            {
                "text":"Who will find out?",
                "nextPhraseID":"erinith_gavepotion_bm_2"
            },
            {
                "text":"I have tried them myself, it's perfectly safe to use them.",
                "nextPhraseID":"erinith_gavepotion_bm_2"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"erinith",
                "value":40
            }
        ]
    },
    {
        "id":"erinith_gavepotion_bm_2",
        "message":"Hmm, yes. I guess you have a point. Oh well, here goes.\n[Drinks potion]",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_gavepotion_1"
            }
        ]
    },
    {
        "id":"erinith_gavepotion_major_1",
        "message":"Thank you for bringing me one.\n[Drinks potion]",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_gavepotion_1"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"erinith",
                "value":41
            }
        ]
    },
    {
        "id":"erinith_gavepotion_reg_1",
        "message":"Thank you for bringing them to me.\n[Drinks all four potions]",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_gavepotion_1"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"erinith",
                "value":42
            }
        ]
    },
    {
        "id":"erinith_gavepotion_1",
        "message":"Wow, I feel slightly better already. I guess this healing really works.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"erinith_givenpotion_1"
            }
        ]
    },
    {
        "id":"erinith_givenpotion_1",
        "message":"Thank you my friend for your help. My book is safe and my wound is healing. I hope our paths will cross again.",
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"erinith",
                "value":50
            }
        ]
    }
]