Goal driven behavior
The work on the goal driven behavior for my bots has been an undergoing work during a long time of the project, mostly when I was tired of debugging. Last week of the project have only been dedicated to the behavior thou and even thou a lot of them were written there were non of them that didn’t need some kind of rewriting. At the moment there are only three “main” goals: Attack enemy, Grab flag, Score flag. There is a lot of different sub-goals thou to make the character path find, run, attack and die. Implemented a special goal Think which is the goal that decides what my agents should do. Every “main” goal got it’s own desire calculator which uses things lake range, agent health and flag position to calculate a number between zero and one and then sets the highest goal as the agents current goal. Balancing the desires was very hard and does need a lot more testing and balancing to get the desired behavior from the agents.