Game
Grimstorm: Colosseum
9 years ago

Updates to AI


Previously, the AI would be using a very hacky finite-state machine to determine what action to do in response to the current target. This was fine to begin with, but in the long run it’s very ineffective.

5d0ba3c3d9501.gif

View a video of the AI in action

I have changed the AI to use a mix of finite-state machines (FSM) and goal oriented action planning (GOAP). GOAP gives the entity certain actions and goals it can perform with costs, and the AI will see if it can perform it.

Each AI has a hidden “action point” counter that regenerates over time, and it can spend them on various actions, such as a standard attack, a roll, or a strong attack. The better the action, the higher the amount of points required. A harder AI to fight will get action points quicker than more common ones.

5d0ba3c5cb05f.gif

However, the AI isn’t perfect just yet, and still needs lots of refinement! I am wanting to add in an ability that lets me specify how much the AI favours a certain move over the other. So you might have a very evasive ninja who likes to roll, or a tough knight who always blocks your attacks. It will allow me to give lots of variety to your opponents and make them a fun fight overall.

Let me know your thoughts on the progress so far!



6 comments

Loading...

Next up

Eldritchvania is out now on Game Jolt!

A game by @DeathCountGames , with spooky and occult music by myself! Can you survive the horrors?

https://gamejolt.com/games/Eldritchvania/415163

Players, Polish, and Possible Public Release?

Time flies...

13 years on this site… feeling lucky (especially with this trophy)

My ambient/electronic remix of Memoraphile’s track is out now! If you like chilled out stuff with soothing synths and pianos, you will enjoy this one.

https://linktr.ee/niksudan

Mechanics Explained (Video)

Eldritchvania is available now for free! Can you survive the horrors that lurk amidst the forgotten depths?

I’ve got a new song coming out next week! #chillwave #ambient #electronic #newmusic

I just released a soundtrack to a short film!

A blend of immersive ambient, synthwave and orchestral. Listen now on all music platforms.

https://linktr.ee/niksudan