
; 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



; 
;negative edge
;-| special motions |--------------------------------------------------------


[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 = "qcf_xyx"
command = ~D,DF, F, D,DF, x
time = 25

[command]
name = "qcf_xyy"
command =  ~D,DF, F, D,DF, y
time = 25

[command]
name = "qcf_xy"
command = ~D,DF, F, D,DF,  z
time = 25

[command]
name = "qcf_ab"
command = ~D,DB, B, D,DB, c
time = 25

[command]
name = "qcf_abcf"
command = ~D,DB, B, D,DB, b
time = 25

[command]
name = "qcf_abcn"
command = ~D,DB, B, D,DB, a
time = 25


[command]
name = "qcb_xyd"
command = ~D,DB, B, D,DB, y
time = 25

[command]
name = "qcb_xys"
command = ~D,DB, B, D,DB, x
time = 25

[command]
name = "qcb_xy"
command = ~D,DB, B, D,DB, z
time = 25


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

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

;-| special motions |--------------------------------------------------------


[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 = "dp_a"
command = ~D, DB, B, a

[command]
name = "dp_b"
command = ~D, DB, B, b

[command]
name = "dp_c"
command = ~D, DB, B, c


[command]
name = "qcb_x"
command = ~D, DB, B, x

[command]
name = "qcb_y"
command = ~D, DB, B, y

[command]
name = "qcb_z"
command = ~D, DB, B, z


;-| special motions |------------------------------------------------------

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

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

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

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

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

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

[command]
name = "qcb_a"
command = ~D, DB, B, a

[command]
name = "qcb_b"
command = ~D, DB, B, b

[command]
name = "qcb_c"
command = ~D, DB, B, c



;-| 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+y
time = 1

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

;-| Dir + button |---------------------------------------------------------
[command]
name = "down_a"
command = /$D,a
time = 1

[command]
name = "down_b"
command = /$D,b
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

[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 c"
command = /$c
time = 1

[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 = "holddownback"
command = /$DB
time = 1

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

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

[command]
name = "holdupfwd"
command = /$UF
time = 1

[command]
name = "holddownforward"
command = /$DF
time = 1


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


;Partonelle
[state -1,z]
type = changestate
value = 4100
triggerall = command = "qcf_ab"
triggerall = power >= 3000
triggerall = statetype != a
trigger1 = Ctrl




;Partonelle
[state -1,z]
type = changestate
value = 4200 
triggerall = command = "qcf_abcf"
triggerall = power >= 2000
triggerall = statetype != a
trigger1 = ctrl




;Partonelle
[state -1,z]
type = changestate
value = 4300 
triggerall = command = "qcf_abcn"
triggerall = power >= 1000 
triggerall = statetype != a
trigger1 = ctrl



;Framelle
[state -1,z]
type = changestate
value = 4000
;triggerall = var(37) != 1
triggerall = command = "qcf_xy"
triggerall = power >= 3000 
triggerall = statetype != a
trigger1 = ctrl


;Framelle
[state -1,z]
type = changestate
value = 400011
;triggerall = var(37) != 1
triggerall = command = "qcf_xyy"
triggerall = power >= 2000 
triggerall = statetype != a
trigger1 = ctrl


;Framelle
[state -1,z]
type = changestate
value = 400012
;triggerall = var(37) != 1
triggerall = command = "qcf_xyx"
triggerall = power >= 1000 
triggerall = statetype != a
trigger1 = ctrl



;Framelle
[state -1,z]
type = changestate
value = 3300
triggerall = command = "qcb_xy"
triggerall = power >= 3000 
triggerall = statetype != a
trigger1 = ctrl


;Framelle
[state -1,z]
type = changestate
value = 33001
triggerall = command = "qcb_xyd"
triggerall = power >= 2000 
triggerall = statetype != a
trigger1 = ctrl



;Framelle
[state -1,z]
type = changestate
value = 33002
triggerall = command = "qcb_xys"
triggerall = power >= 1000 
triggerall = statetype != a
trigger1 = ctrl



;normal controls============================================









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

[state -1, z]
type = changestate
value = 1400
triggerall = statetype = A
triggerall = command = "qcb_a"
trigger1 = ctrl


[state -1, z]
type = changestate
value = 1410
triggerall = statetype = A
triggerall = command = "qcb_b"
trigger1 = ctrl


[state -1, z]
type = changestate
value = 1420
triggerall = statetype = A
triggerall = command = "qcb_c"
trigger1 = ctrl

;phantoom
[state -1, phantoom]
type = changestate
value = 1200
triggerall = command = "dp_a"
triggerall = statetype != a
trigger1 = ctrl

[State -1]
type = ChangeState
value = 1200
triggerall = command = "dp_a"
triggerall = statetype != A 
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 21770
trigger3 = stateno = 200
trigger4 = stateno = 210
trigger5 = stateno = 220
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 241
trigger9 = stateno = 250
trigger10 = stateno = 400
trigger11 = stateno = 410
trigger12 = stateno = 410
trigger13 = stateno = 430
trigger14 = stateno = 440
;trigger15 = stateno = 450




;power Drain
[state -1, phantoom]
type = changestate
value = 1210
triggerall = statetype != a
triggerall = command = "dp_b"
trigger1 = ctrl




[State -1]
type = ChangeState
value = 1210
triggerall = command = "dp_b"
triggerall = statetype != A 
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 21770
trigger3 = stateno = 200
trigger4 = stateno = 210
trigger5 = stateno = 220
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 241
trigger9 = stateno = 250
trigger10 = stateno = 400
trigger11 = stateno = 410
trigger12 = stateno = 410
trigger13 = stateno = 430
trigger14 = stateno = 440
;trigger15 = stateno = 450


[state -1, phantoom]
type = changestate
value = 1220
triggerall = statetype != a
triggerall = command = "dp_c"
trigger1 = ctrl

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

[State -1]
type = ChangeState
value = 1220
triggerall = command = "dp_c"
triggerall = statetype != A 
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 21770
trigger3 = stateno = 200
trigger4 = stateno = 210
trigger5 = stateno = 220
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 241
trigger9 = stateno = 250
trigger10 = stateno = 400
trigger11 = stateno = 410
trigger12 = stateno = 410
trigger13 = stateno = 430
trigger14 = stateno = 440
;trigger15 = stateno = 450


;phantoom
[state -1, phantoom]
type = changestate
value = 1300
triggerall = command = "qcf_a"
triggerall = statetype != a
trigger1 = ctrl


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

[State -1]
type = ChangeState
value = 1300
triggerall = command = "qcf_a"
triggerall = statetype != A 
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 21770
trigger3 = stateno = 200
trigger4 = stateno = 210
trigger5 = stateno = 220
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 241
trigger9 = stateno = 250
trigger10 = stateno = 400
trigger11 = stateno = 410
trigger12 = stateno = 410
trigger13 = stateno = 430
trigger14 = stateno = 440
;trigger15 = stateno = 450

;power Drain
[state -1, phantoom]
type = changestate
value = 1310
triggerall = statetype != a
triggerall = command = "qcf_b"
trigger1 = ctrl


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

[State -1]
type = ChangeState
value = 1310
triggerall = command = "qcf_b"
triggerall = statetype != a
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 21770
trigger3 = stateno = 200
trigger4 = stateno = 210
trigger5 = stateno = 220
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 241
trigger9 = stateno = 250
trigger10 = stateno = 400
trigger11 = stateno = 410
trigger12 = stateno = 410
trigger13 = stateno = 430
trigger14 = stateno = 440
;trigger15 = stateno = 450

[state -1, phantoom]
type = changestate
value = 1320
triggerall = statetype != a
triggerall = command = "qcf_c"
trigger1 = ctrl


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

[State -1]
type = ChangeState
value = 1320
triggerall = command = "qcf_c"
triggerall = statetype != a
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 21770
trigger3 = stateno = 200
trigger4 = stateno = 210
trigger5 = stateno = 220
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 241
trigger9 = stateno = 250
trigger10 = stateno = 400
trigger11 = stateno = 410
trigger12 = stateno = 410
trigger13 = stateno = 430
trigger14 = stateno = 440
;trigger15 = stateno = 450
;---------------------------------------------------------------------------


;power Drain
[state -1, phantoom]
type = changestate
value = 10011
;triggerall = numexplod(1003) = 0
triggerall = statetype != a
triggerall = command = "qcf_x"
trigger1 = ctrl

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

[State -1]
type = ChangeState
value = 10011
;triggerall = numexplod(1003) = 0
triggerall = command = "qcf_x"
triggerall = statetype != A 
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 21770
trigger3 = stateno = 200
trigger4 = stateno = 210
trigger5 = stateno = 220
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 241
trigger9 = stateno = 250
trigger10 = stateno = 400
trigger11 = stateno = 410
trigger12 = stateno = 410
trigger13 = stateno = 430
trigger14 = stateno = 440
;trigger15 = stateno = 450




;power Drain
[state -1, phantoom]
type = changestate
value = 1001
;triggerall = numexplod(1003) = 0
triggerall = statetype != a
triggerall = command = "qcf_y"
trigger1 = ctrl

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

[State -1]
type = ChangeState
value = 1001
;triggerall = numexplod(1003) = 0
triggerall = command = "qcf_y"
triggerall = statetype != A 
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 21770
trigger3 = stateno = 200
trigger4 = stateno = 210
trigger5 = stateno = 220
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 241
trigger9 = stateno = 250
trigger10 = stateno = 400
trigger11 = stateno = 410
trigger12 = stateno = 410
trigger13 = stateno = 430
trigger14 = stateno = 440
;trigger15 = stateno = 450


;power Drain
[state -1, phantoom]
type = changestate
value = 10012
;triggerall = numexplod(1003) = 0
triggerall = statetype != a
triggerall = command = "qcf_z"
trigger1 = ctrl

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

[State -1]
type = ChangeState
value = 10012
;triggerall = numexplod(1003) = 0
triggerall = command = "qcf_z"
triggerall = statetype != A 
triggerall = movecontact
trigger1 = ctrl
trigger2 = stateno = 21770
trigger3 = stateno = 200
trigger4 = stateno = 210
trigger5 = stateno = 220
trigger6 = stateno = 230
trigger7 = stateno = 240
trigger8 = stateno = 241
trigger9 = stateno = 250
trigger10 = stateno = 400
trigger11 = stateno = 410
trigger12 = stateno = 410
trigger13 = stateno = 430
trigger14 = stateno = 440
;trigger15 = stateno = 450

;---------------------------------------------------------------------------

;phantoom
[state -1, phantoom]
type = changestate
value = 1100
triggerall = command = "qcb_y" 
triggerall = statetype != a
trigger1 = ctrl


;phantoom
[state -1, phantoom]
type = changestate
value = 110011
triggerall = command = "qcb_x" 
triggerall = statetype != a
trigger1 = ctrl



;phantoom
[state -1, phantoom]
type = changestate
value = 110012
triggerall = command = "qcb_z" 
triggerall = statetype != a
trigger1 = ctrl

[State -1, asraf_2pai]
type = ChangeState
value = 110012
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, Throw]
type = ChangeState
value = 800
triggerall = P2BodyDist X <= 20
triggerall = command = "holdfwd" && command = "fwd_2k"
trigger1 = statetype = S
trigger1 = ctrl


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


;===========================================================================
;jump strong kick
;[state -1]
;type = changestate
;value = 40
;triggerall = command = "abc"
;trigger1 = statetype != a
;trigger1 = ctrl
;trigger2 = stateno = [230,270]
;trigger2 = time < 1
;---------------------------------------------------------------------------
;stand light punch
[state -1]
type = changestate
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl

;---------------------------------------------------------------------------
;stand medium punch



[state -1]
type = changestate
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl




[state -1]
type = changestate
value = 211
triggerall = command = "z" 
triggerall = command = "holdfwd"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl



[state -1]
type = changestate
value = 21044
triggerall = command = "z" 
triggerall = command = "holdback"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl

[state -1]
type = changestate
value = 21770
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = P2BodyDist x <= 20
trigger1 = statetype = s
trigger1 = ctrl

; Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 220122
triggerall = command = "z"
triggerall = command != "holdback"
triggerall = command != "holdfwd"
triggerall = command != "holddown"
trigger1 = (stateno = 21770 && movecontact)

;---------------------------------------------------------------------------
;stand strong punch
[state -1]
type = changestate
value = 220
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl ;&& stateno != [100,106]

;---------------------------------------------------------------------------
;stand light kick
[state -1]
type = changestate
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl

[state -1]
type = changestate
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = s 
trigger1 = ctrl


;---------------------------------------------------------------------------

[state -1]
type = changestate
value = 241665
triggerall = command = "c" 
triggerall = command = "holdfwd"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl

[state -1]
type = changestate
value = 241666
triggerall = command = "c" 
triggerall = command = "holdback"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl


[state -1]
type = changestate
value = 241
triggerall = command = "c" 
triggerall = P2BodyDist x <= 15
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl





;standing strong kick
[state -1]
type = changestate
value = 250
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl












;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
;taunt
;挑発
[state -1, taunt]
type = changestate
value = 195
triggerall = command = "start"
trigger1 = statetype != a
trigger1 = ctrl

;---------------------------------------------------------------------------
;crouching light punch
[state -1, crouching light punch]
type = changestate
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype != a
trigger1 = ctrl

;---------------------------------------------------------------------------
;crouching medium punch
[state -1, crouching medium punch]
type = changestate
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype != a
trigger1 = ctrl

;---------------------------------------------------------------------------
;crouching strong punch
[state -1, crouching strong punch]
type = changestate
value = 420
triggerall = command = "z"
trigger1 = statetype != a
trigger1 = ctrl




;---------------------------------------------------------------------------
;crouching light kick
[state -1, crouching light kick]
type = changestate
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype != a
trigger1 = ctrl


;---------------------------------------------------------------------------
;crouching medium kick
[state -1, crouching medium kick]
type = changestate
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype != a
trigger1 = ctrl

;---------------------------------------------------------------------------
;crouching strong kick
[state -1, crouching strong kick]
type = changestate
value = 450
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype != a
trigger1 = ctrl

[State -1, asraf_2pai]
type = ChangeState
value = 131
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


;---------------------------------------------------------------------------

;jump light punch
[state -1]
type = changestate
value = 600
triggerall = command = "x"
trigger1 = statetype = a
trigger1 = ctrl

;---------------------------------------------------------------------------
;jump medium punch
[state -1]
type = changestate
value = 610
triggerall = command = "y"
trigger1 = statetype = a
trigger1 = ctrl

;---------------------------------------------------------------------------
;jump strong punch
[state -1]
type = changestate
value = 62011
triggerall = command = "z"
triggerall = Vel X > 0 || Vel X < 0
trigger1 = statetype = a
trigger1 = ctrl


;jump strong punch
[state -1]
type = changestate
value = 620
triggerall = command = "z"
triggerall = Vel X = 0
trigger1 = statetype = a
trigger1 = ctrl



;---------------------------------------------------------------------------
;jump light kick
[state -1]
type = changestate
value = 630
triggerall = command = "a"
trigger1 = statetype = a
trigger1 = ctrl
;---------------------------------------------------------------------------
;jump medium kick
[state -1]
type = changestate
value = 640
triggerall = command = "b"
trigger1 = statetype = a
trigger1 = ctrl
;---------------------------------------------------------------------------
;jump strong kick
[state -1]
type = changestate
value = 650
triggerall = command = "c"
triggerall = Vel X > 0 || Vel X < 0
trigger1 = statetype = a
trigger1 = ctrl


;jump strong kick
[state -1]
type = changestate
value = 65011
triggerall = command = "c"
triggerall = Vel X = 0
trigger1 = statetype = a
trigger1 = ctrl



[State -1, Taunt]
type = changestate
value = 195
triggerall = (command = "start")
triggerall = statetype = S
triggerall = var(5) = 0
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
























