state Base { Conditions { if OffScreenTimer > 10 goto Kill if Timer > 1 goto Approach if OpponentRange < 1 goto Approach } Actions { //Sets the side to baddie incase any nuterals want to use this script SetSide "baddie" KeepWeaponOut BreakFormation ResetTimer FollowPlayer "Run" } } state Wander { Conditions { if OffScreenTimer > 10 goto Kill if GotOpponent == 1 goto Approach } Actions { KeepWeaponOut "FALSE" FollowPath "Walk" } } state Approach { Conditions { if OffScreenTimer > 10 goto Kill if GotOpponent == 1 goto Fight } Actions { CannotBeSeen "FALSE" FollowPlayer } } state Fight { Conditions { if OffScreenTimer > 10 goto Kill if GotOpponent == 0 goto Approach } Actions { EngageOpponent "goalrange 5" "firerange 30" } } state Kill { Conditions { } Actions { Kill } }