Skip to content

Wait Until

Group
Time
In the node menu
Time › Wait Until
Where it can be used
Scheme graphs
Presets
  • Wait For Variable

A Wait Until holds the flow until its list of conditions is met, then continues once through Met. If the conditions are already met when the flow arrives, it continues at once. The conditions are joined with AND and OR.

With a Timeout, the node gives up after that many seconds of game time and continues through Timed Out instead.

The grow node of the demo scheme Pledge the Young (Drafts/schemes/04-pledge-the-young.json): both children come of age, or one of them dies or marries. With more than three groups the card shows the first two and counts the rest.

Use it to wait for the world to change: a variable to reach a value, an age to come, a character to marry. The preset that starts with a Variable condition is the quick way to wait for a variable.

Use Wait instead when you know how long the delay should be. Use Wait For Trigger when something should fire a named trigger.

  • The conditions are checked every 0.2 seconds of game time. A paused scheme does not check, not even the first time.
  • A condition that has no answer, for example because its actor is missing, counts as not met yet. It may be met later.
  • With Timeout at 0 the node waits without a limit. If Timed Out is linked then, the card warns that it never runs.
  • With no condition at all, the card shows an error (“Add at least one condition.”).
  • Without a timeout, a Wait Until whose conditions can never come true keeps the scheme running for ever. A draft check reports it when it can prove that from the data (A-WAIT-FOREVER).
  • A Stop Wait can end it. With Let It Go On on, it continues through Met.
  • It only runs in scheme graphs.
LabelDraft keyTypeDefaultShown if, tooltip and notes
ConditionsConditionsrows of ConditionDatanot in the data
TimeoutTimeoutnumber0Seconds of game time. No time limit (0): the node waits until the conditions are met.
  • min 0
  • 0: "No time limit"
  1. Met
  2. Timed Out
"type"
"Wait Until"
Presets (also a "type")
  • "Wait For Variable": sets Conditions=[{"kind":"Variable"}]
"set" keys
Conditions, Timeout
"then" keys
"Met", "Timed Out"
"<alias>": {
"type": "Wait Until",
"then": { "Met": "<alias>", "Timed Out": "<alias>" }
}