state InActive { Conditions { if FreePlay == 0 goto Activate } Actions { } } state Activate { Conditions { } Actions { Activate } } state Base { Conditions { } Actions { UseTimeBasedUpdate "FALSE" SetState "FightDarth" } } state FightDarth { Conditions { if LocatorRange "Fight" > 1.0 goto GotoLoc if OpponentRange < 0.5 goto PauseAttack } Actions { SetOpponent "opponent=Darth" AttackOpponent "range 0.25" "jediGoodie_attack" } } state PauseAttack { Conditions { } Actions { Idle "mintime=1.0" "maxtime=2.0" SetState FightDarth } } state GotoLoc { Conditions { } Actions { SetLocator "name=Fight_Obi" GoToLocator "RUN" "0.2" SetState FightDarth } }