Triggers/Category String

From SC2Mapster Wiki
Jump to: navigation, search

Combining[edit | edit source]

Combine Strings[edit | edit source]

  • Function. Combines two strings together.

Combine Strings Multiple[edit | edit source]

  • Function. Combines multiple strings together. Very useful when returning multiple string variables.

Combine Text[edit | edit source]

  • Function. Combines two text strings together.

Combine Text Multiple[edit | edit source]

  • Function. Combines multiple text entries together. Useful for combining text variables.

Comparisons[edit | edit source]

String Comparison[edit | edit source]

  • Function. Returns true if the two strings are the same.

String Length[edit | edit source]

  • Function. Returns the number of characters within a string.

Formatting[edit | edit source]

Convert String Case[edit | edit source]

  • Function. Converts a string to upper case or lower case.

Convert Game Text[edit | edit source]

  • Function. Look up the game string value for the specified string path.

Convert Text Case[edit | edit source]

  • Function. Converts text to upper case or lower case.

Convert Time To Text[edit | edit source]

  • Function. Convert a time value, in seconds, to text using one of various formats

Text With Color[edit | edit source]

  • Function. Encloses the text with a color formatting tag so it will use the given color.

Substrings[edit | edit source]

String Containment[edit | edit source]

  • Function. Checks if a string can be found within another string and returns true if present and false if not present.

Position Of Substring[edit | edit source]

  • Function. Searches for a substring within a string and returns the numerical position of the substring within the string.

String With Indexed Replacement[edit | edit source]

  • Function. Replaces all characters that exist between two other characters in the string.

String With Search Replacement[edit | edit source]

  • Function. Replaces one or more occcurrences of a substring inside a string.

Substring[edit | edit source]

  • Function. Returns a substring that is defined by a starting and ending point in the original string.

Word Of String[edit | edit source]

  • Function. Returns the indexed word from a string. Words are considered to be separated by whitespace. Returns "No String" if the requested index is beyond the number of words in the given string.

Text With Search Replacement[edit | edit source]

  • Function. Replaces one or more occcurrences of a substring inside text.