69 lines
3.0 KiB
JSON
69 lines
3.0 KiB
JSON
{
|
|
"id": "dlg_merchant",
|
|
"start": "root",
|
|
"nodes": {
|
|
"root": {
|
|
"speaker": "Marchand",
|
|
"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": "Tu appelles vraiment ca une epee ?", "goto": "insult"},
|
|
{"text": "[Marchandage] 100 pieces et on n'en parle plus.", "condition": {"type": "skill", "skill": "bargaining", "min": 2},
|
|
"skill_check": {"skill": "bargaining", "attr": "cha", "dc": 10, "success_goto": "bargain_success", "fail_goto": "bargain_fail"}},
|
|
{"text": "[Intimidation] Donne-la-moi. Maintenant.", "condition": {"type": "skill", "skill": "intimidation", "min": 2},
|
|
"skill_check": {"skill": "intimidation", "attr": "str_", "dc": 12, "success_goto": "intimidate_success", "fail_goto": "intimidate_fail"}},
|
|
{"text": "Voir toute sa marchandise.", "goto": "__SHOP__"},
|
|
{"text": "Partir.", "end": true}
|
|
]
|
|
},
|
|
"price": {
|
|
"speaker": "Marchand",
|
|
"text": "150 pieces. Et je ne fais pas credit, ne me regarde pas comme ca.",
|
|
"options": [
|
|
{"text": "Acheter l'epee (150 or).", "condition": {"type": "gold", "min": 150},
|
|
"effects": [{"type": "add_gold", "amount": -150}, {"type": "give_item", "item": "weapon_rusty_sword"}],
|
|
"end": true},
|
|
{"text": "C'est trop cher.", "goto": "root"}
|
|
]
|
|
},
|
|
"insult": {
|
|
"speaker": "Marchand",
|
|
"text": "C'est une epee de survie, pas une piece de musee. Elle tue exactement aussi bien qu'une belle.",
|
|
"options": [
|
|
{"text": "D'accord, d'accord.", "goto": "root"},
|
|
{"text": "Partir.", "end": true}
|
|
]
|
|
},
|
|
"bargain_success": {
|
|
"speaker": "Marchand",
|
|
"text": "...Bon. Va pour 100. Mais tu ne le dis a personne.",
|
|
"on_enter": [{"type": "add_gold", "amount": -100}, {"type": "give_item", "item": "weapon_rusty_sword"}],
|
|
"options": [{"text": "Merci.", "end": true}]
|
|
},
|
|
"bargain_fail": {
|
|
"speaker": "Marchand",
|
|
"text": "Le prix est le prix. Essaie encore et je le monte a 200.",
|
|
"options": [{"text": "Tant pis.", "goto": "root"}]
|
|
},
|
|
"intimidate_success": {
|
|
"speaker": "Marchand",
|
|
"text": "...Tiens. Prends-la. Prends tout ce que tu veux. Prends tout, en fait, et laisse-moi tranquille.",
|
|
"on_enter": [
|
|
{"type": "give_item", "item": "weapon_rusty_sword"},
|
|
{"type": "add_rep", "faction": "merchants", "amount": -15},
|
|
{"type": "set_flag", "flag": "merchant_intimidated", "value": true}
|
|
],
|
|
"options": [{"text": "(Partir avant qu'il ne change d'avis)", "end": true}]
|
|
},
|
|
"intimidate_fail": {
|
|
"speaker": "Marchand",
|
|
"text": "Essaie donc. Je crie tres, tres fort, et j'ai des amis pas loin.",
|
|
"on_enter": [{"type": "add_rep", "faction": "merchants", "amount": -5}],
|
|
"options": [{"text": "Une autre fois, alors.", "goto": "root"}]
|
|
}
|
|
}
|
|
}
|