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...)
 
m (Conversion script moved page Macros:Functions:getStateImage to macros:Functions:getStateImage: Converting page titles to lowercase)
 
(2 intermediate revisions by 2 users not shown)
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>

Latest revision as of 23:59, 9 February 2023

Redirect to: