getTokenImage: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Reformatted usage to conform to more standard design)
Line 6: Line 6:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: assetId = getTokenImage(size)]
getTokenImage()
getTokenImage(size)
</source>
</source>



Revision as of 07:32, 18 January 2014

getTokenImage() Function

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

Usage

getTokenImage()
getTokenImage(size)

Examples

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

To get the image of any token using its id and the token roll option.

[h, token(tokenId): imgAsset = getTokenImage()]
see also: getImage (which you can give the ID as parameter)