Original Post
I was thinking, you can use XML for your objects since its hierarchial, and Lua is a script. So how about mash them together for a scriptable XML sort of thing? Like for example, you would load a "template" for an object in your game: <xml> <object name="Bob" status="Alive"> <stats/> <state id="idle" status="on"> PutText("Hello",10,10) </state> </object> </xml> Then you just use an XML parser to get the text in the idle state.