This is a project documenting the journey of learning and mastering fundamentals and core concepts through practical implementation exploring Unreal Engine's State Tree system for AI behaviors, quest systems, and advanced gameplay logic.
Project Status: โ Completed
- Description
- Objectives
- Purpose
- Related Projects
- Project Roadmap
- Future Vision
- Development Notes
- Repository Structure
- Technologies
- Contents
- Learning Resources
- License
- Q & A
StateTreeAI is a learning and research project created to explore and master the State Tree system through practical examples.
Built in Unreal Engine 5.6 using C++ and Blueprints, the project features a testing environment to experiment with various State Tree implementations for AI, quests, and complex gameplay systems.
- Experiment with the State Tree system
- Implement AI behaviors using State Trees
- Create a quest system leveraging State Tree logic
- Test new implementations and code patterns
- Build a collection of working examples for practical use
This repository serves as:
- A personal learning journey through State Trees
- A reference for implementing State Tree features
- A collection of working examples for future projects
- A resource for others learning State Trees, AI systems and Quest system
This project is part of a learning series focused on Unreal Engine systems:
-
GasAbilities (completed): Gameplay Ability System โ
-
StateTreeAI (this repo): State Trees, AI behaviors, and Quest System โ
-
Future Integration (planned): Full-scale project combining GAS, State Trees, and advanced AI ๐
Tip
Learning Path
Each system is mastered in isolation before integration.
This approach ensures deep understanding and creates reusable reference implementations.
This project follows a progressive learning path focused on mastering State Trees and their applications.
โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ GasAbilities โ โ StateTreeAI โ โ Ultimate Integration โ
โโโโโโโโโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ - Completed - โ โโโโ โ - Completed - โ โโโโ โ - Future Vision - โ
โ Core GAS mechanics โ โ State Tree Logic โ โ GAS + State Trees โ
โ Ability Framework โ โ AI & Quest Systems โ โ Production-Ready Project โ
โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Focus: Foundation & Core Concepts Status: Completed โ
Learning the fundamentals of State Trees through practical implementation:
- Understanding State Tree architecture and evaluation
- Basic AI behavior implementation
- Transition logic and conditions
- State Tree tasks and evaluators
- Integration with existing systems
Approach: Iterative learning with focus on practical examples
Rather than just a roadmap, the goal is a technical synergy where GAS and State Trees merge into a high-performance gameplay framework. This represents the culmination of this research phase, moving from isolated systems to a production-ready architecture.
Combining these two systems unlocks a powerful design pattern:
- Intelligent Decision-Making: The State Tree acts as the "brain," evaluating world state, player distance, and resources to decide when to engage.
- Standardized Execution: The Gameplay Ability System (GAS) handles the "how," managing animations, cooldowns, and attribute changes (Health, Stamina) during state execution.
- Reactive Quest Design: Using State Tree persistence to drive dynamic world events triggered by specific GAS effects or player achievements.
- Complex AI Combat: Enemies that tacticaly choose abilities based on the player's status, managed via State Tree evaluators and GAS tags.
- Dynamic RPG Ecosystems: Quest systems where NPCs change behavior states based on world-persisted data and completed objectives.
- Scalable MOBA Logic: Managing lane-pushing behaviors through State Trees while handling hero combat interactions through GAS.
This project documents the journey of mastering State Tree fundamentals through practical implementation in Unreal Engine. Originally developed across multiple feature branches to isolate learning milestones, the repository has now been consolidated into a single linear history.
All major systemsโincluding AI Behaviors, Quest Logic, and Save/Load mechanicsโare now integrated directly into the main branch. This ensures a more streamlined experience for exploration and testing while maintaining a clear, chronological progression of the learning process.
This repository follows a monolithic linear structure where all features are integrated into the primary development line.
main: The single source of truth. It contains the full implementation of all explored features, including:- Core AI: Basic State Tree movement and sensory systems.
- Quest System: Modular objective logic and environment interaction.
- Persistence: Save and Load systems for quest states and world data.
- Environment: State Tree-driven actor activation and map logic.
Note
Previous feature branches (basic-ai, quest, SaveLoad, advanced) have been merged and retired to provide a cleaner, more professional project overview and to avoid conflicts with Unreal Engine's binary asset management.
This repository utilizes standard Unreal Engine assets for demonstration purposes such as the UE Mannequin used for AI movement and state visualization. All Epic Games content is used under the Unreal Engine EULA and is subject to Epic Games' licensing terms.
Important
Additional resources may be added as the project progresses.
This project is being developed while studying from various sources (thanks to):
- Epic Games Learning
- The Game Dev Cave
- Extra:
- An article by Jean-Paul Software: Some Of The Things You Didn't Want To Know About State Tree
This project is protected by copyright. My original code and implementations are licensed for personal, non-commercial use only.
Third-party content (e.g: Epic Games assets) retains its original licensing. See the LICENSE file for complete details.
Q: How does this relate to GasAbilities?
A: GasAbilities explored the Gameplay Ability System. This project explores State Trees. A future project will combine both systems in a complete game implementation.
Q: What is State Tree?
A: State Tree is Unreal Engine's system for creating modular, reusable AI logic and gameplay systems, designed to be more efficient than traditional Behavior Trees.
Q: Why a separate project from GasAbilities?
A: Learning each system in isolation ensures a deep understanding and creates a clean reference for future work.
Q: Is this project still active?
A: This specific research project is completed. The implementations here serve as a foundational library for a future integrated project combining GAS and State Trees.
Q: How do these systems relate to each other?
A: GasAbilities explored the Ability framework, while this project mastered the Logic/State framework. The next step is a full-scale game implementation using both.