DeriveFromScript { Script=DefeatMinion Source=Level } #--------------------------------------------- # Decides how to attack the opponenet #--------------------------------------------- state Think { Conditions { if LevelValue "Stat" != 1 goto Control if GotOpponent == 0.0 goto Wander if OpponentRange < AttackRange goto Attack if OpponentRange > 4.0 goto MoveToOpponenet if Random < 0.5 goto Attack } Actions { ResetTimer FaceOpponent "120.0" } }