Data/Target Sorts

From SC2Mapster Wiki
Jump to: navigation, search

Target Sorts

Description

Used by Weapons, Damage effects and Search Area effects for target prioritization if there are more potential targets than can be hit in a singe use.

Hints

  • Target Sorts are applied sequentially meaning that stacking target sorts in different orders will result in different units being picked if there are a lot of potential targets and a proportionally few units picked

Target Sort Types

Related


Legacy Wiki page (Placeholder)

Category

CTargetSort

Ancestor class for all other CTargetSort

Descending

reverse the order

Unit

Which unit should use this Target Sorts. Default is caster/attacker. You can also specify, if the target unit is effected by something like psi-storm-dmg

CTargetSortAlliance

Target unit from certain alliance first. This alliance is not an exact alliance, it is a relationship between caster unit's alliance and target unit's alliance. You can sort alliance using this values:

  • Chat:
  • Control:
  • Defeat:
  • Give Help:
  • Passive: Alliance, which act too passive.
  • Pushable:
  • Seek Help:
  • Spend: Alliance, which spend the most
  • Trade: Alliance, which trade the most
  • Vision: Alliance, which have most vision?

CTargetSortAngle

  • Sort by angle, Target unit in the front first

CTargetSortBehaviorCount

  • Sort by behavior count

CTargetSortBehaviorDuration

  • Sort by behavior duration

CTargetSortChargeCount

  • Charge is the number of certain ability a unit can cast, like grenade.

CTargetSortChargeRegen

  • Sort by regeneration of ability charge

CTargetSortCooldown

  • sort by ability cooldown

CTargetSortDistance

  • -

CTargetSortField

  • -

CTargetSortMarker

  • Marked unit will be targeted first

CTargetSortPowerSourceLevel

  • Target Power Source first (pylon)

CTargetSortPowerUserLevel

  • -

CTargetSortPriority

  • Priority is a field from unit: "Attacker Target Priority"

CTargetSortRandom

  • Target random unit in range

CTargetSortVeterancy

  • Target experienced unit first or last

CTargetSortVital

  • Target unit with most or least shield for example

CTargetSortVitalFraction Same as above, but use fraction