;==========================================================================
;僐儅儞僪娭楢僼傽僀儖
;==========================================================================

;A儃僞儞
[Command]
name = "儕儃儖價儞僌丒僶儞僇乕"
command = D,DF,F,a
time = 25

[Command]
name = "傾償傽儔儞僠丒僋儗僀儌傾"
command = D,DB,B,a
time = 25
;--------------------------------------------------------------------------
;B儃僞儞
[Command]
name = "媶嬌僎僔儏儁儞僗僩僉僢僋"
command = D,DB,B,b
time = 25

;--------------------------------------------------------------------------
;C儃僞儞
[Command]
name = "BHC"
command = D,DB,B,c
time = 25

[Command]
name = "惵棿椨"
command = D,DF,F,c
time = 25

[Command]
name = "僼儖丒僀儞僷僋僩僉儍僲儞"
command = B,DB,D,c
time = 25

[Command]
name = "僀儞僷僋僩僉儍僲儞"
command = F,DF,D,c
time = 25

[Command]
name = "STG僈儞僫乕"
command = D,D,c
time = 25

;--------------------------------------------------------------------------
;Z儃僞儞
[Command]
name = "揤忋揤壓堦寕昁嶦朇"
command = D,DB,B,z
time = 25

[Command]
name = "G僜乕僪僟僀僶乕"
command = D,DF,F,z
time = 25

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

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

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

[Command]
name = "Up_a"
command = /U,a
time = 1

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

[Command]
name = "Up_b"
command = /U,b
time = 1

[Command]
name = "Up_c"
command = /U,c
time = 1

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

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


[Command]
name = "downfwd_a"
command = /DF,a
time = 1

[Command]
name = "downfwd_b"
command = /DF,b
time = 1

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

[Command]
name = "back_b"
command = /B,b
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_z"
command = /$D,z
time = 1

[Command]
name = "fwd_ab"
command = /F, a+b
time = 1

[Command]
name = "back_ab"
command = /B, a+b
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 = "hold_x"
command = /x
time = 1

[Command]
name = "hold_x"
command = /y
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


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

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

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "DF";Required (do not remove)
command = /$DF
time = 1

[Command]
name = "UF";Required (do not remove)
command = /$UF
time = 1

[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

[Command]
name = "UB";Required (do not remove)
command = /$UB
time = 1

[Command]
name = "DB";Required (do not remove)
command = /DB
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 = "f_a"
command = F, a
time = 15

[Command]
name = "f_b"
command = F, b
time = 15

[Command]
name = "f_c"
command = F, c
time = 15

[Command]
name = "atmic"
command = D, F, D, F, x
time = 30

[Command]
name = "atmic"
command = D, F, D, F, y
time = 30

[Command]
name = "Time"
command = D, B, D, F, x
time = 30

[Command]
name = "Time"
command = D, B, D, F, y
time = 30

[Command]
name = "kk"
command = D, B, D, B, x
time = 30

[Command]
name = "kk"
command = D, B, D, B, y
time = 30

[Command]
name = "gs"
command = D, B, D, B, a
time = 30

[Command]
name = "gs"
command = D, B, D, B, b
time = 30

[Command]
name = "star"
command = B, D, F, x
time = 30

[Command]
name = "star"
command = B, D, F, y
time = 30

[Command]
name = "crystal"
command = D, B, a
time = 30

[Command]
name = "crystal"
command = D, B, b
time = 30

[Command]
name = "tap"
command = D, B, x
time = 30

[Command]
name = "tap"
command = D, B, y
time = 30

[Command]
name = "chage"
command = D, F, a
time = 30

[Command]
name = "chage"
command = D, F, b
time = 30

[Command]
name = "hoosyoko_x"
command = F, B, D, F, x
time = 40

[Command]
name = "hoosyoko_y"
command = F, B, D, F, y
time = 40

[Command]
name = "furin_xa"
command = D, F, D, B, x+a
time = 60

[Command]
name = "kona_a"
command = U, U, D, D, B, F, B, F, b, a
time = 180

[Command]
name = "kona_b"
command = U, U, D, D, F, B, F, B, b, a
time = 180

[Command]
name = "fod_a"
command = F, F, a
time = 15


[Command]
name = "hado_x"
command = D, F, x
time = 30

[Command]
name = "hado_y"
command = D, F, y
time = 30


[Command]
name = "hado_xy"
command = D, F, x+y
time = 30

; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]


;===========================================================================
;僐儅儞僪幚峴晹暘乮桪愭弴埵偑崅偄傕偺傪愭偵昞婰乯
;===========================================================================
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
;慜曽僟僢僔儏
[State -1]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = command = "FF"
trigger2 = stateNo = 52

;慜曽僟僢僔儏
[State -1]
type = ChangeState
value = 101
trigger1 = command = "FF"
trigger1 = statetype = A
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;僶僢僋僗僥僢僾
[State -1]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
; 僄儕傾儖僕儍儞僾 
[State -1]
type = ChangeState
value = 40
triggerall = (command = "u")
trigger1 = AnimElemNo(0) = [6,8]
trigger1 = stateno = 207
trigger1 = movecontact
trigger2 = (PalNo = [10,12]) && (stateno = 207) &&  (AnimElemNo(0) = [6,8])



;===========================================================================
;丂昁嶦媄
;===========================================================================
[State -1]
type = ChangeState
value = 2002
triggerall = var(20) = 1
triggerall = command = "揤忋揤壓堦寕昁嶦朇"
triggerall = command != "holddown"
trigger1 = power >= 5000
trigger1 = statetype = S
trigger1 = ctrl = 1
;乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗
;婡恄栆寕対
[State -1]
type = ChangeState
value = 2011
triggerall = command = "儕儃儖價儞僌丒僶儞僇乕"
triggerall = command != "holddown"
triggerall = statetype = A
triggerall = power >= 3000
trigger1 = ctrl = 1
trigger2 = stateno = 208
trigger2 = AnimElemNo(0) = [5,7]
trigger2 = movecontact
trigger3 = PalNo = [10,12]
trigger3 = ProjHit208 = 1, < 20
trigger3 = AnimElemNo(0) = [5,7]
;乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗
[State -1]
type = ChangeState
value = 2010
triggerall = var(20) = 1
triggerall = command = "G僜乕僪僟僀僶乕"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = power >= 1000
trigger1 = (Helper(500),StateNo != 513)
trigger1 = (Helper(500),StateNo != 514)
trigger2 = (Helper(150),anim != 527)
trigger2 = (Helper(150),anim != 1)

;BHC
[State -1]
type = ChangeState
value = 3000
triggerall = command = "BHC"
triggerall = command != "holddown"
trigger1 = power >= 4000
trigger1 = statetype = S
trigger1 = ctrl = 1

;
[State -1]
type = ChangeState
value = 2018
triggerall = command = "惵棿椨"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = power >= 1000

;僀儞僷僋僩僉儍僲儞
[State -1]
type = ChangeState
value = 2017
trigger1 = command = "僼儖丒僀儞僷僋僩僉儍僲儞"
trigger1 = power >= 4000
trigger1 = statetype != A

;僀儞僷僋僩僉儍僲儞
[State -1]
type = ChangeState
value = 2016
trigger1 = command = "僀儞僷僋僩僉儍僲儞"
trigger1 = power >= 2000
trigger1 = statetype != A

;STG僈儞僫乕
[State -1]
type = ChangeState
value = 2014
trigger1 = stateno != 2014
trigger1 = command = "STG僈儞僫乕"
trigger1 = power >= 1000
;乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗
[State -1,峌寕敾掕]
type = PowerAdd
trigger1 = command = "傾償傽儔儞僠丒僋儗僀儌傾"
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
value = -2000
;乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗
[State -1]
type = ChangeState
value = 2008
trigger1 = command = "傾償傽儔儞僠丒僋儗僀儌傾"
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1 = power >= 2000
trigger2 = PalNo = [1,9]
trigger2 = Anim = 2007
trigger2 = statetype = S
trigger2 = movecontact
trigger2 = (command = "a") || (command = "儕儃儖價儞僌丒僶儞僇乕")
trigger3 = PalNo = [10,12]
trigger3 = Anim = 2007
trigger3 = statetype = S
trigger3 = (ProjHit2005 = 1,<128) || (Anim = 2007)
trigger3 = (command = "a") || (command = "儕儃儖價儞僌丒僶儞僇乕")
;乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗乗

[State -1]
type = ChangeState
value = 2005
triggerall = command = "儕儃儖價儞僌丒僶儞僇乕"
triggerall = command != "holddown"
trigger1 = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl = 1

[State -1]
type = ChangeState
value = 2000
triggerall = command = "媶嬌僎僔儏儁儞僗僩僉僢僋"
triggerall = command != "holddown"
trigger1 = power >= 5000
trigger1 = statetype = S
trigger1 = ctrl = 1

;===========================================================================
;丂捠忢媄
;===========================================================================
;

;壓抜楏壩恘
[State -1]
type = ChangeState
value = 1001
triggerall = command = "c" && command = "holddown"
trigger1 = statetype = C && ctrl = 1

;嬻拞楏壩恘
[State -1]
type = ChangeState
value = 1002
triggerall = statetype = A
trigger1 = (command = "c") && ctrl = 1

;楏壩恘
[State -1]
type = ChangeState
value = 1000
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

;===========================================================================
;丂捠忢媄
;===========================================================================
;栆寕対
[State -1]
type = ChangeState
value = 211
triggerall = (command = "fwd_a") && (command != "holddown") && (statetype = A)
trigger1 = ctrl = 1
trigger2 = (stateno = 208) && (AnimElemNo(0) = [5,7]) && (movecontact)
trigger3 = (PalNo = [10,12]) && (stateno = 208) &&  (AnimElemNo(0) = [5,7])

;僗儔僀僨傿儞僌
[State -1]
type = ChangeState
value = 205
triggerall = (statetype != A)
trigger1 = (stateNo = 100) && Ctrl = 1 && (command = "fwd_a") && (command != "holddown")
trigger2 = (AnimElemNo(0) = [4,6]) && (command = "a") && (stateno = 210) && (movecontact)
trigger3 = (PalNo = [10,12]) && (command = "a") && (stateno = 210) && (AnimElemNo(0) = [4,6])

;悂偒旘偽偟
[State -1]
type = ChangeState
value = 206
triggerall = command = "fwd_a" && command != "holddown"
trigger1 = statetype = S && ctrl = 1

;廟傝忋偘
[State -1]
type = ChangeState
value = 207
triggerall = (stateno != [201,202]) && (Anim != [201,202]) && (command = "Up_a" || command = "Up_b") && (statetype != A)
trigger1 = stateno != 207 && Anim != 207 && movetype != A
trigger2 = (AnimElemNo(0) = [4,8]) && stateno = 200 && movecontact
trigger3 = (AnimElemNo(0) = [3,5]) && stateno = 203 && movecontact
trigger4 = (AnimElemNo(0) = [5,7]) && stateno = 205 && movecontact
trigger5 = (PalNo = [10,12]) && (AnimElemNo(0) = [4,8]) && stateno = 200
trigger6 = (PalNo = [10,12]) && (AnimElemNo(0) = [3,5]) && stateno = 203
trigger7 = (PalNo = [10,12]) && (AnimElemNo(0) = [5,7]) && stateno = 205

;敀屨欩
[State -1]
type = ChangeState
value = 209
triggerall = (command = "a" || command = "b") && (stateno = 208) && statetype = A
trigger1 = (AnimElemNo(0) = [5,7]) && (movecontact)
trigger2 = (PalNo = [10,12]) && (AnimElemNo(0) = [5,7])

;夞揮廟傝
[State -1]
type = ChangeState
value = 208
triggerall = (command = "a" || command = "b") && (stateno = 204) && (statetype = A)
trigger1 = (AnimElemNo(0) = [4,6]) && movecontact
trigger2 = (PalNo = [10,12]) && (AnimElemNo(0) = [4,6])

;嬻拞峌寕
[State -1]
type = ChangeState
value = 204
triggerall = (command = "a" || command = "b")
trigger1 = statetype = A && ctrl = 1

;價儞僞
[State -1]
type = ChangeState
value = 200
triggerall = command != "holddown" && statetype = S
trigger1 = command = "a" && ctrl = 1
trigger2 = (AnimElemNo(0) = [3,5]) && (command = "b") && (stateno = 203) && movecontact
trigger3 = (PalNo = [10,12])  && (AnimElemNo(0) = [3,5]) && (command = "b") && stateno = 203

;僎僔儏僉僢僋
[State -1]
type = ChangeState
value = 203
triggerall = (command != "holddown") && (statetype = S)
trigger1 = (command = "b") && ctrl = 1
trigger2 = (AnimElemNo(0) = [4,8]) && (command = "a") && (stateno = 200) && movecontact
trigger3 = (PalNo = [10,12]) && (AnimElemNo(0) = [4,8]) && (command = "a") && stateno = 200

;僕僃僢僩儅僌僫儉
[State -1]
type = ChangeState
value = 201
trigger1 = (AnimElemNo(0) = [3,6]) && (command = "a") && (stateno = 203) && movecontact
trigger2 = (PalNo = [10,12]) && (AnimElemNo(0) = [3,6]) && (command = "a") && stateno = 203

;傾僀傾儞僋儘乕
[State -1]
type = ChangeState
value = 202
trigger1 = (AnimElemNo(0) = [4,8]) && (command = "b") && (stateno = 200) && movecontact
trigger2 = (PalNo = [10,12]) && (AnimElemNo(0) = [3,6]) && (command = "b") && stateno = 200

;僈儞僫乕朶憱
[State -1]
type = ChangeState
value = 210
triggerall = command = "a" && command = "holddown"
trigger1 = statetype = C && ctrl

;Ge儕僩儕乕
[State -1]
type = ChangeState
value = 300
triggerall = command = "s" && command != "holddown"
trigger1 = statetype = S && ctrl = 1






