;==========================================================================
;コマンド関連ファイル
;==========================================================================
;-| 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 = "fwd_b"
command = /F,b
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 = /b
time = 1

[Command]
name = "hold_a"
command = /a
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 = "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 = "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 = 350
triggerall = (command = "hado_xy")
triggerall = power >= 1000
triggerall = var(15) != 1
triggerall = var(16) != 1
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact; = 1
trigger3 = stateno = 201
trigger3 = movecontact; = 1
trigger4 = stateno = 202
trigger4 = movecontact; = 1
trigger5 = stateno = 203
trigger5 = movecontact; = 1
trigger6 = stateno = 204
trigger6 = movecontact; = 1
trigger7 = stateno = 205
trigger7 = movecontact; = 1
trigger8 = stateno = 210
trigger8 = movecontact; = 1
trigger9 = stateno = 211
trigger9 = movecontact; = 1
trigger10 = stateno = 213
trigger10 = movecontact; = 1
trigger11 = stateno = 214
trigger11 = movecontact; = 1
;---------------------------------------------------------------------------
; アトミックファイア3
[State -1]
type = ChangeState
value = 2300
triggerall = command = "atmic"
triggerall = power >= 3000
triggerall = statetype != A
triggerall = var(15) = 0
triggerall = var(16) != 1
trigger1 = ctrl ;= 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = MoveContact; = 1
;---------------------------------------------------------------------------
; アトミックファイア2
[State -1]
type = ChangeState
value = 2299
triggerall = command = "atmic"
triggerall = power >= 2000
triggerall = statetype != A
triggerall = var(15) = 0
triggerall = var(16) != 1
trigger1 = ctrl ;= 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = MoveContact; = 1
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; アトミックファイア1
[State -1]
type = ChangeState
value = 2298
triggerall = command = "atmic"
triggerall = power >= 1000
triggerall = statetype != A
triggerall = var(15) = 0
triggerall = var(16) != 1
trigger1 = ctrl ;= 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = MoveContact; = 1
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
; タイムストッパー
[State -1]
type = ChangeState
value = 2200
triggerall = command = "Time"
triggerall = power >= 2000
triggerall = statetype != A
triggerall = var(15) = 0
triggerall = var(16) != 1
triggerall = p2Life != 0
trigger1 = ctrl ;= 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = MoveContact; = 1
;---------------------------------------------------------------------------
; ナイトクラッシャー
[State -1]
type = ChangeState
value = 2400
triggerall = command = "kk"
triggerall = power >= 1000
triggerall = statetype != A
triggerall = var(15) = 0
triggerall = var(16) != 1
trigger1 = ctrl ;= 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = MoveContact; = 1
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;スーパーアーム
[State -1]
type = ChangeState
value = 2500
triggerall = command = "gs"
triggerall = power >= 1000
triggerall = statetype != A
triggerall = var(15) = 0
triggerall = var(16) != 1
trigger1 = ctrl ;= 1
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA, HA
trigger2 = MoveContact; = 1
;---------------------------------------------------------------------------
[State -1]
type = ChangeState
value = 2000
triggerall = command = "c"
triggerall = power >= 9000
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;前方ダッシュ
[State -1]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;バックステップ
[State -1]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
; エリアルジャンプ 
[State -1]
type = ChangeState
value = 241
triggerall = (command = "u") || (command = "uu")
;triggerall = command = "holddown"
trigger1 = MoveHit = 1
;trigger1 = p2statetype != A
trigger1 = stateno = 205
;trigger1 = movecontact; = 1



;===========================================================================
;　必殺技
;===========================================================================
;---------------------------------------------------------------------
;スタークラッシュ
[State -1]
type = ChangeState
value = 1845
triggerall = Var(16) = 0
triggerall = command = "star"
triggerall = statetype != A
trigger1 = ctrl = 1

trigger2 = stateno >= 200
trigger2 = stateno <= 350
trigger2 = movecontact; = 1

trigger3 = stateno >= 400
trigger3 = stateno <= 640
trigger3 = movecontact; = 1

;---------------------------------------------------------------------
[State -1]
type = ChangeState
value = 1857
triggerall = command = "hado_x"
triggerall = NumHelper(1850) = 1
trigger1 = var(16) = 1
triggerall = statetype != C
trigger1 = ctrl = 1

;---------------------------------------------------------------------
[State -1]
type = ChangeState
value = 1857
triggerall = command = "hado_y"
triggerall = NumHelper(1850) = 1
trigger1 = var(16) = 1
triggerall = statetype != C
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;クリスタルアイ 空中
[State -1]
type = ChangeState
value = 1100
triggerall = command = "crystal"
triggerall = statetype = A
triggerall = var(16) != 1
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;タップスピン 空中
[State -1]
type = ChangeState
value = 1700
triggerall = p2stateno != [1705,1749]
triggerall = command = "tap"
triggerall = statetype = A
triggerall = stateno != 1700
triggerall = var(16) != 1
;triggerall = P2movetype != H
triggerall = Pos Y <= -35
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;チャージキック
[State -1]
type = ChangeState
value = 1750
triggerall = command = "chage"
triggerall = var(16) != 1
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 210
trigger2 = movecontact; = 1
trigger3 = stateno = 211
trigger3 = movecontact; = 1
trigger4 = stateno = 213
trigger4 = movecontact; = 1
trigger5 = stateno = 214
trigger5 = movecontact; = 1

;---------------------------------------------------------------------------
;世界の平和は私が守るわ
[State -1]
type = ChangeState
value = 250
triggerall = command = "s"
trigger1 = statetype = S
trigger1 = ctrl = 1


;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;空中ラピットファイア
[State -1]
type = ChangeState
value = 503
triggerall = command = "hado_x"
triggerall = var(16) != 1
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact; = 1
trigger3 = stateno = 221
trigger3 = movecontact; = 1
trigger4 = stateno = 222
trigger4 = movecontact; = 1
trigger5 = stateno = 223
trigger5 = movecontact; = 1
trigger6 = stateno = 224
trigger6 = movecontact; = 1
trigger7 = stateno = 225
trigger7 = movecontact; = 1
trigger8 = stateno = 241



;---------------------------------------------------------------------------
;空中連射・ラピットファイア
[State -1]
type = ChangeState
value = 504
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = var(16) != 1
triggerall = power >= 50
trigger1 = stateno = 503
trigger1 = statetime >= 20
trigger2 = stateno = 504
trigger2 = statetime >= 2


;---------------------------------------------------------------------------
;ラピットファイア
[State -1]
type = ChangeState
value = 500
triggerall = command = "hado_x"
triggerall = var(16) != 1
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact; = 1
trigger3 = stateno = 201
trigger3 = movecontact; = 1
trigger4 = stateno = 202
trigger4 = movecontact; = 1
trigger5 = stateno = 203
trigger5 = movecontact; = 1
trigger6 = stateno = 204
trigger6 = movecontact; = 1
trigger7 = stateno = 205
trigger7 = movecontact; = 1
trigger8 = stateno = 210
trigger8 = movecontact; = 1
trigger9 = stateno = 211
trigger9 = movecontact; = 1
trigger10 = stateno = 213
trigger10 = movecontact; = 1
trigger11 = stateno = 214
trigger11 = movecontact; = 1




;---------------------------------------------------------------------------
;空中ロールバスター
[State -1]
type = ChangeState
value = 509
triggerall = command = "hado_y"
triggerall = var(16) != 1
triggerall = numhelper(10000) = 0
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact; = 1
trigger3 = stateno = 221
trigger3 = movecontact; = 1
trigger4 = stateno = 222
trigger4 = movecontact; = 1
trigger5 = stateno = 223
trigger5 = movecontact; = 1
trigger6 = stateno = 224
trigger6 = movecontact; = 1
trigger7 = stateno = 225
trigger7 = movecontact; = 1
trigger8 = stateno = 241

;---------------------------------------------------------------------------
;ロールバスター
[State -1]
type = ChangeState
value = 510
triggerall = command = "hado_y"
triggerall = var(16) != 1
triggerall = numhelper(10000) = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact; = 1
trigger3 = stateno = 201
trigger3 = movecontact; = 1
trigger4 = stateno = 202
trigger4 = movecontact; = 1
trigger5 = stateno = 203
trigger5 = movecontact; = 1
trigger6 = stateno = 204
trigger6 = movecontact; = 1
trigger7 = stateno = 205
trigger7 = movecontact; = 1
trigger8 = stateno = 210
trigger8 = movecontact; = 1
trigger9 = stateno = 211
trigger9 = movecontact; = 1
trigger10 = stateno = 213
trigger10 = movecontact; = 1
trigger11 = stateno = 214
trigger11 = movecontact; = 1



;===========================================================================
;　通常技
;===========================================================================
;-------------------------------------------------------------
;強パンチ
[State -1]
type = ChangeState
value = 202
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact; = 1
trigger3 = stateno = 201
trigger3 = movecontact; = 1
trigger4 = stateno = 203
trigger4 = movecontact; = 1
trigger5 = stateno = 204
trigger5 = movecontact; = 1

;-------------------------------------------------------------
;中パンチ
[State -1]
type = ChangeState
value = 201
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = stateno = 200
trigger1 = movecontact; = 1
trigger2 = stateno = 203
trigger2 = movecontact; = 1

;-------------------------------------------------------------
;弱パンチ
[State -1]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = stateno != 501
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = statetime >= 6

;---------------------------------------------------------------------------
;連射・ラピットファイア1
[State -1]
type = ChangeState
value = 501
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = var(16) != 1
triggerall = power >= 50
triggerall = stateno != 200
triggerall = stateno != 501
triggerall = stateno != 502
trigger1 = stateno = 500
trigger1 = statetime >= 23
;---------------------------------------------------------------------------
;連射・ラピットファイア2
[State -1]
type = ChangeState
value = 502
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = power >= 50
triggerall = var(16) != 1
triggerall = stateno != 200
triggerall = stateno != 500
triggerall = stateno != 502
trigger1 = stateno = 501
trigger1 = statetime >= 7;23


;-------------------------------------------------------------
;強キック
[State -1]
type = ChangeState
value = 205
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact; = 1
trigger3 = stateno = 201
trigger3 = movecontact; = 1
trigger4 = stateno = 203
trigger4 = movecontact; = 1
trigger5 = stateno = 204
trigger5 = movecontact; = 1

;-------------------------------------------------------------
;中キック
[State -1]
type = ChangeState
value = 204
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = stateno = 203
trigger1 = movecontact; = 1
trigger2 = stateno = 200
trigger2 = movecontact; = 1

;-------------------------------------------------------------
;弱キック
[State -1]
type = ChangeState
value = 203
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1


;---------------------------------------------------------------------------
;しゃがみ強パンチ
[State -1]
type = ChangeState
value = 212
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 210
trigger2 = movecontact; = 1
trigger3 = stateno = 211
trigger3 = movecontact; = 1
trigger4 = stateno = 213
trigger4 = movecontact; = 1
trigger5 = stateno = 214
trigger5 = movecontact; = 1

;---------------------------------------------------------------------------
;しゃがみ中パンチ
[State -1]
type = ChangeState
value = 211
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = stateno = 210
trigger1 = movecontact; = 1
trigger2 = stateno = 213
trigger2 = movecontact; = 1

;---------------------------------------------------------------------------
;しゃがみ弱パンチ
[State -1]
type = ChangeState
value = 210
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;しゃがみ強キック
[State -1]
type = ChangeState
value = 215
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 210
trigger2 = movecontact; = 1
trigger3 = stateno = 211
trigger3 = movecontact; = 1
trigger4 = stateno = 213
trigger4 = movecontact; = 1
trigger5 = stateno = 214
trigger5 = movecontact; = 1

;---------------------------------------------------------------------------
;しゃがみ中キック
[State -1]
type = ChangeState
value = 214
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = stateno = 213
trigger1 = movecontact; = 1
trigger2 = stateno = 210
trigger2 = movecontact; = 1

;---------------------------------------------------------------------------
;しゃがみ弱キック
[State -1]
type = ChangeState
value = 213
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1


;---------------------------------------------------------------------------
;叩きつけ・ジャンプ強パンチ
[State -1]
type = ChangeState
value = 226
triggerall = command = "y"
triggerall = statetype = A
triggerall = p2statetype = A
trigger1 = stateno = 241
trigger2 = stateno = 220
trigger2 = movecontact; = 1
trigger3 = stateno = 221
trigger3 = movecontact; = 1
trigger4 = stateno = 223
trigger4 = movecontact; = 1
trigger5 = stateno = 224
trigger5 = movecontact; = 1

;---------------------------------------------------------------------------
;叩きつけ・ジャンプ強パンチ
[State -1]
type = ChangeState
value = 227
triggerall = command = "b"
triggerall = statetype = A
triggerall = p2statetype = A
trigger1 = stateno = 241
trigger2 = stateno = 220
trigger2 = movecontact; = 1
trigger3 = stateno = 221
trigger3 = movecontact; = 1
trigger4 = stateno = 223
trigger4 = movecontact; = 1
trigger5 = stateno = 224
trigger5 = movecontact; = 1


;---------------------------------------------------------------------------
;ジャンプ強パンチ
[State -1]
type = ChangeState
value = 222
triggerall = command = "y"
triggerall = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;ジャンプ中パンチ
[State -1]
type = ChangeState
value = 221
triggerall = command = "x"
triggerall = statetype = A
trigger1 = stateno = 220
trigger1 = movecontact; = 1

;---------------------------------------------------------------------------
;ジャンプ弱パンチ
[State -1]
type = ChangeState
value = 220
triggerall = command = "x"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 241

;---------------------------------------------------------------------------
;ジャンプ強キック
[State -1]
type = ChangeState
value = 225
triggerall = command = "b"
triggerall = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;ジャンプ中キック
[State -1]
type = ChangeState
value = 224
triggerall = command = "a"
triggerall = statetype = A
trigger1 = stateno = 223
trigger1 = movecontact; = 1

;---------------------------------------------------------------------------
;ジャンプ弱キック
[State -1]
type = ChangeState
value = 223
triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 241
