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...)
 
(Redirect to article in main namespace.)
Line 1: Line 1:
==Function getStateImage==
#REDIRECT [[getStateImage]]
 
Returns the [[asset id]] for the image that is used to represent the specified [[Token:state| token state]].
 
===Usage===
<source lang="mtmacro" line>
[h: assetId = getStateImage(stateName)]
</source>
 
 
===Examples===
To display the image for the "Dead" [[Token:state | token state]] use.
<source lang="mtmacro" line>
<img src='[r:getStateImage("Dead")]'></img>
</source>

Revision as of 14:09, 25 March 2009

Redirect to: