setTokenOpacity
setTokenOpacity() Function
• Introduced in version 1.4.2.0
sets the opacity value of the corresponding token.
Usage
setTokenOpacity(value)
setTokenOpacity(value, id)
setTokenOpacity(value, id, mapname)
Parameters
value
- The value of the opacity to set, ranging from 0 (completely transparent) to 100 (completely opaque).id
- OPTIONAL: The tokenid
of the token for which you want to retrieve the opacity, defaults to the Current Token.mapname
- OPTIONAL: The name of the map to find the token. Defaults to the current map.
Example
[h: setTokenOpacity(50, "Dragon")]
[h, token("Dragon"): setTokenOpacity(75)]
Version Changes
- 1.5.4 - Added
mapname
parameter option.