[
    {
        "id":"nocmar",
        "message":"Hello. I'm Nocmar.",
        "replies":[
            {
                "text":"This place looks like a smithy. Do you have anything to trade?",
                "nextPhraseID":"nocmar_trade_select"
            },
            {
                "text":"Unnmir sent me.",
                "nextPhraseID":"nocmar_quest_select",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"nocmar",
                        "value":10
                    }
                ]
            },
            {
                "text":"Bye",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"nocmar_quest_select",
        "replies":[
            {
                "nextPhraseID":"nocmar_complete_5",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"nocmar",
                        "value":200
                    }
                ]
            },
            {
                "nextPhraseID":"nocmar_continue",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"nocmar",
                        "value":20
                    }
                ]
            },
            {
                "nextPhraseID":"nocmar_quest"
            }
        ]
    },
    {
        "id":"nocmar_trade_select",
        "replies":[
            {
                "nextPhraseID":"S",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"nocmar",
                        "value":200
                    }
                ]
            },
            {
                "nextPhraseID":"nocmar_trade_1"
            }
        ]
    },
    {
        "id":"nocmar_trade_1",
        "message":"I don't have any items for sale. I used to have a lot of things for sale, but nowadays I'm not allowed to sell anything.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_trade_2"
            }
        ]
    },
    {
        "id":"nocmar_trade_2",
        "message":"I was once one of the greatest smiths in Fallhaven. Then that bastard Lord Geomyr banned my use of heartsteel.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_trade_3"
            }
        ]
    },
    {
        "id":"nocmar_trade_3",
        "message":"By decree of Lord Geomyr, no one in Fallhaven is allowed to even use heartsteel weapons. Much less sell any.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_trade_4"
            }
        ]
    },
    {
        "id":"nocmar_trade_4",
        "message":"So now I have to hide the few weapons I have left. I won't dare sell any of them anymore.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_trade_4_1"
            }
        ]
    },
    {
        "id":"nocmar_trade_4_1",
        "message":"I haven't seen the heartsteel glow in several years now that Lord Geomyr has banned them.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_trade_5"
            }
        ]
    },
    {
        "id":"nocmar_trade_5",
        "message":"So, unfortunately I can't sell you any of my weapons."
    },
    {
        "id":"nocmar_quest",
        "message":"Unnmir sent you huh? I guess it must be important then.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_quest_1"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"nocmar",
                "value":20
            }
        ]
    },
    {
        "id":"nocmar_quest_1",
        "message":"Ok, these old weapons have lost their inner glow now that they haven't been used in a while.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_quest_2"
            }
        ]
    },
    {
        "id":"nocmar_quest_2",
        "message":"To make the heartsteel glow again, we will need a heartstone.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_quest_3"
            }
        ]
    },
    {
        "id":"nocmar_quest_3",
        "message":"Years ago, we used to fight the liches of Undertell. I have no idea if they still haunt the place.",
        "replies":[
            {
                "text":"Undertell? What's that?",
                "nextPhraseID":"nocmar_quest_4"
            }
        ]
    },
    {
        "id":"nocmar_quest_4",
        "message":"Undertell; the pits of the lost souls. Travel south and enter the caverns of the Dwarves. Follow the horrid smell from there.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_quest_5"
            }
        ]
    },
    {
        "id":"nocmar_quest_5",
        "message":"Beware the liches of Undertell, if they are still are around. Those things can kill you by their gaze alone."
    },
    {
        "id":"nocmar_continue",
        "message":"Have you found a heartstone yet?",
        "replies":[
            {
                "text":"Yes, at last I found it.",
                "nextPhraseID":"nocmar_complete",
                "requires":[
                    {
                        "requireType":"inventoryRemove",
                        "requireID":"heartstone",
                        "value":1
                    }
                ]
            },
            {
                "text":"Could you tell me the story again?",
                "nextPhraseID":"nocmar_quest_1"
            },
            {
                "text":"No, not yet",
                "nextPhraseID":"nocmar_continue_2"
            }
        ]
    },
    {
        "id":"nocmar_continue_2",
        "message":"Please keep looking. Unnmir must have something important planned for you."
    },
    {
        "id":"nocmar_complete",
        "message":"By the Shadow. You actually found a heartstone. I thought I wouldn't live to see the day.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_complete_2"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"nocmar",
                "value":200
            }
        ]
    },
    {
        "id":"nocmar_complete_2",
        "message":"Can you see the glow? It's literally pulsating.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_complete_3"
            }
        ]
    },
    {
        "id":"nocmar_complete_3",
        "message":"Quick. Let's get these old heartsteel weapons glowing again.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_complete_4"
            }
        ]
    },
    {
        "id":"nocmar_complete_4",
        "message":"*Nocmar places the heartstone among the heartsteel weapons*",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"nocmar_complete_5"
            }
        ]
    },
    {
        "id":"nocmar_complete_5",
        "message":"Can you feel it? The heartsteel is glowing again.",
        "replies":[
            {
                "text":"Let me see what items you have available.",
                "nextPhraseID":"S"
            }
        ]
    }
]