NPCs
Features
Encounters
- Chance: ~1% every 48 hours (in populated biomes like Roads/Settlements)
- Disposition:
- Friendly (50%): Willing to trade or chat
- Hostile (50%): Will attack on sight or demand tribute
Interactions
- Chat: Get rumors, small talk (16 different conversation options in code)
- Trade: Barter goods using item value system (100+ items with defined values)
- Recruit: Chance to ask them to join you (if Friendly and high Rep/Charisma)
Settlement NPCs
- Roles: Residents have fixed roles unlike random wanderers:
- Trader: Buys/sells goods (inventory refreshes weekly).
- Healer: Provides medical treatment and sells medicine.
- Guard: Protects the settlement; high combat stats.
- Craftsman: Can create items if given materials.
- Farmer/Scout: Contribute to settlement prosperity.
- Behavior: Permanent residents; do not despawn.
- Services: Offer specialized services (bulk trading, healing) unavailable from random encounters.
Details
NPC Constants
- Encounter rate: 1% per 48 hours
- Friendly/hostile chance: 50/50
- Companion duration: 7 days when recruited
- Flee mechanics: 10% drop chance when hostile NPCs flee
- Personality traits affect disposition (friendly trait: 75% friendly chance, hostile trait: 30%)
Trading System
- Complete item value database for bartering
- Values assigned to food, materials, tools, seeds, and special items
Game State
- NPC settlements tracking
- Reputation system
- Quest system framework
- Companion management
- Barter economy (dynamic NPC needs)
Names
Common names you might see:
- Male: Alex, Benjamin, Carlos, David, Erik, Felix, Gabriel, Henry, Isaac, Jack, Kyle, Lucas, Marcus, Nathan, Oliver, Peter, Quinn, Ryan, Samuel, Thomas, Victor, William, Xavier, Zachary
- Female: Anna, Beth, Clara, Diana, Emma, Fiona, Grace, Hannah, Iris, Julia, Kate, Laura, Maria, Nina, Olivia, Paula, Rachel, Sara, Tara, Uma, Violet, Wendy, Yasmin, Zoe