CharacterType
Option<U8> = null The unit of the filter, chosen with the unit selector table on ICharacterSubcondition. A fact that was recorded with a different unit is not counted.
A condition that counts recent user facts of the unit and compares the count with
Count.
A user fact is a hash that a ContextualActionUserFactAction records on the unit, together with the game time and, optionally, a unit. Each unit keeps its last 128 facts. A new fact replaces the oldest one.
The condition walks the facts from the newest to the oldest. It stops at the first fact
that is older than TimeWindow seconds. It counts the facts whose hash equals
UserFact and that pass the unit filter. Then it tests count <op> Count.
The unit filter uses CharacterType. A fact passes the filter when it was recorded
without a unit, or when its unit is the unit that CharacterType selects. If
CharacterType selects no unit, every fact passes the filter.
Option<U8> = null The unit of the filter, chosen with the unit selector table on ICharacterSubcondition. A fact that was recorded with a different unit is not counted.
U8 = 0 How the count is compared with Count: the test is count <op> Count. The operator table is on IContextualCondition.
U32 = 1 The number that the count of matching facts is compared with.
F32 = 8 Age limit, in seconds. Facts recorded more than TimeWindow seconds ago are not counted.
Hash = "0x0" The fact hash to count: the FactName of the action that records the fact.