getTokenOpacity: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
|name=getTokenOpacity | |name=getTokenOpacity | ||
|version=1.4.2.0 | |version=1.4.2.0 | ||
|description= | |description= | ||
Returns the opacity value of the corresponding token. | |||
|usage= | |usage= | ||
Line 10: | Line 11: | ||
'''Parameters''' | '''Parameters''' | ||
{{param|id|OPTIONAL: The token {{code|id}} of the token for which you want to retrieve the opacity, defaults to the [[Current Token]]. }} | {{param|id|OPTIONAL: The token {{code|id}} of the token for which you want to retrieve the opacity, defaults to the [[Current Token]]. {{TrustedParameter}}}} | ||
|example= | |example= |
Revision as of 21:42, 6 March 2019
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.Note: This parameter can only be used in a Trusted Macro.
Example
The opacity for the Dragon token is: [r: getTokenOpacity("Dragon")]
[h, token("Dragon"): opacity = getTokenOpacity()]