You do realize that AI is just a single MASSIVE script with various calls for actions based off different inputs.

"Notices Party member is healing party member with most hate." > "Use AOE attack aimed towards Healer" etc. The difference between most AI and a basic script is how many calls there are in the programming and how much freedom the monster gets to chose abilities