Skip to content

Days, calendar and game speed

A world needs time. Plots wait, characters grow older, a feast comes round every year. In Intrigues the unit of time is the day. The game’s calendar counts the days that have passed since the game began, and everything slower than a second is measured in them.

The setting Days pass has two choices.

  • By themselves. The calendar moves on while the game plays, one day every so many seconds of game time.
  • When the game says so. The calendar moves only when a scheme or your code moves it on.

The default is When the game says so. Nothing ages and no day-long wait ends until something advances the calendar. The Advance Days node does it from a scheme, and your code can do it too.

Advance Days: the world moves a number of days on. Each day is finished before the next one starts.

The length of a day, A day lasts (seconds), is used only when days pass by themselves. Its default is 2.

When days pass by themselves, they can go faster or slower. Days pass at sets the step the days run at, and a scheme changes it with Set Game Speed. There are five steps: Paused, Slow, Normal, Fast and Fastest. By default they run at 0, ×0.5, ×1, ×2 and ×5 times the Normal pace. You can change each multiplier in Speed steps (× Normal).

A step changes the day clock only, so animations and waits in seconds keep their pace. The node Set Game Speed sets a step, pauses the days, or lets them go on at the speed they had before the pause.

Set Game Speed. The step only matters while days pass by themselves.

The setting Days pause while a dialogue waits stops new days from starting by themselves while a player has a waiting scheme dialogue open. Days that a node or your code advances still pass.

A year has (days) says how long a year is. The default is 360. With a calendar of months, the months decide: the year is the sum of their days.

Characters grow a year older each year is off by default. When it is on, each living character grows a year older once a year, on a day of the year of its own. That day is fixed for the whole game, so the birthdays are spread over the year. When it is off, ages change only when your game changes them.

With no months, the game only counts days. A Calendar block turns the count into dates:

  • Months, each with a name and a number of days.
  • A week, with weekday names, and the weekday a new game starts on.
  • Seasons, each holding some months.
  • The date a new game starts on.

Use a preset fills them in from a ready calendar: No calendar, Simple: 12 months of 30 days, Like our calendar: January to December, a week, four seasons, or Four seasons of three months. How dates are written has three formats: Date, Short date and Year (era).

Texts can then show {world.Date} and {world.Season}, and an actor’s {target.Birthday}. Texts are covered in Texts, tokens and pacing.

The button Use the usual settings on the Behaviour page puts every other setting there back to its usual value: one day every 2 seconds, a new seed every game, Days pass at Normal with the usual speed steps, and the usual values for how characters think, the opinion range and the clans. It also switches Characters think for themselves off. How days pass, the year, ageing and the calendar stay as they are.

The calendar settings (Days pass, A year has (days), ageing and the Calendar block) are chosen once for the world, on Home > Settings. The day length, the speed steps and the dice seed are on the Behaviour pages, under Settings. See Home.

These nodes work with the calendar.

Node What it does
Wait Waits seconds, or days, months or years. It can also wait until the next month, the next season, the next year, or a date
Advance Days Moves the calendar on
Set Game Speed Changes the speed, or pauses
On Date Runs when a month, a season or a year begins
Check Date Asks about today’s date: a month, a season, a weekday, on or after a date, before a date, or a day of the month
Start
Wait
Wait 30 days
Wait
Wait until the next season
  • Start, output Start, goes to Wait.
  • Wait goes to Wait.
A scheme that waits 30 days, then waits until the next season. The Wait node's Unit is Days in the first card.
On Date is an entry node. It runs while the scheme runs, each time a new year begins.

An On Date for a month or a season never runs in a world with no calendar. When one comes while the scheme is paused, it runs once when the scheme resumes.

A wait in seconds counts game time and does not count while the scheme is paused. A wait in days needs days to pass, so with When the game says so, it ends only after the calendar has been moved on. A Wait you add now starts in days. A node you made earlier keeps its unit. With When the game says so, the Reads as paragraph of a wait in days says: Days pass only when the game advances the calendar (Advance Days, or WorldClock.Advance from code). Change this in the world’s time settings.

When a day passes, this happens in a fixed order:

  1. The day number goes up.
  2. Characters age, if ageing is on.
  3. Waits that count days take the day. Those that end that day go on.
  4. Characters think. See Characters that think.

A busy day can take more than one frame: at most 30 days pass in one frame, and the rest wait for the next frames. The setting Decisions per frame spreads the characters’ decisions of a busy day over frames, and 0 does a whole day in one frame.

Characters that think, or Chance, dice and seeds.