getVisibleMapDisplayNames

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

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

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>

See Also