Best Option for Dialogue Trees? XML?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
DavidGaames
Prole
Posts: 1
Joined: Wed Apr 23, 2014 9:41 pm

Best Option for Dialogue Trees? XML?

Post 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!
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Best Option for Dialogue Trees? XML?

Post by Robin »

Yeah I'd say Lua tables would work fine.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 2 guests