getMapName: Difference between revisions
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> | ||
getMapName(mapDisplayName) | getMapName(mapDisplayName) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|mapDisplayName|A string containing the display name of the Map.}} | {{param|mapDisplayName|A string containing the display name of the Map.}} | ||
Line 13: | Line 13: | ||
<syntaxhighlight lang="mtmacro" line> | <syntaxhighlight lang="mtmacro" line> | ||
[r:getMapName("Grasslands")] | [r:getMapName("Grasslands")] | ||
</ | </syntaxhighlight> | ||
|also= | |also= |
Revision as of 18:39, 14 March 2023
getMapName() Function
• Introduced in version 1.10.0
Returns the GM name of a given map. If the specified map does not exist, an error is produced.
Usage
getMapName(mapDisplayName)
Parameters
mapDisplayName
- A string containing the display name of the Map.
Examples
[r:getMapName("Grasslands")]