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