setMapDisplayName: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=setMapDisplayName |version=1.9.0 |trusted=true |description= Changes the display name of a specified map. |usage= <source lang="mtmacro" line> setMapDisp...")
 
No edit summary
Line 17: Line 17:
</source>
</source>
|also=
|also=
{{func|setMapName}}
{{func|setMapName}}, {{func|getMapDisplayName}}


}}
}}
[[Category:Map Function]]
[[Category:Map Function]]

Revision as of 23:06, 2 October 2021

setMapDisplayName() Function

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

Introduced in version 1.9.0
Changes the display name of a specified map.

Usage

setMapDisplayName(mapName, newMapDisplayName)

Parameters

  • mapName - String specifying the name of the map you wish to give a new display name.
  • newMapDisplayName - A string containing the name to which the display name should be set.

Examples

[r:setMapDisplayName("Swamp Temple of the Lizardfolk","Swampy Marsh")]

See Also