ブログ
Building Believable NPCs with Hierarchical AI Systems
How we combine behavior trees, utility AI, and large language models to create non-player characters that feel genuinely alive in our upcoming titles.
One of the most persistent challenges in game development is creating NPCs that players actually care about. Traditional scripted dialogue and fixed behavior patterns have served the industry well, but they inevitably break the illusion of a living world.
Our approach at Enpo Sekai uses a three-layer architecture: a behavior tree handles moment-to-moment decisions, a utility AI system evaluates long-term goals and priorities, and a language model generates contextually appropriate dialogue that reflects the NPC's current emotional state and relationship with the player.
The key insight is that each layer operates at a different temporal scale. The behavior tree thinks in frames, the utility system thinks in minutes, and the language model thinks in narrative arcs. This separation of concerns allows each system to do what it does best without overwhelming the others.
Early playtesting results have been promising — testers consistently report that NPCs feel "unpredictable but consistent," which is exactly the sweet spot we are targeting. We will share more technical details as we get closer to our first public demo.