Triggers/Category Catalog

From SC2Mapster Wiki
Jump to: navigation, search

Lookup

Class Of Ability

  • Function. Returns the ability type of an ability. This is the non raw data version of an ability's scope. Use catalog lookup functions to retrieve a data value or other information from the game data.

Catalog Entry Class

  • Function. Returns the scope (essentially, the type) of the specified entry in integer form. Use catalog lookup functions to retrieve a data value or other information from the game data.

Catalog Entry Count

  • Function. Returns the number of entries in a catalog. Use catalog lookup functions to retrieve a data value or other information from the game data.

Catalog Entry Get

  • Function. Returns the ID of a catalog entry from its index in the catalog. Use catalog lookup functions to retrieve a data value or other information from the game data.

Catalog Entry Is Valid

  • Function. Returns true if the specified catalog entry is valid. Use catalog lookup functions to retrieve a data value or other information from the game data.

Catalog Entry Parent

  • Function. Returns the ID of the parent of the specified entry. Use catalog lookup functions to retrieve a data value or other information from the game data.

Catalog Entry Scope

  • Function. Returns the scope (essentially, the type) of the specified entry. Use catalog lookup functions to retrieve a data value or other information from the game data.

Catalog Field Count

  • Function. Returns the number of fields for the specified scope. Use catalog lookup functions to retrieve a data value or other information from the game data.

Catalog Field Get

  • Function. Returns the name of the field at the specified index for the specified scope. Use catalog lookup functions to retrieve a data value or other information from the game data.

Catalog Field Is Array

  • Function. Returns true if the specified field is an array in the specified scope. Use catalog lookup functions to retrieve a data value or other information from the game data.

Catalog Field Is Scope

  • Function. Returns true if the specified field exists in the specified scope. Use catalog lookup functions to retrieve a data value or other information from the game data.

Catalog Field Type

  • Function. Returns the data type for the specified field in the specified scope. Use catalog lookup functions to retrieve a data value or other information from the game data.

Catalog Field Value Count

  • Function. Returns the count of the values for a field for an entry. Returns 0 if the specified field is not an array. Use catalog lookup functions to retrieve a data value or other information from the game data. To find the name of a field path, open the data editor and turn on View Raw Data. For example, if you wanted to get the number of active indicies for a train ability, your field path string would be "InfoArray".

Catalog Field Value Get

  • Function. Returns the value of a field for an entry. Use catalog lookup functions to retrieve a data value or other information from the game data. To find the name of a field path, open the data editor and turn on View Raw Data. For example, if you wanted to get the unit for the first index of a train ability, your field path string would be "InfoArray[0].Unit".

Cost Of Ability

  • Function. Returns one of the costs of an ability. Use catalog lookup functions to retrieve a data value or other information from the game data.

Support

Catalog Field Value Set

  • Action. Sets the value of a field for an entry. To find the name of a field path, open the data editor and turn on View Raw Data. For example, if you wanted to set the unit for the first index of a train ability, your field path string would be "InfoArray[0].Unit".