getTokenX: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (getDistanceToX moved to getTokenX: Wrong name.)
mNo edit summary
Line 1: Line 1:
{{stub}}
{{stub}}
{{MacroFunction
{{MacroFunction
|name=getDistanceToX
|name=getTokenX
|version=1.3b51
|version=1.3b51
|description=
|description=
Line 8: Line 8:
|usage=
|usage=
<source lang="mtmacro">
<source lang="mtmacro">
getDistanceToX()
getTokenX()
</source>
</source>
<source lang="mtmacro">
<source lang="mtmacro">
getDistanceToX(units)
getTokenX(units)
</source>
</source>
<source lang="mtmacro">
<source lang="mtmacro">
getDistanceToX(units, id)
getTokenX(units, id)
</source>
</source>
'''Parameters'''
'''Parameters'''

Revision as of 23:15, 9 March 2009

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

getTokenX() Function

Introduced in version 1.3b51
Gets the X coordinate of a token.

Usage

getTokenX()
getTokenX(units)
getTokenX(units, id)

Parameters

  • units - If set to false(0) the function will return the distance in cells. The default returns Distance Per Cell units.
  • id - The ID of the token to get the X coordinate of, defaults to the current token.