Siberian
If you want to make an A.I you should be familiar with families,picking instances and local variables. Also in most situations You should use a text for variables. If it seems for you as a great problem, try to concentrate small goals which you need to achieve, divide the problem into small in that way:
your local variable AI can include text for example "find_enemy","fight_with_hero","get_out_base" etc.
Let's imagine that enemy have a value "find_enemy". When find_enemy ->you combine events and behaviuours to find. When LOS ->set value to justice fight. WHen enemy hp less than 20 set value to injustice fight and etc.
You should combine LOS behaviour and findpath behaviour with your knowledge of events system.
I'm not sure that you want such kind of reply with your reputation