TRNSLATE

From ZDoom Wiki
Jump to navigation Jump to search

TRNSLATE is a text-based lump that stores custom translations for use with actors and actor overlays, and is an improvement over the use of CreateTranslation and Thing_SetTranslation.

Syntax

<name> = <translation parameters>

Each translation starts with a unique name by which it is identified, followed by an equal sign (=), and then the translation string(s), which follow the exact same definitions found in ZScript and DECORATE.

Using the translations

After the translations are defined, they can be used by referencing their names.

In ZScript and DECORATE

In ACS

Examples

This creates a compound translation.

GreenDemon = "16:47=112:127", "169:191=152:159"

This turns an actor red through the use of saturation.

RedSat = "0:255=%[0,0,0]:[1,0,0]"