;-| 挻昁嶦媄 |--------------------------------------------------------
[Command]
name = "td"
command = ~D, DF, F, D, DF, F, y
time = 20

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

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

[Command]
name = "TripleKFPalm"
command = ~D, DF, F, D, DF, F, x
time = 20



;-| 昁嶦媄 |------------------------------------------------------
[Command]
name = "BDF_x"
command = ~B, D, F, x

[Command]
name = "BDF_b"
command = ~B, D, F, b

[Command]
name = "BDF_a"
command = ~B, D, F, a

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

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

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

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

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

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

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

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

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

[Command]
name = "shb"
command = ~F, D, DF, b
time = 15

[Command]
name = "sha"
command = ~F, D, DF, a
time = 15

[Command]
name = "FF_ab"
command = F, F, a+b

[Command]
name = "FF_a"
command = F, F, a

[Command]
name = "FF_b"
command = F, F, b



;仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸僴僀僕儍儞僾僐儅儞僪
;壓傪偪傚偭偲墴偟偰忋傪墴偡丄偲尵偆堄枴丅
[Command]
name = "jump"    
command = ~D,$U
time = 10

;仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸慜旔偗
;慜傪墴偟側偑傜俙亄俛丄偲偄偆堄枴
[Command]
name = "away-f"    
command = /F,a+b
time = 10

;仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸仸慜旔偗
;屻傪墴偟側偑傜俙亄俛丄偲偄偆堄枴
[Command]
name = "away-b"    
command = /B,a+b
time = 10

;-| 俀夞墴偟媄 |-----------------------------------------------------------
[Command]
name = "FF"     
command = F, F
time = 10

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

;-| 俀丒俁屄偺摨帪墴偟媄 |-----------------------------------------------
[Command]
name = "recovery"
command = x+y
time = 1

;-| 曽岦偲儃僞儞偱弌偡媄 |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

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

;---------------------------
;(乽僷儚乕棴傔乿梡偵僐儅儞僪傪捛壛偟偰傑偡)
[Command]
name = "hold_y"
command = /y

;-| 儃僞儞愝掕乮偄偠傜側偄乯|---------------------------------------------------------
[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 = "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 = "holdx"
command = /$x
time = 1

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

; 壓偺婰弎伀偼愨懳偵徚偝側偄偱偔偩偝偄丅
[Statedef -1]

;===========================================================================
;---------------------------------------------------------------------------
;僐儅搳偘 巭傔
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 1021
triggerall = power >= 1000
triggerall = command = "x"||command = "a"||command = "b"
trigger1 = statetype != A
trigger1 = stateno=1010
trigger2 = stateno=1020
trigger2 = animelem=1
trigger2 = animelem=2
trigger2 = animelem=3

;僪傾
[State -1, Triple Kung Fu Palm]
type = ChangeState
value = 2700
triggerall = command = "c"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact
;---------------------------------------------------------------------------
;僞僀僼乕儞倢倴侾
[State -1, Triple Kung Fu Palm]
type = ChangeState
value = 2600
triggerall = command = "TripleKFPalm"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact

;僞僀僼乕儞倢倴2
[State -1, Triple Kung Fu Palm]
type = ChangeState
value = 2602
triggerall = command = "ty"
triggerall = power >= 1000
triggerall =var(30)>=10000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact


;僞僀僼乕儞倢倴3
[State -1, Triple Kung Fu Palm]
type = ChangeState
value = 2604
triggerall = command = "tx"
triggerall = power >= 1000
triggerall =var(30)>=20000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact
;===========================================================================

;僟僢僔儏僉儍儞僙儖
[State -1, Triple Kung Fu Palm]
type = ChangeState
value = 104
triggerall = command = "FF"
triggerall = statetype = S||  statetype = C
triggerall =var(30)>=10000
trigger1 = movecontact
;---------------------------------------------------------------------------


;僐儅搳偘LV1
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 1000
triggerall = command = "BDF_x"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;僐儅搳偘LV2
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 1001
triggerall = command = "BDF_b"
triggerall =var(30)>=10000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;僐儅搳偘LV3
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 1002
triggerall = command = "BDF_a"
triggerall =var(30)>=20000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;徃棾LV1
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 2500
triggerall = command = "shx"
trigger1 = ctrl
trigger2 = movecontact
trigger2 = (stateno = [200,299]) || (stateno = [400,499])|| (stateno = [600,699])

;徃棾LV2
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 2501
triggerall = command = "shb"
triggerall =var(30)>=10000
trigger1 = ctrl
trigger2 = movecontact
trigger2 = (stateno = [200,299]) || (stateno = [400,499])|| (stateno = [600,699])

;徃棾LV3
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 2502
triggerall = command = "sha"
triggerall =var(30)>=20000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = (stateno = [200,299]) || (stateno = [400,499])

;旘傃摴嬶LV1
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 2300
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

;旘傃摴嬶LV2
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 2302
triggerall = command = "QCF_b"
triggerall =var(30)>=10000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;旘傃摴嬶LV3
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 2304
triggerall = command = "QCF_a"
triggerall =var(30)>=20000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;撍恑媄LV1
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 2400
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

;撍恑媄LV2
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 2410
triggerall = command = "QCB_b"
triggerall =var(30)>=10000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;撍恑媄LV3
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 2420
triggerall = command = "QCB_a"
triggerall =var(30)>=20000
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 = 710
triggerall = command = "hold_y"
trigger1 = stateno = [2000,2599]
trigger1 = movecontact
;===========================================================================
;---------------------------------------------------------------------------
;僟僢僔儏
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;屻戅僟僢僔儏
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl



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


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






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

;6B
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 245
triggerall = command = "b"
triggerall = command = "holdfwd"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = movecontact
trigger3 = stateno = 104
;---------------------------------------------------------------------------
;棫偪庛僷儞僠
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 104
trigger4 = stateno = 245
trigger4 =movecontact
;---------------------------------------------------------------------------


;---------------------------------------------------------------------------
;棫偪C
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 =movecontact
trigger3 = stateno = 240
trigger3 =movecontact
trigger4 = stateno = 104
trigger5 = stateno = 245
trigger5 =movecontact
;---------------------------------------------------------------------------
;棫偪B
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 =movecontact
trigger3 = stateno = 104
trigger4 = stateno = 245
trigger4 =movecontact
;---------------------------------------------------------------------------


;---------------------------------------------------------------------------
;偟傖偑傒庛僷儞僠
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 104
trigger3 = stateno = 245
trigger3 =movecontact
;---------------------------------------------------------------------------


;---------------------------------------------------------------------------
;偟傖偑傒庛僉僢僋
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 440)
trigger2 =movecontact
trigger3 = stateno = 104
trigger4 = stateno = 24
trigger4 =movecontact
;---------------------------------------------------------------------------
;偟傖偑傒嫮僉僢僋
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400
trigger2 = movecontact
trigger3 = stateno = 104
trigger4 = stateno = 245
trigger4 =movecontact
trigger5 = stateno = 200
trigger5 =movecontact
;---------------------------------------------------------------------------
;嬻拞庛僷儞僠
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = movecontact
;---------------------------------------------------------------------------


;---------------------------------------------------------------------------
;嬻拞庛僉僢僋
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 640 ;jump_x or jump_a
trigger2 = movecontact
;---------------------------------------------------------------------------
;嬻拞嫮僉僢僋
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 
trigger2 = movecontact

;僠儍乕僕
[State -1, Light Kung Fu Palm]
type = ChangeState
value = 1700
triggerall = command = "hold_y"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact