setMapName: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
[r:setMapName("Grasslands","Map1")]
[r:setMapName("Grasslands","Map1")]
</source>
</source>
}}
}}
[[Category:Map Function]]

Revision as of 11:41, 3 May 2016

setMapName() Function

Introduced in version 1.4.0.1
Changes the name of a specified map. May only be used by a trusted macro.

Usage

setMapName(oldMapName, newMapName)

Parameters

  • oldMapName - String specifying the current name of the map you wish to rename.
  • newMapName - A string containing the name to which you want it changed.

Examples

[r:setMapName("Grasslands","Map1")]