copyMap: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 4: Line 4:
|trusted=true
|trusted=true
|description=
|description=
Function creates a copy of an specified map, with the new map name. Returns the name of the new map.
Creates a copy of an specified map, with the new map name. Returns the name of the new map.
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>

Revision as of 07:50, 6 March 2019

copyMap() Function

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

Introduced in version 1.4.0.1
Creates a copy of an specified map, with the new map name. Returns the name of the new map.

Usage

copyMap(existingMapName, newMapName)

Parameters

  • existingMapName - The name of the existing map you wish to copy.
  • newMapName - A string containing the name of the new copy.

Examples

[h:copyMap("BaseMap","Tower")]
[h:setMapVisible(1,"Tower")]