How FromSoftware's Elden Ring Uses Simple Scripting for Complex Enemy AI
By
g0xA52A2A
Summary
An analysis of how FromSoftware implements AI decision-making in Elden Ring using Havok Script (a Lua-based scripting language). The article explains that despite the reputation for complex NPC behavior, the underlying AI logic is surprisingly simple and low-tech, relying on basic state machines, priority-based decision trees, and straightforward scripting rather than advanced machine learning or complex algorithms. The author examines decompiled game code to reveal the mechanics behind enemy behavior, including aggro ranges, attack patterns, and combat logic.
Source
Hacker NewsHow FromSoftware's Elden Ring Uses Simple Scripting for Complex Enemy AInega.tvKey quotes
· 3 pulledFROMSOFT has a reputation for diverse and punishing npc encounters across the entire Soulsborne extended series, but the implementation of the AI decision making itself is perhaps unexpectedly low-tech.
Since the majority of the code is implemented in Havok Script (A games-oriented Lua implementation from Havok) it's pretty easy to take a peek behind the fog wall to see how they're implemented.
Note that none of what follows is original research, I'm just reading the code that others have done the hard work of extracting, decompiling, and reversing.
You might also wanna read
MMORPG players debate whether AI use in game development can ever be acceptable
This article examines the correlation between AI disclosure in Steam games and negative player reception, particularly in the MMORPG genre.
Loop Engineering: Building Reliable AI Agents Through Stacked Loops and LangChain Instrumentation
This article explores the concept of "loop engineering" in building reliable AI agents. It explains that while the core agent algorithm is s
The AI "Doom Loop": Why Your Autonomous Coding Agent Is Making Things Worse, And How To Fix It
IBM's CUGA agent harness: building production-ready agentic apps with minimal plumbing
IBM Research introduces CUGA (Configurable Generalist Agent), an open-source agent harness designed to eliminate the plumbing overhead of bu

AI development pivots to simulated worlds as chatbot limitations become apparent
The article explores how AI development is shifting from training chatbots on static text data to building AI agents that learn by interacti

Larian Studios Clarifies: No Generative AI for Concept Art or Writing in Divinity Game
Larian Studios, the developer behind Baldur's Gate 3, has clarified its stance on generative AI usage following controversy. CEO Swen Vincke

Comments
Sign in to join the conversation.
No comments yet. Be the first.