Skip to content

ContextualActionObjectiveCountSource

16.3

Class Documentation

Edit documentation

One side of an objective comparison: a source of objective counts. Both sides of a ContextualConditionObjectiveCountComparison are objects of this class. Each side produces a list of values, and the condition passes if any pair of a left value and a right value satisfies its CompareOp (see IContextualCondition). An empty list makes the condition fail.

SourceId selects the values:

SourceId Name Values
0 Own team the number of objectives that the owner's team has taken, plus CountOffset
1 Enemy teams one value per opposing team: the number of objectives that team has taken, plus CountOffset
2 Constant CountThreshold

Any other value produces no value.

The counts come from the game's objective tracker, which counts only teams 100 and 200. In an ObjectiveTakeByMyTeam or ObjectiveTakeByEnemyTeam situation, the objective that is being taken already counts for its team.

Properties

CountOffset

U32 = 0
Edit documentation

A number added to each count for SourceId 0 and 1. The constant source ignores it.

CountThreshold

U32 = 0
Edit documentation

The constant value for SourceId 2. The other sources ignore it.

SourceId

U8 = 0
Edit documentation

Selects the values of the source, as in the table above.

objectives

U32 = 0
Edit documentation

A bit mask of the objective types to count. The count is the sum over the set bits.

Bit Objective
0x1 Baron Nashor
0x2 Rift Herald
0x4 Voidgrubs
0x8 Dragons

Higher bits count nothing.

Referenced by 1 class · 2 properties