Skip to content

On Accomplice Left

Group
Events
In the node menu
Events › On Accomplice Left
Where it can be used
Scheme graphs
Tags
  • No input

An On Accomplice Left node starts a new flow when an accomplice leaves the running scheme. It continues through Died when the accomplice died, and through Left when a node or game code took them out, or they were destroyed.

The one who left goes into the variable you pick in Store In.

The On Accomplice Left node of the demo scheme Quiet Ending (Drafts/schemes/08-quiet-ending.json). The draft does not list Leaver among its variables, so the build declares it as an Actor variable of the scheme. Died and Left both lead to a Set Variable node that subtracts 8 from Help.

Use it to react when the cast shrinks, such as lowering a help counter. The demo scheme Quiet Ending links both outputs to the same Set Variable node.

To take someone out yourself, use Remove From List with the Accomplices list.

  • An accomplice who dies leaves through Died, unless the scheme says that dead accomplices stay.
  • When the accomplice is destroyed, nobody is stored: the variable is emptied.
  • The nodes after it keep reading the accomplice who started their flow, even when another one leaves meanwhile.
  • The accomplices let go when the scheme ends do not run it, and once its End flow has begun it no longer runs.
LabelDraft keyTypeDefaultShown if, tooltip and notes
Store InStoreInStore In (Actor)not in the dataA scheme Actor variable that gets the accomplice who left. It is emptied when they are no longer in the game. The nodes after this one keep reading this accomplice even if another one leaves meanwhile. The variable itself holds the latest.
  • none: "Nowhere"
  1. Died
  2. Left
"type"
"On Accomplice Left"
"set" keys
StoreIn
"then" keys
"Died", "Left"
"<alias>": {
"type": "On Accomplice Left",
"then": { "Died": "<alias>", "Left": "<alias>" }
}