Skip to content

ContextualConditionUserFactSequence

16.11

Inheritance 1 ancestor · 62 siblings

Class Documentation

Edit documentation

A condition that tests whether every fact in UserFacts was recorded on the unit within the last TimeWindow seconds, and optionally in list order. ContextualConditionUserFactCount describes user facts and the unit filter of CharacterType. This condition uses the same filter.

The condition fails when UserFacts is empty, or when the unit holds fewer facts than the list has entries. Each entry of the list needs its own recorded fact inside the window. A hash that appears twice in the list needs two recorded facts.

  • When CheckChronologicalOrder is true, the recorded facts must occur in list order: the first entry matches the oldest fact and the last entry matches the newest.
  • When it is false, the order does not matter.

Properties

CharacterType

Option<U8> = null
Edit documentation

The unit of the filter, chosen with the unit selector table on ICharacterSubcondition. A fact that was recorded with a different unit does not match.

CheckChronologicalOrder

Bool = true
Edit documentation

Requires the facts to occur in the order of UserFacts.

TimeWindow

F32 = 8
Edit documentation

Age limit, in seconds. Facts recorded more than TimeWindow seconds ago do not match.

UserFacts

List2<Hash> = []
Edit documentation

The fact hashes to find. Each hash is the FactName of the action that records the fact.