{ "id": "dlg_merchant", "start": "root", "nodes": { "root": { "speaker": "Marchand ambulant", "text": ["Je pourrais te vendre cette epee.", "Mais vu ton etat, je devrais probablement te vendre un testament avec."], "options": [ {"text": "Combien pour l'epee ?", "goto": "price"}, {"text": "[Marchandage] 100 pieces et on n'en parle plus.", "condition": {"type": "skill", "skill": "bargaining", "min": 2}, "effects": [{"type": "set_flag", "flag": "merchant_bargained", "value": true}, {"type": "add_rep", "faction": "merchants", "amount": 1}], "goto": "bargain_success"}, {"text": "Voir toute sa marchandise.", "goto": "__SHOP__"}, {"text": "Partir.", "end": true} ] }, "price": { "speaker": "Marchand ambulant", "text": "150 pieces. Et je ne fais pas credit, ne me regarde pas comme ca.", "options": [{"text": "Retour.", "goto": "root"}, {"text": "Partir.", "end": true}] }, "bargain_success": { "speaker": "Marchand ambulant", "text": "...Bon. Va pour 100. Mais tu ne le dis a personne.", "options": [{"text": "Merci.", "end": true}] } } }