state InActive { Conditions { if GotTriggerArea == 1 and if PartyUnderCover == 0 and if NumBaddiesThatCanSeePlayers < 4 and if EitherPlayerInTriggerArea == 1 goto Activate } Actions { } } state Activate { Conditions { } Actions { Activate ;Activate starts the creature. Will be started at position calculated in AllocatedPickup } } state Base { Conditions { if GotLocator == 1 goto GoToLocator if GotOpponent == 1 goto Fight } Actions { FollowPlayer } } state GoToLocator { Conditions { if GotLocator == 0 goto Fight if OpponentRange < 1.5 goto Fight } Actions { GoToLocator "wait=0.5" SetState "StaticAttack" } } state StaticAttack { Conditions { if GotOpponent == 0 goto Base if LocatorRange > 0.25 goto GoToLocator if OpponentRange < 1.5 goto Fight } Actions { EngageOpponent "static" "fXirerange=viewrange" } } state Fight { Conditions { if GotOpponent == 0 goto Base } Actions { EngageOpponent "goalrange 1.5" "firerange=3" } }