🧑‍🌾 NPC Schema

Describes non-player characters in the game — their roles, behaviors, and interactions.

✅ Field Rules & Accepted Values

FieldTypeRequiredNotes
idstring✅ YesMust be unique
namestring✅ YesIn-game display
spritestring✅ YesPath to image/sprite
levelsnumber[]✅ YesLevel IDs where NPC appears
roleenum❌ NoPredefined behavior types
interactableboolean❌ NoDefault is true
interactionLimitnumber❌ NoMax interaction count
behaviorstring❌ Noe.g., 'give_quest_on_talk', 'unlock_item'
spawnIfobject❌ NoAppears only if conditions met
dialogIdstring❌ NoFor connecting to dialog later
soundobject❌ NoOptional FX triggers
questsstring[]❌ NoQuest IDs this NPC provides
itemsForSalestring[]❌ NoIf vendor, what items they sell