Lua - AkhRani/Bellow GitHub Wiki
#Lua in Bellow Lua is used for several similar but slightly different purposes in Bellow. First, it is used as the save file format, and by extension, can be used to generate games. Second, it is used to provide a command-line console, which is currently being used for pre-UI manual testing and automated testing, and could be used to automate micromanagement. This is the same interface that will be used by the game's AI, so it will have to support all player queries and commands. Third (and this is a major TODO) it will be used to configure the game itself. For example, the various races with their advantages and disadvantages will be written in Lua.
##Indexing The natural indexing for Lua starts at 1, while the natural indexing for the engine starts at 0. The Console UI will be 1-based, but the game save / creation data will be zero-based. I tried keeping all the function interfaces 1-based in the engine, but it was too much of a pain.