getTokenOpacity: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
The opacity for the Dragon token is: [r: getTokenOpacity("Dragon")] | The opacity for the Dragon token is: [r: getTokenOpacity("Dragon")] | ||
[h, token("Dragon"): opacity = | [h, token("Dragon"): opacity = getTokenOpacity()] | ||
</source> | </source> | ||
}} | }} | ||
[[Category:VBL Function]] | [[Category:VBL Function]] |
Revision as of 21:07, 10 August 2017
getTokenOpacity() Function
• Introduced in version 1.4.2.0
returns the opacity value of the corresponding token.
Usage
getTokenOpacity([id])
Parameters
id
- OPTIONAL: The tokenid
of the token for which you want to retrieve the opacity, defaults to the Current Token.
Example
The opacity for the Dragon token is: [r: getTokenOpacity("Dragon")]
[h, token("Dragon"): opacity = getTokenOpacity()]