goto: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Full Bleed (talk | contribs) m (Removed 3rd "unit" parameter that has, apparently, never existed.) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
goto(token) | goto(token) | ||
</ | </syntaxhighlight> | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
goto(x, y) | goto(x, y) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
Line 21: | Line 18: | ||
* {{code|x}} - The X coordinate of the grid cell to center the map to. | * {{code|x}} - The X coordinate of the grid cell to center the map to. | ||
* {{code|y}} - The Y coordinate of the grid cell to center the map to. | * {{code|y}} - The Y coordinate of the grid cell to center the map to. | ||
|also= | |also= |
Latest revision as of 23:59, 11 November 2024
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
goto() Function
• Introduced in version 1.3b51
Centers the map on a token, or on a specified grid cell.
Usage
goto(token)
goto(x, y)
Parameters
token
- The id of the token to center the map to.x
- The X coordinate of the grid cell to center the map to.y
- The Y coordinate of the grid cell to center the map to.