Skip to content

Wait For Trigger

Group
Events
In the node menu
Events › Triggers & Signals › Wait For Trigger
Where it can be used
Scheme graphs

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.

The listener of the demo scheme The Hollow Heir (Drafts/schemes/sys-hollow-heir.json). The demo scheme Ears in the Hall fires the same trigger on its own conspirator, so this node hears it only when that is the same actor.

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.

  • 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.
LabelDraft keyTypeDefaultShown if, tooltip and notes
Listen OnScope
  • Scheme (This Scheme)
  • Actor (An Actor)
"Scheme"This Scheme: triggers fired for this scheme, or for the whole game from code. An Actor: triggers fired on that actor.
ActorActorActorRef"Conspirator"

Shown if Scope = Actor

The actor whose trigger is awaited.
TriggerTriggerNametext""Name of the trigger to wait for.
TimeoutTimeoutnumber0Seconds of game time (paused with the scheme) before Timed Out runs. 0 waits without a time limit.
  • min 0
  1. True
  2. False
  3. Timed Out
"type"
"Wait For Trigger"
"set" keys
Scope, Actor, TriggerName, Timeout
"then" keys
"True", "False", "Timed Out"
"<alias>": {
"type": "Wait For Trigger",
"then": { "True": "<alias>", "False": "<alias>", "Timed Out": "<alias>" }
}