state Base { Conditions { if CurrentLocatorIs "Spawn1" == 1 goto SetLocator1 if CurrentLocatorIs "Spawn2" == 1 goto SetLocator2 if CurrentLocatorIs "Spawn3" == 1 goto SetLocator3 if CurrentLocatorIs "Spawn4" == 1 goto SetLocator4 if PreviousResult == 0 goto Attack } Actions { ;SetInvulnerable } } state SetLocator1 { Conditions { } Actions { SetLocator "name=Droid1" SetState "Snipe" } } state SetLocator2 { Conditions { } Actions { SetLocator "name=Droid2" SetState "Snipe" } } state SetLocator3 { Conditions { } Actions { SetLocator "name=Droid3" SetState "Snipe" } } state SetLocator4 { Conditions { } Actions { SetLocator "name=Droid4" SetState "Snipe" } } state Snipe { Conditions { if Message "MaulOnTheRun" == 1 goto Approach } Actions { GoToLocator EngageOpponent "static" } } state Approach { Conditions { if GotOpponent == 1 goto Fight } Actions { CannotBeSeen "FALSE" FollowPlayer } } state Fight { Conditions { if GotOpponent == 0 goto Approach } Actions { EngageOpponent "goalrange 1.5" "firerange 3" } } state TakenHit { Conditions { } Actions { SetMessage "name=NumMaulDroids" "decrement=1" SetState "Kill" //Just to be on the safe side } } state Kill { Conditions { } Actions { Kill } }