Skip to content

Instantly share code, notes, and snippets.

@Kovak
Created July 21, 2020 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kovak/dc3466abc770956c7af98d1866243197 to your computer and use it in GitHub Desktop.
Save Kovak/dc3466abc770956c7af98d1866243197 to your computer and use it in GitHub Desktop.
{
"nodes": {
"root": {
"text": "Hello {context:player_name}, I am {context:entity_name}. Do you {prompt:need_xp}?"
},
"grant_level": {
"text": "Here is 1 level.",
"effects": [
{
"type": "add_level",
"quantity": 1
},
{
"type": "flag_visited"
}
]
},
"already_granted": {
"text": "You already got a level, don't be greedy."
}
},
"prompts": {
"need_xp": {
"phrase": "need xp",
"defaultPhrase": "I need xp.",
"text": "need some xp",
"responses": [
{
"node": "grant_level",
"conditions": [
{
"type": "dialogue_not_visited",
"node_id": "grant_level"
}
]
},
{
"node": "already_granted",
"conditions": [
{
"type": "dialogue_visited",
"node_id": "grant_level"
}
]
}
]
}
},
"entryPoint": "root"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment