diff options
| author | Jan Tuomi <jan.tuomi@valuemotive.com> | 2020-08-09 16:29:26 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@valuemotive.com> | 2020-08-09 16:29:26 +0300 |
| commit | 08ae1a42c694ec409921225daa59ab42fac75d58 (patch) | |
| tree | 8130cc772a35cb081333d73c9015638e586aca41 /data | |
| parent | 1119130621fe5bbc048fb8404263acc65490d0cd (diff) | |
Allow options in dialoguemaster
Diffstat (limited to 'data')
| -rw-r--r-- | data/dialogue/dwarf_1.json | 8 | ||||
| -rw-r--r-- | data/dialogue/dwarf_2.json | 5 |
2 files changed, 8 insertions, 5 deletions
diff --git a/data/dialogue/dwarf_1.json b/data/dialogue/dwarf_1.json index 91c7a5e..d42ec8c 100644 --- a/data/dialogue/dwarf_1.json +++ b/data/dialogue/dwarf_1.json @@ -1,3 +1,5 @@ -[ - { "name": "Dwarf", "body": "Top of the morning to ye." } -] +{ + "1": { "name": "Dwarf", "body": "What are you doing in this dungeon?", "options": [["Just chilling", "2"], ["Nothing", "3"]] }, + "2": { "name": "Dwarf", "body": "Stop chilling and go back to the surface." }, + "3": { "name": "Dwarf", "body": "Right." } +} diff --git a/data/dialogue/dwarf_2.json b/data/dialogue/dwarf_2.json index 89d039f..98f0221 100644 --- a/data/dialogue/dwarf_2.json +++ b/data/dialogue/dwarf_2.json @@ -1,4 +1,5 @@ [ - { "name": "Dwarf", "body": "What are you doing in this dungeon?" }, - { "name": "Dwarf", "body": "Go back to the surface." } + { "id": 1, "name": "Dwarf", "body": "What are you doing in this dungeon?", "options": [["Just chilling", 2], ["Nothing", 3]] }, + { "id": 2, "name": "Dwarf", "body": "Stop chilling and go back to the surface." }, + { "id": 3, "name": "Dwarf", "body": "Right." } ] |
