From RPTools WikiJump to navigationJump to search
Note: This refers to a proposed change that has not been implemented in the main code base yet.
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.
- 1.10.0 - Function added.