I am about to start work on a grid-based inventory for a gamemode I’m creating. I am fairly new to Lua but am learning quickly thanks to the Wiki. I want to have some sort of template system, where containers of similar size all draw their shape from this template, but all have their own contents.
I planned on naming each individual square using coordinates, where X is a letter and Y is a number, so container spaces would be represented like A1, B4 and so on in the code. Items would have many different shapes and sizes and players must manage their space wisely, like a puzzle.
Any ideas on how to do this? My way would be the long, hard, and inefficient way. Has it already been done?