Dialogue System with JSON Dialogue & Character Relationships

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
cobby363
Posts: 1
Joined: Wed Feb 03, 2021 5:07 am

Dialogue System with JSON Dialogue & Character Relationships

Post by cobby363 »

Hi Guys,
I'm working on a project that requires the use of a dialogue system that can read in data from a json file and parse the file into dialogue responses for a character. I'd also like to see if I can use character relationships as a basis for dialogue selection. So for example if a character has say, 3 hearts for an NPC, can we then issue specific 3 heart dialog from that NPC? I was wondering if this is possible to do in the Dialogue system for unity before I invest heavily into the system. If so how would be the best way to go about this?
I have tried using the evaluation version of the dialogue system, however when I attempt to import it into a project, there is an error with importing the package as unity is saying that it couldn't decompress it.
Any help with any of the above would be greatly appreciated. Thanks in advance guys!!
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System with JSON Dialogue & Character Relationships

Post by Tony Li »

(Hi - I'm pasting this from my Unity forum reply.)

Thanks for your interest in the Dialogue System!

Please try downloading the evaluation version again. It sounds like your download was unsuccessful.

You can use character relationships as a basis for dialogue selection. You can either use the built-in relationship system or implement your own in C# and register your C# methods with the Dialogue System so your conversations can access them.

What are your requirements for the JSON format? In the Dialogue System, your content is stored in an asset file called a dialogue database. This is a serializable asset, so you can read it from JSON using Unity's built-in JsonUtility class. However, in this case the JSON must be in a format that reflects the dialogue database's format. If you already have a different JSON format that you must use, you can use the included starter template to write your own importer script.
Post Reply