macros:Functions:getStateImage

From RPTools Wiki
Revision as of 23:45, 1 December 2008 by Craig (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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>