Skip to main content

Condition_HasContext

Description

Checks whether the BaseObject takes part, in the S2 role, in an active S1 Context. When the script has a NonBaseObject, it must also take part in that Context in any role. A Context whose Lifetime is over but has not been cleaned up yet does not count, and ended Contexts never count.

Parameters

ParameterDescription
BaseObjectThe character whose role is checked (Self or Target).
CompareTypeEqual: takes part in a matching Context; NotEqual: does not.
S1ContextId of DA_Context.
S2Role name, the same in every Context: Subject, Counterpart or Witness.

Examples

DescriptionBaseObjectCommandCompareTypeS1S2
Self is the subject (the cheater) in Target's Context (show apology)SelfHasContextEqualContext_AffairWitness_SpouseSubject
Self is the counterpart (affair partner) in a Context Target takes part inSelfHasContextEqualContext_AffairWitness_SpouseCounterpart
The witness's own trigger script runs only while Self still owns the ContextSelfHasContextEqualContext_AffairWitness_SpouseWitness