getAllMapDisplayNames

From RPTools Wiki
Revision as of 17:04, 14 March 2023 by Taustin (talk | contribs) (Text replacement - "source>" to "syntaxhighlight>")
Jump to navigation Jump to search

getAllMapDisplayNames() Function

 Note: This function can only be used in a Trusted Macro

Introduced in version 1.9.0
Returns the display names of all of the maps as either a String List or JSON Array.

Usage

<source lang="mtmacro" line> getAllMapDisplayNames() getAllMapDisplayNames(delim) </syntaxhighlight> Parameters

Examples

To get the display names of all of the maps in a String List.

<source lang="mtmacro" line> [h: maps = getAllMapDisplayNames()] </syntaxhighlight>

To get the display names of all of the maps in a JSON Array <source lang="mtmacro" line> [h: maps = getAllMapDisplayNames("json")]

</syntaxhighlight>

See Also