On Accomplice Joined
On Accomplice Joined
- Group
- Events
- In the node menu
- Events › On Accomplice Joined
- Where it can be used
- Scheme graphs
- Tags
What it does
Section titled “What it does”An On Accomplice Joined node starts a new flow each time an actor becomes an accomplice of the running scheme. It does not matter whether a node or game code added them.
The new accomplice goes into the variable you pick in Store In, so the nodes after it can act on that person.
Example
Section titled “Example”On Accomplice Joined
When to use it
Section titled “When to use it”Use it for what an accomplice’s arrival should cause, such as raising a help counter. The demo scheme Quiet Ending does that with a Set Variable node.
To add accomplices yourself, use Add To List with the Accomplices list.
Good to know
Section titled “Good to know”- Accomplices given when the scheme starts do not run this node. Meet them from Start.
- The nodes after it keep reading the accomplice who started their flow, even when another one joins meanwhile. The variable itself holds the latest.
- If the accomplice is no longer in the game when the node runs, the flow stops there.
- Once the scheme’s 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 new accomplice, so the nodes after this one can pick them. Those nodes keep reading this accomplice even if another one joins meanwhile. The variable itself holds the latest.
|
Outputs
Section titled “Outputs”- Joined
In a draft
Section titled “In a draft”"type""On Accomplice Joined""set"keysStoreIn"then"keys"Joined"
"<alias>": { "type": "On Accomplice Joined", "then": "<alias>"}