Design intelligent NPC behavior systems using behavior trees, utility AI, and state machines that create believable characters players genuinely react to.
Design a comprehensive AI and NPC behavior system for: Game Title: [GAME TITLE] Genre: [GENRE] NPC Types: [ENEMIES/COMPANIONS/CIVILIANS/BOSSES/ALL] AI Complexity Target: [SIMPLE PATTERNS/MODERATE/HIGHLY ADAPTIVE] Performance Budget: [MAX CPU PERCENTAGE FOR AI] Player Count: [SINGLE PLAYER/CO-OP/MULTIPLAYER] Develop the AI system across these sections: 1. AI Architecture & Decision Framework Define the core AI architecture choosing between behavior trees, finite state machines, utility AI, or a hybrid approach. Create the decision-making hierarchy from strategic goals down to individual actions. Design the perception system covering sight, sound, memory, and communication between AI agents. Build the knowledge representation system defining what each NPC knows and how they learn. Define the AI update frequency and level-of-detail system for scaling with distance. Create the debug visualization tools for tuning AI behavior during development. 2. Combat AI & Tactical Behavior Design the threat assessment system that evaluates player danger and selects appropriate responses. Create the positioning and cover system for enemies that use the environment intelligently. Build the group tactics coordinator that prevents all enemies from attacking simultaneously. Define the difficulty-adaptive behaviors that scale from telegraphed to punishing based on player skill. Create the retreat, flank, and ambush behaviors that make combat feel dynamic. Design the boss AI framework with phase transitions, special attacks, and pattern variation. 3. NPC Daily Life & World Simulation Architect the schedule system that gives NPCs daily routines tied to time of day and weather. Design the needs-based behavior system where NPCs eat, sleep, work, and socialize autonomously. Create the social interaction system where NPCs form opinions of each other and the player. Build the reactive dialogue system where NPCs comment on world events and player actions. Define how NPCs respond to environmental changes like weather, disasters, and time passage. Design the crowd and ambient NPC system for populating towns and cities efficiently. 4. Companion & Ally AI Design the companion following and positioning system that avoids blocking doorways and sight lines. Create the companion combat AI that supports the player's playstyle without stealing kills. Build the companion utility system for healing, buffing, and resource management assistance. Define the companion personality system where AI behavior reflects the character's traits. Create the companion command system allowing players to direct ally behavior. Design the companion pathfinding approach that handles complex terrain and verticality. 5. Navigation & Pathfinding Architect the navigation mesh generation strategy for static and dynamic environments. Design the dynamic obstacle avoidance system for moving entities and destructible terrain. Create the crowd steering and flow system for large groups moving through tight spaces. Build the contextual animation system that blends pathfinding with natural-looking movement. Define the off-mesh link system for jumps, climbs, ladders, and special traversal. Design the hierarchical pathfinding approach for large open-world environments. 6. AI Testing & Tuning Pipeline Create the AI behavior recording and replay system for debugging specific encounters. Design the automated AI testing suite that runs combat scenarios overnight. Build the AI metrics dashboard tracking success rates, decision distributions, and performance costs. Define the designer-friendly tuning interface for adjusting AI parameters without code changes. Create the player feedback integration system connecting AI complaints to specific behavior patterns. Design the AB testing framework for comparing AI behavior variants in playtests.
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[GAME TITLE][GENRE][MAX CPU PERCENTAGE FOR AI]