Triggers/Category Player

From SC2Mapster Wiki
Jump to: navigation, search

Alliances[edit | edit source]

Alliance Aspect[edit | edit source]

  • Function. Returns true of the source player is treating the target player with the specified alliance aspect. To check if two players are mutually treating each other with a given alliance aspect, use this function again with the players in reverse order.

Get Relationship Between Players[edit | edit source]

  • Function. Returns true of the source player is treating the target player as ally, enemy, or neutral. Use the Mutual options to check if two players treat each other as mutual allies, enemies, or neutrals.

Set Alliance Aspect[edit | edit source]

  • Action. Sets the alliance aspect of one player towards another player, but not vice-versa. This action will turn enable or disable the chosen Alliance Aspect, such as shared vision or hostility, for the Source Player towards the Target Player. Pushable means that the Target Player's units are allowed to push the Source Player's units out of the way if they are trying to path through them.

Set Alliance[edit | edit source]

  • Action. Sets alliance settings between two players. This action will determined how two players treat each other, such as whether or not their units fight. Pushable means that one player's units are allowed to push another player's units out of the way if they are trying to path through them.

Set Alliance (One-Way)[edit | edit source]

  • Action. Sets the alliance settings of one player towards another player, but not vice-versa. This action will determine how the Source Player treats the Target Player, such as whether or not the Source Player's units fight the Target Player's units. Pushable means that the Target Player's units are allowed to push the Source Player's units out of the way if they are trying to path through them.

Set Alliance For Player Group[edit | edit source]

  • Action. Changes alliance settings for all players in the player group. Each player applies the requested alliance setting to every other player in the player group. Pushable means that one player's units are allowed to push another player's units out of the way if they are trying to path through them.

Clear Alliance[edit | edit source]

  • Action.

Make Ally[edit | edit source]

  • Action.

Charges And Cooldowns[edit | edit source]

Add Charge Regen Time For Player[edit | edit source]

  • Action. Adds to the amount of time it takes to regenerate the specified player charge link.

Add Charge Used For Player[edit | edit source]

  • Action. Consumes the specified number of charges for the specified player charge link.

Add Cooldown For Player[edit | edit source]

  • Action. Adds time to the specified player cooldown link.

Player Charge Regen[edit | edit source]

  • Function. Returns the charge regen time for the specified player charge link.

Player Charge Used[edit | edit source]

  • Function. Returns the number of charges used for the specified player charge link.

Player Cooldown[edit | edit source]

  • Function. Returns the cooldown time for the specified player cooldown link.

Pause/Unpause All Charges For Player[edit | edit source]

  • Action. Pauses or unpauses regen for all charges for the specified player.

Pause/Unpause All Cooldowns For Player[edit | edit source]

  • Action. Pauses or unpauses all cooldowns for the specified player.

Remove Charge Regen Time For Player[edit | edit source]

  • Action. Clears the amount of time it takes to regenerate the specified player charge link.

Remove Charge Used For Player[edit | edit source]

  • Action. Clears the number of used charges for the specified player charge link.

Remove Cooldown For Player[edit | edit source]

  • Action. Clears the specified player cooldown link.

Difficulty Levels[edit | edit source]

APM Of Difficulty Level[edit | edit source]

  • Function. Returns the actions per minute for the difficulty level specified.

Difficulty Level Is Enabled[edit | edit source]

  • Function. Returns true if the difficulty level is enabled.

Name Of Difficulty Level[edit | edit source]

  • Function. Returns the name of the difficulty level.

Name Of Campaign Difficulty Level[edit | edit source]

  • Function. Returns the campaign name of the difficulty level.

Difficulty Level For Player[edit | edit source]

  • Function. Returns the difficulty level for the specified player.

Set Player Difficulty Level[edit | edit source]

  • Action. Sets the difficulty level for the specified player.

Player Settings[edit | edit source]

Triggering Player[edit | edit source]

  • Function. Returns the triggering player as an integer.

Triggering Player Property[edit | edit source]

  • Function. Returns the triggering player property in response to "Player Property Changed" events.

Triggering Player Property Change (Real)[edit | edit source]

  • Function. Returns the triggering player property amount changed in response to "Player Property Changed" events.

Triggering Player Property Change (Integer)[edit | edit source]

  • Function. Returns the triggering player property amount changed in response to "Player Property Changed" events.

Player Color[edit | edit source]

  • Function. Returns the player color of the player.

Player Property[edit | edit source]

  • Function. Returns the value of the specified player property as an integer.

Player Flag Check[edit | edit source]

  • Function. Returns true if the specified flag is enabled.

Modify Player Property[edit | edit source]

  • Action. Modifies player properties such as resources.

Name Of Player[edit | edit source]

  • Function. Returns the name of the player.

Race Of Player[edit | edit source]

  • Function. Returns the race of the player.

Player Score Value (Real)[edit | edit source]

  • Function. Returns a statistic for the specified player as a real.

Player Score Value (Integer)[edit | edit source]

  • Function. Returns a statistic for the specified player as an integer.

Modify Player Score (Real)[edit | edit source]

  • Action. Modifies player properties such as resources.

Modify Player Score (Integer)[edit | edit source]

  • Action. Modifies player score such as units killed.

Set Player Color[edit | edit source]

  • Action. Sets the player color for the player.

Turn Player Flag On/Off[edit | edit source]

  • Action. Enables or disables the specified flag for the player.

Start Location Of Player[edit | edit source]

  • Function. Returns the point value of the start location for the player.

Status Of Player[edit | edit source]

  • Function. Returns the status of the player.

Controller Of Player[edit | edit source]

  • Function. Returns the controller of the specified player. This function can return as Computer, User, None, or Neutral.