Skip to main content

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

ParameterDescription
BaseObjectThe character whose role is checked (Self or Target).
S1ContextId of DA_Context.
S2Role name, the same as HasContext.

Examples

DescriptionBaseObjectCommandS1S2
The caller accepts the apology of Self (the subject, who cheated)SelfEndContextContext_AffairWitness_SpouseSubject
A Step trigger script lets go of the Context Self ownsSelfEndContextContext_AffairWitness_SpouseWitness