1_Time Cycles & NPCs

Overview

TCoM utilizes a soft time based day/night cycle consisting of several phases that impact weather, charater routines, event availability, and lighting.

Phases

Each day is a 24-hour cycle split into 5 non-uniform phases. Minutes advance by increments of 15 and have no effect on routines other than to display when hourly changes are close. Routines and weather rolls revolve around these phases.

Weather

Weather rolls occur at each phase transition. Rolls consider:

Weather Influences

Weather affects:

NPC Schedules

NPCs follow a multi-layer scheduling system

Schedules adapt dynamically based on:

Personality Models

NPCs either Spawn with a randomly generated personality or use preset archetypes with variations. (Part of Stats & Skills)

Personality affects:

Behavior Blocks

Schedules are built out of modular instructions (behavior blocks) that tell an NPC how to act under specific conditions.

Traveling

NPC selects a destination and pathfinds using a method of travel dependent on personality, weather, and distance.

Traveling ends when the NPC reaches their destination.

Work

NPC performs occupation-related tasks during work hours.

Examples:

Work blocks may contain idle loops (animations + roaming) as well as interrupts (player / NPC interaction, routine changes, special events) Part of 3_Activities

Free Time

NPC chooses an activity based on:

Examples:

Part of 3_Activities

Roaming

Used when NPCs don’t have a specific goal

Interior Behavior

NPCs follow special logic indoors:

Social Behavior

Social behavior is dependent on an NPCs social skills. (Part of Stats & Skills)

NPCs may:

If the player approaches:

NPC Outfits

NPC outfits are chosen once per day, on waking.

Outfits are influenced by:

A character has:

Favored clothing items are generated at random at the start of each game save. When rolling for an outfit, favored clothing items have higher weight to be selected. Protagonist characters have predefined signature outfits that have the highest chances of being selected each day.

Special event outfits are either predefined per character (protagonist characters), or are also randomly selected from an outfit pool. NPCs will not have a favored special event outfit table.