; The CMD file.
;
; Two parts: 1. Command definition and  2. State entry
; (state entry is after the commands def section)
;
; 1. Command definition
; ---------------------
; Note: The commands are CASE-SENSITIVE, and so are the command names.
; The eight directions are:
;   B, DB, D, DF, F, UF, U, UB     (all CAPS)
;   corresponding to back, down-back, down, downforward, etc.
; The six buttons are:
;   a, b, c, x, y, z               (all lower case)
;   In default key config, abc are are the bottom, and xyz are on the
;   top row. For 2 button characters, we recommend you use a and b.
;   For 6 button characters, use abc for kicks and xyz for punches.
;
; Each [Command] section defines a command that you can use for
; state entry, as well as in the CNS file.
; The command section should look like:
;
;   [Command]
;   name = "some_name"
;   command = the_command
;   time = time (optional -- defaults to 15 if omitted)
;
; - some_name
;   A name to give that command. You'll use this name to refer to
;   that command in the state entry, as well as the CNS. It is case-
;   sensitive (QCB_a is NOT the same as Qcb_a or QCB_A).
;
; - command
;   list of buttons or directions, separated by commas.
;   Directions and buttons can be preceded by special characters:
;   slash (/) - means the key must be held down
;          egs. command = /D       ;hold the down direction
;               command = /F, a    ;hold fwd while you press a
;   tilde (~) - to detect key releases
;          egs. command = ~a       ;release the a button
;               command = ~D, F, a ;release down, press fwd, then a
;          If you want to detect "charge moves", you can specify
;          the time the key must be held down for (in game-ticks)
;          egs. command = ~30a     ;hold a for at least 30 ticks, then release
;               command = ~30
;   dollar ($) - Direction-only: detect as 4-way
;          egs. command = $D       ;will detect if D, DB or DF is held
;               command = $B       ;will detect if B, DB or UB is held
;   plus (+) - Buttons only: simultaneous press
;          egs. command = a+b      ;press a and b at the same time
;               command = x+y+z    ;press x, y and z at the same time
;   You can combine them:
;     eg. command = ~30$D, a+b     ;hold D, DB or DF for 30 ticks, release,
;                                  ;then press a and b together
;   It's recommended that for most "motion" commads, eg. quarter-circle-fwd,
;   you start off with a "release direction". This matches the way most
;   popular fighting games implement their engine.
;
; - time (optional)
;   Time allowed to do the command, given in game-ticks. Defaults to 15
;   if omitted


;-| 超必殺技 |-------------------------------------------------------------
;イリュージョンダンス y
[Command]
name = "illusiondance_y"
command = ~D, DF, F, DF, D, DB, B, y
time = 50

;イリュージョンダンス b
[Command]
name = "illusiondance_b"
command = ~D, DF, F, DF, D, DB, B, b
time = 50

;サイレントフラッシュ y
[Command]
name = "silentfrash_y"
command = ~D, DB, B, D, DB, B, y
time = 30

;サイレントフラッシュ b
[Command]
name = "silentfrash_b"
command = ~D, DB, B, D, DB, B, b
time = 30

;-| 必殺技 |---------------------------------------------------------------
;ミラージュダンスx
[Command]
name = "mildance_x"
command = ~B, D, F, x
time = 15

;ミラージュダンスa
[Command]
name = "mildance_a"
command = ~B, D, F, a
time = 15

;ミラージュキックx
[Command]
name = "milkick_x"
command = ~F, D, B, x
time = 15

;ミラージュキックa
[Command]
name = "milkick_a"
command = ~F, D, B, a
time = 15

;サプライズローズx
[Command]
name = "surpros_x"
command = ~F, D, DF, x
time = 15

;サプライズローズa
[Command]
name = "surpros_a"
command = ~F, D, DF, a
time = 15

;トルネードキック
[Command]
name = "tornado_y"
command = ~F, D, B, y
time = 20

;トルネードキック’９５
[Command]
name = "tornado_b"
command = ~F, D, B, b
time = 20

;トラップショットb
[Command]
name = "trapshot_b"
command = ~F, D, DF, b
time = 15

;トラップショットy
[Command]
name = "trapshot_y"
command = ~F, D, DF, y
time = 15

;ベノムストライク
[Command]
name = "VnmStr"
command = ~D, DF, F, b
time = 12

;ダブルストライク
[Command]
name = "DblStr"
command = ~D, DF, F, y
time = 12

;-| 投げ技 |---------------------------------------------------------------
;ホールドラッシュ L
[Command]
name = "HoldRash_L"
command = /B, x
time = 1

;ホールドラッシュ R
[Command]
name = "HoldRash_R"
command = /F, x
time = 1

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

;-| 方向ボタン + 攻撃ボタン |----------------------------------------------
[Command]
name = "downfwd_y"
command = /DF, y

[Command]
name = "trapkick"
command = /F, b

;-| 通常攻撃 |-------------------------------------------------------------
[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

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

;---------------------------------------------------------------------------
; 2. State entry
; --------------
; This is where you define what commands bring you to what states.
;
; Each state entry block looks like:
;   [State -1]                  ;Don't change this
;   type = ChangeState          ;Don't change this
;   value = new_state_number
;   trigger1 = command = "command_name"
;   . . .  (any additional triggers)
;
; - new_state_number is the number of the state to change to
; - command_name is the name of the command (from the section above)
; - Useful triggers to know:
;   - statetype
;       S, C or A : current state-type of player (stand, crouch, air)
;   - ctrl
;       0 or 1 : 1 if player has control. Unless "interrupting" another
;                move, you'll want ctrl = 1
;   - stateno
;       number of state player is in - useful for "move interrupts"
;   - movecontact
;       0 or 1 : 1 if player's last attack touched the opponent
;                useful for "move interrupts"
;
; For reference on triggers, see CNS documentation.
;
; Just for your information (skip if you're not interested):
; This part is an extension of the CNS. "State -1" is a special state
; that is executed once every game-tick, regardless of what other state
; you are in.


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

;===========================================================================
;超必殺技
;===========================================================================
;---------------------------------------------------------------------------
;イリュージョンダンスy
[State -1]
type = ChangeState
value = 3100
triggerall = power >= 1000
triggerall = command = "illusiondance_y"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 201
trigger2 = time < 18
trigger2 = MoveContact
trigger3 = stateno = 211
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 221
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 231
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 420
trigger6 = time < 18
trigger6 = MoveContact

;---------------------------------------------------------------------------
;イリュージョンダンスb
[State -1]
type = ChangeState
value = 3100
triggerall = power >= 1000
triggerall = command = "illusiondance_b"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 201
trigger2 = time < 18
trigger2 = MoveContact
trigger3 = stateno = 211
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 221
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 231
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 420
trigger6 = time < 18
trigger6 = MoveContact

;---------------------------------------------------------------------------
;サイレントフラッシュy
[State -1]
type = ChangeState
value = 3000
triggerall = power >= 1000
triggerall = command = "silentfrash_y"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = C
trigger2 = ctrl = 1
trigger3 = stateno = 201
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 211
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 221
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 231
trigger6 = time < 18
trigger6 = MoveContact
trigger7 = stateno = 420
trigger7 = time < 18
trigger7 = MoveContact

;---------------------------------------------------------------------------
;サイレントフラッシュb
[State -1]
type = ChangeState
value = 3000
triggerall = power >= 2000
triggerall = command = "silentfrash_b"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = C
trigger2 = ctrl = 1
trigger3 = stateno = 201
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 211
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 221
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 231
trigger6 = time < 18
trigger6 = MoveContact
trigger7 = stateno = 420
trigger7 = time < 18
trigger7 = MoveContact

;===========================================================================
;必殺技
;===========================================================================
;---------------------------------------------------------------------------
;ミラージュダンスx
[State -1]
type = ChangeState
value = 1170
triggerall = command = "mildance_x"
triggerall = P2BodyDist X < 40
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 201
trigger2 = time < 18
trigger2 = MoveContact
trigger3 = stateno = 211
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 221
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 231
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 420
trigger6 = time < 18
trigger6 = MoveContact

;---------------------------------------------------------------------------
;ミラージュダンスa
[State -1]
type = ChangeState
value = 1170
triggerall = command = "mildance_a"
triggerall = P2BodyDist X < 40
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 201
trigger2 = time < 18
trigger2 = MoveContact
trigger3 = stateno = 211
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 221
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 231
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 420
trigger6 = time < 18
trigger6 = MoveContact

;---------------------------------------------------------------------------
;ミラージュキックx
[State -1]
type = ChangeState
value = 1151
triggerall = command = "milkick_x"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 201
trigger2 = time < 18
trigger2 = MoveContact
trigger3 = stateno = 211
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 221
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 231
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 420
trigger6 = time < 18
trigger6 = MoveContact

;---------------------------------------------------------------------------
;ミラージュキックa
[State -1]
type = ChangeState
value = 1150
triggerall = command = "milkick_a"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 201
trigger2 = time < 18
trigger2 = MoveContact
trigger3 = stateno = 211
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 221
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 231
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 420
trigger6 = time < 18
trigger6 = MoveContact

;---------------------------------------------------------------------------
;サプライズローズx
[State -1]
type = ChangeState
value = 1140
triggerall = command = "surpros_x"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = C
trigger2 = ctrl = 1
trigger3 = stateno = 201
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 211
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 221
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 231
trigger6 = time < 18
trigger6 = MoveContact
trigger7 = stateno = 420
trigger7 = time < 18
trigger7 = MoveContact

;---------------------------------------------------------------------------
;サプライズローズa
[State -1]
type = ChangeState
value = 1130
triggerall = command = "surpros_a"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = statetype = C
trigger2 = ctrl = 1
trigger3 = stateno = 201
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 211
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 221
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 231
trigger6 = time < 18
trigger6 = MoveContact
trigger7 = stateno = 420
trigger7 = time < 18
trigger7 = MoveContact

;---------------------------------------------------------------------------
;トルネードキック
[State -1]
type = ChangeState
value = 1120
triggerall = command = "tornado_y"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 201
trigger2 = time < 18
trigger2 = MoveContact
trigger3 = stateno = 211
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 221
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 231
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 420
trigger6 = time < 18
trigger6 = MoveContact

;---------------------------------------------------------------------------
;トルネードキック’９５
[State -1]
type = ChangeState
value = 1110
triggerall = command = "tornado_b"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 201
trigger2 = time < 18
trigger2 = MoveContact
trigger3 = stateno = 211
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 221
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 231
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 420
trigger6 = time < 18
trigger6 = MoveContact

;---------------------------------------------------------------------------
;トラップショット_b
[State -1]
type = ChangeState
value = 1100
triggerall = command = "trapshot_b"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = ctrl = 1
trigger3 = stateno = 201
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 211
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 221
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 231
trigger6 = time < 18
trigger6 = MoveContact
trigger7 = stateno = 420
trigger7 = time < 18
trigger7 = MoveContact

;---------------------------------------------------------------------------
;トラップショット_y
[State -1]
type = ChangeState
value = 1100
triggerall = command = "trapshot_y"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = statetype = S
trigger2 = ctrl = 1
trigger3 = stateno = 201
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 211
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 221
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 231
trigger6 = time < 18
trigger6 = MoveContact
trigger7 = stateno = 420
trigger7 = time < 18
trigger7 = MoveContact

;---------------------------------------------------------------------------
;ベノムストライク
[State -1]
type = ChangeState
value = 1000
triggerall = command = "VnmStr"
triggerall = NumProj = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 201
trigger2 = time < 18
trigger2 = MoveContact
trigger3 = stateno = 211
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 221
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 231
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 420
trigger6 = time < 18
trigger6 = MoveContact

;---------------------------------------------------------------------------
;ダブルストライク
[State -1]
type = ChangeState
value = 1010
triggerall = command = "DblStr"
triggerall = NumProj = 0
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 201
trigger2 = time < 18
trigger2 = MoveContact
trigger3 = stateno = 211
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 221
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 231
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 420
trigger6 = time < 18
trigger6 = MoveContact





;===========================================================================
;投げ技
;===========================================================================
;---------------------------------------------------------------------------
;ホールドラッシュ
[State -1]
type = ChangeState
value = 910
triggerall = P2BodyDist X < 8
triggerall = statetype = S
triggerall = ctrl = 1
trigger1 = command = "HoldRash_L"
trigger2 = command = "HoldRash_R"





;===========================================================================
;特殊移動
;===========================================================================
;---------------------------------------------------------------------------
;ダッシュ
[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 = 440
triggerall = command = "downfwd_y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;トラップキック
[State -1]
type = ChangeState
value = 212
triggerall = command = "trapkick"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 201
trigger2 = time < 18
trigger2 = MoveContact
trigger3 = stateno = 211
trigger3 = time < 18
trigger3 = MoveContact
trigger4 = stateno = 221
trigger4 = time < 18
trigger4 = MoveContact
trigger5 = stateno = 231
trigger5 = time < 18
trigger5 = MoveContact
trigger6 = stateno = 420
trigger6 = time < 18
trigger6 = MoveContact





;===========================================================================
;攻撃
;===========================================================================
;---------------------------------------------------------------------------
;攻撃ボタンのみ
;---------------------------------------------------------------------------
;攻撃 立ち 近 弱パンチ
[State -1]
type = ChangeState
value = 201
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = P2BodyDist X < 20
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;攻撃 立ち 近 弱キック
[State -1]
type = ChangeState
value = 211
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = P2BodyDist X < 30
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;攻撃 立ち 近 強パンチ
[State -1]
type = ChangeState
value = 221
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = P2BodyDist X < 20
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;攻撃 立ち 近 強キック
[State -1]
type = ChangeState
value = 231
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = P2BodyDist X < 35
trigger1 = statetype = S
trigger1 = ctrl = 1


;---------------------------------------------------------------------------
;攻撃 立ち 遠 弱パンチ
[State -1]
type = ChangeState
value = 200
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;攻撃 立ち 遠 弱キック
[State -1]
type = ChangeState
value = 210
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;攻撃 立ち 遠 強パンチ
[State -1]
type = ChangeState
value = 220
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;攻撃 立ち 遠 強キック
[State -1]
type = ChangeState
value = 230
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1

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

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

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

;---------------------------------------------------------------------------
;攻撃 しゃがみ 強キック
[State -1]
type = ChangeState
value = 430
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1



;---------------------------------------------------------------------------
;攻撃 ジャンプ 弱パンチ
[State -1]
type = ChangeState
value = 600
trigger1 = command = "a"
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;攻撃 ジャンプ 弱キック
[State -1]
type = ChangeState
value = 610
trigger1 = command = "b"
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;攻撃 ジャンプ 強パンチ
[State -1]
type = ChangeState
value = 620
trigger1 = command = "x"
trigger1 = statetype = A
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;攻撃 ジャンプ 強キック
[State -1]
type = ChangeState
value = 630
trigger1 = command = "y"
trigger1 = statetype = A
trigger1 = ctrl = 1





;---------------------------------------------------------------------------
;挑発
[State -1]
type = ChangeState
value = 195
trigger1 = command = "s"
trigger1 = statetype = S
trigger1 = ctrl = 1



