Hey gamedevs, I just finished coding most of the states and skills into my SRPG type game, and am about to go do a second runthrough of the enemy AI conditionals. While setting up the status effects, buffs/debuffs, and various counter/reaction states, something crossed my mind. That being, how prone to making obvious mistakes should the enemy be?
For context, I have a few skills that cause 1-2 attacks worth of permanent dodges vs melee or an entire turns worth of a Precounter ability (think Hamedo from FFT). What I mean here, is that a competent human player would just ignore attacking an enemy that is going to 100% dodge an attack. A non-competent player not so much, but generally speaking this is something that will be avoided.
Now for the enemy AI, I can and have been setting it to just not use certain attacks vs conditions like these, because it is seemingly an obvious mistake to avoid. However, as noted, humans are indeed prone to error, and I am wondering if perhaps there should be some degree of error making present in the AI decision making process. You know, to make it more human like. Or rather, the alternative, to lock the AI conditions within the same choices I as a player would make. Such as not attacking the enemy who will obviously punish you for doing so due to their enhanced dodge state.
I want my game to be challenging. I intend to set up the enemy factions to represent me as the dev, so it is like the player has to fight against a ghost version of myself when playing the game. So I am leaning towards the never make any obvious mistakes line of thinking. But at the same time, I wonder if this is too formulaic, too predictable in a sense, too boring, and even too difficult.
So to break the question down to its simplest form...
Should enemy AI be able to miscalculate and make bad decisions?
Or should the decision making be as concrete as I can make it? A real challenge to fight through and win against?
For context, I have a few skills that cause 1-2 attacks worth of permanent dodges vs melee or an entire turns worth of a Precounter ability (think Hamedo from FFT). What I mean here, is that a competent human player would just ignore attacking an enemy that is going to 100% dodge an attack. A non-competent player not so much, but generally speaking this is something that will be avoided.
Now for the enemy AI, I can and have been setting it to just not use certain attacks vs conditions like these, because it is seemingly an obvious mistake to avoid. However, as noted, humans are indeed prone to error, and I am wondering if perhaps there should be some degree of error making present in the AI decision making process. You know, to make it more human like. Or rather, the alternative, to lock the AI conditions within the same choices I as a player would make. Such as not attacking the enemy who will obviously punish you for doing so due to their enhanced dodge state.
I want my game to be challenging. I intend to set up the enemy factions to represent me as the dev, so it is like the player has to fight against a ghost version of myself when playing the game. So I am leaning towards the never make any obvious mistakes line of thinking. But at the same time, I wonder if this is too formulaic, too predictable in a sense, too boring, and even too difficult.
So to break the question down to its simplest form...
Should enemy AI be able to miscalculate and make bad decisions?
Or should the decision making be as concrete as I can make it? A real challenge to fight through and win against?