//MosEisley_A state Base { Conditions { if InTriggerArea "Pen" == 0 and if Random < 0.2 goto ChooseNewLocator if AlwaysTrue == 1 goto Grazing } Actions { ;DontPush DontUseShadowTerrain AwkwardShapeOverride } } state Grazing { Conditions { if Timer > 15 and if Random < 0.5 goto Grazing if InTriggerArea "Pen" == 0 and if Timer > 15 goto ChooseNewLocator } Actions { ResetTimer "mintime=0" "maxtime=5" Idle } } state ChooseNewLocator { Conditions { if GotLocator == 1 goto GoToLocator if AlwaysTrue == 1 goto Grazing } Actions { GetLocatorFromGroup "name=graze" "random" } } state GoToLocator { Conditions { if InTriggerArea "Pen" == 1 goto Grazing } Actions { GoToLocator "Walk" SetState "Grazing" } }