51 lines
2.5 KiB
JSON
51 lines
2.5 KiB
JSON
{
|
|
"id": "event_vending_machine",
|
|
"tags": ["mystery", "narrative"],
|
|
"start": "root",
|
|
"nodes": {
|
|
"root": {
|
|
"text": [
|
|
"Vous trouvez un distributeur automatique encore alimente.",
|
|
"L'ecran affiche :",
|
|
"\"BOISSON ENERGISANTE - 35 PIECES\"",
|
|
"Quelqu'un a grave dessous :",
|
|
"\"NE PAS ACHETER LA VERTE\""
|
|
],
|
|
"options": [
|
|
{"text": "Acheter la rouge.", "condition": {"type": "gold", "min": 35},
|
|
"effects": [{"type": "add_gold", "amount": -35}, {"type": "give_item", "item": "consumable_energy_drink_red"}], "end": true},
|
|
{"text": "Acheter la verte.", "condition": {"type": "gold", "min": 35},
|
|
"effects": [{"type": "add_gold", "amount": -35}, {"type": "give_item", "item": "consumable_energy_drink_green"}], "end": true},
|
|
{"text": "Examiner la machine.", "goto": "examine"},
|
|
{"text": "[Ingenierie] Pirater la machine.", "condition": {"type": "skill", "skill": "engineering", "min": 2},
|
|
"skill_check": {"skill": "engineering", "attr": "int_", "dc": 9, "success_goto": "hack_success", "fail_goto": "hack_fail"}},
|
|
{"text": "Donner un coup dedans.", "skill_check": {"skill": "melee", "attr": "str_", "dc": 8, "success_goto": "kick_success", "fail_goto": "kick_fail"}},
|
|
{"text": "Partir.", "end": true}
|
|
]
|
|
},
|
|
"examine": {
|
|
"text": "La machine est couverte d'autocollants delaves. Le logo d'origine est illisible. La fente a pieces, elle, fonctionne encore tres bien.",
|
|
"options": [{"text": "Retour.", "goto": "root"}]
|
|
},
|
|
"hack_success": {
|
|
"text": "L'ecran clignote et recrache une canette gratuitement. Vous ne demandez pas laquelle avant de regarder.",
|
|
"on_enter": [{"type": "give_item", "item": "consumable_energy_drink_red"}, {"type": "add_xp", "amount": 5}],
|
|
"options": [{"text": "Bien.", "end": true}]
|
|
},
|
|
"hack_fail": {
|
|
"text": "La machine emet un bourdonnement agace et refuse de cooperer davantage.",
|
|
"options": [{"text": "Tant pis.", "end": true}]
|
|
},
|
|
"kick_success": {
|
|
"text": "Le coup fait tomber une canette au hasard, qui roule jusqu'a vos pieds.",
|
|
"on_enter": [{"type": "give_item", "item": "consumable_energy_drink_red"}],
|
|
"options": [{"text": "Merci, machine.", "end": true}]
|
|
},
|
|
"kick_fail": {
|
|
"text": "Vous vous faites mal au pied. La machine, elle, ne bouge pas d'un millimetre.",
|
|
"on_enter": [{"type": "damage", "amount": 2}],
|
|
"options": [{"text": "...", "end": true}]
|
|
}
|
|
}
|
|
}
|