getLastPath: Difference between revisions
Jump to navigation
Jump to search
(New page: {{MacroFunction |name=getLastPath |version=1.3b74 |description= Returns a json array of the coordinates of every step in the last movement path of the impersonated token. The coordinates...) |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{MacroFunction | {{MacroFunction | ||
|name=getLastPath | |name=getLastPath | ||
|version=1. | |version=1.3.b74 | ||
|description= | |description= | ||
Returns a json array of the coordinates of every step in the last movement path of the impersonated token. The coordinates are json objects with the keys {code|x} and {code|y}. | Returns a json array of the coordinates of every step in the last movement path of the impersonated token. The coordinates are json objects with the keys {{code|x}} and {{code|y}}. | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: getLastPath()] | |||
[r: getLastPath(units)] | |||
</syntaxhighlight> | |||
'''Parameters''' | |||
* {{code|units}} - If set to {{false}}, the coordinate is a location on the grid in ''cells''. Defaults to {{true}}, where the coordinate is in ''Distance Per Cell'' ''units'' (in other words 0:distance in cells, 1: distance in pixels)'. | |||
{{stub|example needed}} | |||
}} | }} | ||
[[Category:Miscellaneous Function]] | [[Category:Miscellaneous Function]] |
Latest revision as of 23:59, 14 March 2023
getLastPath() Function
• Introduced in version 1.3.b74
Returns a json array of the coordinates of every step in the last movement path of the impersonated token. The coordinates are json objects with the keys
x
and y
.Usage
[r: getLastPath()]
[r: getLastPath(units)]
Parameters
units
- If set tofalse
(0
), the coordinate is a location on the grid in cells. Defaults totrue
(1
), where the coordinate is in Distance Per Cell units (in other words 0:distance in cells, 1: distance in pixels)'.
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
This article needs: example needed