
; Ryu's Command File.


[Command]
name = "CPU0"
command = U,U,D,D,B,F,B,F,s,s
time = 0

[Command]
name = "CPU1"
command = U,U,D,D,B,F,B,F,a,a
time = 0

[Command]
name = "CPU2"
command = U,U,D,D,B,F,B,F,b,b
time = 0

[Command]
name = "CPU3"
command = U,U,D,D,B,F,B,F,c,c
time = 0

[Command]
name = "CPU4"
command = U,U,D,D,B,F,B,F,x,x
time = 0

[Command]
name = "CPU5"
command = U,U,D,D,B,F,B,F,y,y
time = 0

[Command]
name = "CPU6"
command = U,U,D,D,B,F,B,F,z,z
time = 0

[Command]
name = "CPU7"
command = U,U,D,D,B,F,B,F,a,b
time = 0

[Command]
name = "CPU8"
command = U,U,D,D,B,F,B,F,b,c
time = 0

[Command]
name = "CPU9"
command = U,U,D,D,B,F,B,F,a,c
time = 0

[Command]
name = "CPU10"
command = U,U,D,D,B,F,B,F,x,y
time = 0

[Command]
name = "CPU11"
command = U,U,D,D,B,F,B,F,y,z
time = 0

[Command]
name = "CPU12"
command = U,U,D,D,B,F,B,F,x,z
time = 0

[Command]
name = "CPU13"
command = U,U,D,D,B,F,B,F,a,x
time = 0

[Command]
name = "CPU14"
command = U,U,D,D,B,F,B,F,a,y
time = 0

[Command]
name = "CPU15"
command = U,U,D,D,B,F,B,F,a,z
time = 0

[Command]
name = "CPU16"
command = U,U,D,D,B,F,B,F,b,x
time = 0

[Command]
name = "CPU17"
command = U,U,D,D,B,F,B,F,b,y
time = 0

[Command]
name = "CPU18"
command = U,U,D,D,B,F,B,F,b,z
time = 0

[Command]
name = "CPU19"
command = U,U,D,D,B,F,B,F,c,x
time = 0

[Command]
name = "CPU20"
command = U,U,D,D,B,F,B,F,c,y
time = 0

[Command]
name = "CPU21"
command = U,U,D,D,B,F,B,F,c,z
time = 0

[Command]
name = "CPU22"
command = U,U,D,D,B,F,B,F,x,a
time = 0

[Command]
name = "CPU23"
command = U,U,D,D,B,F,B,F,x,b
time = 0

[Command]
name = "CPU24"
command = U,U,D,D,B,F,B,F,x,c
time = 0

[Command]
name = "CPU25"
command = U,U,D,D,B,F,B,F,y,a
time = 0

[Command]
name = "CPU26"
command = U,U,D,D,B,F,B,F,y,b
time = 0

[Command]
name = "CPU27"
command = U,U,D,D,B,F,B,F,y,c
time = 0

[Command]
name = "CPU28"
command = U,U,D,D,B,F,B,F,z,a
time = 0

[Command]
name = "CPU29"
command = U,U,D,D,B,F,B,F,z,b
time = 0

[Command]
name = "CPU30"
command = U,U,D,D,B,F,B,F,z,c
time = 0

[Command]
name = "CPU31"
command = U,U,D,D,B,F,B,F,s,s,s
time = 0



;-| Super Motions |--------------------------------------------------------
[Command]
name = "df2_p1"
command = ~D, DF, F, D, DF, F, x
time = 30
[Command]
name = "df2_p2"
command = ~D, DF, F, D, DF, F, y
time = 30
[Command]
name = "df2_p3"
command = ~D, DF, F, D, DF, F, z
time = 30

[Command]
name = "db2_p1"
command = ~D, DB, B, D, DB, B, x
time = 30
[Command]
name = "db2_p2"
command = ~D, DB, B, D, DB, B, y
time = 30
[Command]
name = "db2_p3"
command = ~D, DB, B, D, DB, B, z
time = 30

[Command]
name = "df2_k1"
command = ~D, DF, F, D, DF, F, a
time = 30
[Command]
name = "df2_k2"
command = ~D, DF, F, D, DF, F, b
time = 30
[Command]
name = "df2_k3"
command = ~D, DF, F, D, DF, F, c
time = 30

[Command]
name = "db2_k1"
command = ~D, DB, B, D, DB, B, a
time = 30
[Command]
name = "db2_k2"
command = ~D, DB, B, D, DB, B, b
time = 30
[Command]
name = "db2_k3"
command = ~D, DB, B, D, DB, B, c
time = 30

;-| Special Motions |------------------------------------------------------
[Command]
name = "dp_k1"
command = ~F, D, DF, a
time = 20
[Command]
name = "dp_k2"
command = ~F, D, DF, b
time = 20
[Command]
name = "dp_k3"
command = ~F, D, DF, c
time = 20

[Command]
name = "dkick_a"
command = ~D, DF, F, a

[Command]
name = "dkick_b"
command = ~D, DF, F, b

[Command]
name = "dkick_c"
command = ~D, DF, F, c

[Command]
name = "dkick_a2"
command = ~D, DF, F, x

[Command]
name = "dkick_b2"
command = ~D, DF, F, y

[Command]
name = "dkick_c2"
command = ~D, DF, F, z


[Command]
name = "dkick_a1"
command = ~D, DB, B, a
time = 10


[Command]
name = "dkick_b1"
command = ~D, DB, B, b
time = 10

[Command]
name = "dkick_c1"
command = ~D, DB, B, c
time = 10


[Command]
name = "B_F_x"
command = ~30$B, F, x
time = 20
[Command]
name = "B_F_y"
command = ~30$B, F, y
time = 20
[Command]
name = "B_F_z"
command = ~30$B, F, z
time = 20

[Command]
name = "D_U_a"
command = ~30$D, U, a
time = 20
[Command]
name = "D_U_b"
command = ~30$D, U, b
time = 20
[Command]
name = "D_U_c"
command = ~30$D, U, c
time = 20

[Command]
name = "XXX"
command = ~x, x, x
time = 28
[Command]
name = "YYY"
command = ~y, y, y 
time = 28
[Command]
name = "ZZZ"
command = ~z, z, z 
time = 28

[Command]
name = "as_b"
command = ~D, DB, B, a+b+c
time = 15


[Command]
name = "as_a"
command = ~D, DB, B, x+y+z
time = 25

[Command]
name = "as_c"
command =  ~D, DF, F, x+y+z
time = 25

[Command]
name = "as_d"
command =  ~D, DF, F, a+b+c
time = 25

[command]
name = "King Boxer"
command = ~D, DF, F, s
time = 25


;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"
command = F, F
time = 10

[Command]
name = "BB"
command = B, B
time = 10

[Command]
name = "Shaking"
command = B, F
time = 10

[Command]
name = "Shaking"
command = F, B
time = 10

;-| 2/3 Button Combination |-----------------------------------------------

[Command]
name = "recovery" ;Required (do not remove)
command = a+b
time = 1
[Command]
name = "recovery"
command = x+y
time = 1

[Command]
name = "PPP"
command = c+z
time = 2
[Command]
name = "KKK"
command = z+c
time = 2

[Command]
name = "PPPP"
command = a+z
time = 2
[Command]
name = "KKKK"
command = x+c
time = 2

[Command]
name = "throw"
command = x+y
time = 2
[Command]
name = "throw2"
command = a+b
time = 2

[Command]
name = "Taunt"
command = s
time = 2

;-| Hold Button |-----------------------------------------------------------
[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_x"
command = /x
time = 1

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

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

;-| Hold Dir |--------------------------------------------------------------
[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

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

[Command]
name = "fwd_b"
command = /F,b
time = 1

[Command]
name = "fwd_c"
command = /F,c
time = 1

[Command]
name = "fwd_x"
command = /F,x
time = 1

[Command]
name = "fwd_y"
command = /F,y
time = 1

[Command]
name = "fwd_z"
command = /F,z
time = 1

[Command]
name = "back_a"
command = /B,a
time = 1

[Command]
name = "back_b"
command = /B,b
time = 1

[Command]
name = "back_c"
command = /B,c
time = 1

[Command]
name = "back_x"
command = /B,x
time = 1

[Command]
name = "back_y"
command = /B,y
time = 1

[Command]
name = "back_z"
command = /B,z
time = 1

[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,b
time = 1

[Command]
name = "down_c"
command = /$D,c
time = 1

[Command]
name = "down_x"
command = /$D,x
time = 1

[Command]
name = "down_y"
command = /$D,y
time = 1

[Command]
name = "down_z"
command = /$D,z
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 = "s"
command = s
time = 1

;-| Hold Dir |--------------------------------------------
[Command]
name = "holdfwd"
command = /$F
time = 1

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

[Command]
name = "dizzyrecover"
command = F,B
time = 12

;---------------------------------------------------------
; Commands
[Statedef -1]




[State -1]
type = VarSet
trigger1 = command = "CPU0"
trigger2 = command = "CPU1"
trigger3 = command = "CPU2"
trigger4 = command = "CPU3"
trigger5 = command = "CPU4"
trigger6 = command = "CPU5"
trigger7 = command = "CPU6"
trigger8 = command = "CPU7"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU8"
trigger2 = command = "CPU9"
trigger3 = command = "CPU10"
trigger4 = command = "CPU11"
trigger5 = command = "CPU12"
trigger6 = command = "CPU13"
trigger7 = command = "CPU14"
trigger8 = command = "CPU15"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU16"
trigger2 = command = "CPU17"
trigger3 = command = "CPU18"
trigger4 = command = "CPU19"
trigger5 = command = "CPU20"
trigger6 = command = "CPU21"
trigger7 = command = "CPU22"
trigger8 = command = "CPU23"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU24"
trigger2 = command = "CPU25"
trigger3 = command = "CPU26"
trigger4 = command = "CPU27"
trigger5 = command = "CPU28"
trigger6 = command = "CPU29"
trigger7 = command = "CPU30"
trigger8 = command = "CPU31"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU0"
trigger2 = command = "CPU1"
trigger3 = command = "CPU2"
trigger4 = command = "CPU3"
trigger5 = command = "CPU4"
trigger6 = command = "CPU5"
trigger7 = command = "CPU6"
trigger8 = command = "CPU7"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU8"
trigger2 = command = "CPU9"
trigger3 = command = "CPU10"
trigger4 = command = "CPU11"
trigger5 = command = "CPU12"
trigger6 = command = "CPU13"
trigger7 = command = "CPU14"
trigger8 = command = "CPU15"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU16"
trigger2 = command = "CPU17"
trigger3 = command = "CPU18"
trigger4 = command = "CPU19"
trigger5 = command = "CPU20"
trigger6 = command = "CPU21"
trigger7 = command = "CPU22"
trigger8 = command = "CPU23"
v = 50
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU24"
trigger2 = command = "CPU25"
trigger3 = command = "CPU26"
trigger4 = command = "CPU27"
trigger5 = command = "CPU28"
trigger6 = command = "CPU29"
trigger7 = command = "CPU30"
trigger8 = command = "CPU31"
v = 50
value = 1




[State -1]
type = ChangeState
value = 3100123
triggerall = var(20) < 5
triggerall = command = "King Boxer"
triggerall = power >= 3000
triggerall = Var(1) > 0
trigger1 = statetype != A
trigger1 = ctrl = 1


;---------------------------------------------------------------------
; 阿修羅閃空・左短距離移動
[State -1]
type = ChangeState
value = 1600111
triggerall = Var(1) > 0
triggerall = (Command = "as_a" && Facing = 1) || (Command = "as_c" && Facing = -1)
triggerall = StateType != A
trigger1 = Ctrl = 1



;---------------------------------------------------------------------
; 阿修羅閃空・左短距離移動
[State -1]
type = ChangeState
value = 1620111
triggerall = Var(1) > 0
triggerall = (Command = "as_b" && Facing = 1) || (Command = "as_d" && Facing = -1)
triggerall = StateType != A
trigger1 = Ctrl = 1



;---------------------------------------------------------------------
; 阿修羅閃空・右長距離移動
[State -1]
type = ChangeState
value = 1640111
triggerall = Var(1) > 0
triggerall = (Command = "as_c" && Facing = 1) || (Command = "as_a" && Facing = -1)
triggerall = StateType != A
trigger1 = Ctrl = 1



;---------------------------------------------------------------------
; 阿修羅閃空・右短距離移動
[State -1]
type = ChangeState
value = 1660111
triggerall = Var(1) > 0
triggerall = (Command = "as_d" && Facing = 1) || (Command = "as_b" && Facing = -1)
triggerall = StateType != A
trigger1 = Ctrl = 1


[State -1, Medium Punch (Var1:1)]
type = ChangeState
value = 2152131
triggerall = command = "dkick_b2"
triggerall = Var(1) > 0
trigger1 = statetype = S
trigger1 = ctrl

[State -1, asraf_2pai]
type = ChangeState
value = 2152131
triggerall = Var(1) > 0
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 40 && p2bodydist X < 50

[State -1, Medium Punch (Var1:1)]
type = ChangeState
value = 200665
triggerall = command = "dkick_a2"
triggerall = Var(1) > 0
trigger1 = statetype = S
trigger1 = ctrl



[State -1, Medium Punch (Var1:1)]
type = ChangeState
value = 2203423
triggerall = command = "dkick_c2"
triggerall = Var(1) > 0
trigger1 = statetype = S
trigger1 = ctrl



[State -1] 
type = ChangeState 
value = 24012355
triggerall = command = "dkick_a1"
triggerall = Var(1) = 0
trigger1 = statetype != A
trigger1 = ctrl  

[State -1, asraf_2pai]
type = ChangeState
value = 24012355
triggerall = Var(1) = 0
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 39 && p2bodydist X < 49

[State -1, hurricane_b]
type = ChangeState
value = 24012355
triggerall = command = "dkick_a1"
triggerall = Var(1) = 0
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 255
trigger9 = stateno = 250
trigger10 = stateno = 400
trigger11 = stateno = 410
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440


[State -1] 
type = ChangeState 
value = 24012356
triggerall = command = "dkick_b1"
triggerall = Var(1) = 0
trigger1 = statetype != A
trigger1 = ctrl  

[State -1, hurricane_b]
type = ChangeState 
value = 24012356
triggerall = command = "dkick_b1"
triggerall = Var(1) = 0
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 255
trigger9 = stateno = 250
trigger10 = stateno = 400
trigger11 = stateno = 410
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440



[State -1] 
type = ChangeState 
value = 24012357
triggerall = command = "dkick_c1"
triggerall = Var(1) = 0
trigger1 = statetype != A
trigger1 = ctrl  


[State -1, asraf_2pai]
type = ChangeState
value = 24012357
triggerall = Var(1) = 0
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 19 && p2bodydist X < 30


[State -1, hurricane_b]
type = ChangeState 
value = 24012357
triggerall = command = "dkick_c1"
triggerall = Var(1) = 0
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 255
trigger9 = stateno = 250
trigger10 = stateno = 400
trigger11 = stateno = 410
trigger12 = stateno = 420
trigger13 = stateno = 430
trigger14 = stateno = 440

;-| Basic Movements |-------------------------------------

[State -1, Medium Kick (Air)]
type = ChangeState
value = 64043
triggerall = command = "dkick_a"
trigger1 = Var(1) = 0
trigger1 = statetype = A
trigger1 = ctrl

[State -1, Medium Kick (Air)]
type = ChangeState
value = 64044
triggerall = command = "dkick_b"
trigger1 = Var(1) = 0
trigger1 = statetype = A
trigger1 = ctrl

[State -1, Medium Kick (Air)]
type = ChangeState
value = 64045
triggerall = command = "dkick_c"
trigger1 = statetype = A
trigger1 = Var(1) = 0
trigger1 = ctrl




[State -1, Ensei Ken]
type = ChangeState
value = 1
trigger1 = command = "KKK"
trigger1 = statetype != A
trigger1 = Var(1) = 0
trigger1 = ctrl


;[State -1, asraf_2pai]
;type = ChangeState
;value = 1
;triggerall = Var(1) = 0
;triggerall = Var(50) = 1
;triggerall = statetype != A
;trigger1 = random >= 100 && random < 299 || random >= 800 && random <= 959
;trigger1 = ctrl


[State -1, Ensei Ken]
type = VarSet
triggerall = Var(50) = 1
trigger1 = command = "KKKK"
v = 1
value = 1

[State -1, Toru Ken]
type = ChangeState
value = 2
trigger1 = command = "PPP"
trigger1 = statetype != A
trigger1 = Var(1) > 0
trigger1 = ctrl

;[State -1, asraf_2pai]
;type = ChangeState
;value = 2
;triggerall = Var(1) = 0
;triggerall = Var(50) = 1
;triggerall = statetype != A
;trigger1 = random >= 100 && random < 299 || random >= 800 && random <= 959
;trigger1 = ctrl

[State -1, Toru Ken]
type = VarSet
triggerall = Var(50) = 1
trigger1 = command = "PPPP"
v = 1
value = 0

;remove the ';' to add back dash
;[State -1, Dash Back]
;type = ChangeState
;value = 105
;trigger1 = command = "BB"
;trigger1 = statetype != A
;trigger1 = ctrl = 1

[State -1, Taunt]
type = ChangeState
value = 195
trigger1 = command = "Taunt"
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1


;-| Super |-----------------------------------------------


[State -1, Shin Ten Shu (Level 3)]
type = ChangeState
value = 2002
;triggerall = Var(1) = 0
triggerall = power >= 3000
triggerall = command = "db2_p3"
trigger1 = statetype != A
trigger1 = ctrl

[State -1, hurricane_b]
type = ChangeState
value = 2002
;triggerall = Var(1) = 0
triggerall = power >= 3000
triggerall = command = "db2_p3"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 220
trigger7 = stateno = 230
trigger8 = stateno = 240
trigger9 = stateno = 255
trigger10 = stateno = 250
trigger11 = stateno = 400
trigger12 = stateno = 410
trigger13 = stateno = 420
trigger14 = stateno = 430
trigger15 = stateno = 440
trigger16 = stateno = 450
trigger17 = stateno = 455

[State -1, Shin Ten Shu (Level 2)]
type = ChangeState
value = 2001
;triggerall = Var(1) = 0
triggerall = power >= 2000
triggerall = command = "db2_p2" 
trigger1 = statetype != A
trigger1 = ctrl

[State -1, hurricane_b]
type = ChangeState
value = 2001
;triggerall = Var(1) = 0
triggerall = power >= 2000
triggerall = command = "db2_p2" 
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 220
trigger7 = stateno = 230
trigger8 = stateno = 240
trigger9 = stateno = 255
trigger10 = stateno = 250
trigger11 = stateno = 400
trigger12 = stateno = 410
trigger13 = stateno = 420
trigger14 = stateno = 430
trigger15 = stateno = 440
trigger16 = stateno = 450
trigger17 = stateno = 455

[State -1, Shin Ten Shu (Level 1)]
type = ChangeState
value = 2000
;triggerall = Var(1) = 0
triggerall = power >= 1000
triggerall = command = "db2_p1" 
trigger1 = statetype != A
trigger1 = ctrl

[State -1, hurricane_b]
type = ChangeState
value = 2000
;triggerall = Var(1) = 0
triggerall = power >= 1000
triggerall = command = "db2_p1"  
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 220
trigger7 = stateno = 230
trigger8 = stateno = 240
trigger9 = stateno = 255
trigger10 = stateno = 250
trigger11 = stateno = 400
trigger12 = stateno = 410
trigger13 = stateno = 420
trigger14 = stateno = 430
trigger15 = stateno = 440
trigger16 = stateno = 450
trigger17 = stateno = 455


[State -1, Custom Super-Yang, SF3 (Level 3)]
type = ChangeState
value = 2102
triggerall = Var(1) = 0
triggerall = power >= 3000
triggerall = command = "df2_k3"
trigger1 = statetype != A
trigger1 = ctrl

[State -1, hurricane_b]
type = ChangeState
value = 2102
triggerall = Var(1) = 0
triggerall = power >= 3000
triggerall = command = "df2_k3"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 220
trigger7 = stateno = 230
trigger8 = stateno = 240
trigger9 = stateno = 255
trigger10 = stateno = 250
trigger11 = stateno = 400
trigger12 = stateno = 410
trigger13 = stateno = 420
trigger14 = stateno = 430
trigger15 = stateno = 440
trigger16 = stateno = 450
trigger17 = stateno = 455


[State -1, Custom Super-Yang, SF3 (Level 2)]
type = ChangeState
value = 2101
triggerall = Var(1) = 0
triggerall = power >= 2000
triggerall = command = "df2_k2" 
trigger1 = statetype != A
trigger1 = ctrl

[State -1, hurricane_b]
type = ChangeState
value = 2101
triggerall = Var(1) = 0
triggerall = power >= 2000
triggerall = command = "df2_k2" 
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 220
trigger7 = stateno = 230
trigger8 = stateno = 240
trigger9 = stateno = 255
trigger10 = stateno = 250
trigger11 = stateno = 400
trigger12 = stateno = 410
trigger13 = stateno = 420
trigger14 = stateno = 430
trigger15 = stateno = 440
trigger16 = stateno = 450
trigger17 = stateno = 455



[State -1, Custom Super-Yang, SF3 (Level 1)]
type = ChangeState
value = 2100
triggerall = Var(1) = 0
triggerall = power >= 1000
triggerall = command = "df2_k1" 
trigger1 = statetype != A
trigger1 = ctrl

[State -1, hurricane_b]
type = ChangeState
value = 2100
triggerall = Var(1) = 0
triggerall = power >= 1000
triggerall = command = "df2_k1" 
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 220
trigger7 = stateno = 230
trigger8 = stateno = 240
trigger9 = stateno = 255
trigger10 = stateno = 250
trigger11 = stateno = 400
trigger12 = stateno = 410
trigger13 = stateno = 420
trigger14 = stateno = 430
trigger15 = stateno = 440
trigger16 = stateno = 450
trigger17 = stateno = 455




[State -1, Zan Ei (Level 3)]
type = ChangeState
value = 2202
triggerall = Var(1) = 0
triggerall = power >= 3000
triggerall = command = "df2_p3"
trigger1 = statetype != A
trigger1 = ctrl

[State -1, hurricane_b]
type = ChangeState
value = 2202
triggerall = Var(1) = 0
triggerall = power >= 3000
triggerall = command = "df2_p3"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 220
trigger7 = stateno = 230
trigger8 = stateno = 240
trigger9 = stateno = 255
trigger10 = stateno = 250
trigger11 = stateno = 400
trigger12 = stateno = 410
trigger13 = stateno = 420
trigger14 = stateno = 430
trigger15 = stateno = 440
trigger16 = stateno = 450
trigger17 = stateno = 455


[State -1, Zan Ei (Level 2)]
type = ChangeState
value = 2201
triggerall = Var(1) = 0
triggerall = power >= 2000
triggerall = command = "df2_p2" 
trigger1 = statetype != A
trigger1 = ctrl

[State -1, hurricane_b]
type = ChangeState
value = 2201
triggerall = Var(1) = 0
triggerall = power >= 2000
triggerall = command = "df2_p2" 
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 220
trigger7 = stateno = 230
trigger8 = stateno = 240
trigger9 = stateno = 255
trigger10 = stateno = 250
trigger11 = stateno = 400
trigger12 = stateno = 410
trigger13 = stateno = 420
trigger14 = stateno = 430
trigger15 = stateno = 440
trigger16 = stateno = 450
trigger17 = stateno = 455

[State -1, Zan Ei (Level 1)]
type = ChangeState
value = 2200
triggerall = Var(1) = 0
triggerall = power >= 1000
triggerall = command = "df2_p1" 
trigger1 = statetype != A
trigger1 = ctrl

[State -1, hurricane_b]
type = ChangeState
value = 2200
triggerall = Var(1) = 0
triggerall = power >= 1000
triggerall = command = "df2_p1" 
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 220
trigger7 = stateno = 230
trigger8 = stateno = 240
trigger9 = stateno = 255
trigger10 = stateno = 250
trigger11 = stateno = 400
trigger12 = stateno = 410
trigger13 = stateno = 420
trigger14 = stateno = 430
trigger15 = stateno = 440
trigger16 = stateno = 450
trigger17 = stateno = 455

[State -1, Jya Ho Ha(Level 3)]
type = ChangeState
value = 2302
trigger1 = Var(1) > 0
trigger1 = power >= 3000
trigger1 = command = "df2_k3"
trigger1 = statetype != A
trigger1 = ctrl





[State -1, Jya Ho Ha(Level 2)]
type = ChangeState
value = 2301
trigger1 = Var(1) > 0
trigger1 = power >= 2000
trigger1 = command = "df2_k2" 
trigger1 = statetype != A
trigger1 = ctrl




[State -1, Jya Ho Ha (Level 1)]
type = ChangeState
value = 2300
trigger1 = Var(1) > 0
trigger1 = power >= 1000
trigger1 = command = "df2_k1" 
trigger1 = statetype != A
trigger1 = ctrl




[State -1, Kouga (Level 3)]
type = ChangeState
value = 2402
trigger1 = Var(1) > 0
trigger1 = power >= 3000
trigger1 = command = "db2_k3"
trigger1 = statetype = A
trigger1 = ctrl


[State -1, Kouga (Level 2)]
type = ChangeState
value = 2401
trigger1 = Var(1) > 0
trigger1 = power >= 2000
trigger1 = command = "db2_k2" 
trigger1 = statetype = A
trigger1 = ctrl


[State -1, Kouga (Level 1)]
type = ChangeState
value = 2400
trigger1 = Var(1) > 0
trigger1 = power >= 1000
trigger1 = command = "db2_k1" 
trigger1 = statetype = A
trigger1 = ctrl


;-| Special |---------------------------------------------


[State -1, Kyaku Renko-Slow]
type = ChangeState
value = 1000
trigger1 = Var(1) = 0
trigger1 = command = "XXX"
trigger1 = statetype != A
trigger1 = ctrl ;= 1

[State -1, hurricane_b]
type = ChangeState
value = 1000
triggerall = Var(1) = 0
triggerall = command = "XXX"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 220
trigger7 = stateno = 230
trigger8 = stateno = 240
trigger9 = stateno = 255
trigger10 = stateno = 250
trigger11 = stateno = 400
trigger12 = stateno = 410
trigger13 = stateno = 420
trigger14 = stateno = 430
trigger15 = stateno = 440






[State -1, Kyaku Renko-Normal]
type = ChangeState
value = 1001
trigger1 = Var(1) = 0
trigger1 = command = "YYY"
trigger1 = statetype != A
trigger1 = ctrl ;= 1


[State -1, asraf_2pai]
type = ChangeState
value = 1001
triggerall = Var(1) = 0
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 40 && p2bodydist X < 50

[State -1, hurricane_b]
type = ChangeState
value = 1001
triggerall = Var(1) = 0
triggerall = command = "YYY"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 220
trigger7 = stateno = 230
trigger8 = stateno = 240
trigger9 = stateno = 255
trigger10 = stateno = 250
trigger11 = stateno = 400
trigger12 = stateno = 410
trigger13 = stateno = 420
trigger14 = stateno = 430
trigger15 = stateno = 440


[State -1, Kyaku Renko-Fast]
type = ChangeState
value = 1002
trigger1 = Var(1) = 0
trigger1 = command = "ZZZ"
trigger1 = statetype != A
trigger1 = ctrl ;= 1

[State -1, asraf_2pai]
type = ChangeState
value = 1003
triggerall = Var(1) = 0
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 26 && p2bodydist X < 36

[State -1, hurricane_b]
type = ChangeState
value = 1002
triggerall = Var(1) = 0
triggerall = command = "ZZZ"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 250124
trigger6 = stateno = 220
trigger7 = stateno = 230
trigger8 = stateno = 240
trigger9 = stateno = 255
trigger10 = stateno = 250
trigger11 = stateno = 400
trigger12 = stateno = 410
trigger13 = stateno = 420
trigger14 = stateno = 430
trigger15 = stateno = 440



[State -1, Geki Ro-Light]
type = ChangeState
value = 1100
trigger1 = Var(1) = 0
trigger1 = command = "dp_k1"
trigger1 = statetype != A
trigger1 = ctrl


[State -1, asraf_2pai]
type = ChangeState
value = 1100
triggerall = Var(1) = 0
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 20 && p2bodydist X < 30


[State -1, hurricane_b]
type = ChangeState
value = 1100
triggerall = Var(1) = 0
triggerall = command = "dp_k1"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 215
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 255
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 420
trigger12 = stateno = 430
trigger13 = stateno = 440




[State -1, Geki Ro-Medium]
type = ChangeState
value = 1110
trigger1 = Var(1) = 0
trigger1 = command = "dp_k2"
trigger1 = statetype != A
trigger1 = ctrl

[State -1, asraf_2pai]
type = ChangeState
value = 1110
triggerall = Var(1) = 0
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 10 && p2bodydist X < 30

[State -1, hurricane_b]
type = ChangeState
value = 1110
triggerall = Var(1) = 0
triggerall = command = "dp_k2"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 215
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 255
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 420
trigger12 = stateno = 430
trigger13 = stateno = 440


[State -1, Geki Ro-Hard]
type = ChangeState
value = 1120
trigger1 = Var(1) = 0
trigger1 = command = "dp_k3"
trigger1 = statetype != A
trigger1 = ctrl

[State -1, hurricane_b]
type = ChangeState
value = 1120
triggerall = Var(1) = 0
triggerall = command = "dp_k3"
triggerall = statetype != A
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 200
trigger3 = stateno = 210
trigger4 = stateno = 215
trigger5 = stateno = 215
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 255
trigger9 = stateno = 400
trigger10 = stateno = 410
trigger11 = stateno = 420
trigger12 = stateno = 430
trigger13 = stateno = 440



[State -1, Jya Sen-Light]
type = ChangeState
value = 1200
trigger1 = Var(1) > 0
trigger1 = command = "B_F_x"
trigger1 = statetype != A
trigger1 = ctrl


[State -1, Jya Sen-Medium]
type = ChangeState
value = 1210
trigger1 = Var(1) > 0
trigger1 = command = "B_F_y"
trigger1 = statetype != A
trigger1 = ctrl


[State -1, Jya Sen-Hard]
type = ChangeState
value = 1220
trigger1 = Var(1) > 0
trigger1 = command = "B_F_z"
trigger1 = statetype != A
trigger1 = ctrl

[State -1, asraf_2pai]
type = ChangeState
value = 1220
triggerall = Var(1) > 0
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 100 && p2bodydist X < 120



[State -1, Ouga-Jump 1]
type = ChangeState
value = 1300
triggerall = Var(1) > 0
triggerall = command = "D_U_a"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 40
trigger1 = Ctrl 


[State -1, Ouga-Jump 2]
type = ChangeState
value = 1301
triggerall = Var(1) > 0
triggerall = command = "D_U_b"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 40

[State -1, asraf_2pai]
type = ChangeState
value = 1301
triggerall = Var(1) > 0
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 41 && p2bodydist X < 51


[State -1, Ouga-Jump 3]
type = ChangeState
value = 1302
triggerall = Var(1) > 0
triggerall = command = "D_U_c"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 40

[State -1, asraf_2pai]
type = ChangeState
value = 1302
triggerall = Var(1) > 0
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 66 && p2bodydist X < 80


;-| Attacks |---------------------------------------------



[State -1, Throw]
type = ChangeState
value = 700
triggerall = P2BodyDist X <= 20
triggerall = command = "holdfwd" && command = "throw"
trigger1 = statetype = S
trigger1 = ctrl

; Kick Throw
[State -1, Throw]
type = ChangeState
value = 710
triggerall = P2BodyDist X <= 20
triggerall = command = "holdfwd" && command = "throw2"
trigger1 = statetype = S
trigger1 = ctrl



[State -1, Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl



[State -1, Medium Punch (Var1:0)]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = Var(1) = 0
trigger1 = statetype = S
trigger1 = ctrl



[State -1, Medium Punch (Var1:1)]
type = ChangeState
value = 215
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = Var(1) > 0
trigger1 = statetype = S
trigger1 = ctrl

[State -1] 
type = ChangeState 
value = 200124
triggerall = command = "z"
triggerall = command = "holdfwd" 
triggerall = command != "holddown" 
trigger1 = statetype = S 
trigger1 = ctrl 

[State -1] 
type = ChangeState 
value = 210123
triggerall = command = "z"
triggerall = command = "holdback" 
triggerall = command != "holddown" 
trigger1 = statetype = S 
trigger1 = ctrl 

[State -1, Light Punch]
type = ChangeState
value = 200123
triggerall = P2BodyDist X < 20
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Hard Punch]
type = ChangeState
value = 220
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl





[State -1, Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl



[State -1, Medium Kick]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

[State -1] 
type = ChangeState 
value = 240123
triggerall = command = "c"
triggerall = command = "holdfwd" 
triggerall = command != "holddown"
trigger1 = statetype = S 
trigger1 = ctrl  

[State -1] 
type = ChangeState 
value = 250123
triggerall = command = "c"
triggerall = command = "holdback" 
triggerall = command != "holddown" 
trigger1 = statetype = S 
trigger1 = ctrl 

[State -1, Light Punch]
type = ChangeState
value = 250124
triggerall = P2BodyDist X < 20
triggerall = command = "c"
triggerall = Var(1) = 0
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Hard Kick (Var1:0)]
type = ChangeState
value = 250
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = Var(1) = 0
trigger1 = statetype = S
trigger1 = ctrl



[State -1, Hard Kick (Var1:1)]
type = ChangeState
value = 255
trigger1 = command = "c"
trigger1 = command != "holddown"
trigger1 = Var(1) > 0
trigger1 = statetype = S
trigger1 = ctrl


[State -1, Light Punch (Crouch)]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl


[State -1, Medium Punch (Crouch)]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl



[State -1, Hard Punch (Crouch)]
type = ChangeState
value = 420
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl



[State -1, Light Kick (Crouch)]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl



[State -1, Medium Kick (Crouch/Var1:1)]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl



[State -1, Hard Kick (Crouch/Var1:1)]
type = ChangeState
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = var(1) = 0
trigger1 = statetype = C
trigger1 = ctrl

[State -1, asraf_2pai]
type = ChangeState
value = 131
triggerall = var(1) = 0
triggerall = Var(50) = 1
triggerall = statetype != A
;triggerall = statetype != S
triggerall = p2bodydist X < 80
trigger1 = p2statetype = C
;trigger1 = (enemynear, p2Bodydist x <= 60 && enemynear, movetype != A)
;trigger1 = random >= 100 && random < 299 || random >= 800 && random <= 959
;trigger1 = statetype = C
trigger1 = ctrl

[State -1, asraf_2pai]
type = ChangeState
value = 134
triggerall = var(1) > 0
triggerall = Var(50) = 1
triggerall = statetype != A
;triggerall = statetype != S
triggerall = p2bodydist X < 80
trigger1 = p2statetype = C
;trigger1 = (enemynear, p2Bodydist x <= 60 && enemynear, movetype != A)
;trigger1 = random >= 100 && random < 299 || random >= 800 && random <= 959
;trigger1 = statetype = C
trigger1 = ctrl



[State -1, Hard Kick (Crouch/Var1:2)]
type = ChangeState
value = 455
trigger1 = command = "c"
trigger1 = command = "holddown"
trigger1 = var(1) > 0
trigger1 = statetype = C
trigger1 = ctrl


[State -1, Light Punch (Air)]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl


[State -1, Medium Punch (Air)]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl

[State -1, Hard Punch (Air)]
type = ChangeState
value = 620123
triggerall = command = "z"
triggerall = Vel X = 0
trigger1 = statetype = A
trigger1 = ctrl


[State -1, Hard Punch (Air)]
type = ChangeState
value = 620
triggerall = Vel X > 0 || Vel X < 0
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl


[State -1, Light Kick (Air)]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl


[State -1, Medium Kick (Air)]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl



[State -1, Hard Kick (Air)]
type = ChangeState
value = 650123
triggerall = command = "c"
triggerall = Vel X = 0
trigger1 = statetype = A
trigger1 = ctrl


[State -1, Hard Kick (Air)]
type = ChangeState
value = 650
triggerall = command = "c"
triggerall = Vel X > 0 || Vel X < 0
triggerall = var(1) = 0
trigger1 = statetype = A
trigger1 = ctrl




[State -1, Double Kick (Air)]
type = ChangeState
value = 655
triggerall = Vel X > 0 || Vel X < 0
trigger1 = var(1) > 0
trigger1 = command = "c"
trigger1 = statetype = A
trigger1 = ctrl



;---------------------------------------------------------------------------
;===========================================================================

[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 60 && p2bodydist X < 70



[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 90 && p2bodydist X < 100

[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 120 && p2bodydist X < 130

[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 =  p2bodydist X > 150 && p2bodydist X < 160

[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 175 && p2bodydist X < 185

[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 195 && p2bodydist X < 205

[State -1, hadoken_z]
type = ChangeState
value = 130
triggerall = InGuardDist
triggerall = Var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist X > 240 && p2bodydist X < 250


[State -1, 対地 立ちガード]
type  = ChangeState
value = 130
triggerall = InGuardDist
triggerall = statetype != A
triggerall = EnemyNear,HitDefAttr != SCA,NT,ST,HT
triggerall = var(50) = 1
triggerall = ctrl
triggerall = p2statetype = S
trigger1 = P2BodyDist X = [ceil(40*const(size.xscale)),ceil(90*const(size.xscale))]
trigger1 = var(51) = [0,24]        
trigger2 = P2BodyDist X = [ceil(-15*const(size.xscale)),ceil(39*const(size.xscale))]
trigger2 = var(51) = [10,39]
trigger3 = enemy,teammode = simul 
trigger3 = P2BodyDist X = [ceil(-50*const(size.xscale)),ceil(-16*const(size.xscale))]
trigger3 = var(51) = [0,39]
trigger4 = P2BodyDist X = [ceil(-15*const(size.xscale)),ceil(39*const(size.xscale))]
trigger4 = enemy,hitdefattr = S, NA,SA,HA 
trigger4 = Random < 400
trigger5 = Enemy,NumProj > 0
trigger5 = P2BodyDist X = [ceil(-50*const(size.xscale)),ceil(200*const(size.xscale))]
trigger5 = Random < 400

[State -1, 対空 立ちガード]
type  = ChangeState
value = 130
triggerall = InGuardDist
triggerall = statetype != A
triggerall = EnemyNear,HitDefAttr != SCA,NT,ST,HT
triggerall = var(50) = 1
triggerall = ctrl
triggerall = p2statetype = A
trigger1 = P2BodyDist X = [ceil(40*const(size.xscale)),ceil(90*const(size.xscale))]
trigger1 = var(51) = [0,25]
trigger2 = P2BodyDist X = [ceil(-40*const(size.xscale)),ceil(39*const(size.xscale))]
trigger2 = var(51) = [0,34]
trigger3 = P2BodyDist X = [ceil(-40*const(size.xscale)),ceil(39*const(size.xscale))]
trigger3 = enemy,hitdefattr = A, NA,SA,HA
trigger3 = Random < 400
trigger4 = Enemy,NumProj > 0
trigger4 = P2BodyDist X = [ceil(-50*const(size.xscale)),ceil(200*const(size.xscale))]
trigger4 = Random < 400




[State -1, しゃがみガード]
type  = ChangeState
value = 131
triggerall = InGuardDist
triggerall = statetype = C
triggerall = EnemyNear,HitDefAttr != SCA,NT,ST,HT
triggerall = var(50) = 1
triggerall = random >= 100 && random < 299 || random >= 800 && random <= 959
triggerall = ctrl
trigger1 = p2statetype = C
trigger1 = p2bodydist X > 60 && p2bodydist X < 70
trigger1 = var(51) = [0,34]
trigger2 = p2statetype = C
trigger2 = p2bodydist X > 120 && p2bodydist X < 130
trigger2 = var(51) = [0,35]
trigger3 = p2statetype = S      
trigger3 = p2bodydist X > 150 && p2bodydist X < 160
trigger3 = var(51) = [0,29]
trigger4 = p2statetype = C
trigger4 = enemy,teammode = simul
trigger4 = p2bodydist X > 175 && p2bodydist X < 185
trigger4 = var(51) = [0,45]
trigger5 = p2bodydist X > 195 && p2bodydist X < 205
trigger5 = enemy,hitdefattr = C, NA,SA,HA
trigger5 = Random < 400
trigger6 = Enemy,NumProj > 0
trigger6 = p2bodydist X > 240 && p2bodydist X < 250
trigger6 = Random < 400



[State -1, しゃがみガード]
type  = ChangeState
value = 131
triggerall = InGuardDist
triggerall = statetype = C
triggerall = EnemyNear,HitDefAttr != SCA,NT,ST,HT
triggerall = var(50) = 1
triggerall = ctrl
trigger1 = p2statetype = C
trigger1 = P2BodyDist X = [ceil(40*const(size.xscale)),ceil(85*const(size.xscale))]
trigger1 = var(51) = [0,34]
trigger2 = p2statetype = C
trigger2 = P2BodyDist X = [ceil(-20*const(size.xscale)),ceil(39*const(size.xscale))]
trigger2 = var(51) = [0,35]
trigger3 = p2statetype = S      
trigger3 = P2BodyDist X = [ceil(-15*const(size.xscale)),ceil(39*const(size.xscale))]
trigger3 = var(51) = [0,29]
trigger4 = p2statetype = C
trigger4 = enemy,teammode = simul
trigger4 = P2BodyDist X = [ceil(-50*const(size.xscale)),ceil(-16*const(size.xscale))]
trigger4 = var(51) = [0,45]
trigger5 = P2BodyDist X = [ceil(-20*const(size.xscale)),ceil(39*const(size.xscale))]
trigger5 = enemy,hitdefattr = C, NA,SA,HA
trigger5 = Random < 400
trigger6 = Enemy,NumProj > 0
trigger6 = P2BodyDist X = [ceil(-50*const(size.xscale)),ceil(200*const(size.xscale))]
trigger6 = Random < 400









[State -1, velset]
type = velset
trigger1 = var(50) = 1
trigger1 = stateno = [120,132]
trigger1 = statetype != A
x = 0























