There's just too much, it's very hard to navigate through for an outsider, it could take us hours just to figure out what you've done.
If you can make an example with JUST the AI, no unnecessary particles and animations etc, just keeping it simple, I can see if I can help you.
Also, more comments and groups to seperate different parts of the code and to help us understand what you're trying to do.
But I don't have time to figure out every last thing that happens in that .capx, and I'm guessing that's why no one else has answered either.
Edit: Or, you could explain to me *everything* you want the AI to do, and we can start from scratch.