Execute_AddContextStep
Description
Adds F1 to the Progression of the S1 Context the BaseObject takes part in as the S2 role, picked the same way as HasContext, up to the Context's number of Steps. Progression N opens the Nth Step, so F1 = 1 moves a Context opened by Progression one Step up; a Step already reached by time may stay. It never creates a Context, so nothing happens when none matches. Every matched Context grows. The Step is recalculated on the next Context update while the Context is Main, and its triggers run then.
With {SelectedContext} in S1, it grows only the Context the Self picked on the incident talk menu item of the running interaction: a Context the Self owns, the Target takes part in, and that has an context name. BaseObject and S2 are not used, and S2 must be empty. Nothing happens when the interaction has no picked Context or the picked Context has ended or expired before the script runs; no other Context grows in its place.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character whose role is checked (Self or Target). Not used with {SelectedContext}. |
| S1 | ContextId of DA_Context, or {SelectedContext} for the Context picked on the talk menu item. |
| S2 | Role name, the same as HasContext. Leave empty with {SelectedContext}. |
| F1 | Progression to add. An integer of 1 or more. |
Examples
| Description | BaseObject | Command | S1 | S2 | F1 |
|---|---|---|---|---|---|
| Self (the subject, who cheated) ignores the caller's call | Self | AddContextStep | Context_AffairWitness_Spouse | Subject | 1 |
| The incident talk Self picked ends, so its picked Context grows | Self | AddContextStep | {SelectedContext} | 1 |