On Accomplice Left
On Accomplice Left
Died
Left
- Group
- Events
- In the node menu
- Events › On Accomplice Left
- Where it can be used
- Scheme graphs
- Tags
What it does
Section titled “What it does”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.
Example
Section titled “Example”On Accomplice Left
Died
Left
When to use it
Section titled “When to use it”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.
Good to know
Section titled “Good to know”- 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.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Store In | StoreIn | Store In (Actor) | not in the data | A 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.
|
Outputs
Section titled “Outputs”- Died
- Left
In a draft
Section titled “In a draft”"type""On Accomplice Left""set"keysStoreIn"then"keys"Died","Left"
"<alias>": { "type": "On Accomplice Left", "then": { "Died": "<alias>", "Left": "<alias>" }}