Wait For Trigger
Wait For Trigger
True
False
Timed Out
- Group
- Events
- In the node menu
- Events › Triggers & Signals › Wait For Trigger
- Where it can be used
- Scheme graphs
What it does
Section titled “What it does”A Wait For Trigger node holds the flow until a trigger with its name is fired. It continues through True or False, the value the trigger was fired with.
A trigger can be fired for the scheme or on one actor. Listen On says which kind this node waits for. Give it a Timeout and it continues through Timed Out when the time runs out.
Without a timeout, it waits for as long as it takes, which can be forever.
Example
Section titled “Example”Wait For Trigger
Waits for "HeirClue"
on Conspirator
True
False
Timed Out
When to use it
Section titled “When to use it”Use it to let one part of a scheme, or another scheme, tell this one that something happened. Pair it with Fire Trigger. On an actor, a trigger also reaches other schemes that listen on that actor.
Use Wait Until instead when you wait for a condition to be met.
Good to know
Section titled “Good to know”- A trigger fired before the node starts waiting is lost to it. Fire it only once the listener is already there, or the listener misses it.
- While the scheme is paused, only the first trigger is kept and handled at the resume.
- Names must match exactly. Case counts.
- With Timeout at 0 and Timed Out linked, the card warns that Timed Out never runs.
- Stop Wait can stop it. With Let It Go On, it continues through True.
- With an actor chosen and not available, the flow stops here.
- With no trigger name, the card shows an error.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Listen On | Scope |
| "Scheme" | This Scheme: triggers fired for this scheme, or for the whole game from code. An Actor: triggers fired on that actor. |
| Actor | Actor | ActorRef | "Conspirator" | Shown if Scope = Actor The actor whose trigger is awaited. |
| Trigger | TriggerName | text | "" | Name of the trigger to wait for. |
| Timeout | Timeout | number | 0 | Seconds of game time (paused with the scheme) before Timed Out runs. 0 waits without a time limit.
|
Outputs
Section titled “Outputs”- True
- False
- Timed Out
In a draft
Section titled “In a draft”"type""Wait For Trigger""set"keysScope,Actor,TriggerName,Timeout"then"keys"True","False","Timed Out"
"<alias>": { "type": "Wait For Trigger", "then": { "True": "<alias>", "False": "<alias>", "Timed Out": "<alias>" }}