Skip to content

End a scheme when the target dies or leaves

A scheme stops, with the result you choose, when its target dies or leaves the game.

  1. Open the scheme’s settings and find the Requirements section.
  2. Turn on Ends if target is gone. When the target dies or is removed, the scheme ends with No Result. Ends if conspirator is gone does the same for the Conspirator.

A scheme made in the Studio starts with both on.

One made before keeps what it had.

  1. In Requirements, click Add requirement, name it, for example Target is alive, and add the condition and a Reason.
  2. Set Counts to While it runs, or to To start and while it runs.
  3. Set If it breaks:
If it breaks What happens
Run its output The requirement’s output runs. The other flows go on.
Stop everything, then run its output Every flow stops first, then the output runs.
  1. On the canvas, add When a Requirement Breaks. It has one output for each requirement that counts while the scheme runs, named like the requirement.
  2. Link the output of your requirement to Fail Scheme, to Succeed Scheme, or to a dialogue first.

The demo scheme Offer a Token does this: its requirement Target is alive counts both ways and stops everything when it breaks, and in its When a Requirement Breaks node the output Target is alive leads to a Fail Scheme node, which sets the result and lets the closing flow run.

A requirement reacts once, when it stops being met. After one that stops everything, no other flow runs, and then the output runs.

The End flow is not stopped by a broken requirement, so the closing nodes still run. End takes the output that matches the result, On Failure after a Fail Scheme.

  • The output never runs. The requirement counts To start only, which never breaks while the scheme runs. The node’s card warns.
  • Two requirements break in the same check. If one of them stops everything, the output of one that only runs its output does not run in that check.
  • The result is No Result. The switch ends the scheme without one. Use a requirement and Fail Scheme when the story needs a failure.
  • No target. With Target Not Required on and no target, Ends if target is gone does nothing.