Condition_HasSharedContext
Description
Checks whether the BaseObject owns an active S1 Context in which the NonBaseObject takes the S2 role, and the NonBaseObject also owns an active Context made by the same incident in which the BaseObject takes part. Use it for interactions that need both characters to know the same event, such as confronting a spouse caught cheating. A character who saw the same scene but is not in the S1 Context does not count. When the script has no NonBaseObject or the NonBaseObject is the BaseObject itself, no Context is shared: Equal is false and NotEqual is true, so NotEqual always passes in Scripts without a Target, such as the Step triggers of the owner's own role. A Context whose Lifetime is over but has not been cleaned up yet does not count, and ended Contexts never count. S2 names the NonBaseObject's role. Validation cannot tell which role the BaseObject owns, so writing the owner's own role in S2 passes validation but never matches.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character who must own the S1 Context (Self or Target). |
| CompareType | Equal: such a Context exists; NotEqual: it does not. |
| S1 | ContextId of DA_Context that the BaseObject owns. |
| S2 | Role of the NonBaseObject in that Context: Subject, Counterpart or Witness. |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Self confronts Target, the spouse caught cheating | Self | HasSharedContext | Equal | Context_AffairWitness_Spouse | Subject |
| Self, the cheater, makes excuses to Target, the witness | Self | HasSharedContext | Equal | Context_AffairCaught_Spouse | Witness |