getVisibleMapDisplayNames
getVisibleMapNames() Function
• Introduced in version 1.9.0
Returns the display names of all of the player visible maps as either a String List or JSON Array.
Usage
<syntaxhighlight lang="mtmacro" line> getVisibleMapDisplayNames() </source> <syntaxhighlight lang="mtmacro" line> getVisibleMapDisplayNames(delim) </source> Parameters
delim
- The delimiter to use for the String List. If the value isjson
then a JSON Array is returned.
Examples
To get the display names of all of the player visible maps in a String List.
<syntaxhighlight lang="mtmacro" line> [h: maps = getVisibleMapNames()] </source>
To get the display names of all of the player visible maps in a JSON Array <syntaxhighlight lang="mtmacro" line> [h: maps = getVisibleMapNames("json")]
</source>