Baldur's Gate Wiki
Advertisement

WTRUNSGT is a script used by primarily by weak and innocent creatures. It makes them run away from a fight, but will turn enemy if they're attacked by creatures they were friendly with before the attack. This is flavor as their response is always to run away.

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

IF
	See(NearestEnemyOf(Myself))
THEN
	RESPONSE #100
		RunAwayFrom(NearestEnemyOf(Myself),150)
END

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