Baldur's Gate Wiki:Game source files/BCS/WTASIGHT

Baldur's Gate
IF AttackedBy([GOODCUTOFF],DEFAULT) Allegiance(Myself,NEUTRAL) THEN RESPONSE #100 Enemy END

IF See(NearestEnemyOf(Myself)) THEN RESPONSE #100 AttackReevaluate(NearestEnemyOf(Myself),30) END

IF AttackedBy([ANYONE],DEFAULT) THEN RESPONSE #100 Attack(LastAttackerOf(Myself)) END

Baldur's Gate: Enhanced Edition
IF StateCheck(Myself,STATE_PANIC) THEN RESPONSE #100 RandomWalkContinuous END

IF Heard([ANYONE],111) THEN RESPONSE #100 MoveToObject(NearestEnemyOf(Myself)) END

IF AttackedBy([GOODCUTOFF],DEFAULT) !Allegiance(Myself,ENEMY) THEN RESPONSE #100 Enemy END

IF See(NearestEnemyOf(Myself)) InWeaponRange(LastSeenBy(Myself)) THEN RESPONSE #100 AttackReevaluate(NearestEnemyOf(Myself),30) END

IF AttackedBy([ANYONE],DEFAULT) InWeaponRange(LastAttackerOf(Myself)) THEN RESPONSE #100 Attack(LastAttackerOf(Myself)) END

IF See(NearestEnemyOf(Myself)) THEN RESPONSE #100 MoveToObject(LastSeenBy(Myself)) END

Baldur's Gate II
IF Heard([ANYONE],111) THEN RESPONSE #100 MoveToObject(NearestEnemyOf(Myself)) END

IF AttackedBy([GOODCUTOFF],DEFAULT) !Allegiance(Myself,ENEMY) THEN RESPONSE #100 Enemy END

IF See(NearestEnemyOf(Myself)) THEN RESPONSE #100 AttackReevaluate(NearestEnemyOf(Myself),30) END

IF AttackedBy([ANYONE],DEFAULT) THEN RESPONSE #100 Attack(LastAttackerOf(Myself)) END

Baldur's Gate II: Enhanced Edition
IF Heard([ANYONE],111) THEN RESPONSE #100 MoveToObject(NearestEnemyOf(Myself)) END

IF AttackedBy([GOODCUTOFF],DEFAULT) !Allegiance(Myself,ENEMY) THEN RESPONSE #100 Enemy END

IF ActionListEmpty See(NearestEnemyOf(Myself)) THEN RESPONSE #100 AttackReevaluate(NearestEnemyOf(Myself),30) END

IF ActionListEmpty AttackedBy([ANYONE],DEFAULT) THEN RESPONSE #100 Attack(LastAttackerOf(Myself)) END