Triggers/Category Conversion

From SC2Mapster Wiki
Jump to: navigation, search

Actor Conversions

Convert 3D Rotation To String

  • Function. Converts and combines the Forward X,Y,Z parameters, and the Up X,Y,Z parameters, into a string with the format "<Forward Vector>,<Up Vector>".

Convert 3D Vector To String

  • Function. Converts the X, Y, and Z parameters into a string with the format "X,Y,Z".

Convert Bearings To String

  • Function. Turns a 3D position and a 3D rotation (via forward an up vectors) into a string that can be used in an actor message.

Convert Color To String

  • Function. Converts the RGB values of the specified Color to a string value with the format "<Red>,<Green>,<Blue>".

Convert XY To String

  • Function. Converts the X and Y parameters into a string with the format "X,Y".

Convert String To Actor Message

  • Function. Converts a string value to an actor message.

Basic Conversions

Convert Boolean To Integer

  • Function. Converts a boolean to 1 (true) or 0 (false).

Convert Boolean To String

  • Function. Converts a boolean value to a string value.

Convert Boolean To Text

  • Function. Converts a boolean value to a text value.

Convert Real To Integer

  • Function. Converts a real value into an integer value.

Convert Real To String

  • Function. Converts a real value to a string value.

Convert Real To Text

  • Function. Converts a real value to a text value.

Convert Real To Text (Advanced)

  • Function. Converts a real value of a specified formatting style to a text value.

Format Duration

  • Function. Formats a duration in seconds into a localization friendly text value. For example, 150 will become 2:30 in English

Format Number

  • Function. Formats a number into a localization friendly text value. For example, 1000000 will become 1,000,000 in English.

Convert Integer To Real

  • Function. Converts an integer into a real value.

Convert Integer To String

  • Function. Converts an integer to a string value.

Convert Integer To Text

  • Function. Converts an integer into a text value.

Convert String To Real

  • Function. Converts a string value to a real value.

Convert String To Integer

  • Function. Converts a string value to an integer value.

Convert String To Text

  • Function. Converts a string value to a text value.

Convert Game Link To String

  • Function. Converts a game link value to a string value.o

Color Conversions

Convert Reals To Color

  • Function. Converts a real value into a color.

Convert Real Color Component to Integer 255 Color Component

  • Function. Used to generate actor messages, which take colors in the range 0 to 255.

Convert Color Index To Color

  • Function. Returns the color at the specified color index. The color index is an index into the array of colors that appear when you select a color in a SC2 game lobby.

Color Component

  • Function. Returns the percentage value of a color component in the specified color.

Convert Reals To Color With Alpha

  • Function. Converts a real value to a color value with alpha settings.

Convert Player Color To Color

  • Function. Converts a player color value to an actual color

Preset Conversions

Convert Preset To Color

  • Function. Converts a preset value to a color value.

Convert Preset To Conversation

  • Function. Converts a preset value to a conversation value.

Convert Preset To Game Link - Unit

  • Function. Converts a preset value to a unit game link value.

Convert Preset To Integer

  • Function. Converts a preset value to an integer value.

Convert Preset To Point

  • Function. Converts a preset value to a point value.

Convert Preset To Purchasable

  • Function. Converts a preset value to a purchasable value.

Convert Preset To Real

  • Function. Converts a preset value to a real value.

Convert Preset To Region

  • Function. Converts a preset value to a region value.

Convert Preset To Reply

  • Function. Converts a preset value to a reply value.

Convert Preset To Revealer

  • Function. Converts a preset value to a revealer value.

Convert Preset To String

  • Function. Converts a preset value to an string value.

Convert Preset To Transmission

  • Function. Converts a preset value to a transmission value.

Convert Preset To Trigger

  • Function. Converts a preset value to a trigger value.

Convert Preset To Unit

  • Function. Converts a preset value to a unit value.

Convert Preset To Unit Filter

  • Function. Converts a preset value to a unit filter value.