Returns the localized name of a given map. Map IDs can be obtained using GetCurrentMapAreaID().

Note that you cannot obtain names of multiple floors of a map using this function. Oddly enough, these are stored in global variables, as follows:

 local floorName = _G["DUNGEON_FLOOR_" .. strupper(GetMapInfo() or "") .. floorNum]

See also Map functions.

Signature:

mapname = GetMapNameByID(id)

Arguments:

  • id - The unique numeric map ID (number, mapId)

Returns:

  • mapname - Localized map name. (string)

Examples:

local name = GetMapNameByID(21)
-- == "Silverpine Forest"