getTokenImage: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
(Applied Template:MacroFunction)
Line 1: Line 1:
==Function getTokenImage==
{{MacroFunction
|name=getTokenImage
|description=Returns the [[Asset ID|asset id]] of the image for the for the [[Token:Current Token|Current Token]].


Returns the [[asset id]] of the image for the for the [[Token:Current Token|Current Token]].
|usage=
 
===Usage===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: assetId = getTokenImage(size)]
[h: assetId = getTokenImage(size)]
</source>
</source>


 
|example=
===Examples===
To display the image for the current [[Token:token|token]].
To display the image for the current [[Token:token|token]].
<source lang="mtmacro" line>
<source lang="mtmacro" line>
<img src='[r:getTokenImage()]'></img>
<img src='[r:getTokenImage()]'></img>
</source>
</source>
}}
[[Category:Token Function]]

Revision as of 04:04, 8 March 2009

getTokenImage() Function

Returns the asset id of the image for the for the Current Token.

Usage

[h: assetId = getTokenImage(size)]

Example

To display the image for the current token.
<img src='[r:getTokenImage()]'></img>