TL;DR
Game AI often struggles with complexity and realism in NPC behavior. FromSoftware uses a unique state management system called Goal1, which allows for flexible AI decision-making.
✦ Why It Matters
Engineers can learn to implement flexible state management in AI systems for more dynamic interactions.
Key Takeaways
Full Summary
FromSoftware is known for its challenging NPC encounters in games like Elden Ring, but the underlying AI is surprisingly simple. The AI operates using a system called Goal1, which represents distinct states that the AI can occupy.
These states are organized in a stack, transforming the AI from a traditional Finite State Machine (FSM) into a Pushdown Automaton (PDA), allowing for more complex behavior. The Goal1 states can be parameterized and access data from the Actor, which is the character or entity controlled by the AI.
This design choice enables dynamic and varied NPC actions, enhancing player engagement. By leveraging Havok Script, a Lua-based scripting language for games, developers can easily analyze and modify the AI behavior.
The result is a more nuanced and responsive AI that contributes to the overall challenge and enjoyment of the game.
Related