Execute_EndContext
Description
Ends the S1 Context the BaseObject takes part in as the S2 role, picked the same way as HasContext, and moves it to the Context history with the Resolved reason. Use it where content settles the Context, such as an accepted apology. Every matched Context ends. When the script runs inside that Context's own Step trigger, the remaining triggers of the Step do not run. Does nothing when no Context matches.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character whose role is checked (Self or Target). |
| S1 | ContextId of DA_Context. |
| S2 | Role name, the same as HasContext. |
Examples
| Description | BaseObject | Command | S1 | S2 |
|---|---|---|---|---|
| The caller accepts the apology of Self (the subject, who cheated) | Self | EndContext | Context_AffairWitness_Spouse | Subject |
| A Step trigger script lets go of the Context Self owns | Self | EndContext | Context_AffairWitness_Spouse | Witness |