It's messed up! I put in this code:
[Statedef -2]
[State PartnerDist X]
type=varset
trigger1=numpartner
var(17)=ceil(pos x-partner,pos x)*-facing
ignorehitpause=1
persistent=1
;Win Pose 4
[Statedef 184]
type = S
ctrl = 0
sprpriority = 3
[State 184,1]
type=changeanim
triggerall = Partner,Pos X != [pos X -12,Pos X +12]
trigger1=1
value=100+((var(17)=[-12,12]))*81
ignorehitpause=1
persistent=0
[State 184,2]
type=changeanim
triggerall = Partner,Pos X != [pos X -12,Pos X +12]
trigger1=var(17)<-5
value=5+(stateno=11)*1
ignorehitpause=1
persistent = 0
[State 184,3]
type=turn
triggerall = Partner,Pos X != [pos X -12,Pos X +12]
trigger1=var(17)<-5
trigger2=numpartner
trigger2=(var(17)=[-12,12])&&facing!=partner,facing
ignorehitpause=1
persistent = 0
[State 184,4]
type=velset
triggerall = Partner,Pos X != [pos X -12,Pos X +12]
trigger1=1
x=0+(!(var(17)=[-12,12]))*(4.11*facing)
ignorehitpause=1
persistent = 0
[State 184,5]
type = PlaySnd
trigger1 = Anim = 100
value = S2,0
volume = 7000
channel = 1
loop = Ifelse(Anim = 100,1,0)
persistent = 0
ignorehitpause = 0
[State 184,6]
type = ChangeAnim
trigger1 = Partner,Pos X = [pos X -12,Pos X +12]
value = 184
persistent = 0
[State 184,end]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1
;------------------------------------------------------------------------------
It kept turning to animation five and keeps run without stopping and turning at only when the partner,facing does not equal the same as the character. I want my character to go every position where the partner is no matter what and looks and turns correctly. Have any ideas?