NPC Schedules
Estimated reading time: 3 minutesOverview
The NPC schedule system lets mod authors define when and where NPCs appear: fixed times, condition-based locations, and special schedules with priority and dependencies.
Register schedules via maplebirch.npc.addSchedule or maplebirch.npc.addNPCSchedule.
Concepts
Schedule Types
- Fixed-time: NPC is at a given location at a specific time or time range.
- Condition-based: Location depends on game state, time, weather, etc.
- Special: Schedules with dependencies and priority (e.g. override, before/after).
Core Components
- ScheduleTime: Time (hour or range).
- ScheduleCondition: Condition function.
- ScheduleLocation: Location (string or function).
- SpecialSchedule: Options for override, before, after, etc.
