Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | scrubswithnosleeves |
Hey All,
I am making a dialogue system that uses a JSON to store a dictionary of dialogue options.
example:
{
],
"Father_002": [
"That mech over there needs to have it's AI's focus reset.",
"Head over to the computer and give it a shot would ya?"
],
}
My question is, what is the benefit of using a JSON versus just making a script with the class_name
Dialogue and a dictionary of dialogue just like I have in the JSON. Then I could just do Dialogue.dict.get("Father_002")
rather than using my current method of loading the JSON and then accessing that key. I actually access the JSON relatively frequently, and it would be easier to edit and access the class from the Editor, so I am just wondering if there is any major advantage of using the JSON to do this?