Created
July 21, 2020 04:33
-
-
Save Kovak/dc3466abc770956c7af98d1866243197 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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