moveToken: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Undo revision 2073 by Verisimilar (Talk))
m (Added clarification request.)
Line 19: Line 19:
* {{code|x}} - The X coordinate to move the token to.
* {{code|x}} - The X coordinate to move the token to.
* {{code|y}} - The Y coordinate to move the token to.
* {{code|y}} - The Y coordinate to move the token to.
{{Clarify|The feature thread implies that you can move the token to X, Y coordinates, but if that's the case what is the Distance Per Cell parameter for? Are X & Y relative or abslute?}}
* {{code|units}} - If set to {{code|false}}({{code|0}}) the distance is in cells. Defaults to Distance Per Cell units.
* {{code|units}} - If set to {{code|false}}({{code|0}}) the distance is in cells. Defaults to Distance Per Cell units.
* {{code|id}} - The id of the token to move, defaults to the current token.
* {{code|id}} - The id of the token to move, defaults to the current token.

Revision as of 03:41, 11 March 2009

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

moveToken() Function

Introduced in version 1.3b51
Move a token to a new location.

Usage

moveToken(x, y)
moveToken(x, y, units)
moveToken(x, y, units, id)

Parameters

  • x - The X coordinate to move the token to.
  • y - The Y coordinate to move the token to.

Needs Clarification:
The feature thread implies that you can move the token to X, Y coordinates, but if that's the case what is the Distance Per Cell parameter for? Are X & Y relative or abslute?

  • units - If set to false(0) the distance is in cells. Defaults to Distance Per Cell units.
  • id - The id of the token to move, defaults to the current token.