Page 1 of 1

Best Option for Dialogue Trees? XML?

Posted: Thu Apr 24, 2014 2:25 pm
by DavidGaames
Hi, everyone!

I am new to LÖVE/Lua, but going through the wiki and API documentation, it's been a pretty easy learning process. I am looking to port my game to LÖVE from Flash/AS3, and I have the majority of functionality I need running, but I have one that I'm unsure of how to approach.

All of the game's dialogue and progression was done through XML. I've found XML parsers for Lua, but I'd rather not add any libraries if I don't have to. And it seems easy enough to write a quick Python script to convert the XML into any format I might need. Lua tables seem perfect for things like inventory, but I'm not so sure about things like level layout, which is also XML. I understand you can put a table inside a table, but that seems like it would get really messy.

Any opinions on XML and XML-like solutions for dialogue trees and level layout? Thanks!

Re: Best Option for Dialogue Trees? XML?

Posted: Thu Apr 24, 2014 2:33 pm
by Robin
Yeah I'd say Lua tables would work fine.