setTokenImage

From RPTools Wiki
Revision as of 12:31, 10 March 2009 by Verisimilar (talk | contribs) (Added version.)
Jump to navigation Jump to search

setTokenImage() Function

Introduced in version 1.3b48
Sets the image for the for the Current Token. The image can come from several sources. It can come from a function that returns an asset id such as tblImage() or getTokenImage(). Or it could come from a Image Token.

Usage

setTokenImage(assetId)
setTokenImage(tokenImageName)

Example

[h: setTokenImage(tblImage("elfImages", 1))]
[h: setTokenImage("image:Elf-Dead")]