I am designing a game where the battle system is similar to Pokemon. That is, a 1 on 1 battle with only a few (4-6) moves to choose from. As the game is taking shape, I'm starting to think about some of the more difficult coding areas such as enemy AI and I have a few questions. I have already thought about some possibilities for designing the AI and wanted also to hear your feedback.
I am thinking of trying a universal AI for my game where all monsters will utilize the same logic for determining what move they will use. It will be based around equations/values assigned to each move and determining which is the best to make. For example, if the monsters move will be resisted (1/2 damage) by the opponent then it receives a lower effective value than the others and moves that do extra damage due to vulnerability will receive higher effective value. Also, I was thinking of adding a variable that reduces the value if the move has been used repeatedly to avoid the computer always using the same move. I feel that this is currently limited just to making the computer use the highest damage move. Any suggestions?
SO for my questions.
How does designing AI logic for each monster/Pokemon vs having a general set of rules for all effect the size of my game in terms of code and effectiveness of the AI?
Are there any resources that discuss designing AI in this manner? I found very little on the AI in Pokemon games and I'm unsure what other games might be similar in mechanics.
Thanks for your time!
