; CMD File For "Shyh" 
;=========================
;-| MAX2 Hyper Motion |-
;=========================
[Command]
name = "AIP"
command = ~D, DF, F, b+y
time = 25

;=========================
;-| Hyper Motions |-
;=========================
[Command]
name = "惞掗廫帤椗"
command = ~D, DF, F, D, DF, F, y
time = 24

[Command]
name = "BBS"
command = ~D, DB, B, D, DB, B, y
time = 24

[Command]
name = "my mind"
command = ~D, D, D
time = 32

[Command]
name = "my mind"
command = ~F, D, B, F, D, B, y
time = 32

[Command]
name = "FFBP"
command = ~D, DB, B, D, DB, B, b
time = 24

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

[Command]
name = "FFSD 2"
command = ~D, DB, B, D, F, UF, b
time = 32

;=========================
;-| Special Motions |-
;=========================
[Command]
name = "Resistance F"
command = ~B, D, DF, F, x
time = 24

[Command]
name = "Resistance F"
command = ~B, D, DF, F, y
time = 24

[Command]
name = "Resistance B"
command = ~F, D, DB, B, x
time = 24

[Command]
name = "Resistance B"
command = ~F, D, DB, B, y
time = 24

[Command]
name = "Shiba x"
command = ~B, D, DB, x
time = 20

[Command]
name = "Shiba y"
command = ~B, D, DB, y
time = 20

[Command]
name = "SKF"
command = ~F, D, DF, y
time = 20

[Command]
name = "YLWE"
command = ~F, D, DF, b
time = 20

[Command]
name = "YLWE 2"
command = ~F, D, DF, UF, b
time = 20

[Command]
name = "Hardness K"
command = ~F, D, DF, a
time = 20

[Command]
name = "Violence K"
command = ~D, DF, F, a
time = 20

[Command]
name = "Vanishing K"
command = ~D, DF, F, b
time = 20

;=========================
;-| Double Tap |-
;=========================
[Command]
name = "FF"
command = ~F, F
time = 6
[Command]
name = "FB"
command = ~F, B
time = 6

[Command]
name = "FDF"
command = ~F, D, F
time = 6
[Command]
name = "FDF"
command = ~F, DF, F
time = 6

[Command]
name = "BB"
command = ~B, B
time = 6
[Command]
name = "BF"
command = ~B, F
time = 6
[Command]
name = "BDB"
command = ~B, D, B
time = 6
[Command]
name = "BDB"
command = ~B, DB, B
time = 6

;=========================
;-| 2/3 Button Combi |-
;=========================
[Command]
name = "recovery"   
command = a+x
time = 1

[Command]
name = "evasion"   
command = a+b
time = 1

[Command]
name = "Knock Down"   
command = ~D, c
time = 1

[Command]
name = "Knock Down"   
command = x+y
time = 1

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

[Command]
name = "MAX"   
command = b+y
time = 1

;=========================
;-| Dir + Button |-
;=========================
[Command]
name = "Rock"
command = /F,a
time = 2

[Command]
name = "Rock2"
command = /D,a
time = 2

[Command]
name = "fwd_a"
command = /F,a
[Command]
name = "fwd_b"
command = /F,b
[Command]
name = "fwd_x"
command = /F,x
[Command]
name = "fwd_y"
command = /F,y


[Command]
name = "back_a"
command = /B,a
[Command]
name = "back_b"
command = /B,b
[Command]
name = "back_x"
command = /B,x
[Command]
name = "back_y"
command = /B,y

;=========================
;-| 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

[Command]
name = "fwd"   
command = $F
time = 1

[Command]
name = "back"  
command = $B
time = 1

[Command]
name = "up"    
command = $U
time = 1

[Command]
name = "down"  
command = $D
time = 1

;=========================
;-| Hold Dir |-
;=========================
[Command]
name = "hold_a"   
command = /a
time = 1

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

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

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

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

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

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

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

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

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

[Command]
name = "longjump"
command = $D, $U
time = 20

;=========================

[Statedef -1]

;=========================
[State -1, cancel]
type = Varset
trigger1 = 1
var(30) = 0
[State -1]
type = Varset
triggerall = MoveContact = 1
trigger1 = stateno = 200 || stateno = 205
trigger2 = stateno = 210 || stateno = 215
trigger3 = stateno = 220 || stateno = 225
trigger4 = stateno = 230 || stateno = 235
trigger5 = stateno = 250 || stateno = 650
trigger6 = stateno = 400 || stateno = 410
trigger7 = stateno = 420 || stateno = 430
trigger8 = stateno = 600 || stateno = 610
trigger9 = stateno = 620 || stateno = 630 || stateno = 635
var(30) = stateno
ignorehitpause = 1

[State -1, Boost cancel]
type = Varset
trigger1 = 1
var(31) = 0
[State -1]
type = Varset
trigger1 = stateno = 200 && animelem = 3,>=0
trigger2 = stateno = 205 && animelem = 3,>=0
trigger3 = stateno = 210 && animelem = 3,>=0
trigger4 = stateno = 215 && animelem = 3,>=0
trigger5 = stateno = 220 && animelem = 6,>=0
trigger6 = stateno = 225 && animelem = 4,>=0
trigger7 = stateno = 230 && animelem = 4,>=0
trigger8 = stateno = 235 && animelem = 4,>=0
trigger9 = stateno = 250 && animelem = 5,>=0
trigger10 = stateno = 400 && animelem = 3,>=0
trigger11 = stateno = 410 && animelem = 3,>=0
trigger12 = stateno = 420 && animelem = 3,>=0
trigger13 = stateno = 430 && animelem = 4,>=0
trigger14 = stateno = 600 && animelem = 2,>=0
trigger15 = stateno = 610 && animelem = 4,>=0
trigger16 = stateno = 620 && animelem = 3,>=0
trigger17 = stateno = 630 && animelem = 3,>=0
trigger18 = stateno = 635 && animelem = 6,>=0
trigger19 = stateno = 650 && animelem = 8,>=0
trigger20 = stateno = 305 && animelem = 5,>=0
trigger21 = stateno = 310 && animelem = 5,>=0
trigger22 = stateno = 315
var(31) = 1
ignorehitpause = 1
[State -1]
type = Varset
trigger1 = stateno = 320 && animelem = 4,>=0
trigger2 = stateno = 325
trigger3 = stateno = 1000 && animelem = 3,>=0
trigger4 = stateno = 1010 && animelem = 5,>=0
trigger5 = stateno = 1100 && animelem = 8,>=0
trigger6 = stateno = 1110 && animelem = 10,>=0
trigger7 = stateno = 1200 && animelem = 4,>=0
trigger8 = stateno = 1250 && animelem = 4,>=0
trigger9 = stateno = 1300 && animelem = 4,>=0
trigger10 = stateno = 1410 && animelem = 7,>=0
trigger11 = stateno = 1460 && animelem = 2,>=0
trigger12 = stateno = 1500 && animelem = 6,>=0
trigger13 = stateno = 1550 && animelem = 6,>=0
trigger14 = stateno = 1600 && animelem = 6,>=0
trigger15 = stateno = 1650 && animelem = 6,>=0
var(31) = 2
ignorehitpause = 1

[State -1, Jump Cancel ]
type = ChangeState
value = 40
triggerall = command = "holdup"
trigger1 = var(30) = [210,215]
trigger2 = var(30) = 230 || var(30) = 250
trigger3 = var(30) = 235 && MoveGuarded = 1
trigger4 = var(30) = 410 || var(30) = 430

;=========================
[State -1, 桿尪彾:Alluring Illusion Palm]
type = ChangeState
value = 3500
triggerall = command = "AIP"
triggerall = statetype != A && var(3) >= 7
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = stateno = 550

;---------------------------------------
[State -1, Vanishing Strike ]
type = ChangeState
value = 300
triggerall = statetype != A && command = "MAX"
trigger1 = stateno = [200,299]
trigger2 = stateno = [400,499]
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)

;-------------------
[State -1, Grave Shoot ]
type = ChangeState
value = 320
triggerall = command = "Knock Down" && statetype != A
trigger1 = var(30) = [200,499]
trigger2 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger3 = ctrl || (stateno = 101 && time >= 1)

;-------------------
[State -1, Heavy Strike ]
type = ChangeState
value = 330
triggerall = var(36) = 1
triggerall = command = "recovery" && statetype != A
trigger1 = var(30) = [200,499]
trigger2 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger3 = ctrl || (stateno = 101 && time >= 1)

;----------------------
[State -1, Guard Cancel ]
type = ChangeState
value = 340
trigger1 = command = "holdfwd" && command = "MAX"
trigger1 = power >= 1000 && statetype != A
trigger1 = stateno = [150,155] 

;----------------------
[State -1, Grap Throw]
type = ChangeState
value = 850
triggerall = command = "evasion" && statetype != A
trigger1 = ctrl 
trigger2 = (stateno = 101 && time >= 1) || (stateno = 100 && time >= 3)

;----------------------
[State -1, Aura Guard]
type = varset
triggerall = command = "holdback" && command = "z"
triggerall = power > 0 && var(14) = 0
trigger1 = ctrl || (stateno = [0,52])
trigger2 = (stateno = [120,155])
var(14) = 1

[State -1, Aura Guard End]
type = varset
trigger1 = command != "holdback" || command != "hold_z"
trigger2 = power = 0
trigger3 = !(stateno = [0,52])
trigger3 = !(stateno = [120,155])
trigger3 = !(stateno = [500,549])
var(14) = 0

;----------------------
[State -1, Agility defense S]
type = ChangeState
value = 540
triggerall = stateno = 150 && time = 1
trigger1 = var(18) = [1,6]
trigger1 = prevstateno != [150,155]

[State -1, Agility defense C]
type = ChangeState
value = 541
triggerall = stateno = 152 && time = 1
trigger1 = var(18) = [1,6]
trigger1 = prevstateno != [150,155]

[State -1, Agility defense A]
type = ChangeState
value = 542
triggerall = stateno = 154 && time = 1
trigger1 = var(18) = [1,6]
trigger1 = prevstateno != [150,155]

;=======================================
[State -1, 偝傟偳怱偺娽偼乣:I don't use my eyes,I use my mind]
type = ChangeState
value = 3300
triggerall = var(36) = 1
triggerall = command = "my mind"
triggerall = statetype != A && power >= 1000
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = stateno = 550

[State -2, 怱娽敪摦]
type = Helper
trigger1 = NumHelper(6300) = 0 && Var(28) > 0
trigger1 = statetype = S && movetype = I
trigger1 = command = "holdfwd"
trigger1 = command != "holddown" && command != "holdup"
ID = 6300
stateNo = 6300
name = "Shingan"
postype = P1
pos = 0, 0
helpertype = Normal
keyctrl = 0
ownpal = 1
persistent = 0
ignorehitpause = 1

;---------------------------------------
[State -1, 恗偺惎偺寣柆:Blood of the Benevolence Star]
type = ChangeState
value = 3400
triggerall = command = "BBS"
triggerall = statetype != A && power >= 2000
triggerall = var(6) = 0 && var(7) = 0 && var(38)%2 = 1
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = stateno = 550

;---------------------------------------
[State -1, 楏媟巃恮:Fury Foot Beheading Position]
type = ChangeState
value = 3200
triggerall = command = "FFBP"
triggerall = statetype != A && power >= 1000
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = stateno = 550

;---------------------------------------
[State -1, 楏媟嬻晳:Fury Foot Sky Dance]
type = ChangeState
value = ifelse(statetype = A,3100,3000)
triggerall = var(36) = 1
triggerall = command = "FFSD"
triggerall = power >= 1000
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = stateno = [600,650]
trigger5 = stateno = 550 || stateno = 560

[State -1, 楏媟嬻晳:Fury Foot Sky Dance]
type = ChangeState
value = 3100
triggerall = var(36) = 1
triggerall = command = "FFSD 2"
triggerall = power >= 1000
trigger1 = stateno = 40

;=======================================
[State -1, Resistance]
type = varset
triggerall = command = "Resistance F" || command = "Resistance B"
triggerall = statetype != A && var(6) = 0
triggerall = stateno != [1600,1699]
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = stateno = 550
var(2) = ifelse(command = "hold_x", 0, 1)

[State -1, Resistance]
type = ChangeState
value = ifelse(command = "Resistance F",1600,1650)
triggerall = command = "Resistance F" || command = "Resistance B"
triggerall = statetype != A && var(6) = 0
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = stateno = 550

;---------------------------------------
[State -1, Shiba Attack]
type = ChangeState
value = ifelse(command = "Shiba x",1500,1550)
triggerall = command = "Shiba x" || command = "Shiba y" 
triggerall = statetype != A && var(6) = 0
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = stateno = 550

[State -1]
type = Varset
triggerall = NumHelper(1500) = 1
trigger1 = command = "Shiba x" || command = "Shiba y" 
var(0) = 1

;---------------------------------------
[State -1, 墿柧惲攋:Yellow Light Wakening Explosion]
type = ChangeState
value = ifelse(statetype = A,1450,1400)
triggerall = command = "YLWE"
triggerall = stateno != 1485 
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = var(30) = [600,650]
trigger5 = stateno = 550 || stateno = 560

[State -1, 墿柧惲攋:Yellow Light Wakening Explosion]
type = ChangeState
value = 1450
triggerall = command = "YLWE 2"
trigger1 = stateno = 40

;---------------------------------------
[State -1, 楐嶦対:Split Kill Fist]
type = ChangeState
value = 1300
triggerall = var(36) = 1
triggerall = command = "SKF" 
triggerall = statetype != A
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = stateno = 550

;---------------------------------------
[State -1, 楏媟嬻晳]
type = Varset
trigger1 = stateno != [1000,1299]
var(20) = 0

[State -1, 敀嶋崉媟:White-Heron Hardness Kick]
type = ChangeState
value = 1000
triggerall = command = "Hardness K"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = var(1) = 1
trigger4 = var(20) = 2 || var(20) = 4 || var(20) = 6
trigger5 = stateno = 550

;---------------------------------------
[State -1, 敀嶋栆媟:White-Heron Violence Kick]
type = ChangeState
value = 1100
triggerall = command = "Violence K"
triggerall = statetype != A
triggerall = statetype != A
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = var(1) = 1
trigger4 = var(20) = 1 || (var(20) = [4,5])
trigger5 = stateno = 550

;---------------------------------------
[State -1, 敀嶋柵媟:White-Heron Vanishing Kick]
type = ChangeState
value = 1200
triggerall = command = "Vanishing K"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = var(30) = [200,239]
trigger3 = var(30) = [400,439]
trigger4 = var(1) = 1
trigger4 = var(20) = [1,3]
trigger5 = stateno = 550

;=======================================
[State -1, Nomal Throw]
type = ChangeState
value = 800
triggerall = command = "y" && command = "holdfwd" && command != "holddown"
triggerall = statetype != A && p2bodydist X < 20 && ctrl
trigger1 = stateno != 100 && stateno != 550
trigger1 = p2stateno != [120,159]
trigger1 = p2stateno != 5120 && p2statetype != A && p2movetype != H

[State -1, Nomal Throw]
type = ChangeState
value = 805
triggerall = command = "y" && command = "holdback" && command != "holddown"
triggerall = statetype != A && p2bodydist X < 20 && ctrl
trigger1 = stateno != 100 && stateno != 550
trigger1 = p2stateno != [120,159]
trigger1 = p2stateno != 5120 && p2statetype != A && p2movetype != H

;---------------------------------------
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = command = "start" && statetype != A
trigger1 = ctrl
trigger2 = (stateno = 100 && time >= 3) || (stateno = 101 && time >= 1)


;=======================================
;-| Crouching Action |-
;=======================================
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = var(36) = 1
triggerall = command = "x" && command = "holddown"
triggerall = statetype != A
trigger1 = var(30) = [200,209]
trigger2 = var(30) = 400
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)

;---------------------------------------
[State -1, Crouching Light Kick]
type = ChangeState
value = 410
triggerall =  command = "holddown" && command = "a"
triggerall = statetype != A
trigger1 = var(30) = [200,219]
trigger2 = var(30) = [400,419]
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)

;---------------------------------------
[State -1, Crouching Strong Punch]
type = ChangeState
value = 420
triggerall = var(36) = 1
triggerall =  command = "holddown" && command = "y"
triggerall = statetype != A
trigger1 = var(30) = [200,229]
trigger2 = var(30) = [400,429]
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)

;---------------------------------------
[State -1, Crouching Strong Kick]
type = ChangeState
value = 430
triggerall =  command = "holddown" && command = "b" && statetype != A
trigger1 = var(30) = [200,239]
trigger2 = var(30) = [400,429]
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)

;=======================================
;-| Standing Action |-
;=======================================
[State -1, 仺+ a ]
type = ChangeState
value = 250
triggerall = var(36) = 1
triggerall = command = "Rock"
triggerall = command != "holddown" && statetype != A
trigger1 = var(30) = [200,239]
trigger2 = var(30) = [400,439]
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)

;---------------------------------------
[State -1, Stand Light Punch near]
type = ChangeState
value = 205
triggerall = P2BodyDist X <= 14
triggerall = command = "x" && command != "holddown" && statetype != A
trigger1 = var(30) = 205
trigger2 = var(30) = 400
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)

[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x" && command != "holddown" && statetype != A
trigger1 = var(30) = [200,209]
trigger2 = var(30) = 400
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)

;---------------------------------------
[State -1, Stand Light Kick near]
type = ChangeState
value = 215
triggerall = P2BodyDist X <= 32
triggerall = command = "a" && statetype != A && command != "holddown"
trigger1 = var(30) = [200,219]
trigger2 = var(30) = [400,419]
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)

[State -1, Stand Light Kick]
type = ChangeState
value = 210
triggerall = command = "a" && statetype != A && command != "holddown"
trigger1 = var(30) = [200,219]
trigger2 = var(30) = [400,419]
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)

;---------------------------------------
[State -1, Stand Strong Punch near]
type = ChangeState
value = 225
triggerall = P2BodyDist X <= 21
triggerall = command = "y" && command != "holddown" && statetype != A
trigger1 = var(30) = [200,219]
trigger2 = var(30) = [400,419]
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)

[State -1, Stand Strong Punch]
type = ChangeState
value = 220
triggerall = command = "y" && statetype != A && command != "holddown"
trigger1 = var(30) = [200,219]
trigger2 = var(30) = [400,419]
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)
trigger5 = var(30) = 225

;---------------------------------------
[State -1, Stand Strong Kick near]
type = ChangeState
value = 235
triggerall = P2BodyDist X <= 16
triggerall = command = "b" && command != "holddown" && statetype != A
trigger1 = var(30) = [200,229]
trigger2 = var(30) = [400,429]
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)

[State -1, Stand Strong Kick]
type = ChangeState
value = 230
triggerall = var(36) = 1
triggerall = command = "b" && command != "holddown" && statetype != A
trigger1 = var(30) = [200,229]
trigger2 = var(30) = [400,429]
trigger3 = stateno = 550 || (stateno = 100 && time >= 3) 
trigger4 = ctrl || (stateno = 101 && time >= 1)
trigger5 = var(30) = 235

;=======================================
;-| Air Action |-
;=======================================
[State -1, 伀+ a ]
type = ChangeState
value = 650
triggerall = command = "Rock2" && statetype = A
trigger1 = var(30) = [600,639]
trigger2 = ctrl
trigger3 = stateno = 110 || stateno = 115
trigger4 = stateno = 560

;---------------------------------------
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x" && statetype = A
trigger1 = ctrl
trigger2 = stateno = 110 || stateno = 115
trigger3 = stateno = 560

;---------------------------------------
[State -1, Jump Light Kick]
type = ChangeState
value = 610
triggerall = command = "a" && statetype = A
trigger1 = var(30) = 600
trigger2 = ctrl
trigger3 = stateno = 110 || stateno = 115
trigger4 = stateno = 560

;---------------------------------------
[State -1, Jump Strong Punch]
type = ChangeState
value = 620
triggerall = command = "y" && statetype = A
trigger1 = var(30) = [600,619]
trigger2 = ctrl
trigger3 = stateno = 110 || stateno = 115
trigger4 = stateno = 560

;---------------------------------------
[State -1, Jump Strong Kick]
type = ChangeState
value = 630
triggerall = command = "b" && statetype = A
trigger1 = var(30) = [600,629]
trigger2 = ctrl
trigger3 = stateno = 110 || stateno = 115
trigger4 = stateno = 560

;====================================================================
[State -1, Dash]
type = ChangeState
value = ifelse(P2Dist X < 0 && prevstateno = 52,105,100)
trigger1 = command != "FDF" && command = "FF"
trigger1 = command != "holddown" && statetype = S && ctrl
[State -1]
type = ChangeState
value = ifelse(P2Dist X < 0,105,100)
trigger1 = command != "FDF" && command != "FB" && command = "BF"
trigger1 = command != "holddown" && anim = 5 && prevstateno = 52

;-------------------------
[State -1, Back Step]
type = ChangeState
value = ifelse(P2Dist X < 0 && prevstateno = 52,100,105)
trigger1 = command != "BDB" && command = "BB"
trigger1 = command != "holddown" && statetype = S && ctrl
[State -1]
type = ChangeState
value = ifelse(P2Dist X < 0,100,105)
trigger1 = command != "FDF" && command != "BF" && command = "FB"
trigger1 = command != "holddown" && anim = 5 && prevstateno = 52

;-------------------------
[State -1, Air Dash]
type = ChangeState
value = 110
triggerall = command != "FDF" && command = "FF"
triggerall = pos y <= -30 && var(21) = 0
trigger1 = statetype = A && ctrl
trigger1 = stateno != 111
[State -1]
type = ChangeState
value = 110
triggerall = command != "FDF" && command != "FB"
triggerall = command = "BF" && var(21) = 0
trigger1 = anim = 7
trigger1 = stateno != 111

;-------------------------
[State -1, Air Back Dash]
type = ChangeState
value = 115
triggerall = command != "BDB" && command = "BB"
triggerall = pos y <= -30 && var(21) = 0
trigger1 = statetype = A && ctrl
trigger1 = stateno != 111
[State -1]
type = ChangeState
value = 115
triggerall = command != "FDF" && command != "BF"
triggerall = command = "FB" && var(21) = 0
trigger1 = anim = 7
trigger1 = stateno != 111

;-------------------------
[State -1, Boost Dash]
type = ChangeState
value = ifelse(statetype = A,560,550)
triggerall = command = "z"
trigger1 = ctrl  && command != "holdback" && var(5) >= 20
trigger2 = var(31) = 1 && var(5) >= 20
trigger2 = stateno != 315
trigger3 = var(31) = 2 && var(5) >= 50
trigger3 = stateno != 325

[State -1]
type = Varset
triggerall = command = "z"
trigger1 = stateno = 315 && var(5) >= 20
trigger2 = stateno = 325 && var(5) >= 50
var(1) = 1


