Wait Until
Wait Until
Met
Timed Out
- Group
- Time
- In the node menu
- Time › Wait Until
- Where it can be used
- Scheme graphs
- Presets
What it does
Section titled “What it does”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.
Example
Section titled “Example”Wait Until
Until Age of MyChild ≥ 16 AND Age of TheirChild ≥ 16
OR MyChild is dead
OR 3 more groups (3 conditions)
Met
Timed Out
When to use it
Section titled “When to use it”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.
Good to know
Section titled “Good to know”- 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.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Conditions | Conditions | rows of ConditionData | not in the data | |
| Timeout | Timeout | number | 0 | Seconds of game time. No time limit (0): the node waits until the conditions are met.
|
Outputs
Section titled “Outputs”- Met
- Timed Out
In a draft
Section titled “In a draft”"type""Wait Until"- Presets (also a
"type") "Wait For Variable": setsConditions=[{"kind":"Variable"}]
"set"keysConditions,Timeout"then"keys"Met","Timed Out"
"<alias>": { "type": "Wait Until", "then": { "Met": "<alias>", "Timed Out": "<alias>" }}