First of all, apologies for my lack of understanding of JSON. I'm not familiar with JavaScript. I've read and re-read the documentation as well as loads of other online resources but I still don't feel like anything has 'clicked' for me yet. With that said, here's my situation:
I've been messing around trying to build a branching dialogue tool that uses json data. I've been using Dialogue Designer to generate the json files and jsonviewer.stack.hu to try and better understand the structure of json files.
The issue I keep coming into is that each path node is classified by a number (starting from 0) and the actual data that would help me identify nodes and know which one to go to next is nested WITHIN these numbers.
For example, to path to get to the first node is "0.nodes.0". From here, I can access all the details I need: the dialogue text, the character name, the node name and the choices - each one also containing the node name that picking that choice leads to.
The issue I keep running into is that I can't use the node name under 'next' to get to the next node, because I still need to know which number (0,1,2,3,etc.) that node falls under. That's not information that is contained within the node.
This way of formatting seems pretty standard across all dialogue editors (Articy, Chatmapper, Twine, etc.). How do people get around this and get a new path based on information that's actually inside the numbered nodes?
I'd hugely appreciate any help. Especially if you could explain it simply. I don't know if it's useful or not but I'll link to the test file I'm using below. Currently, I'm just trying to use a text object and a simple test dialogue to debug this and figure out what I'm doing wrong - there's not much logic.
drive.google.com/file/d/1Dh_RvwTxMYxbieIzYpLzCIodxqQYYmWS/view