Friday, August 30, 2024

Iteration on the AI

Today I finished up the. armor / weapons implementation and began work on the AI.  I decided just to do something simple for now, because I don't know how the game will be changing and a lot of the systems need to be iterated on. So my goal is simply to make it better than it is now (should be easy, it's just random right now).

The algorithm I'm working on goes like this:

  • Get “advantage rating” for all enemies

    • condition rating - get rating for (primary, or each?) motivator condition

    • equipment rating - how is my equipment compared to theirs?

    • advantage = equipment rating + condition rating

  • Consider the stat of each motivator somehow, and factor that into the decision - i.e. a vainglorious guy might want to take on an enemy versus whom he is disadvantaged

  • go for enemy chance = motivator factor * advantage rating

I like it so far. Some of the details will need working out but I can figure it out of course. Anyway, charging on!

No comments:

Post a Comment

Continuing the Work

 I have been thinking a lot lately. This is a hard thing. There's only so little time... I'm just one person. I'm one person, wh...