itch.io is community of indie game creators and players

Devlogs

The Battle Card Plugin is making progress! AI is here!

Previous devlogs not linked to the project page: New Plugin Under Work, Still here making progress and Works on the new plugin.

After a LOT of coding the first AI steps are here!

In this video our allied Lily does the following:

  • Decide what type of card she wants, she prefer range
  • There is no range card in her hand, there is no need to heal and she doesn't have buff cards
  • Looks like she need to use an aggro card!
  • All the aggro card in her hand don't have enough range to hit an enemy
  • She checks if she has the AP to use a card to move closer and then a card to attack
  • She decide for the card with move moment and less aggro as "support" card then for the card with most aggro as "attack" card
  • And she goes!

After this I'll have to fix the AP management and loop the actions to make a complete turn for the AI battlers but this is the easiest part of the work

The next complex part will be to complete the action card resolver function, for now it handles only single target cards, I need to make it work for every type of damage (AOE, Whole field, tile)

Then there will be a LOT of debug, as the code is way more complex than what is shown in the video, it handles friendly fire, decisions for getting closer or pulling away from enemies, etc..

Leave a comment