Get map title from level number or name

Thu Feb 06, 2020 7:32 pm

Basically need this for pretty-printing where exit lines take the player in a gameplay mod. Precisely what I require is the ability to fetch the full title of the map it's taking you to, whether it's an Exit_Normal/Exit_Secret line, for which you can only get the map names (not titles) from Level, or it's a Teleport_NewMap line that just gives you a levelnum, and there's nothing you can get from that.

If possible, having access to FindLevelInfo()/FindLevelByNum() would be fine too, if there's a way to ensure that the returned struct is read-only.

Re: Get map title from level number or name

Thu May 20, 2021 7:51 am

This should be closed as added, didn't even know I've been requesting this for so long.