Skip to content

End

Group
Flow
In the node menu
Flow › End
Where it can be used
Scheme graphs
Tags
  • No input
  • One per graph
  • Cannot be created by hand

End runs once no flow is left in the scheme. Flows after a Run In Background do not count, and they end when End starts. It starts the nodes linked to Always first, and only then the nodes of the output that matches the result of the scheme. When those flows have finished, the scheme is over. Because the Always flows can still change the result, a Succeed Scheme or Fail Scheme placed there decides the outcome before the matching output is read.

The End node of the demo scheme Court Favour (Drafts/schemes/01-court-favour.json). Its On Success output leads to an announcement that tells the player the favour was won, and its On Failure output leads to a second announcement for the other case.

Put the closing message and the final consequences here, so that every path that set the result tells the player the same way. Set the result with Succeed Scheme or Fail Scheme.

Use Start instead for what should happen as the scheme begins.

  • End has no input. It runs by itself, and you cannot add, delete or copy it.
  • The result is read after the Always flows have finished, because they can still change it.
  • When no node set a result, the No Result output runs, and a scheme that ends this way still tells game code that it ended.
  • The scheme is not checked against its requirements once End runs.

This node has no settings.

  1. On Success
  2. On Failure
  3. No Result
  4. Always
Alias
Every scheme has it already. A draft writes it only as "end", without "type".
"then" keys
"On Success", "On Failure", "No Result", "Always"
"end": {
"then": { "On Success": "<alias>", "On Failure": "<alias>", "No Result": "<alias>", "Always": "<alias>" }
}