Monster IA should have some basic and simple states:
Idle/Wandering - Default main state. It's just wander and be idle at random times;
Chasing/Following - When some enemy enters on a trigger area, it starts to chasing following;
Attacking - When the target is within attack range, start to attack;
Fleeing - If the monsters feel that can win and is dhying, start to flee way from target;
Returning - If the monster chase outside an area, get back to spot. This area also counts for flee, in which case the monster should get back to the center of spot.
Test tip: Try to set monsters to wander and attack each other;
Monster IA should have some basic and simple states:
Test tip: Try to set monsters to wander and attack each other;