getMapDisplayName: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "<source" to "<syntaxhighlight")
 
Line 7: Line 7:
<syntaxhighlight lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
getMapDisplayName()
getMapDisplayName()
getMapDisplayName(mapName)
getMapDisplayName(mapRef)
</syntaxhighlight>
</syntaxhighlight>
'''Parameters'''
'''Parameters'''
{{param|mapName|Optional. A string containing the name of the Map.}}
{{param|mapRef|Optional. The Name or ID of the Map.}}
|examples=
|examples=
<syntaxhighlight lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>

Latest revision as of 23:59, 14 March 2023

getMapDisplayName() Function

Introduced in version 1.9.0
Returns the display name of a given map. If no map is specified the current map is selected.

Usage

getMapDisplayName()
getMapDisplayName(mapRef)

Parameters

  • mapRef - Optional. The Name or ID of the Map.

Examples

[r:getMapDisplayName()]
[r:getMapDisplayName("Grasslands")]