getVisibleMapNames

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

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

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>

See Also