NPC Clothes
Estimated reading time: 3 minutesOverview
The NPC clothing system has three related subsystems for different use cases:
- Vanilla NPC clothes (
addClothes) — In-game interaction (undress, inspect, damage, etc.) - NPC sidebar default clothes (
Sidebar.config) — What the NPC wears in the sidebar - NPC Wardrobe — Outfit changes by location and conditions
Register vanilla NPC clothes via maplebirch.npc.addClothes or maplebirchFrameworks.addNPCClothes.
Vanilla NPC Clothes (VanillaClothes)
Purpose
Handles in-game clothing interactions (undress, inspect, damage). These outfits are used in NPC dialogue, events, and interactions.
Usage
Storage
NPC Sidebar Default Clothes (Sidebar.config)
Purpose
Defines how the NPC looks in the sidebar: body, head, face, neck, upper, lower, legs, feet, hands, etc.
Format
JSON and YAML are supported:
boot.json
Conditions
NPC Wardrobe
Purpose
Switches NPC outfit by location, time, or events (e.g. school uniform at school, casual at cafe after work).
Concepts
- Outfit definition: A full set of clothes.
- Location registration: Wear a given outfit at a given location.
- Conditions: Optional extra conditions.
- Priority: Location-specific overrides global default.
