setTokenOpacity

From RPTools Wiki
Revision as of 21:09, 10 August 2017 by Wolph42 (talk | contribs)
Jump to navigation Jump to search

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)]