Putting the 'role' back in role-playing games since 2002.
Donate to Codex
Good Old Games
  • Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.

Game News Realms Beyond Kickstarter Update #18: Enemy AI

Infinitron

I post news
Patron
Staff Member
Joined
Jan 28, 2011
Messages
99,602
Codex Year of the Donut Serpent in the Staglands Dead State Divinity: Original Sin Project: Eternity Torment: Tides of Numenera Wasteland 2 Shadorwun: Hong Kong Divinity: Original Sin 2 A Beautifully Desolate Campaign Pillars of Eternity 2: Deadfire Pathfinder: Kingmaker Pathfinder: Wrath I'm very into cock and ball torture I helped put crap in Monomyth
Tags: Ceres Games; Realms Beyond: Ashes of the Fallen

Realms Beyond has received its first major Kickstarter update since the conclusion of the crowdfunding campaign in November. With mundane tasks like setting up a Backerkit site now out of the way, it looks like Ceres have been able to start spending time on the game's more advanced features, such as enemy AI. The goal is to make the AI not only intelligent, but also reflective of the personalities of the game's various creatures.


When we started out working on the combat system we had a lot to do to lay the basic foundations. We had to get our character animation system running and implement stuff like combat logic, hexboard generation from level topology, or hexboard queries for paths and floodings at runtime.

That left little time to care about something as high level as AI (Artificial Intelligence). As a consequence our first prototype for AI ‘grew’ with time. At first, all it could do were melee attacks. Then we added ranged attacks. Then we implemented an enemy spell AI for intelligent placing of area spells (trying to maximize hits on enemies and minimize hits on allies). Finally we included rather specific routines (like fleeing) for characters that suffered from spells like fear. We realized that AI has to be able to deal with script spells that are loaded at runtime (a feature that could be interesting for future modifications). To allow for that we coded routines that simulate spell executions and judge their effects in a more general way.

Thus our prototype grew and grew until we were sure that we covered every capability that could possibly be required. Then we started to build it from scratch to make it more flexible and debugable. And now we feel like we can finally talk about AI.

The paradigm we had in mind for development has always been: What do we expect from a turn based AI?

Well, technically, we expect a lot! A demon wizard that fails to choose his fireball spell over a magic missile, or who fails to place the fireball in a way that maximizes damage on the player party is a no-go. An assassin who simply attacks her closest target instead of trying to stab your wizard in the back is not only little immersive – it also obliterates strategic bottlenecks like doors. And a human NPC ally that is not able to plan his path avoiding enemy attacks of opportunity is an annoyance. So when we talk about expectations from a ‘technical’ point of view, one can say that we expect ‘a lot’. A proper (3.5e based) combat AI has to be able to perform a lot of intelligent choices for enemies that we expect to behave intelligent.

Assuming that we built an AI that is able to live up to those expectations, it is time to consider a different connotation: What do we expect from AI not in terms of quality but in terms of personality?

If every enemy behaved optimally the challenge would be maximized – and immersion would be all but gone. We want goblins to horde around their closest enemy. We want orcs to ignore attacks of opportunity. And an ogre might even be too stupid to leave an area that is affected by a damage-over-time spell. Even beyond ‘intelligence’ enemies should show personality in every decision that gameplay offers: While most races ignore unconscious or otherwise helpless enemies on the battle field and proceed to face those player characters that can still fight, certain foul creatures like goblins or gnolls should be known for finishing off their helpless foes. It’s those little twists that make combats immersive.

We hope that – apart from the challenge of making our AI capable of ‘good’ decisions – we also do a good job to diversify enemy behaviours enough to allow you to detect patterns and become especially hateful of one enemy or the other.

Once again, allow us to mention Knights of the Chalice here (btw, the developer Pierre Begue will launch a Kickstarter campaign for the sequel very soon) . It is owing to that game that we had a very precise idea about what we had to do when we first started prototyping our CPU-controlled opponents. The AI of KotC (and, of course, its excellent encounter design) made almost all combats interesting. It may be prone to crowd in bottlenecks (a fact can be exploited a lot once you get the stone wall spell) but hey – weaknesses are something you also expect from an AI to have fun, another fact that we are well aware of.

Hopefully, we can soon present you some more combat vids that display various AI behaviours. Until then, feel invited to write us (here in the comments or in our forum) what you think about our ideas and what you consider important for a turn-based AI. And if you have a memorable story to tell about a combat against an especially cunning AI: please share it with us.
That's a nice shout-out. Hopefully we won't have to wait long for the next update.
 

Thal

Prophet
Joined
Apr 4, 2015
Messages
419
Wouldn't it be interesting if AI was partly dependent on Int or Wis stat? Meaning you could affect their decision-making ability by debuffing that stat. Might be too powerful tool though
 

Farewell into the night

Guest
Wow, they have mentioned KotC. That's really interesting. I have a strong feeling that this game will be one of the greatest.
 

MrMarbles

Cipher
Joined
Jan 13, 2014
Messages
438
This is the kind of art style and feel I've been waiting for to replace the bland Unity-games. A more polished version of SitS:incline:
 

Tigranes

Arcane
Joined
Jan 8, 2009
Messages
10,350
Yep. This is just "we want to work hard on AI and we love KOTC." Fine. Show us something when you have something.
 

AwesomeButton

Proud owner of BG 3: Day of Swen's Tentacle
Patron
Joined
Nov 23, 2014
Messages
17,100
Location
At large
PC RPG Website of the Year, 2015 Make the Codex Great Again! Grab the Codex by the pussy Insert Title Here RPG Wokedex Divinity: Original Sin 2 A Beautifully Desolate Campaign Pillars of Eternity 2: Deadfire Steve gets a Kidney but I don't even get a tag. Pathfinder: Wrath
Do you even read?

At first, all it could do were melee attacks. Then we added ranged attacks. Then we implemented an enemy spell AI for intelligent placing of area spells (trying to maximize hits on enemies and minimize hits on allies). Finally we included rather specific routines (like fleeing) for characters that suffered from spells like fear. We realized that AI has to be able to deal with script spells that are loaded at runtime (a feature that could be interesting for future modifications). To allow for that we coded routines that simulate spell executions and judge their effects in a more general way.

Thus our prototype grew and grew until we were sure that we covered every capability that could possibly be required. Then we started to build it from scratch to make it more flexible and debugable. And now we feel like we can finally talk about AI.
 

Darth Canoli

Arcane
Joined
Jun 8, 2018
Messages
5,737
Location
Perched on a tree
:bounce:

So far so good, i hope they're going to do something about the tactical grid's aggressive colors though, some nuances of brown or gray maybe ?
 

As an Amazon Associate, rpgcodex.net earns from qualifying purchases.
Back
Top Bottom