
I feel like exposing this information to ZScript - either as an array of map lump names or a set of arrays to also cover other related info, ala AllClasses/AllActorClasses - would be fairly useful for a number of purposes. For example, a level select menu, or a map shuffler ala Dan Gaskill's Duke3D mods War of Attrition and Alien Armageddon. As things stand, doing such things either requires making big assumptions of what the user has loaded ("This is only ever gonna be used with standard Doom 2 mapsets with MAP01 through MAP32!") or writing a MAPINFO parser in ZScript, which sounds like both a pretty painful task (especially once you factor in #includes!) and a duplication of effort.
I think Marisa has some ideas about how to do this, but I'll leave it to her to explain those.