An NPC SDK with visit scheduling, branching stories, 18 customer subsystems and automatic portrait registration.
Contents
Custom NPC Framework is a foundational library for Probably Stolen mod developers, supporting custom shop customers, multi-day branching stories and game event integrations without additional permissions.
SDK features
- NpcFrameworkSdk.cs can be included as a single source file without an assembly reference or extra Capabilities.
- Five customer generation phases from VeryEarly to VeryLate, with priorities, day windows, cooldowns, once-per-save flags and spawn restrictions.
- Per-save storyline state uses PlayerStore.ModData() and the cnpcf_ key namespace.
- Eighteen subsystems cover buying and selling, wholesale bundles, barter, multi-day orders, in-game gunsmith orders, defect and authenticity checks, scales and counters, notes, terminal requests, phone contacts, newspaper headlines and afterhours events.
- Automatic registration of 288×211 PNGs from Textures/ into SpriteDict. The developer panel can summon NPCs for testing and reset mod-specific save progress.
Documentation
The developer manual covers architecture, API, all 18 subsystems and integration workflows. This is a beta framework; enable it and its dependent add-on in Mods and restart the game.



![Custom NPC Framework [Beta] — NPC and Storyline SDK for Probably Stolen](/media/covers/2026/12/bbc2605220304677.webp)
Comments 0
No comments yet — be the first.