Download

Importing data from Twine to drive dialog system?

Hi all,

I was wondering if anyone has generated dialog trees using Twine (http://twinery.org) and imported them into UE4 to drive dialog interactions. Up until now I’ve been coding branches by hand with blueprint if/then statements but that’s rapidly getting out of hand. Also, I’d like a way to quickly playtest the dialog choices outside of the editor.

Has anyone done this? Twine can export JSON and I can (mostly) import that as a Data Table asset. There is some work parsing the text for links and macros, but a simple subset (i.e., if/then and setting/getting variables) is enough to handle most cases.

Thanks,
Gary