From RPTools Wiki
Jump to navigation Jump to search

 Note: This refers to a proposed change that has not been implemented in the main code base yet.

setDrawingName() Function

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

Introduced in version 1.10.0
Last checked for compatibility with version 1.10.0
Set the name of a MapTool drawing by drawing ID. The ID can be retrieved through the Draw Explorer or the findDrawings() macro function.


setDrawingName(map, id, name)


  • map - Map with drawing.
  • id - Drawing ID.
  • name - Name for drawing.


Rename the Fluffy Polygon drawing.
[h: id = findDrawings(getCurrentMapName(), "Fluffy Polygon")]
[r: setDrawingName(getCurrentMapName(), id, "Pointy Polygon")]

Returns: The ID of the drawing that was renamed.


See Also

Version Changes

  • 1.10.0 - Function added.