getAllMapNames: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
getAllMapNames() | getAllMapNames() | ||
getAllMapNames(delim) | getAllMapNames(delim) | ||
</source> | </source> |
Revision as of 12:43, 3 May 2016
getAllMapNames() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.3b55
Returns the names of all of the maps as either a String List or JSON Array.
Usage
getAllMapNames()
getAllMapNames(delim)
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 maps in a String List.
[h: maps = getAllMapNames()]
To get the names of all of the maps in a JSON Array
[h: maps = getAllMapNames("json")]