This is a simple AI which will make all villagers and military units under its command stand still doing nothing. If a enemy comes near a military unit of the AI, this unit will engage the enemy, and other units in the vicinity will aid this unit in fighting the foe. Villager will always stand still unless attacked or commanded to do something via triggers.