Skip to content

Wait

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

A Wait holds the flow for a length of game time, then goes on through Out. The length can be seconds, days, months or years. It can also be a random length between two values, or a moment of the calendar such as the next season.

Only the flow that reached the Wait stops. The rest of the world keeps going, and the wait does not count while the scheme is paused.

The waitGarden node of the demo scheme Garden Courtship (Drafts/schemes/05-garden-courtship.json): a Wait with Length 14 and Unit Days.

Use it for a pause between two beats: a letter on its way, a season of mourning, a siege that takes a month. Turn on Until Stopped when the end of the wait is decided by something else, and end it with a Stop Wait node.

Use Wait Until instead when the wait should end because a condition became true. Use Wait For Trigger when it should end because something fired a named trigger. Read Days, calendar and game speed for how days pass in the world.

  • A wait in days counts the start of each day. A paused scheme does not count the days that pass meanwhile.
  • A wait in months, or until the next month, the next season or a date, needs the world’s calendar. Without one, the card warns that the wait counts days instead. A wait in years and The Next Year work without one.
  • With Until on a date that has passed, the wait goes on at once.
  • With Random Length, the length is picked again each time the node runs.
  • Progress At The End only works for a wait in days, months or years. A wait in seconds or until a calendar moment never touches the progress, and the card says so.
  • A wait that is Until Stopped with no Stop Wait aimed at it holds the scheme until the scheme ends. The card warns about it. A draft check reports a wait nothing can end (A-WAIT-FOREVER).
  • When Out is linked and no Stop Wait aimed at the wait has Let It Go On on, Out never runs, and the card warns.
LabelDraft keyTypeDefaultShown if, tooltip and notes
LengthSecondsnumber1

Shown if UntilStopped is false

The length in the chosen Unit. It does not count while the scheme is paused.
  • min 0
Until StoppedUntilStoppedboolfalseWait until a Stop Wait node stops this node.
Random LengthRandomLengthboolfalseWait a random time between Length and Up To, chosen each time the node runs.
Up ToMaxSecondsnumber2The longest wait, in the chosen Unit.
  • min 0
UnitUnit
  • Seconds
  • Days
  • Months
  • Years
"Days"

Shown if UntilStopped is false

Seconds of game time, or days of the game's calendar (rounded to whole days).
  • Days, Months, Years: Seconds and Up To count whole calendar days, months or years.
UntilWaitUntil
  • None (A Length)
  • NextMonth (The Next Month)
  • NextSeason (The Next Season)
  • NextYear (The Next Year)
  • Date (A Date)
"None"

Shown if UntilStopped is false

A length, or a moment of the world's calendar: the next month, season or year, or a date.
DateDateDateSetting{"Month":1,"Day":1}

Shown if WaitUntil = Date

The date to wait for. Year 0: the next time that day of the year comes. A date that has passed goes on at once.
Progress At The EndProgressAtEndinteger-1

Shown if UntilStopped is false and WaitUntil = None and Unit is Days, Months or Years

The progress the scheme shows when the wait ends (-1 leaves the progress alone). It fills day by day, so only a wait in days, months or years does it; a wait in seconds or until a calendar moment never changes the progress. A paused scheme does not fill, and a wait stopped early stays where it got to.
  • from -1 to 100
Date: the settings of each one
LabelDraft keyTypeDefaultShown if, tooltip and notes
YearYearinteger0
MonthMonthinteger0
DayDayinteger0
  1. Out
"type"
"Wait"
Presets (also a "type")
  • "Wait Random": sets RandomLength=true
"set" keys
Seconds, UntilStopped, RandomLength, MaxSeconds, Unit, WaitUntil, Date, ProgressAtEnd
"then" keys
"Out"
"<alias>": {
"type": "Wait",
"then": "<alias>"
}