macros:Functions:getStateImage: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function getStateImage== Returns the asset id for the image that is used to represent the specified token state. ===Usage=== <source lang="mtmacro" line> [h: asset...)
(No difference)

Revision as of 23:45, 1 December 2008

Function getStateImage

Returns the asset id for the image that is used to represent the specified token state.

Usage

[h: assetId = getStateImage(stateName)]


Examples

To display the image for the "Dead" token state use.

<img src='[r:getStateImage("Dead")]'></img>