;THE CMD 0F RAJAADHALSIM

;====================<DEFAULT VALUES>====================
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s
;====================<DEFAULT VALUES>====================
[Defaults]
command.time=15
command.buffer.time=1
;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1

[Command]
name = "b"
command = b
time = 1

[Command]
name = "c"
command = c
time = 1

[Command]
name = "x"
command = x
time = 1

[Command]
name = "y"
command = y
time = 1

[Command]
name = "z"
command = z
time = 1

[Command]
name = "start"
command = s
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1

[Command]
name = "a2"
command = a
time = 1

[Command]
name = "b2"
command = b
time = 1

[Command]
name = "c2"
command = c
time = 1

[Command]
name = "x2"
command = x
time = 1

[Command]
name = "y2"
command = y
time = 1

[Command]
name = "z2"
command = z
time = 1

[Command]
name = "start2"
command = s
time = 1

[Command]
name = "holdfwd2"
command = /$F
time = 1

[Command]
name = "holdback2"
command = /$B
time = 1

[Command]
name = "holdup2"
command = /$U
time = 1

[Command]
name = "holddown2"
command = /$D
time = 1

[Command]
name = "holda2"
command = /a
time = 1

[Command]
name = "holdb2"
command = /b
time = 1

[Command]
name = "holdc2"
command = /c
time = 1

[Command]
name = "holdx2"
command = /x
time = 1

[Command]
name = "holdy2"
command = /y
time = 1

[Command]
name = "holdz2"
command = /z
time = 1

[Command]
name = "holdstart2"
command = /s
time = 1

[Command]
name = "recovery2"
command = x+a
time = 1
;-| Super Motions |--------------------------------------------------------
[Command]
name="Yoga_Stream"
command=~D,DF,F,D,DF,x
time=30

[Command]
name="Yoga_Stream"
command=~D,DF,F,D,DF,~x
time=30

[Command]
name="Yoga_Stream"
command=~D,DF,F,D,DF,y
time=30

[Command]
name="Yoga_Stream"
command=~D,DF,F,D,DF,~y
time=30

[Command]
name="Yoga_Stream"
command=~D,DF,F,D,DF,z
time=30

[Command]
name="Yoga_Stream"
command=~D,DF,F,D,DF,~z
time=30

[Command]
name="Yoga_Volcano"
command=~D,DF,F,D,DF,a
time=30

[Command]
name="Yoga_Volcano"
command=~D,DF,F,D,DF,~a
time=30

[Command]
name="Yoga_Volcano"
command=~D,DF,F,D,DF,b
time=30

[Command]
name="Yoga_Volcano"
command=~D,DF,F,D,DF,~b
time=30

[Command]
name="Yoga_Volcano"
command=~D,DF,F,D,DF,c
time=30

[Command]
name="Yoga_Volcano"
command=~D,DF,F,D,DF,~c
time=30

[Command]
name="Yoga_Inferno"
command=~D,DB,B,D,DB,x
time=30

[Command]
name="Yoga_Inferno"
command=~D,DB,B,D,DB,~x
time=30

[Command]
name="Yoga_Inferno"
command=~D,DB,B,D,DB,y
time=30

[Command]
name="Yoga_Inferno"
command=~D,DB,B,D,DB,~y
time=30

[Command]
name="Yoga_Inferno"
command=~D,DB,B,D,DB,z
time=30

[Command]
name="Yoga_Inferno"
command=~D,DB,B,D,DB,~z
time=30

[Command]
name="Yoga_Strike"
command=~D,DB,B,D,DB,a
time=30

[Command]
name="Yoga_Strike"
command=~D,DB,B,D,DB,~a
time=30

[Command]
name="Yoga_Strike"
command=~D,DB,B,D,DB,b
time=30

[Command]
name="Yoga_Strike"
command=~D,DB,B,D,DB,~b
time=30

[Command]
name="Yoga_Strike"
command=~D,DB,B,D,DB,c
time=30

[Command]
name="Yoga_Strike"
command=~D,DB,B,D,DB,~c
time=30

[Command]
name="Yoga_Tempest"
command=~F,DF,D,DB,F,DF,D,DB,x
time=30

[Command]
name="Yoga_Tempest"
command=~F,DF,D,DB,F,DF,D,DB,~x
time=30

[Command]
name="Yoga_Tempest"
command=~F,DF,D,DB,F,DF,D,DB,y
time=30

[Command]
name="Yoga_Tempest"
command=~F,DF,D,DB,F,DF,D,DB,~y
time=30

[Command]
name="Yoga_Tempest"
command=~F,DF,D,DB,F,DF,D,DB,z
time=30

[Command]
name="Yoga_Tempest"
command=~F,DF,D,DB,F,DF,D,DB,~z
time=30

[Command]
name="Yoga_Catastrophe"
command=~B,DB,D,DF,B,DB,D,DF,x
time=30

[Command]
name="Yoga_Catastrophe"
command=~B,DB,D,DF,B,DB,D,DF,~x
time=30

[Command]
name="Yoga_Catastrophe"
command=~B,DB,D,DF,B,DB,D,DF,y
time=30

[Command]
name="Yoga_Catastrophe"
command=~B,DB,D,DF,B,DB,D,DF,~y
time=30

[Command]
name="Yoga_Catastrophe"
command=~B,DB,D,DF,B,DB,D,DF,z
time=30

[Command]
name="Yoga_Catastrophe"
command=~B,DB,D,DF,B,DB,D,DF,~z
time=30

[Command]
name="Yoga_Legend"
command=x,x,F,a,z
time=45
[Command]
name="Yoga_Legend_Contact"
command=z,x,F,a,z
time=45
[Command]
name="Yoga_Legend_Contact"
command=c,x,F,a,z
time=45
;-| Special Motions |------------------------------------------------------
[command]
name="Yoga_Fire1"
command=~D,DF,F,x
time=15

[command]
name="Yoga_Fire1"
command=~D,DF,F,~x
time=15

[command]
name="Yoga_Fire2"
command=~D,DF,F,y
time=15

[command]
name="Yoga_Fire2"
command=~D,DF,F,~y
time=15

[command]
name="Yoga_Fire3"
command=~D,DF,F,z
time=15

[command]
name="Yoga_Fire3"
command=~D,DF,F,~z
time=15

[Command]
name="Yoga_Flame1"
command=~F,DF,D,DB,B,x
time=21

[Command]
name="Yoga_Flame1"
command=~F,DF,D,DB,B,~x
time=21

[Command]
name="Yoga_Flame2"
command=~F,DF,D,DB,B,y
time=21

[Command]
name="Yoga_Flame2"
command=~F,DF,D,DB,B,~y
time=21

[Command]
name="Yoga_Flame3"
command=~F,DF,D,DB,B,z
time=21

[Command]
name="Yoga_Flame3"
command=~F,DF,D,DB,B,~z
time=21

[Command]
name="Yoga_Blast1"
command=~F,DF,D,DB,B,a
time=21

[Command]
name="Yoga_Blast1"
command=~F,DF,D,DB,B,~a
time=21

[Command]
name="Yoga_Blast2"
command=~F,DF,D,DB,B,b
time=21

[Command]
name="Yoga_Blast2"
command=~F,DF,D,DB,B,~b
time=21

[Command]
name="Yoga_Blast3"
command=~F,DF,D,DB,B,c
time=21

[Command]
name="Yoga_Blast3"
command=~F,DF,D,DB,B,~c
time=21

[Command]
name="Yoga_Grasp1"
command=~D,DF,F,a
time=21

[Command]
name="Yoga_Grasp1"
command=~D,DF,F,~a
time=21

[Command]
name="Yoga_Grasp2"
command=~D,DF,F,b
time=21

[Command]
name="Yoga_Grasp2"
command=~D,DF,F,~b
time=21

[Command]
name="Yoga_Grasp3"
command=~D,DF,F,c
time=21

[Command]
name="Yoga_Grasp3"
command=~D,DF,F,~c
time=21

[command]
name="Yoga_Teleport1"
command=~F,D,DF,F,x+y
time=15
[command]
name="Yoga_Teleport1"
command=~F,D,DF,F,x+z
time=15
[command]
name="Yoga_Teleport1"
command=~F,D,DF,F,y+z
time=15
[command]
name="Yoga_Teleport1"
command=~F,D,DF,F,a+b
time=15
[command]
name="Yoga_Teleport1"
command=~F,D,DF,F,a+c
time=15
[command]
name="Yoga_Teleport1"
command=~F,D,DF,F,b+c
time=15
[command]
name="Yoga_Teleport2"
command=~B,D,DB,B,x+y
time=15
[command]
name="Yoga_Teleport2"
command=~B,D,DB,B,x+z
time=15
[command]
name="Yoga_Teleport2"
command=~B,D,DB,B,y+z
time=15
[command]
name="Yoga_Teleport2"
command=~B,D,DB,B,a+b
time=15
[command]
name="Yoga_Teleport2"
command=~B,D,DB,B,a+c
time=15
[command]
name="Yoga_Teleport2"
command=~B,D,DB,B,b+c
time=15

[Command]
name="SirPunch"
command=x
time=1
[Command]
name="SirPunch"
command=y
time=1
[Command]
name="SirPunch"
command=z
time=1
[Command]
name="SirPunch"
command=a
time=1
[Command]
name="SirPunch"
command=b
time=1
[Command]
name="SirPunch"
command=c
time=1
[Command]
name="SirPunch"
command=s
time=1
[Command]
name="SirPunch"
command=U
time=1
[Command]
name="SirPunch"
command=D
time=1
[Command]
name="SirPunch"
command=F
time=1
[Command]
name="SirPunch"
command=B
time=1
[Command]
name="SirPunch"
command=UF
time=1
[Command]
name="SirPunch"
command=UB
time=1
[Command]
name="SirPunch"
command=DF
time=1
[Command]
name="SirPunch"
command=DB
time=1
;-| EX Motions |------------------------------------------------------
[command]
name="EX_Yoga_Fire"
command=~D,DF,F,x+y
time=15

[command]
name="EX_Yoga_Fire"
command=~D,DF,F,x+z
time=15

[command]
name="EX_Yoga_Fire"
command=~D,DF,F,y+z
time=15

[command]
name="EX_Yoga_Flame"
command=~F,DF,D,DB,B,x+y
time=21

[command]
name="EX_Yoga_Flame"
command=~F,DF,D,DB,B,x+z
time=21

[command]
name="EX_Yoga_Flame"
command=~F,DF,D,DB,B,y+z
time=21

[command]
name="EX_Yoga_Blast"
command=~F,DF,D,DB,B,a+b
time=21

[command]
name="EX_Yoga_Blast"
command=~F,DF,D,DB,B,a+c
time=21

[command]
name="EX_Yoga_Blast"
command=~F,DF,D,DB,B,b+c
time=21

[command]
name="EX_Yoga_Grasp"
command=~D,DF,F,a+b
time=21

[command]
name="EX_Yoga_Grasp"
command=~D,DF,F,a+c
time=21

[command]
name="EX_Yoga_Grasp"
command=~D,DF,F,b+c
time=21
;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB"     ;Required (do not remove)
command = B, B
time = 10
;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery" ;Required (do not remove)
command = x+a
time = 1

[Command]
name = "s"
command = s
time = 1

[command]
name = "GuardCounter"
command = b+y
time = 1

[Command]
name="HighJmp"
command=$D,$U
time=15
;-| Dir + Button |---------------------------------------------------------
;-| Single Dir |------------------------------------------------------------
;[Command]
;name = "fwd" ;Required (do not remove)
;command = $F
;time = 1

;[Command]
;name = "downfwd"
;command = $DF
;time = 1

;[Command]
;name = "down" ;Required (do not remove)
;command = $D
;time = 1

;[Command]
;name = "downback"
;command = $DB
;time = 1

;[Command]
;name = "back" ;Required (do not remove)
;command = $B
;time = 1

;[Command]
;name = "upback"
;command = $UB
;time = 1

;[Command]
;name = "up" ;Required (do not remove)
;command = $U
;time = 1

;[Command]
;name = "upfwd"
;command = $UF
;time = 1
;-| Hold Button |--------------------------------------------------------------
[Command]
name = "hold_x"
command = /x
time = 1

[Command]
name = "hold_y"
command = /y
time = 1

[Command]
name = "hold_z"
command = /z
time = 1

[Command]
name = "hold_a"
command = /a
time = 1

[Command]
name = "hold_b"
command = /b
time = 1

[Command]
name = "hold_c"
command = /c
time = 1

[Command]
name = "hold_s"
command = /s
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd" ;Required (do not remove)
command = /$F
time = 1

;[Command]
;name = "holddownfwd"
;command = /$DF
;time = 1

[Command]
name = "holddown" ;Required (do not remove)
command = /$D
time = 1

;[Command]
;name = "holddownback"
;command = /$DB
;time = 1

[Command]
name = "holdback" ;Required (do not remove)
command = /$B
time = 1

;[Command]
;name = "holdupback"
;command = /$UB
;time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

;[Command]
;name = "holdupfwd"
;command = /$UF
;time = 1
;-| Single Dir |------------------------------------------------------------
[Command]
name = "fwd" ;Required (do not remove)
command = $F
time = 1

[Command]
name = "down" ;Required (do not remove)
command = $D
time = 1

[Command]
name = "back" ;Required (do not remove)
command = $B
time = 1

[Command]
name = "up" ;Required (do not remove)
command = $U
time = 1
;---------------------------------------------------------------------------
;===========================================================================
[Statedef -1]
;===========================================================================
[state -1,AI_Redirection_1]
type=changestate
trigger1=ishelper(9741)
value=9741

[state -1,AI_Redirection_2]
type=null;changestate
trigger1=ishelper(9742)
value=9742
;=========================================================================
;Functions
;=========================================================================
[State -3,HoldBack_Or_Automatic]
type=varset
trigger1=1
var(51)=0
;Changing "var(51)=_" to "1" will make the normal attacks become long distance and short distance autmatically.
;Changing "var(51)=_" to "0" will make the normal attacks become long distance and short distance by holding or not holding back while atacking.
;===========================================================================
;AI COMMANDS
;===========================================================================
[State -1, AI Walk]
type=ChangeState
value=21
triggerall=Var(59) = 1
triggerall=roundstate=2
triggerall=StateType != A
triggerall=Ctrl
triggerall=!InGuardDist
triggerall=stateno != [10,12]
triggerall=prevstateno != [10,12]
triggerall=stateno != 20
triggerall=prevstateno != 20
triggerall=stateno != 21
triggerall=prevstateno != 21
triggerall=stateno != [120,159]
triggerall=prevstateno != [120,159]
trigger1=numtarget
trigger1= random%3=0
;---------------------------------------------------------------------------
[state -1, Ai GrabDodge]
type=ChangeState
value=40
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=stateno!=40
triggerall=roundstate=2
triggerall=InGuardDist
triggerall=ctrl||stateno=21
triggerall=statetype!=A
trigger1=enemynear,HitDefAttr=SC,NT,ST,HT
trigger1=random<=200
;---------------------------------------------------------------------------
[state -1,AI Guard]
type = null;ChangeState
value = 120
triggerall = var(59)=1&&!var(30)&&!var(50)
triggerall = roundstate=2
triggerall = InGuardDist
triggerall = ctrl
trigger1=!((stateno=[120,155])&&(stateno=[6080,6082]))
trigger1=!(enemynear,hitdefattr=SCA,AT)
;---------------------------------------------------------------------------
[State -1, Guard]
type=changestate
value=120
trigger1=var(59)=1&&!var(30)&&!var(50)
trigger1=roundstate=2
trigger1=inguarddist
trigger1=ctrl&&!((stateno=[120,155])&&(stateno=[6100,6102]))
trigger1=!(enemynear,hitdefattr=SCA,AT)&&(enemynear,time<70);&&time>5
trigger1=random<ifelse(statetype=A&&enemynear,statetype!=A,0,ifelse(enemynear,statetype=A&&statetype!=A,1000,900))
;---------------------------------------------------------------------------
[State -1,AI Run Fwd]
type=changestate
value=100
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=statetype!=A
triggerall=enemynear,movetype!=A
triggerall=p2bodydist x>75
triggerall=stateno!=[10,12]
triggerall=prevstateno!=[10,12]
triggerall=stateno!=100
triggerall=prevstateno!=101
triggerall=stateno!=105
triggerall=prevstateno!=106
triggerall=stateno!=[120,159]
triggerall=prevstateno!=[120,159]
triggerall=ctrl||(stateno=21&&anim=20)
trigger1=p2bodydist x=[90,160]
trigger1=enemynear,movetype=I&&numtarget
trigger1=random=[500,560]
trigger2=p2bodydist x>160
trigger2=numtarget
trigger2=random=[700,800]
trigger3=p2bodydist x > 120
trigger3=enemynear,statetype=L
trigger3=numtarget
trigger3=random=[150,250]
;===========================================================================
;AI_Normal
[State -1,AI_NORMAL]
type=Null
trigger1=0
;===========================================================================
[State -1,SWP]
type=changestate
value=200+(5*(p2bodydist x<10))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,55])&&(enemynear,pos y+enemynear,const(size.mid.pos.y))=[-135,5];(p2dist y=[-20,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random<25

[State -1,SMP]
type=changestate
value=210+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,190])&&(enemynear,pos y+enemynear,const(size.mid.pos.y))=[-135,5];(p2dist y=[-20,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[25,50]
trigger2=movehit&&numtarget&&((stateno=[200,205])||(stateno=[230,235]))&&enemynear,gethitvar(hittime)>=3&&random<100
trigger3=movehit&&numtarget&&((stateno=[400,405])||(stateno=[430,435]))&&enemynear,gethitvar(hittime)>=3&&random=[201,301]

[State -1,SSP]
type=changestate
value=220+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,220])&&(enemynear,pos y+enemynear,const(size.mid.pos.y))=[-135,5];(p2dist y=[-20,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[51,76]
trigger2=movehit&&numtarget&&((stateno=[210,215])||(stateno=[240,245]))&&enemynear,gethitvar(hittime)>=3&&random<100
trigger3=movehit&&numtarget&&((stateno=[410,415])||(stateno=[440,445]))&&enemynear,gethitvar(hittime)>=3&&random=[201,301]

[State -1,SWK]
type=changestate
value=230+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,160])&&(enemynear,pos y+enemynear,const(size.mid.pos.y))=[enemynear,const(size.mid.pos.y)+(-10),5];(p2dist y=[-20,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[77,102]
trigger2=movehit&&numtarget&&(stateno=[200,205])&&enemynear,gethitvar(hittime)>=3&&random=[100,200]

[State -1,SMK]
type=changestate
value=240+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,190])&&(enemynear,pos y+enemynear,const(size.mid.pos.y))=[-135,5];(p2dist y=[-20,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[103,128]
trigger2=movehit&&numtarget&&((stateno=[200,205])||(stateno=[230,235]))&&enemynear,gethitvar(hittime)>=3&&random=[201,301]
trigger3=movehit&&numtarget&&(stateno=[210,215])&&enemynear,gethitvar(hittime)>=3&&random=[100,200]
trigger4=movehit&&numtarget&&((stateno=[400,405])||(stateno=[430,435]))&&enemynear,gethitvar(hittime)>=3&&random=[302,402]
trigger5=movehit&&numtarget&&(stateno=[410,415])&&enemynear,gethitvar(hittime)>=3&&random=[302,402]

[State -1,SSK]
type=changestate
value=250+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,190])&&(enemynear,pos y+enemynear,const(size.mid.pos.y))=[-145,5];(p2dist y=[-20,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[129,154]
trigger2=movehit&&numtarget&&((stateno=[210,215])||(stateno=[240,245]))&&enemynear,gethitvar(hittime)>=3&&random=[201,301]
trigger3=movehit&&numtarget&&((stateno=[220,225]))&&enemynear,gethitvar(hittime)>=3&&random<100
trigger4=movehit&&numtarget&&((stateno=[410,415])||(stateno=[440,445]))&&enemynear,gethitvar(hittime)>=3&&random=[403,503]
trigger5=movehit&&numtarget&&(stateno=[420,425])&&enemynear,gethitvar(hittime)>=3&&random=[100,200]

[State -1,CWP]
type=changestate
value=400+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,185])&&((enemynear,pos y+enemynear,const(size.head.pos.y))=[enemynear,const(size.head.pos.y)+(-10),5])&&enemynear,statetype!=A;(p2dist y=[-15,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[155,180]

[State -1,CMP]
type=changestate
value=410+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,185])&&((enemynear,pos y+enemynear,const(size.head.pos.y))=[enemynear,const(size.head.pos.y)+(-10),5])&&enemynear,statetype!=A;(p2dist y=[-15,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[181,206]
trigger2=movehit&&numtarget&&((stateno=[400,405])||(stateno=[430,435]))&&enemynear,gethitvar(hittime)>=3&&random<100
trigger3=movehit&&numtarget&&((stateno=[200,205])||(stateno=[230,235]))&&enemynear,gethitvar(hittime)>=3&&random=[302,402]

[State -1,CSP]
type=changestate
value=420+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,185])&&((enemynear,pos y+enemynear,const(size.head.pos.y))=[enemynear,const(size.head.pos.y)+(-10),5])&&enemynear,statetype!=A;(p2dist y=[-15,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[207,232]
trigger2=movehit&&numtarget&&((stateno=[410,415])||(stateno=[440,445]))&&enemynear,gethitvar(hittime)>=3&&random<100
trigger3=movehit&&numtarget&&((stateno=[210,215])||(stateno=[240,245]))&&enemynear,gethitvar(hittime)>=3&&random=[302,402]

[State -1,CWK]
type=changestate
value=430+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,90])&&((enemynear,pos y+enemynear,const(size.head.pos.y))=[enemynear,const(size.head.pos.y),5])&&enemynear,statetype!=A;(p2dist y=[-15,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[233,258]
trigger2=movehit&&numtarget&&(stateno=[400,405])&&enemynear,gethitvar(hittime)>=3&&random<100
trigger3=movehit&&numtarget&&(stateno=[200,205])&&enemynear,gethitvar(hittime)>=3&&random=[504,604]

[State -1,CMK]
type=changestate
value=440+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,110])&&((enemynear,pos y+enemynear,const(size.head.pos.y))=[enemynear,const(size.head.pos.y),5])&&enemynear,statetype!=A;(p2dist y=[-15,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[259,284]
trigger2=movehit&&numtarget&&((stateno=[400,405])||(stateno=[430,435]))&&enemynear,gethitvar(hittime)>=3&&random=[100,200]
trigger3=movehit&&numtarget&&(stateno=[410,415])&&enemynear,gethitvar(hittime)>=3&&random=[100,200]
trigger4=movehit&&numtarget&&((stateno=[200,205])||(stateno=[230,235]))&&enemynear,gethitvar(hittime)>=3&&random=[403,503]
trigger5=movehit&&numtarget&&(stateno=[210,215])&&enemynear,gethitvar(hittime)>=3&&random=[403,503]

[State -1,CSK]
type=changestate
value=450+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,155])&&((enemynear,pos y+enemynear,const(size.head.pos.y))=[enemynear,const(size.head.pos.y)+(-15),5])&&enemynear,statetype!=A;(p2dist y=[-15,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[285,310]
trigger2=movehit&&numtarget&&((stateno=[410,415])||(stateno=[440,445]))&&enemynear,gethitvar(hittime)>=3&&random=[100,200]
trigger3=movehit&&numtarget&&(stateno=[420,425])&&enemynear,gethitvar(hittime)>=3&&random<100
trigger4=movehit&&numtarget&&((stateno=[210,215])||(stateno=[240,245]))&&enemynear,gethitvar(hittime)>=3&&random=[504,604]
trigger5=movehit&&numtarget&&((stateno=[220,225]))&&enemynear,gethitvar(hittime)>=3&&random=[100,200]
trigger6=(ctrl||(stateno=100&&animelemtime(2)>1))&&(random=[50,100])&&enemynear,statetype=S&&enemynear,movetype=A&&!(enemynear,hitdefattr=SCA,SA,HA,AP,AT)

[State -1,AWP]
type=changestate
value=600+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype=A
triggerall=(p2bodydist x=[0,55])&&(p2dist y=[-20,100])
trigger1=ctrl&&random=[311,336]

[State -1,AMP]
type=changestate
value=610+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype=A
triggerall=(p2bodydist x=[0,130])&&(p2dist y=[-50,50])
trigger1=ctrl&&random=[337,362]
trigger2=movehit&&numtarget&&((stateno=[600,605])||(stateno=[630,635]))&&enemynear,gethitvar(hittime)>=3&&random<100

[State -1,ASP]
type=changestate
value=620+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype=A
triggerall=(p2bodydist x=[0,120])&&(p2dist y=[-20,80])
trigger1=ctrl&&random=[363,388]
trigger2=movehit&&numtarget&&((stateno=[610,615])||(stateno=[640,645]))&&enemynear,gethitvar(hittime)>=3&&random<100

[State -1,AWK]
type=changestate
value=630+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype=A
triggerall=(p2bodydist x=[0,130])&&(p2dist y=[-50,60])
trigger1=ctrl&&random=[389,414]
trigger2=movehit&&numtarget&&(stateno=[600,605])&&enemynear,gethitvar(hittime)>=3&&random=[100,200]

[State -1,AMK]
type=changestate
value=640+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype=A
triggerall=(p2bodydist x=[0,130])&&(p2dist y=[-50,60])
trigger1=ctrl&&random=[415,440]
trigger2=movehit&&numtarget&&((stateno=[600,605])||(stateno=[630,635]))&&enemynear,gethitvar(hittime)>=3&&random=[201,301]
trigger3=movehit&&numtarget&&(stateno=[610,615])&&enemynear,gethitvar(hittime)>=3&&random=[100,200]

[State -1,ASK]
type=changestate
value=650+(5*(p2bodydist x<25))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype=A
triggerall=(p2bodydist x=[0,165])&&(p2dist y=[-60,10])
trigger1=ctrl&&random=[441,466]
trigger2=movehit&&numtarget&&((stateno=[610,615])||(stateno=[640,645]))&&enemynear,gethitvar(hittime)>=3&&random=[201,301]
trigger3=movehit&&numtarget&&(stateno=[620,625])&&enemynear,gethitvar(hittime)>=3&&random<100

[State -1,Yoga_Drill]
type=ChangeState
value=700
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype=A&&pos y<=-40
triggerall=p2bodydist x>200&&p2dist y>=-25
trigger1=ctrl&&random=[800,825]

[State -1,Yoga_Drill]
type=ChangeState
value=705
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype=A&&pos y<=-40
triggerall=p2bodydist x>200&&p2dist y>=-25
trigger1=ctrl&&random=[826,851]

[State -1,Yoga_Drill]
type=ChangeState
value=710
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype=A&&pos y<=-40
triggerall=(p2bodydist x=[100,150])&&p2dist y>=-25
trigger1=ctrl&&random=[852,877]

[State -1,Yoga_Drill]
type=ChangeState
value=715
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype=A&&pos y<=-40
triggerall=(p2bodydist x=[0,70])&&p2dist y>=-25
trigger1=ctrl&&random=[878,903]
trigger2=ctrl&&(stateno=[1600,1650])&&enemynear,statetype!=A&&random<200

[State -1,Yoga_Nuggy]
type=changestate
value=800
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=enemynear,movetype!=H&&enemynear,statetype!=A
triggerall=p2bodydist x=[0,25]
triggerall=ctrl
trigger1=random>=ifelse((enemynear,stateno=[120,155]),200,900)

[State -1,Yoga_Throw]
type=changestate
value=820
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=enemynear,movetype!=H&&enemynear,statetype!=A
triggerall=p2bodydist x=[0,25]
triggerall=ctrl
trigger1=random<=ifelse((enemynear,stateno=[120,155]),800,100)
;===========================================================================
[State -1,AI_SPECIAL]
type=Null
trigger1=0
;===========================================================================
[State -1,Yoga_Fire]
type=changestate
value=(ifelse(!var(30)&&!var(50)&&power>=500&&(random>900||p2bodydist x>175),4000,1300))
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,stateno!=5120&&enemynear,stateno!=5201;enemynear,statetype!=L&&
triggerall=statetype!=A
triggerall=!numhelper(8000)
triggerall=p2bodydist x>=0&&(enemynear,pos y+enemynear,const(size.mid.pos.y))=[-130,5]
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[447,472]
trigger2=(ifelse(random<200,movecontact,movehit))&&numtarget&&((stateno=[220,225])||(stateno=[250,255]))&&enemynear,gethitvar(hittime)>=3&&random=[201,301]
trigger3=(ifelse(random<200,movecontact,movehit))&&numtarget&&(stateno=[420,425])&&enemynear,gethitvar(hittime)>=3&&random=[0,50]
trigger4=(ctrl||(stateno=100&&animelemtime(2)>1))&&enemynear,movetype=A&&!(enemynear,hitdefattr=SCA,AP,AT,HA)&&p2bodydist x>150&&random<100
[State -1,Yoga_Fire]
type=changestate
value=(ifelse(!var(30)&&!var(50)&&power>=500&&random>900,4050,1350))
triggerall=var(59)=1&&!var(30)&&!var(50)&&power>=500
triggerall=enemynear,stateno!=5120&&enemynear,stateno!=5201;enemynear,statetype!=L&&
triggerall=statetype=A
triggerall=!numhelper(8000)
triggerall=p2bodydist x>=0&&enemynear,pos y>=(pos y+const(size.mid.pos.y))
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&vel y>=0&&random=[447,472]
trigger2=(ifelse(random<200,movecontact,movehit))&&numtarget&&((stateno=[620,625])||(stateno=[650,655]))&&enemynear,gethitvar(hittime)>=3&&random=[100,200]

[State -1,Yoga_Flame]
type=changestate
value=ifelse(!var(30)&&!var(50)&&power>=500&&random>900,4100,1400)
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,110])&&(enemynear,pos y+enemynear,const(size.mid.pos.y))=[-100,5];(p2dist y=[-20,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[473,498]
trigger2=(ifelse(random<200,movecontact,movehit))&&numtarget&&((stateno=[210,215])||(stateno=[240,245]))&&enemynear,gethitvar(hittime)>=3&&(p2bodydist x=[0,65])&&random=[605,705]
trigger3=(ifelse(random<200,movecontact,movehit))&&numtarget&&((stateno=[220,225])||(stateno=[250,255]))&&enemynear,gethitvar(hittime)>=3&&(p2bodydist x=[0,65])&&random=[302,402]
trigger4=(ctrl||(stateno=100&&animelemtime(2)>1))&&enemynear,vel x>=enemynear,const(velocity.walk.fwd.x)&&enemynear,movetype!=A&&random<150
[State -1,Yoga_Flame]
type=changestate
value=ifelse(!var(30)&&!var(50)&&power>=500&&random>900,4150,1450)
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype=A
triggerall=(p2bodydist x=[0,110])&&(p2dist y=[-40,40])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&vel y>=0&&random=[473,498]
trigger2=0;(ifelse(random<200,movecontact,movehit))&&numtarget&&((stateno=[210,215])||(stateno=[240,245]))&&enemynear,gethitvar(hittime)>=3&&random=[605,705]
trigger3=0;(ifelse(random<200,movecontact,movehit))&&numtarget&&((stateno=[220,225])||(stateno=[250,255]))&&enemynear,gethitvar(hittime)>=3&&random=[302,402]
trigger4=0;(ctrl||(stateno=100&&animelemtime(2)>1))&&enemynear,vel x>0&&enemynear,movetype!=A&&random<150

[State -1,Yoga_Blast]
type=changestate
value=ifelse(!var(30)&&!var(50)&&power>=500&&random>900,4200,1500)
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A&&(enemynear,statetype=A&&enemynear,pos y<-15)
triggerall=(p2bodydist x=[0,ifelse(numtarget,85,150)])&&(enemynear,pos y+enemynear,const(size.mid.pos.y))=[-170,5]
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[499,524]
trigger2=0;(ifelse(random<200,movecontact,movehit))&&numtarget&&(stateno=420||stateno=450)&&enemynear,gethitvar(hittime)>=1&&random=[100,200]
trigger3=(ctrl||(stateno=100&&animelemtime(2)>1))&&enemynear,statetype=A&&enemynear,vel y>0&&(p2bodydist x=[0,70])&&random<150

[State -1,Yoga_Teleport]
type=changestate
value=1600
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
;triggerall=statetype!=A
triggerall=(stateno!=[600,699])&&(stateno!=[1600,1650])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[525,550]
[State -1,Yoga_Teleport]
type=changestate
value=1650
triggerall=var(59)=1
triggerall=roundstate=2
;triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
;triggerall=statetype!=A
triggerall=(stateno!=[600,699])&&(stateno!=[1600,1650])
triggerall=alive&&random=[525,530]
triggerall=pos y>=-20
trigger1=canrecover&&hitshakeover
trigger1=movetype=H&&statetype=A&&gethitvar(fall)
trigger2=hitshakeover
trigger2=stateno=[5100,5110]

[State -1,Yoga_Grasp]
type=changestate
value=1700;ifelse(!var(30)&&!var(50)&&power>=500&&random>800&&p2bodydist x>=200,4400,1700)
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,170])&&enemynear,statetype=S
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[499,524]
trigger2=(ifelse(random<200,movecontact,movehit))&&numtarget&&((stateno=[220,225])||(stateno=[250,255]))&&enemynear,gethitvar(hittime)>=3&&random=[403,503]
trigger3=(ifelse(random<200,movecontact,movehit))&&numtarget&&(stateno=[420,425])&&enemynear,gethitvar(hittime)>=1&&random=[201,301]
trigger4=0;(ctrl||(stateno=100&&animelemtime(2)>1))&&enemynear,movetype!=A&&random=[152,202]
;===========================================================================
[State -1,AI_HYPER]
type=Null
trigger1=0
;===========================================================================
[State -1,Yoga_Stream]
type=changestate
value=3000
triggerall=var(59)=1&&!var(30)&&!var(50)&&power>=1000
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,200])&&((enemynear,pos y+enemynear,const(size.mid.pos.y))=[enemynear,const(size.mid.pos.y)+(-30),5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[551,576]
trigger2=(ifelse(random<200,movecontact,movehit)||var(22))&&numtarget&&((stateno=[220,225])||(stateno=[250,255]))&&enemynear,gethitvar(hittime)>=3&&random=[504,604]
trigger3=var(22)&&(stateno=1400||stateno=4100)&&enemynear,gethitvar(hittime)>=3&&random<75

[State -1,Yoga_Volcano]
type=changestate
value=3100
triggerall=var(59)=1&&!var(30)&&!var(50)&&power>=1000
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A&&(enemynear,statetype=A)
triggerall=(p2bodydist x=[0,ifelse(numtarget,85,150)])&&(enemynear,pos y+enemynear,const(size.mid.pos.y))=[-170,5]
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[577,602]
trigger2=(ifelse(random<200,movecontact,movehit))&&numtarget&&((stateno=[220,225])||(stateno=[250,255]))&&enemynear,gethitvar(hittime)>=3&&random=[605,705]
trigger3=var(22)&&(stateno=1500||stateno=4200)&&enemynear,gethitvar(hittime)>=3&&random<75
trigger4=var(22)&&((stateno=[1705,1707])||(stateno=[4405,4410]))&&random<75

[State -1,Yoga_Strike]
type=changestate
value=3300
triggerall=var(59)=1&&!var(30)&&!var(50)&&power>=1000
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A&&enemynear,statetype=A&&enemynear,pos y<-5
triggerall=(p2bodydist x=[0,125])&&(enemynear,pos y+enemynear,const(size.mid.pos.y))=[-200,5];(p2dist y=[-20,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[603,628]
trigger2=0;(ifelse(random<200,movecontact,movehit))&&numtarget&&((stateno=[220,225])||(stateno=[250,255]))&&enemynear,gethitvar(hittime)>=3&&random=[807,907]
trigger3=var(22)&&((stateno=[1705,1707])||(stateno=[4405,4410]))&&random=[75,150]
trigger4=(ctrl||(stateno=100&&animelemtime(2)>1))&&enemynear,vel y>0&&enemynear,vel x>=-.5&&(p2bodydist x=[0,70])&&random>850

[State -1,Yoga_Super_Drill]
type=changestate
value=3400
triggerall=var(59)=1&&!var(30)&&!var(50)&&power>=2000
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype=A
triggerall=(p2bodydist x=[0,125])&&(p2dist y=[-75,75])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[629,654]
trigger2=(ifelse(random<200,movecontact,movehit))&&numtarget&&(stateno=[700,715])&&enemynear,gethitvar(hittime)>=3&&random<=150

[State -1,Yoga_Legend]
type=changestate
value=3500
triggerall=var(59)=1&&!var(30)&&!var(50)&&power>=2000
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
;triggerall=statetype!=A
;triggerall=(p2bodydist x=[0,ifelse(numtarget&&(enemynear,stateno!=[120,155]),160,100)])&&(p2dist y=[-50,10])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[655,680]
trigger2=movehit&&numtarget&&((stateno=[220,225])||(stateno=[250,255]))&&enemynear,gethitvar(hittime)>=3&&random=[706,806]
trigger3=movehit&&numtarget&&((stateno=[620,625])||(stateno=[650,655]))&&enemynear,gethitvar(hittime)>=3&&random=[302,402]
trigger4=var(22)&&((stateno=[1705,1707])||(stateno=[4405,4410]))&&random=[151,226]
trigger5=(ctrl||(stateno=100&&animelemtime(2)>1))&&enemynear,movetype=A&&(p2bodydist x=[200,300])&&random=[400,550]

[State -1,Yoga_Tempest]
type=changestate
value=3600
triggerall=var(59)=1&&!var(30)&&!var(50)&&power>=3000
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x=[0,140])&&((enemynear,pos y+enemynear,const(size.mid.pos.y))=[-115,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[681,706]
trigger2=(ifelse(random<200,movecontact,movehit)||var(22))&&numtarget&&((stateno=[220,225])||(stateno=[250,255]))&&enemynear,gethitvar(hittime)>=3&&random=[807,907]
trigger3=var(22)&&(stateno=1400||stateno=4100)&&enemynear,gethitvar(hittime)>=3&&random=[75,150]

[State -1,Yoga_Catastrophe]
type=changestate
value=3700
triggerall=var(59)=1&&!var(30)&&!var(50)&&power>=3000
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=(p2bodydist x>150)&&((enemynear,pos y+enemynear,const(size.mid.pos.y))=[-115,5])
trigger1=(ctrl||(stateno=100&&animelemtime(2)>1))&&random=[707,732]
trigger2=(ifelse(random<200,movecontact,movehit)||var(22))&&numtarget&&((stateno=[220,225])||(stateno=[250,255]))&&enemynear,gethitvar(hittime)>=3&&random>907
trigger3=var(22)&&(stateno=1400||stateno=4100)&&enemynear,gethitvar(hittime)>=3&&random=[151,226]
;===========================================================================
[State -1,AI_ABILITIES]
type=Null
trigger1=0
;===========================================================================
[State -1,Recovery]
type=changestate
value=ifelse((pos y>=-20),5200,5210)
triggerall=var(59)=1
triggerall=roundstate=2&&alive
trigger1=stateno=5050&&canrecover
trigger1=vel y>=-1&&random<550
;===========================================================================
[State -1,AI_SYSTEM]
type=Null
trigger1=0
;===========================================================================
[State -1,Guard_Counter]
type=changestate
value=1100
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=enemynear,movetype!=H&&enemynear,statetype!=A
triggerall=p2bodydist x=[0,40]
triggerall=ctrl
trigger1=(stateno=150||stateno=151||stateno=152||stateno=153)&&(enemynear,vel x=[-2,2])&&random<=15

[State -1,Dodge]
type=changestate
value=1200
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=ctrl&&!(enemynear,hitdefattr=SCA,AT)
;trigger1=enemynear,movetype=A&&(enemynear,stateno=[200,655])&&(p2bodydist x=[-45,45])&&random<=150
trigger1=enemynear,movetype=A&&(enemynear,stateno!=[3000,3999])&&(inguarddist)&&random<=50

[State -1,Roll_Fwd]
type=changestate
value=1205
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=ctrl&&!(enemynear,hitdefattr=SCA,AT)
trigger1=enemynear,vel x>=0&&(p2bodydist x=[-60,60])&&enemynear,movetype=A&&random<=150
trigger2=backedgebodydist<=5&&enemynear,movetype=A&&random=[300,450]

[State -1,Roll_Bck]
type=changestate
value=1210
triggerall=var(59)=1
triggerall=roundstate=2
triggerall=enemynear,statetype!=L&&enemynear,stateno!=5120&&enemynear,stateno!=5201
triggerall=statetype!=A
triggerall=ctrl&&!(enemynear,hitdefattr=SCA,AT)
triggerall=backedgedist!=[-10,15]
trigger1=enemynear,vel x>1&&(p2bodydist x=[0,60])&&random>=850

[State -1,Power_Charge]
type=changestate
value=6000
triggerall=var(59)=1&&!var(30)&&!var(50)&&!var(55)&&power<3000
triggerall=roundstate=2
triggerall=statetype!=A
triggerall=ctrl
trigger1=enemynear,movetype!=A&&p2dist x>=160&&!enemy,numproj&&!inguarddist&&random>=975
;===========================================================================
[State -1,HYPER MOVES]
type=Null
trigger1=0
;===========================================================================
[State -1,Yoga_Catastrophe]
type=changeState
value=3700
triggerall=var(59)!=1
triggerall=power>=3000&&!var(30)
triggerall=command="Yoga_Catastrophe"
triggerall=!numhelper(8030)
triggerall=statetype!=A
trigger1=ctrl||prevstateno=5120&&time<=6||stateno=21||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,655])&&time>4&&movecontact
trigger3=(stateno=[1300,1999])&&time>4&&movecontact
trigger4=(stateno=[4000,4999])&&time>4&&movecontact
trigger5=var(22)
;--------------------------------------------------------------------------
[State -1,Yoga_Tempest]
type=changeState
value=3600+(50*(statetype=A))
triggerall=var(59)!=1
triggerall=power>=3000&&!var(30)
triggerall=command="Yoga_Tempest"
;triggerall=statetype!=A
trigger1=ctrl||prevstateno=5120&&time<=6||stateno=21||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,655])&&time>4&&movecontact
trigger3=(stateno=[1300,1999])&&time>4&&movecontact
trigger4=(stateno=[4000,4999])&&time>4&&movecontact
trigger5=var(22)
;--------------------------------------------------------------------------
[State -1,Yoga_Legend]
type=changeState
value=3500
triggerall=var(59)!=1
triggerall=power>=2000&&!var(30)
triggerall=command="Yoga_Legend"
;triggerall=statetype!=A
trigger1=ctrl||prevstateno=5120&&time<=6||stateno=21||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,655])
trigger3=(stateno=[1300,1999])&&time>4&&movecontact
trigger4=(stateno=[4000,4999])&&time>4&&movecontact
trigger5=var(22)
;--------------------------------------------------------------------------
[State -1,Yoga_Legend_Contact]
type=changeState
value=3500
triggerall=var(59)!=1
triggerall=power>=2000&&!var(30)
triggerall=command="Yoga_Legend_Contact"
trigger1=movecontact
trigger1=(stateno=[220,225])||(stateno=[250,255])||(stateno=[420,425])||(stateno=[450,455])||(stateno=[620,625])||(stateno=[650,655])
;--------------------------------------------------------------------------
[State -1,Yoga_Stream]
type=changeState
value=3000
triggerall=var(59)!=1
triggerall=power>=1000&&!var(30)
triggerall=command="Yoga_Stream"
triggerall=statetype!=A
trigger1=ctrl||prevstateno=5120&&time<=6||stateno=21||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,455])&&time>4&&movecontact
trigger3=(stateno=[1300,1999])&&time>4&&movecontact
trigger4=(stateno=[4000,4999])&&time>4&&movecontact
trigger5=var(22)
;--------------------------------------------------------------------------
[State -1,Yoga_Volcano]
type=changeState
value=3100
triggerall=var(59)!=1
triggerall=power>=1000&&!var(30)
triggerall=command="Yoga_Volcano"
triggerall=statetype!=A
trigger1=ctrl||prevstateno=5120&&time<=6||stateno=21||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,455])&&time>4&&movecontact
trigger3=(stateno=[1300,1999])&&time>4&&movecontact
trigger4=(stateno=[4000,4999])&&time>4&&movecontact
trigger5=var(22)
;--------------------------------------------------------------------------
[State -1,Yoga_Inferno]
type=changeState
value=3200
triggerall=var(59)!=1
triggerall=power>=1000&&!var(30)
triggerall=command="Yoga_Inferno"
triggerall=statetype!=A
trigger1=ctrl||prevstateno=5120&&time<=6||stateno=21||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,455])&&time>4&&movecontact
trigger3=(stateno=[1300,1999])&&time>4&&movecontact
trigger4=(stateno=[4000,4999])&&time>4&&movecontact
trigger5=var(22)
;--------------------------------------------------------------------------
[State -1,Yoga_Strike]
type=changeState
value=3300
triggerall=var(59)!=1
triggerall=power>=1000&&!var(30)
triggerall=command="Yoga_Strike"
triggerall=statetype!=A
trigger1=ctrl||prevstateno=5120&&time<=6||stateno=21||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,455])&&time>4&&movecontact
trigger3=(stateno=[1300,1999])&&time>4&&movecontact
trigger4=(stateno=[4000,4999])&&time>4&&movecontact
trigger5=var(22)
;--------------------------------------------------------------------------
[State -1,Yoga_Super_Drill]
type=changeState
value=3400
triggerall=var(59)!=1
triggerall=power>=2000&&!var(30)
triggerall=command="Yoga_Volcano"
triggerall=statetype=A
trigger1=ctrl||prevstateno=5120&&time<=6||stateno=21||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,755])&&time>4&&movecontact
trigger3=(stateno=[1300,1999])&&time>4&&movecontact
trigger4=(stateno=[4000,4999])&&time>4&&movecontact
trigger5=var(22)
;===========================================================================
[State -1,EX_SPECIALS]
type=Null
trigger1=0
;===========================================================================
[state -1,Yoga_Teleport]
type=ChangeState
value=1600
triggerall=var(59)!=1
triggerall=(stateno!=[600,699])&&(stateno!=[1600,1650])
triggerall=command="Yoga_Teleport1"||command="Yoga_Teleport2"
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=0;(stateno=[200,655])&&time>4&&movecontact&&!var(30)
trigger3=0;var(50)&&movecontact
;--------------------------------------------------------------------------
[state -1,Yoga_Teleport]
type=ChangeState
value=1650
triggerall=var(59)!=1
triggerall=stateno!=[1600,1650]
triggerall=command="Yoga_Teleport1"||command="Yoga_Teleport2"
triggerall=alive
triggerall=pos y>=-20
trigger1=canrecover&&hitshakeover
trigger1=movetype=H&&statetype=A&&gethitvar(fall)
trigger2=hitshakeover
trigger2=stateno=[5100,5110]
;--------------------------------------------------------------------------
[state -1,Ex_Yoga_Grasp]
type=ChangeState
value=4400
triggerall=var(59)!=1&&!var(30)&&!var(50)&&power>=500
triggerall=command="EX_Yoga_Grasp"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101||stateno=40
trigger2=(stateno=[200,655])&&time>4&&movecontact&&!var(30)
;--------------------------------------------------------------------------
[state -1,Ex_Yoga_Blast]
type=ChangeState
value=4200
triggerall=var(59)!=1&&!var(30)&&!var(50)&&power>=500
triggerall=command="EX_Yoga_Blast"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101||stateno=40
trigger2=(stateno=[200,655])&&time>4&&movecontact&&!var(30)
;--------------------------------------------------------------------------
[state -1,Ex_Yoga_Flame]
type=ChangeState
value=4100+(50*statetype=A)
triggerall=var(59)!=1&&!var(30)&&!var(50)&&power>=500
triggerall=command="EX_Yoga_Flame"
;triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101||stateno=40
trigger2=(stateno=[200,655])&&time>4&&movecontact&&!var(30)
;--------------------------------------------------------------------------
[state -1,Ex_Yoga_Fire]
type=ChangeState
value=4000+(50*statetype=A)
triggerall=var(59)!=1&&!var(30)&&!var(50)&&power>=500
triggerall=!numhelper(8000)
triggerall=command="EX_Yoga_Fire"
;triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101||stateno=40
trigger2=(stateno=[200,655])&&time>4&&movecontact&&!var(30)
;===========================================================================
[State -1,SPECIALS]
type=Null
trigger1=0
;===========================================================================
[state -1,Yoga_Grasp]
type=ChangeState
value=1700
triggerall=var(59)!=1
triggerall=command="Yoga_Grasp1"||command="Yoga_Grasp2"||command="Yoga_Grasp3"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,455])&&time>4&&movecontact&&!var(30)
trigger3=var(50)&&movecontact
;--------------------------------------------------------------------------
[state -1,Yoga_Blast]
type=ChangeState
value=1500
triggerall=var(59)!=1
triggerall=command="Yoga_Blast1"||command="Yoga_Blast2"||command="Yoga_Blast3"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,455])&&time>4&&movecontact&&!var(30)
trigger3=var(50)&&(movecontact||var(22))
;--------------------------------------------------------------------------
[state -1,Yoga_Flame]
type=changestate
value=1400+(50*statetype=A)
triggerall=var(59)!=1
triggerall=command="Yoga_Flame1"||command="Yoga_Flame2"||command="Yoga_Flame3"
;triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,655])&&time>4&&movecontact&&!var(30)
trigger3=var(50)&&(movecontact||var(22))
;--------------------------------------------------------------------------
[state -1,Yoga_Fire]
type=ChangeState
value=1300+(50*statetype=A)
triggerall=var(59)!=1
triggerall=!numhelper(8000)||var(50)
triggerall=command="Yoga_Fire1"||command="Yoga_Fire2"||command="Yoga_Fire3"
;triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,655])&&time>4&&movecontact&&!var(30)
trigger3=var(50)&&(movecontact||var(22))
;===========================================================================
[State -1,ABILITIES]
type=Null
trigger1=0
;===========================================================================
[State -1, charge]
type=ChangeState
value=6000
triggerall=var(59)!=1&&!var(30)&&!var(50)&&!var(55)
triggerall=command="b"&&command="y"
triggerall=power<3000
triggerall=statetype!=A
triggerall=command!="holddown"
trigger1=ctrl;||(stateno=100&&animelemtime(2)>1)||stateno=101
;--------------------------------------------------------------------------
[State -1,CustomCombo]
type=ChangeState
value=6200+(1*(statetype=A))
triggerall=var(59)!=1&&!var(50)&&!var(30)
triggerall=power>=2000
triggerall=command="z"&&Command="c"&&command="y"
trigger1=ctrl
trigger2=(stateno=[200,799])&&movecontact
;--------------------------------------------------------------------------
[State -1,Vigor_Mode]
type=ChangeState
value=6300
triggerall=var(59)!=1
triggerall=power>=1000||var(30)
triggerall=!var(50)
triggerall=statetype!=A
triggerall=command="z"&&command="c"
trigger1=ctrl
;===========================================================================
[State -1,FUNCTIONS]
type=Null
trigger1=0
;===========================================================================
[state -1,Guard_Counter]
type=changestate
value=1100
triggerall=var(59)!=1
triggerall=statetype!=A
triggerall=power>=1000
triggerall=command="GuardCounter"&&command!="holddown"&&command="holdfwd"
trigger1=(stateno=150||stateno=151||stateno=152||stateno=153)
;--------------------------------------------------------------------------
[state -1,Dodge]
type=changestate
value=1200
triggerall=var(59)!=1
;triggerall=command!="holddown"
triggerall=statetype!=A
triggerall=command="a"&&Command="x"&&command!="holdfwd"&&command!="holdback"
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
;--------------------------------------------------------------------------
[state -1,FwdRoll]
type=changestate
value=1205
triggerall=var(59)!=1
;triggerall=command!="holddown"
triggerall=statetype!=A
triggerall=command="a"&&Command="x"&&command="holdfwd"
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
;--------------------------------------------------------------------------
[state -1,BackRoll]
type=changestate
value=1210
triggerall=var(59)!=1
;triggerall=command!="holddown"
triggerall=statetype!= A
triggerall=command="a"&&Command="x"&&command="holdback"
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
;---------------------------------------------------------------
[state -1,Standing_Parry]
type=hitoverride
triggerall=!var(59)
triggerall=command="fwd"&&command!="back"&&command!="up"&&command!="down"
trigger1=ctrl
attr=SA,AA,AP
stateno=6100
slot=0
time=2
;---------------------------------------------------------------
[state -1,Parry_Crouch]
type=hitoverride
triggerall=!var(59)
triggerall=(statetype=S&&command="down")||(statetype=C&&command="fwd")&&command!="back"&&command!="up"
trigger1=ctrl
attr=C,AA,AP
stateno=6101
slot=0
time=2
;---------------------------------------------------------------
[state -1,Parry_Air]
type=hitoverride
triggerall=!var(59)
triggerall=(statetype=A&&command="fwd")&&command!="back"&&command!="up"&&command!="down"
trigger1=ctrl
attr=SA,AA,AP
stateno=6102
forceair=1
slot=0
time=2
;===========================================================================
[State -1,NORMALS]
type=Null
trigger1=0
;===========================================================================
[State -1,Run_Fwd]
type=changestate
value=100
triggerall=var(59)!=1
triggerall=statetype!=A
trigger1=command="FF"
trigger1=ctrl;||((stateno=[105,106])&&animelemtime(2)>1)
;---------------------------------------------------------------------------
[State -1,Run_Back]
type=changestate
value=105
triggerall=var(59)!=1
triggerall=statetype!=A
trigger1=command="BB"
trigger1=ctrl;||((stateno=[100,101])&&animelemtime(2)>1)
;---------------------------------------------------------------------------
[State -1,Yoga_Nuggy]
type=ChangeState
value=800
triggerall=var(59)!=1
triggerall=command="holdfwd"||command="holdback"
triggerall=command="z"&&command!="holddown"
triggerall=enemynear,statetype!=A&&(p2bodydist x=[-1,20])&&enemynear,statetype!=L&&enemynear,hitover
triggerall=statetype!=A
trigger1=ctrl||((stateno=[100,101])&&animelemtime(2)>1)
;---------------------------------------------------------------------------
[State -1,Yoga_Throw]
type=ChangeState
value=820
triggerall=var(59)!=1
triggerall=command="holdfwd"||command="holdback"
triggerall=command="c"&&command!="holddown"
triggerall=enemynear,statetype!=A&&(p2bodydist x=[-1,20])&&enemynear,statetype!=L&&enemynear,hitover
triggerall=statetype!=A
trigger1=ctrl||((stateno=[100,101])&&animelemtime(2)>1)
;---------------------------------------------------------------------------
[State -1, Taunt]
type=ChangeState
value=199+(1792*(statetype=A))
triggerall=var(59)!=1
triggerall=stateno!=199
triggerall=command="s"
;trigger1=statetype!=A
trigger1=ctrl
;--------------------------------------------------------------------------
[State -1,Recovery]
type=ChangeState
value=5201
triggerall=var(59)!=1
triggerall=alive
triggerall=stateno=5050||stateno=5071
triggerall=vel y>0
triggerall=pos y>=-5
trigger1=command="recovery"
;---------------------------------------------------------------------------
[State -1,SWP]
type=ChangeState
value=200+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<10))))
triggerall=var(59)!=1
triggerall=command="x"&&command!="holddown"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=0;stateno=400&&time>2&&movecontact&&!var(30)
trigger3=0;stateno=430&&time>2&&movecontact&&!var(30)
trigger4=var(50)&&movecontact&&stateno=[200,499]
;---------------------------------------------------------------------------
[State -1,SMP]
type=ChangeState
value=210+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="y"&&command!="holddown"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,205])&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[230,235])&&time>2&&movecontact&&!var(30)
trigger4=(stateno=[400,405])&&time>2&&movecontact&&!var(30)
trigger5=(stateno=[430,435])&&time>2&&movecontact&&!var(30)
trigger6=var(50)&&movecontact&&stateno=[200,499]
;---------------------------------------------------------------------------
[State -1,SSP]
type=ChangeState
value=220+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="z"&&command!="holddown"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,215])&&time>3&&movecontact&&!var(30)
trigger3=(stateno=[230,245])&&time>3&&movecontact&&!var(30)
trigger4=(stateno=[400,415])&&time>3&&movecontact&&!var(30)
trigger5=(stateno=[430,445])&&time>3&&movecontact&&!var(30)
trigger6=var(50)&&movecontact&&stateno=[200,499]
;---------------------------------------------------------------------------
[State -1,SWK]
type=ChangeState
value=230+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="a"&&command!="holddown"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=((stateno=[200,205]))&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[400,405])&&time>2&&movecontact&&!var(30)
trigger4=var(50)&&movecontact&&stateno=[200,499]
;---------------------------------------------------------------------------
[State -1,SMK]
type=ChangeState
value=240+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="b"&&command!="holddown"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,205])&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[210,215])&&time>3&&movecontact&&!var(30)
trigger4=(stateno=[230,235])&&time>2&&movecontact&&!var(30)
trigger5=(stateno=[400,405])&&time>2&&movecontact&&!var(30)
trigger6=(stateno=[410,415])&&time>2&&movecontact&&!var(30)
trigger7=(stateno=[430,435])&&time>2&&movecontact&&!var(30)
trigger8=var(50)&&movecontact&&stateno=[200,499]
;---------------------------------------------------------------------------
[State -1,SSK]
type=ChangeState
value=250+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="c"&&command!="holddown"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,205])&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[210,215])&&time>3&&movecontact&&!var(30)
trigger4=(stateno=[220,225])&&time>4&&movecontact&&!var(30)
trigger5=(stateno=[230,235])&&time>2&&movecontact&&!var(30)
trigger6=(stateno=[240,245])&&time>3&&movecontact&&!var(30)
trigger7=(stateno=[400,405])&&time>2&&movecontact&&!var(30)
trigger8=(stateno=[410,415])&&time>3&&movecontact&&!var(30)
trigger9=(stateno=[420,425])&&time>4&&movecontact&&!var(30)
trigger10=(stateno=[430,435])&&time>2&&movecontact&&!var(30)
trigger11=(stateno=[440,445])&&time>3&&movecontact&&!var(30)
trigger12=var(50)&&movecontact&&stateno=[200,499]
;---------------------------------------------------------------------------
[State -1,CWP]
type=ChangeState
value=400+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="x"&&command="holddown"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=var(50)&&movecontact&&stateno=[200,499]
;---------------------------------------------------------------------------
[State -1,CMP]
type=ChangeState
value=410+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="y"&&command="holddown"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)
trigger2=(stateno=[200,205])&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[230,235])&&time>2&&movecontact&&!var(30)
trigger4=(stateno=[400,405])&&time>2&&movecontact&&!var(30)
trigger5=(stateno=[430,435])&&time>2&&movecontact&&!var(30)
trigger6=var(50)&&movecontact&&stateno=[200,499]
;---------------------------------------------------------------------------
[State -1,CSP]
type=ChangeState
value=420+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="z"&&command="holddown"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)
trigger2=(stateno=[200,205])&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[210,215])&&time>3&&movecontact&&!var(30)
trigger4=(stateno=[230,235])&&time>2&&movecontact&&!var(30)
trigger5=(stateno=[240,245])&&time>3&&movecontact&&!var(30)
trigger6=(stateno=[400,405])&&time>2&&movecontact&&!var(30)
trigger7=(stateno=[410,415])&&time>3&&movecontact&&!var(30)
trigger8=(stateno=[430,435])&&time>2&&movecontact&&!var(30)
trigger9=(stateno=[440,445])&&time>3&&movecontact&&!var(30)
trigger10=var(50)&&movecontact&&stateno=[200,499]
;---------------------------------------------------------------------------
[State -1,CWK]
type=ChangeState
value=430+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="a"&&command="holddown"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)
trigger2=(stateno=[200,205])&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[400,405])&&time>2&&movecontact&&!var(30)
trigger4=(stateno=435)&&time>5&&movecontact&&!var(30)
trigger5=var(50)&&movecontact&&stateno=[200,499]
;---------------------------------------------------------------------------
[State -1,CMK]
type=ChangeState
value=440+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="b"&&command="holddown"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,205])&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[210,215])&&time>3&&movecontact&&!var(30)
trigger4=(stateno=[230,235])&&time>2&&movecontact&&!var(30)
trigger5=(stateno=[400,405])&&time>2&&movecontact&&!var(30)
trigger6=(stateno=[410,415])&&time>3&&movecontact&&!var(30)
trigger7=(stateno=[430,435])&&time>2&&movecontact&&!var(30)
trigger8=var(50)&&movecontact&&stateno=[200,499]
;---------------------------------------------------------------------------
[State -1,CSK]
type=ChangeState
value=450+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="c"&&command="holddown"
triggerall=statetype!=A
trigger1=ctrl||(stateno=100&&animelemtime(2)>1)||stateno=101
trigger2=(stateno=[200,205])&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[210,215])&&time>3&&movecontact&&!var(30)
trigger4=(stateno=[220,225])&&time>4&&movecontact&&!var(30)
trigger5=(stateno=[230,235])&&time>2&&movecontact&&!var(30)
trigger6=(stateno=[240,245])&&time>3&&movecontact&&!var(30)
trigger7=(stateno=[400,405])&&time>2&&movecontact&&!var(30)
trigger8=(stateno=[410,415])&&time>3&&movecontact&&!var(30)
trigger9=(stateno=[420,425])&&time>4&&movecontact&&!var(30)
trigger10=(stateno=[430,435])&&time>2&&movecontact&&!var(30)
trigger11=(stateno=[440,445])&&time>3&&movecontact&&!var(30)
trigger12=var(50)&&movecontact&&stateno=[200,499]
;---------------------------------------------------------------------------
[State -1,Yoga_Drill]
type=ChangeState
value=700+(ifelse(command="a",5,ifelse(command="b",10,ifelse(command="c",15,0))))
triggerall=var(59)!=1
triggerall=(command="z"||command="a"||command="b"||command="c")&&command="holddown"
triggerall=statetype=A&&pos y<=-40
trigger1=ctrl
trigger2=var(50)&&movecontact&&stateno=[600,730]
;---------------------------------------------------------------------------
[State -1,AWP]
type=ChangeState
value=600+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="x"
triggerall=statetype=A
trigger1=ctrl
trigger2=var(50)&&movecontact&&stateno=[600,730]
;---------------------------------------------------------------------------
[State -1,AMP]
type=ChangeState
value=610+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="y"
triggerall=statetype=A
trigger1=ctrl
trigger2=(stateno=[600,605])&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[630,635])&&time>2&&movecontact&&!var(30)
trigger4=var(50)&&movecontact&&stateno=[600,730]
;---------------------------------------------------------------------------
[State -1,ASP]
type=ChangeState
value=620+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="z"
triggerall=statetype=A
trigger1=ctrl
trigger2=(stateno=[600,605])&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[610,615])&&time>3&&movecontact&&!var(30)
trigger4=(stateno=[630,635])&&time>2&&movecontact&&!var(30)
trigger5=(stateno=[640,645])&&time>3&&movecontact&&!var(30)
trigger6=var(50)&&movecontact&&stateno=[600,730]
;---------------------------------------------------------------------------
[State -1,AWK]
type=ChangeState
value=630+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="a"
triggerall=statetype=A
trigger1=ctrl
trigger2=(stateno=[600,605])&&time>2&&movecontact&&!var(30)
trigger3=var(50)&&movecontact&&stateno=[600,730]
;---------------------------------------------------------------------------
[State -1,AMK]
type=ChangeState
value=640+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="b"
triggerall=statetype=A
trigger1=ctrl
trigger2=(stateno=[600,605])&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[610,615])&&time>3&&movecontact&&!var(30)
trigger4=(stateno=[630,635])&&time>2&&movecontact&&!var(30)
trigger5=var(50)&&movecontact&&stateno=[600,730]
;---------------------------------------------------------------------------
[State -1,ASK]
type=ChangeState
value=650+(ifelse(!var(51),(5*(command="holdback")),(5*(p2bodydist x<25))))
triggerall=var(59)!=1
triggerall=command="c"
triggerall=statetype=A
trigger1=ctrl
trigger2=(stateno=[600,605])&&time>2&&movecontact&&!var(30)
trigger3=(stateno=[610,615])&&time>3&&movecontact&&!var(30)
trigger4=(stateno=[620,625])&&time>4&&movecontact&&!var(30)
trigger5=(stateno=[630,635])&&time>2&&movecontact&&!var(30)
trigger6=(stateno=[640,645])&&time>3&&movecontact&&!var(30)
trigger7 = var(50)&&movecontact&&stateno=[600,730]
