Ah, hex tiles, you didn't mention that before. I don't have experience with those, only 2d, tho I think they're not much different as they can be stored like a 2d map, it's just that drawing odd maplines is a shifted, so the difference is mainly visually.
Anyway, here's a tut:
http://www.blitzbasic.co.nz/Community/posts.php?topic=45336How to store? I'd just do a binary format, basically what I described above but then with another header variable with the amount of layers (for your basements etc.)
E.G. you get a header to define the width of the map, the height of the map, amount of floors (256 floors enough I bet?) and the tiletype.
Then your file would look like:
[mwid][mhei][fl][ty][........................mapdata...............]
Where [____] is a short and [__] is a byte. The rest is mapdata, stored like map:short[x,y,floor] in case you choose the short tiletype.
Have a look at the bmax help for TStream, Writefile etc.
Actually I don't quite know how to explain things to a daily programmer as I don't quite have figured out
why there are things you don't know. ^_^