State Base { Conditions { } Actions { SetMinViewHeight "-99.0" SetState LookOut } } State LookOut { Conditions { } Actions { GetLocatorFromGroup "name=Ledge" ;SetLocator "name=Ledge_1" GoToLocator SetState Update } } State Update { Conditions { if GotOpponent == 1 goto Engage } Actions { } } state Engage { Conditions { if GotOpponent == 0 goto LookOut } Actions { EngageOpponent "static" "offscreen" } }