getTokenOpacity: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=getTokenOpacity |version=1.4.2.0 |description=returns the opacity value of the corresponding token. |usage= <source lang="mtmacro" line> getTokenOpaci...")
 
No edit summary
Line 10: Line 10:


'''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]]. }}


|example=
|example=

Revision as of 21:06, 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 token id 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 = getAlwaysVisible()]