Skip to content

Instantly share code, notes, and snippets.

@GeorgesAlkhouri
Last active August 30, 2023 11:49
Show Gist options
  • Select an option

  • Save GeorgesAlkhouri/fb86e5236dab2b6fb9c1c75bd5a91602 to your computer and use it in GitHub Desktop.

Select an option

Save GeorgesAlkhouri/fb86e5236dab2b6fb9c1c75bd5a91602 to your computer and use it in GitHub Desktop.
{
"id": "test_dialogs",
"schema_version": 1,
"start": {
"id": "start",
"header": "Big Sword",
"text": "Roll your dice, to get the big great sword!",
"image": null,
"select_placeholder": "Choose...",
"select_max_values": 1,
"select_min_values": 1,
"show_image_as_avatar": false,
"options": [
{
"id": "1",
"header": "Gamble",
"next": [
{
"id": "1",
"prob": 0.3
},
{
"id": "2",
"prob": 0.7
}
],
"text": null,
"emoji": "Bone",
"show_in_embed": true,
"ui_element": {
"ui_element_type": "DialogOptionButton",
"label": "Gamble"
},
"conditions": [],
"effects": []
},
{
"id": "2",
"header": "I'm out!",
"next": "end",
"text": null,
"emoji": null,
"show_in_embed": false,
"ui_element": {
"ui_element_type": "DialogOptionButton",
"label": "I'm out!"
},
"conditions": [],
"effects": []
}
],
"conditions": [],
"effects": []
},
"end": {
"id": "end",
"header": "Ende",
"text": null,
"image": null,
"select_placeholder": "Choose...",
"select_max_values": 1,
"select_min_values": 1,
"show_image_as_avatar": false,
"options": [],
"conditions": [],
"effects": []
},
"other_dialogs": {
"1": {
"id": "1",
"header": "**Behold the big great sword of all tinmes**",
"text": null,
"image": null,
"select_placeholder": "Choose...",
"select_max_values": 1,
"select_min_values": 1,
"show_image_as_avatar": false,
"options": [
{
"id": "end",
"header": "Great",
"next": "end",
"text": null,
"emoji": "Bone",
"show_in_embed": true,
"ui_element": {
"ui_element_type": "DialogOptionButton",
"label": "Great"
},
"conditions": [],
"effects": []
}
],
"conditions": [],
"effects": []
},
"2": {
"id": "2",
"header": "Try again?",
"text": "Sorry, no luck this time.",
"image": null,
"select_placeholder": "Choose...",
"select_max_values": 2,
"select_min_values": 1,
"show_image_as_avatar": false,
"options": [
{
"id": "end",
"header": "Nope",
"next": "end",
"text": null,
"emoji": null,
"show_in_embed": false,
"ui_element": {
"ui_element_type": "DialogOptionSelectOption",
"label": "Nope",
"desc": "",
"default": false
},
"conditions": [],
"effects": []
},
{
"id": "start",
"header": "Again",
"next": "start",
"text": null,
"emoji": null,
"show_in_embed": false,
"ui_element": {
"ui_element_type": "DialogOptionSelectOption",
"label": "Again",
"desc": "",
"default": false
},
"conditions": [],
"effects": []
},
{
"id": "ok",
"header": "Ok",
"next": "start",
"text": null,
"emoji": null,
"show_in_embed": false,
"ui_element": {
"ui_element_type": "DialogOptionButton",
"label": "Ok"
},
"conditions": [],
"effects": []
}
],
"conditions": [],
"effects": []
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment