AI that responds and searches

Hello Everyone,

I am trying to make a script for AI that responds to two things in particular:

Game Events (in this case a button press that has an ongoing effect *until overwritten)

and other AI/Game objects (specifically to “combat” each other) like how wild animals in Farcry.

There are four different types of AI’s (or values actually) they all do the same thing, they just have different patterns depending on the Game Event/button pressed. When they come within a certain proximity of each other (when certain values are met) they will either attack each other (deplete each other’s Health) or get along (increase the player’s overall score)

Would anyone have a good starting point for me to jump from, any feedback is very much appreciated and welcome.

Behaviour Tree is a convenient tool to describe complex (or simple) AI behaviours. Have a look at Panda BT (www.pandabehaviour.com). It’s a scripting framework based on Behaviour Tree.

If you want to learn more about this AI technique, here are some resources.

Thank you very much, this was exactly what I was looking for. Before you helped out I was looking into pathfinding and it wasn’t exactly doing it for me. This is great and I love your website I will definitely be referencing it!