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
No comments:
Post a Comment