Hey,
I’ve finally managed to get the program I’m working on to a point where I can get to work on a basic AI for the enemies. At the moment everything is controlled with a few if-else statements saying something along the lines of “If the player has less health than me I should cast a spell.” and other things like that. It’s pretty simple and it’s worked well enough for testing out various things, but now I need to start giving the enemies some sort of AI so that they can decide things on their own.
The only way I thought that this could work would be to either expand the if-else statements or to save the decisions made by both the player and creature from every battle that has/will ever be fought and then do some statistics math to figure out the best decision based on previous battles. Both of these ways seem a bit difficult so I was wondering if anyone else had some suggestions for how I could create the ‘AI’ for my creatures.