AI (artificial intelligence) is the behavioral pattern exhibited by an NPC. For instance, the Caster AI will always warp, shoot three times, pause for three seconds, and then warp again. Knowing the AI an enemy uses can provide an advantage in combat, as it offers an idea of how the enemy will attack and react in given scenarios.
In addition, additional AI is added for certain NPCs, such as the non-aggressive mode of surface slimes, the Eater of Souls' circling around the player, the Wandering Eye's acceleration, or the ranged attack of some Fighter AI enemies.
Most AI names are given based on observed behavior (such as Flying AI), NPC groups (such as Slime AI), or the first NPC to implement the AI (such as Demon Eye AI).
There are ? different AI types: