//Probe Droid Script for HothBattle E state Base { Conditions { } Actions { CanSeeBehind SetViewDistance "100" SetMaxViewHeight "100" SetMinViewHeight "-100" BreakFormation SetState GetLocator } } state GetLocator { Conditions { //if OffScreenTimer > 0 and //if HothBattleWaveCreature == 0 goto OffScreen if InTriggerArea "Melee" == 1 and if GotOpponent == 1 goto DecideAttack } Actions { GetLocatorFromGroup "name=attack" "random" SetState GoToLocator } } state GoToLocator { Conditions { if InTriggerArea "Melee" == 1 and if GotOpponent == 1 goto DecideAttack if GotLocator == 0 goto GetLocator if LocatorRange < 5 goto GetLocator //if OffScreenTimer > 2 and //if HothBattleWaveCreature == 0 goto OffScreen } Actions { GoToLocator "Walk" } } state DecideAttack { Conditions { if Random > 0.5 goto Attack if AlwaysTrue == 1 goto AttackTurret } Actions { } } state AttackTurret { Conditions { if Timer > 10 goto GetLocator if GotOpponent == 1 goto Attack } Actions { ResetTimer EngageTurret "goalrange 15" "firerange 30" "fireinterval 0.5" "random" SetState GetLocator } } state Attack { Conditions { if GotOpponent == 0 goto GoToLocator if Timer > 10 goto DecideAttack } Actions { EngageOpponent "goalrange 15" "firerange 30" "fireinterval 0.5" } } state ReleasedTakeOver { Conditions { } Actions { Kill } } state OffScreen { Conditions { } Actions { KILL } }