getTokenOpacity: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Correct function name in usage and category.) |
||
Line 7: | Line 7: | ||
|usage= | |usage= | ||
<source lang="mtmacro"> | <source lang="mtmacro"> | ||
getTokenOpacity() | |||
getTokenOpacity(id) | |||
getTokenOpacity(id, mapname) | |||
</source> | </source> | ||
Line 23: | Line 23: | ||
|changes={{change|1.5.4|Added {{code|mapname}} parameter option.}} | |changes={{change|1.5.4|Added {{code|mapname}} parameter option.}} | ||
}} | }} | ||
[[Category: | [[Category:Token Function]] |
Revision as of 02:06, 22 August 2020
getTokenOpacity() Function
• Introduced in version 1.4.2.0
Returns the opacity value of the corresponding token.
Usage
getTokenOpacity()
getTokenOpacity(id)
getTokenOpacity(id, mapname)
Parameters
id
- OPTIONAL: The tokenid
of the token for which you want to retrieve the opacity, defaults to the Current Token.Note: This parameter can only be used in a Trusted Macro.
mapname
- OPTIONAL: The name of the map to find the token. Defaults to the current map.
Example
The opacity for the Dragon token is: [r: getTokenOpacity("Dragon")]
[h, token("Dragon"): opacity = getTokenOpacity()]
Version Changes
- 1.5.4 - Added
mapname
parameter option.