getTokenHeight: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Adding description, usage, link to other functions)
(Modified usage)
Line 1: Line 1:
{{stub|Lacks a proper description.<br />
{{stub|Lacks a proper description.<br />
What does the result look like?<br />
Lacks examples.}}
Lacks examples.}}
{{MacroFunction
{{MacroFunction
Line 12: Line 11:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
getTokenHeight()
getTokenHeight(id)
getTokenHeight(id)
</source>
</source>
Line 18: Line 18:
{{param|id|The token id of the token to check for its height, defaults to the [[Current Token]].}}{{TrustedParameter}}
{{param|id|The token id of the token to check for its height, defaults to the [[Current Token]].}}{{TrustedParameter}}


'''Result'''
'''Result'''<br />
{{note|???}}
The token's height in pixels.
|example=
|example=
This example doesn't really do anything.
This example doesn't really do anything.

Revision as of 14:27, 8 April 2013

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
 This article needs: Lacks a proper description.
Lacks examples.

getTokenHeight() Function

Introduced in version 1.3b89
This function retrieves the token's height.

Usage

getTokenHeight()
getTokenHeight(id)

Parameter

  • id - The token id of the token to check for its height, defaults to the Current Token.

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

Result
The token's height in pixels.

Example

This example doesn't really do anything.
[h: exampleVariable = "a,b,c"]
[r: exampleFunction(exampleVariable, reverse)]

Returns:

c,b,a

See Also