
NLNPC
Natural Language NPC
NLNPC allows you to use LLM's to create complex and configurable behavior trees based on your own modular scripts without having to build the trees yourself
↓








NLNPC provides a simple framework to build modular "senses" and "actions". These senses and actions are used in conjunction with a natural language prompt to the LLM of your choice to then generate a behavior tree that can respond to stimuli, perform actions, and repeat as necessary.
This way, instead of spending time creating several different specific scripts for different behaviors in your NPC's, just create your set of senses and actions and then provide the LLM with the different ways you want that particular NPC to behave. Reusing the same scripts, you can create an NPC who's cautious and hides first and only attacks when provoked, or one that is reckless and always attacks on sight, just by explaining in natural language the different priorities and providing the appropriate scripts. If you request a behavior that requires additional actions or senses, the tool does its best to tell you what else is required to accomplish it.
## Key Features
- Natural Language to Behavior: Write "Patrol between points, but chase players if visible" and get a complete behavior tree
- Component-Based Architecture: Create reusable IAction and ISense components
- Visual Behavior Tree Editor: Built-in visualizer shows tree structure and real-time execution
- Editor-Only Generation: Zero runtime performance cost - all generation happens in editor
- Intelligent Feedback: Get guidance when requesting behaviors that need additional components
- Comprehensive Examples: Includes guard patrol and resource gatherer sample implementations
## Perfect For
- Indie developers who want sophisticated AI without complex programming
- Teams looking to rapidly prototype NPC behaviors
- Developers who prefer natural language over visual node editors
- Projects requiring maintainable, readable AI logic
## Technical Requirements
- Unity 2022.3 or later
- Requires API key for LLM service (OpenAI compatible)
- .NET Standard 2.1 compatible
## What's Included
- Complete NLNPC runtime and editor scripts
- Comprehensive documentation and behavior tree guide
- Sample implementations (Guard Patrol, Resource Gatherer)
- Visual behavior tree debugger
- Ready-to-use Action and Sense components
## Support
Full documentation included with step-by-step setup guide and advanced usage patterns.