Skip to content

ContextualConditionCharacterUnitTags

Class Documentation

Edit documentation

Character subcondition that compares the unit tags of a character with the set in mUnitTags. ObjectTags describes unit tags and where a unit's tags come from.

The condition does not choose the character itself. Its parent condition does: ContextualConditionCharacter evaluates it on the one character that its mCharacterType selects, and ContextualConditionAnyOtherHero evaluates it on each hero other than the unit that the situation belongs to, until one hero passes all its subconditions.

mTagMode selects the comparison.

Properties

mTagMode

U8 = 0
Edit documentation

How the character's tags are compared with mUnitTags.

Value Name Passes when Empty mUnitTags
0 kHasAll the character has every one of the tags passes
1 kHasAny the character has at least one of the tags fails
2 kHasNone the character has none of the tags passes

Any other value makes the condition fail.