Text Display Opacity (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.10, 2.14 (0-255)

Syntax

[the] [display] [text] opacity [of %displays%]

Description

Returns or changes the text opacity of <a href='#display'>text displays</a>. The default is 255, fully opaque. Values are between 0 and 255. 0 to 3 are treated the same as 255, meaning fully opaque. Values from 4 to 26 are fully transparent, and opacity increases linearly from there up to 255. For backwards compatability, setting negative values between -1 and -128 wrap around, so -1 is the same as 255 and -128 is the same as 128. Adding or subtracting values will adjust the opacity within the bounds of 0-255, so subtracting 300 wil always result in an opacity of 0.

Examples

set the text opacity of the last spawned text display to 0 # fully opaque
set text opacity of all text displays to 255 # fully opaque
set text opacity of all text displays to 128 # semi-transparent
set text opacity of all text displays to 4 # fully transparent

View source