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
| Parameter | Description |
|---|---|
| BaseObject | The character whose role is checked (Self or Target). |
| CompareType | Equal: takes part in a matching Context; NotEqual: does not. |
| S1 | ContextId of DA_Context. |
| S2 | Role name, the same in every Context: Subject, Counterpart or Witness. |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Self is the subject (the cheater) in Target's Context (show apology) | Self | HasContext | Equal | Context_AffairWitness_Spouse | Subject |
| Self is the counterpart (affair partner) in a Context Target takes part in | Self | HasContext | Equal | Context_AffairWitness_Spouse | Counterpart |
| The witness's own trigger script runs only while Self still owns the Context | Self | HasContext | Equal | Context_AffairWitness_Spouse | Witness |