setTokenOpacity: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=setTokenOpacity |version=1.4.2.0 |description=sets the opacity value of the corresponding token. |usage= <source lang="mtmacro" line> setTokenOpacity(...")
 
No edit summary
Line 6: Line 6:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
setTokenOpacity(value[id])
setTokenOpacity(value,[id])
</source>
</source>



Revision as of 21:09, 10 August 2017

setTokenOpacity() Function

Introduced in version 1.4.2.0
sets the opacity value of the corresponding token.

Usage

setTokenOpacity(value,[id])

Parameters

  • value - The value of the opacity to set, ranging from 0 (completely transparent) to 100 (completely opaque).
  • id - OPTIONAL: The token id of the token for which you want to retrieve the opacity, defaults to the Current Token.

Example

[h: setTokenOpacity(50, "Dragon")]
[h, token("Dragon"): setTokenOpacity(75)]