;===================================================
[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s
;===================================================
[Defaults]
command.time = 15
command.buffer.time = 1
;-| AI |------------------------------------------------------
[Command]
name = "CPU1"
command = U, D, F, U, D, F
time = 1

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

[Command]
name = "CPU3"
command = U, D, D, U, D, F
time = 1

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

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

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

[Command]
name = "CPU7"
command = F, F, B, U, B, U, D, F
time = 1

[Command]
name = "CPU8"
command = U, D, U, U, B, U, D, F
time = 1

[Command]
name = "CPU9"
command = F, B, B, U, B, U, D, F
time = 1

[Command]
name = "CPU10"
command = F, F, B, B, U, B, U, D, F
time = 1

[Command]
name = "CPU11"
command = U, U, F, U, B, U, D, F
time = 1

[Command]
name = "CPU12"
command = U, B, B, U, B, U, D, F
time = 1

[Command]
name = "CPU13"
command = U, B, F, F, U, B, U, D, F
time = 1

[Command]
name = "CPU14"
command = U, F, B, U, U, B, U, D, F
time = 1

[Command]
name = "CPU15"
command = U, B, F, U, U, B, U, D, F
time = 1

[Command]
name = "CPU16"
command = U, B, B, B, U, B, U, D, F
time = 1

[Command]
name = "CPU17"
command = U, D, B, F, U, B, U, D, F
time = 1

[Command]
name = "CPU18"
command = U, D, B, D, U, B, U, D, F
time = 1

[Command]
name = "CPU19"
command = U, D, F, U, U, B, U, D, F
time = 1

[Command]
name = "CPU20"
command = U, D, U, B, U, B, U, D, F
time = 1

[Command]
name = "CPU21"
command = U, D, F, F, U, B, U, D, F
time = 1

[Command]
name = "CPU22"
command = F, F, F, F, U, B, U, D, F
time = 1

[Command]
name = "CPU23"
command = U, U, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU24"
command = B, B, B, U, B, U, D, F
time = 1

[Command]
name = "CPU25"
command = D, D, D, D, U, B, U, D, F
time = 1

[Command]
name = "CPU26"
command = D, D, D, U, B, U, D, F
time = 1

[Command]
name = "CPU27"
command = F, F, F, U, B, U, D, F
time = 1

[Command]
name = "CPU28"
command = U, U, U, U, B, U, D, F
time = 1

[Command]
name = "CPU29"
command = U, U, B, B, U, B, U, D, F
time = 1

[Command]
name = "CPU30"
command = D, D, F, F, U, B, U, D, F
time = 1

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

[Command]
name = "CPU32"
command = U, B, F, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU33"
command = U, D, D, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU34"
command = F, B, U, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU35"
command = U, F, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU36"
command = U, D, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU37"
command = F, F, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU38"
command = U, D, U, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU39"
command = F, B, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU40"
command = F, F, B, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU41"
command = U, U, F, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU42"
command = U, B, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU43"
command = U, B, F, F, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU44"
command = U, F, B, U, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU45"
command = U, B, F, U, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU46"
command = U, B, B, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU47"
command = U, D, B, F, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU48"
command = U, D, B, D, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU49"
command = U, D, F, U, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU50"
command = U, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU51"
command = U, D, F, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU52"
command = U, B, F, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU53"
command = U, D, D, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1

[Command]
name = "CPU54"
command = F, B, U, U, D, F, U, B, U, D, F, D, U, B, U, D, U, B, U, D, F
time = 1

[command]
name = "2800"
command = ~D, F, a+b
time = 20

[command]
name = "2700"
command = ~D, F, x+y
time = 20

[command]
name = "moon"
command = ~D, F, D, F, x
time = 20

[command]
name = "moon"
command = ~D, F, D, F, y
time = 20

[command]
name = "suta"
command = ~D, B, D, B, x
time = 20

[command]
name = "suta"
command = ~D, B, D, B, y
time = 20

[command]
name = "exp"
command = ~D, F, D, F, a
time = 20

[command]
name = "exp"
command = ~D, F, D, F, b
time = 20

[command]
name = "3050"
command = ~D, B, D, B, a
time = 20

[command]
name = "3050"
command = ~D, B, D, B, b
time = 20

[command]
name = "3900"
command = ~D, D, c
time = 20

[command]
name = "210210"
command = ~D,B, x
time = 20

[command]
name = "3800"
command = ~D, F, c
time = 20

[command]
name = "3700"
command = ~D, B, c
time = 20

[command]
name = "4600"
command = ~D, F, z
time = 35

[command]
name = "4500"
command = D, B, z
time = 50

[command]
name = "起跳落脚"
command = ~D, F, b+y
time = 20

[command]
name = "当身"
command = ~D,B, b+y
time = 20
;-| Special Motions |--------------------
[Command]
name = "upper_x"
command = ~F, D, DF, x

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

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

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

[Command]
name = "QCF_xy"
command = ~D, DF, F, x+y

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

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

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

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

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

[command]
name = "当身必"
command = ~D, D, c
time = 20

[Command]
name = "QCB_b"
command = ~D, DF, F, b
;-| Double Tap |---------
[Command]
name = "FF"     
command = F,F


[Command]
name = "BB"     ;
command = B,B

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

[Command]
name = "xa"
command = x+a
time = 1

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

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

[Command]
name = "僗僩儔僀僇乕彚姭"
command = y+a
time = 1

[Command]
name = "僇僂儞僞乕"
command = x+y+a
time = 1

[Command]
name = "傾乕儅乕"
command = y+a+b
time = 1

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

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


[Command]
name = "back_xa"
command = /B,x+a
time = 1

[Command]
name = "back_xa"
command = 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 = "start"
command = s
time = 1


;========AI用
[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 = "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 = "holda"
command = /$a
time = 1

[Command]
name = "holdy"
command = /$y
time = 1
;------------------------------------------------------------------------------

[Statedef -1]

[State -1]
type = VarSet
trigger1 = 1
var(0) = 0


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

 



;----------------------------------------------------------------------------------------
[State -1]
type = VarSet
trigger1 = statetype != A 
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440
trigger2 = movecontact
trigger3 = stateno = 1310 || stateno = 1330
var(0) = 1

[State -1, suta]
type = ChangeState
value = 2800
triggerall = var(59)= 0
triggerall = command = "2800"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, suta]
type = ChangeState
value = 2700
triggerall = var(59)= 0
triggerall = command = "2700"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, suta]
type = ChangeState
value = 3333
triggerall = var(59)= 0
triggerall = command = "起跳落脚"
triggerall = power >= 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, suta]
type = ChangeState
value = 3338
triggerall = var(59)= 0
triggerall = command = "当身"
triggerall = power >= 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact


[State -1, Stand Strong Punch]
type = ChangeState
value = 210210
triggerall = var(59)= 0
triggerall = command = "210210"
triggerall = power >= 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, suta]
type = ChangeState
value = 4500
triggerall = var(59)= 0
triggerall = command = "4500"
triggerall = power >= 2500
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, suta]
type = ChangeState
value = 4600
triggerall = var(59)= 0
triggerall = command = "4600"
triggerall = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, suta]
type = ChangeState
value = 3900
triggerall = var(59)= 0
triggerall = command = "3900"
triggerall = power >= 2000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, suta]
type = ChangeState
value = 3800
triggerall = var(59)= 0
triggerall = command = "3800"
triggerall = power >= 2000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, suta]
type = ChangeState
value = 3700
triggerall = var(59)= 0
triggerall = command = "3700"
triggerall = power >= 2000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, suta]
type = ChangeState
value = 3050
triggerall = var(59)= 0
triggerall = command = "3050"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, moon]
type = ChangeState
value = 3500
triggerall = var(59)= 0
triggerall = command = "moon"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, suta]
type = ChangeState
value = 3600
triggerall = var(59)= 0
triggerall = command = "suta"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, moon]
type = ChangeState
value = 3300
triggerall = var(59)= 0
triggerall = command = "exp"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, tonado]
type = ChangeState
value = 3100
triggerall = var(59)= 0
triggerall = command = "upper_x"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, tonado]
type = ChangeState
value = 3200
triggerall = var(59)= 0
triggerall = command = "upper_y"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1]
type = ChangeState
value = 330
triggerall = var(59)= 0
triggerall = command = "xa"
triggerall = command != "holddown" && command != "holdback"
triggerall = statetype = S
trigger1 = ctrl = 1

[State -1]
type = ChangeState
value = 340
triggerall = var(59)= 0
triggerall = command = "back_xa"
triggerall = command != "holddown" && command != "holdfwd"
triggerall = statetype = S
trigger1 = ctrl = 1

[State -1, Stand Light Punch]
type = ChangeState
value = 600
triggerall = var(59)= 0
triggerall = command = "tele"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State -1, Stand Light Punch]
type = ChangeState
value = 601
triggerall = var(59)= 0
triggerall = command = "telep"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State -1, Light Kung Fu Palm]
type = ChangeState
value = 1000
triggerall = var(59)= 0
triggerall = command = "QCB_a"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, Light Kung Fu Palm]
type = ChangeState
value = 1100
triggerall = var(59)= 0
triggerall = command = "QCB_b"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 2000;1010
triggerall = var(59)= 0
triggerall = command = "QCF_x"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact


[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 3501;2005;1010
triggerall = var(59)= 0
triggerall = command = "QCF_y"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 3000;1010
triggerall = var(59)= 0
triggerall = command = "QCB_x"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, Strong Kung Fu Palm]
type = ChangeState
value = 3001;1010
triggerall = var(59)= 0
triggerall = command = "QCB_y"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, tonado]
type = ChangeState
value = 3110
triggerall = var(59)= 0
triggerall = command = "upper_x"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(59)= 0
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Run Back]
type = ChangeState
value = 105
triggerall = var(59)= 0
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = var(59)= 0
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

[State -1, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = var(59)= 0
triggerall = command = "b"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = var(59)= 0
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 6

[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = var(59)= 0
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6

[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = var(59)= 0
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 7
trigger3 = (stateno = 230) && time > 9

[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = var(59)= 0
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6

[State -1, Taunt]
type = ChangeState
value = 195
triggerall = var(59)= 0
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl

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


[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = var(59)= 0
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = var(59)= 0
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

[State -1, Crouching Strong Kick]
type = ChangeState
value = 250
triggerall = var(59)= 0
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

[State -1, Jump Light Punch]
type = ChangeState
value = 300
triggerall = var(59)= 0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = statetime >= 7

[State -1, Jump Strong Punch]
type = ChangeState
value = 300
triggerall = var(59)= 0
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact

[State -1, Jump Light Kick]
type = ChangeState
value = 300
triggerall = var(59)= 0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

[State -1, Jump Strong Kick]
type = ChangeState
value = 300
triggerall = var(59)= 0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 
trigger2 = movecontact

[State -1]
type = ChangeState
value = 910
triggerall = var(59)= 0
triggerall = statetype = S
triggerall = Power < 5000
triggerall = ctrl = 1
trigger1 = command = "holda"
trigger1 = command = "holdy" 

[state -1]
type = NotHitBy
triggerall = palno = [9,12]
trigger1 = enemynear,numproj
trigger1 = movetype != H
value = SCA
ignorehitpause = 1

[state -1]
type = NotHitBy
triggerall = palno = [5,8]
trigger1 = enemynear,numproj
trigger1 = movetype != H
trigger1 = life <= 200
value = SCA
ignorehitpause = 1

[State -1]
type = PowerSet
triggerall = palno = 12
trigger1 = 1 
value = 5000
time = 0