Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Triggers/Category Tech Tree

From SC2Mapster Wiki
Jump to: navigation, search

Counts

Ability Count For Player

  • Function. Returns the count of the specified ability that the specified player's unit have.

Behavior Count For Player

  • Function. Returns the count for the specified behavior that the specified player's units have.

Unit Count For Player

  • Function. Returns the number of units, of a specific unit type determined by the Unit parameter, owned by the chosen player. The Count Type will determine what state the units must be in to be considered for this function.

Upgrade Count For Player

  • Function. Returns the count of the specified upgrade for the specified player.

Tech Tree Behavior Count For Unit

  • Function. Returns the count of the specified behavior for the specified unit.

Tech Tree Unit Count For Unit

  • Function. Returns the count of the specified type of unit at the specified unit. This is useful for detecting how many units are in another unit's queue.

Tech Tree Upgrade Count For Unit

  • Function. Returns the count of the specified upgrade for the specified unit.

Global Restrictions

Enable/Disable Tech Tree Requirements

  • Action. Enables or disables all tech requirements for the specified player.

Enable/Disable Tech Tree Restrictions

  • Action. Enables or disables all tech restrictions for the specified player. When tech restrictions are enabled, then all ability commands that are flagged as Restricted or Suppressed will not show up on unit command cards in game. Use "Allow/Disallow Ability For Player", "Allow/Disallow Behavior For Player", "Allow/Disallow Unit For Player", and "Allow/Disallow Upgrade For Player" to enable Restricted or Suppressed commands. If a command is Restricted, then the ability, behavior, unit, or upgrade that is tied to it must be directly allowed. If a command is Suppressed, however, then it may be enabled when something else is allowed. For example, if the train Banshee command is Restricted, and the build Factory and build Starport commands are Suppressed, allowing the Banshee will also allow the Factory and Starport, because you cannot train a Banshee without first constructing those buildings.

Restrictions Are Enabled For Player

  • Function. Returns true if a player has tech tree restrictions enabled.

Individual Restrictions

Set Upgrade Level For Player

  • Action. Gives a player an upgrade to the level specified.

Allow/Disallow Ability For Player

  • Action. Allows or disallows an ability to be used by the specified player. This is only useful if tech restrictions have been enabled using "Enable/Disable Tech Tree Restrictions". If the ability has a tech requirement, the requirement must still be met for the player to use the ability.

Ability Is Allowed For Player

  • Function. Returns true if an ability is allowed for the specified player. Use "Allow/Disallow Ability For Player" to modify this.

Allow/Disallow Behavior For Player

  • Action. Allows or disallows a behavior to be used by the specified player. This is only useful if tech restrictions have been enabled using "Enable/Disable Tech Tree Restrictions". If the behavior has a tech requirement, the requirement must still be met for the player to use the behavior.

Behavior Is Allowed For Player

  • Function. Returns true if a behavior is allowed for the specified player. Use "Allow/Disallow Behavior For Player" to modify this.

Allow/Disallow Unit For Player

  • Action. Allows or disallows a unit to be used by the specified player. This is only useful if tech restrictions have been enabled using "Enable/Disable Tech Tree Restrictions". If the unit has a tech requirement, the requirement must still be met for the player to use the unit.

Unit Is Allowed For Player

  • Function. Returns true if a unit is allowed for the specified player. Use "Allow/Disallow Unit For Player" to modify this.

Add Upgrade Level For Player

  • Action. Gives a player the specified number of levels of an upgrade.

Allow/Disallow Upgrade For Player

  • Action. Allows or disallows an upgrade to be used by the specified player. This is only useful if tech restrictions have been enabled using "Enable/Disable Tech Tree Restrictions". If the upgrade has a tech requirement, the requirement must still be met for the player to use the upgrade.

Upgrade Is Allowed For Player

  • Function. Returns true if an upgrade is allowed for the specified player. Use "Allow/Disallow Upgrade For Player" to modify this.