moveTokenFromMap: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (moveTokenFrom moved to moveTokenFromMap: Moved to correct name.)
m (Corrected usage syntax.)
Line 9: Line 9:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
moveTokenFrom(id, map, x, y, z)
moveTokenFromMap(id, map, x, y, z)
</source>
</source>
'''Parameters'''
'''Parameters'''

Revision as of 20:11, 13 April 2009

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
 This article needs: Examples of usage, and clearer description.

moveTokenFrom() Function

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

Introduced in version 1.3b54
Moves tokens from a specified map to the current map.

Usage

moveTokenFromMap(id, map, x, y, z)

Parameters

  • id - The token id or a JSON Array of token ids of the token/s to move.
  • map - A string containing the name of the map that the token is moved from.
  • x - The X coordinate of the current map that the token should be moved to.
  • y - The Y coordinate of the current map that the token should be moved to.
  • z - The z-order that the token should have after being moved.


See Also