Skip to content

ContextualActionUserFactAction

16.11

Class Documentation

Edit documentation

An action that records a user fact for the unit: the hash FactName, the game time and, optionally, a unit. The component of the unit keeps the last 128 facts; a new fact replaces the oldest one. Two conditions read the log: ContextualConditionUserFactCount counts a fact within a time window, and ContextualConditionUserFactSequence tests a list of facts within a time window.

The fact goes into the log of the unit whose situation runs the action. This also holds when the action is in a GlobalContextualActionData. The action runs from ordinary situations and emotes, not from chained situations (see IContextualAction).

Properties

FactName

Hash = "0x0"
Edit documentation

The fact to record. It is an arbitrary hash that the conditions compare. If it is 0, the action records nothing and fails.

Subject

Option<U8> = null
Edit documentation

The unit to record with the fact, as a unit selector value (see ICharacterSubcondition). When it is unset, or when the selector resolves no unit, the fact has no unit, and it matches every unit filter of the conditions.

Referenced by 1 class · 1 property