getTokenImage: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: Line 19:
[h, token(tokenId): imgAsset = getTokenImage()]  
[h, token(tokenId): imgAsset = getTokenImage()]  
</source>
</source>
see also: [[getImage]] (which you can give the ID as parameter)
}}
}}
[[Category:Token Function]]
[[Category:Token Function]]

Revision as of 10:56, 22 August 2012

getTokenImage() Function

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

Usage

[h: assetId = 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)