For game with large quantities of dialogue,should I use XML?

Get help using Construct 2

Post » Mon Jan 26, 2015 7:13 pm

I'm working on a heavily story-driven RPG project; a major part of the game is characters talking with each other, including branching dialogue trees etc., with the game's total text likely being over 30,000 or 40,000 words.

What's the best way to implement this in C2? An XML file with every line of dialogue and option in branching conversation each having a single line, which the game then reads from?

Thanks!
B
6
S
1
G
1
Posts: 95
Reputation: 910

Post » Mon Jan 26, 2015 7:57 pm

You could use an JSON Array so you can sort the text for each character.
B
15
S
4
Posts: 43
Reputation: 1,022

Post » Mon Jan 26, 2015 8:21 pm

Looking into the relative merits of JSON vs XML just now, sounds like you're right! Thanks for the help. :)
B
6
S
1
G
1
Posts: 95
Reputation: 910

Post » Mon Jan 26, 2015 9:15 pm

Here is very nice solution, I am using it in my word game, very big dictionary, so for dialogs will be good too. emanueleferonato.com/2013/04/29/the-basics-of-an-html5-word-game/

This is very good solution. I tried many other even in native for Android Eclipse (Java) and I must say, it working faster and better. Depending on device, with thousands of words in dictionary, player must wait maybe 2-3 seconds only for loading whole dictionary, so try it.

This is not xml, just plain text. Can be .txt but work with any extension. xml maybe will work faster (loading) but with xml tags file will be much bigger.
B
10
S
1
Posts: 30
Reputation: 594


Return to How do I....?

Who is online

Users browsing this forum: Laura_D, plinkie and 18 guests