;ソニックのコマンド設定
;==============================================================================
;-| ボタンリマップ（ボタンコンフィグ）|---------------------------------------- 

[Remap]
x = x      ;Ｘボタンの入力判定を実際に押すボタンに割り当てる。
y = y      ;Ｙボタン　　　　　　　　　〃
z = z      ;Ｚボタン　　　　　　　　　〃
a = a      ;Ａボタン　　　　　　　　　〃
b = b      ;Ｂボタン　　　　　　　　　〃
c = c      ;Ｃボタン　　　　　　　　　〃
s = s      ;スタートボタン　　　　　　〃


;-| デフォルト設定 |----------------------------------------------------------- 

[Defaults]
command.time = 30  ;標準のコマンド入力受付時間。
                   ;各コマンドで省略している場合に有効。
                   ;このパラメータを消した場合、デフォルトは１フレームになる。
                   ;（　M.U.G.E.Nでの１フレーム　＝　１／６０秒　）

command.buffer.time = 1  ;標準のコマンド入力記憶時間。
                         ;入力した直後にコマンドを記憶し、
                         ;指を離してもコマンドが成功している状態を
                         ;ここで設定した時間の分維持する。
                         ;１〜３０フレームまでの間で設定可能。
                         ;デフォルトは１フレーム。


;-| AIセット |-----------------------------------------------------------------

[Command]
name = "AI0"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI1"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI2"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI3"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI4"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI5"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI6"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI7"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI8"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI9"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI10"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI11"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI12"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI13"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI14"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI15"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI16"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI17"
command = a,B,c,x,y,z,s,B,D,F,U,a,b,c,x,y,z,s,s
time = 0
[Command]
name = "AI18"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI19"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI20"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI21"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI22"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI23"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI24"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI25"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI26"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI27"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI28"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI29"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI30"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI31"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI32"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI33"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI34"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI35"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI36"
command = z,z,z,z,z,z,a,a,a,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI37"
command = z,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,z,z,z
time = 0
[Command]
name = "AI38"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z
time = 0
[Command]
name = "AI39"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI40"
command = z,z,z,z,a,a,a,z,z,z,z,a,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI41"
command = z,z,z,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z,z
time = 0
[Command]
name = "AI42"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI43"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,a,a,z
time = 0
[Command]
name = "AI44"
command = z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,a,a,a,z
time = 0
[Command]
name = "AI45"
command = z,z,z,z,z,z,a,a,z,z,z,z,z,a,a,a,a,z,z
time = 0
[Command]
name = "AI46"
command = z,z,z,z,z,z,z,z,a,a,a,a,a,a,z,z,z,z,z
time = 0
[Command]
name = "AI47"
command = z,z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI48"
command = z,z,z,z,z,a,a,a,z,z,z,a,a,a,z,z,a,z,a
time = 0
[Command]
name = "AI49"
command = z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z,z
time = 0
[Command]
name = "AI50"
command = z,z,z,a,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z
time = 0

;------------------------------------------------------------------------------
;-| 超必殺技 |-----------------------------------------------------------------
[Command]
name = "light"
command = ~F,DF,D,DB,B,c
time = 35

[Command]
name = "combination"
command = ~B,DB,D,DF,F,b
time = 35

[Command]
name = "tornado"
command = ~F,DF,D,DB,B,a
time = 35

[Command]
name = "blaster"
command = ~D,DF,F,a+b
time = 35

[Command]
name = "boost"
command = ~F,DF,D,DB,B,b
time = 35

[Command]
name = "meteor"
command = ~B,DB,D,DF,F,a
time = 35

;------------------------------------------------------------------------------
;-| 必殺技 |-----------------------------------------------------------------
[Command]
name = "summer a"
command = ~F,D,DF,a
time = 35

[Command]
name = "summer b"
command = ~F,D,DF,b
time = 35

[Command]
name = "summer c"
command = ~F,D,DF,c
time = 35

[Command]
name = "drive a"
command = ~D,DB,B,a
time = 35

[Command]
name = "drive b"
command = ~D,DB,B,b
time = 35

[Command]
name = "drive c"
command = ~D,DB,B,c
time = 35

[Command]
name = "cracker a"
command = ~D,D,a
time = 35

[Command]
name = "cracker b"
command = ~D,D,b
time = 35

[Command]
name = "cracker c"
command = ~D,D,c
time = 35

[Command]
name = "wave a"
command = ~D,DF,F,a
time = 35

[Command]
name = "wave b"
command = ~D,DF,F,b
time = 35

[Command]
name = "wave c"
command = ~D,DF,F,c
time = 35

;------------------------------------------------------------------------------
;-| キー２回連続入力 |---------------------------------------------------------

[Command]
name = "FF"       ;必須コマンド名
command = F, F
time = 10

[Command]
name = "BB"       ;必須コマンド名
command = B, B
time = 10

;------------------------------------------------------------------------------
;-| 同時押し |-----------------------------------------------------------------

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

[Command]
name = "recovery" ;必須コマンド名
command = x+y
time = 1

[Command]
name = "recovery" ;必須コマンド名
command = a+b
time = 1

;------------------------------------------------------------------------------
;-| 方向キー＋ボタン |---------------------------------------------------------

[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_x"
command = /$D,x
time = 1

[Command]
name= "fwd_a"
command=/$F,a
time=1

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

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

[Command]
name="back_x"
command=/$B,x
time=1


;------------------------------------------------------------------------------
;-| ボタン単発 |---------------------------------------------------------------

[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 = "hold_a"
command = /a

[Command]
name = "hold_c"
command = /c

[Command]
name = "hold_y"
command = /y

[Command]
name = "hold_x"
command = /x

;------------------------------------------------------------------------------
;-| 方向キー |-----------------------------------------------------------------

[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 = "airjumpfwd"
command = UF
time = 1

[Command]
name = "airjump"
command = U
time = 1

[Command]
name = "airjumpback"
command = UB
time = 1


[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 


; ステートエントリーパート
;==============================================================================
;------------------------------------------------------------------------------

[Statedef -1]

;=========================================================
;超必殺技
;---------------------------------------------------------
[State -1, ライトスピードアタック]
type = ChangeState
value = 2300
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "light"
triggerall = power >= 3000
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

;---------------------------------------------------------
[State -1, ソニックコンビネーション]
type = ChangeState
value = 2100
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "combination"
triggerall = power >= 2000
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

;---------------------------------------------------------
[State -1, トルネード]
type = ChangeState
value = 2200
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "tornado"
triggerall = power >= 1000
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

;---------------------------------------------------------
[State -1, ブーストアタック]
type = ChangeState
value = 2500
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "boost"
triggerall = power >= 2000
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

;---------------------------------------------------------
[State -1, メテオストライク]
type = ChangeState
value = 2400
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "meteor"
triggerall = power >= 1000
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

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

[State -1, ソニックブラスター]
type = ChangeState
value = 2000
TriggerAll = Var(59) = 0
triggerall = statetype = A
triggerall = command = "blaster"
triggerall = power >= 1000
trigger1 = ctrl = 1
trigger2 = stateno = 600

;=========================================================
;必殺技
;---------------------------------------------------------
[State -1, サマーソルトA]
type = ChangeState
value = 1000
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "summer a"
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

[State -1, サマーソルトB]
type = ChangeState
value = 1010
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "summer b"
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

[State -1, サマーソルトC]
type = ChangeState
value = 1020
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "summer c"
triggerall = power>=1000
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

;---------------------------------------------------------
[State -1, ソニックストームA]
type = ChangeState
value = 1700
TriggerAll = Var(59) = 0
triggerall = statetype = A
triggerall = command = "wave a"
triggerall = numProjID(1600) = 0
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger3 = stateno = 1301
trigger3 = MoveContAct

[State -1, ソニックストームB]
type = ChangeState
value = 1710
TriggerAll = Var(59) = 0
triggerall = statetype = A
triggerall = command = "wave b"
triggerall = NumProjID(1600) = 0
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger3 = stateno = 1301
trigger3 = MoveContAct

[State -1, ソニックストームC]
type = ChangeState
value = 1720
TriggerAll = Var(59) = 0
triggerall = statetype = A
triggerall = command = "wave c"
triggerall = power>=1000
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger3 = stateno = 1301
trigger3 = MoveContAct

;---------------------------------------------------------
[State -1, ソニックウェーブA]
type = ChangeState
value = 1600
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "wave a"
triggerall = NumProjID(1600) = 0
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

[State -1, ソニックウェーブB]
type = ChangeState
value = 1610
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "wave b"
triggerall = NumProjID(1600) = 0
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

[State -1, ソニックウェーブC]
type = ChangeState
value = 1620
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "wave c"
triggerall = power>=1000
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

;---------------------------------------------------------
[State -1, ソニックエアクラッカーA]
type = ChangeState
value = 1500
TriggerAll = Var(59) = 0
triggerall = statetype = A
triggerall = command = "cracker a"
trigger1 = ctrl = 1
trigger2 = stateno = 600

[State -1, ソニックエアクラッカーB]
type = ChangeState
value = 1510
TriggerAll = Var(59) = 0
triggerall = statetype = A
triggerall = command = "cracker b"
trigger1 = ctrl = 1
trigger2 = stateno = 600

[State -1, ソニックエアクラッカーC]
type = ChangeState
value = 1520
TriggerAll = Var(59) = 0
triggerall = statetype = A
triggerall = command = "cracker c"
triggerall = power >= 1000
trigger1 = ctrl = 1
trigger2 = stateno = 600

;---------------------------------------------------------
[State -1, ソニッククラッカーA]
type = ChangeState
value = 1400
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "cracker a"
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

[State -1, ソニッククラッカーB]
type = ChangeState
value = 1410
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "cracker b"
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

[State -1, ソニッククラッカーC]
type = ChangeState
value = 1420
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "cracker c"
triggerall = power >= 1000
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

;---------------------------------------------------------
[State -1, ソニックメテオA]
type = ChangeState
value = 1300
TriggerAll = Var(59) = 0
triggerall = statetype = A
triggerall = command = "drive a"
trigger1 = ctrl = 1
trigger2 = stateno = 600

[State -1, ソニックメテオB]
type = ChangeState
value = 1310
TriggerAll = Var(59) = 0
triggerall = statetype = A
triggerall = command = "drive b"
trigger1 = ctrl = 1
trigger2 = stateno = 600

[State -1, ソニックメテオC]
type = ChangeState
value = 1320
TriggerAll = Var(59) = 0
triggerall = statetype = A
triggerall = command = "drive c"
triggerall = power>=1000
trigger1 = ctrl = 1
trigger2 = stateno = 600

;---------------------------------------------------------
[State -1, ソニックドライブA]
type = ChangeState
value = 1200
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "drive a"
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

[State -1, ソニックドライブB]
type = ChangeState
value = 1210
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command = "drive b"
triggerall = power>=1000
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

;=========================================================
;通常攻撃

[state -1, ウインドミル]
type = ChangeState
value = 205
TriggerAll = Var(59) = 0
triggerall = stateno = 100
trigger1 = command = "a"
trigger2 = command = "b"
trigger3 = command = "c"

[State -1,投げ] 
Type = changestate
triggerall = var(59) = 0
;triggerall = statetype != A
triggerall = ctrl
Trigger1 = Command = "a+x"
trigger1 = command = "holdback" || command = "holdfwd"
Trigger2 = Command = "z"
trigger2 = command = "holdback" || command = "holdfwd"
trigger2 = command != "holddown"
value = ifelse(statetype = A,850,800)

[State -1, 足払い]
type = ChangeState
value = 400
TriggerAll = Var(59) = 0
triggerall = command = "a"
triggerall = command = "holddown" 
triggerall = statetype != A
trigger1 = ctrl = 1

[State -1, スライディング]
type = ChangeState
value = 401
TriggerAll = Var(59) = 0
triggerall = command = "b"
triggerall = command = "holddown" 
triggerall = statetype != A
trigger1 = ctrl = 1

[State -1, スピンアタック]
type = ChangeState
value = 402
TriggerAll = Var(59) = 0
triggerall = command = "c"
triggerall = command = "holddown" 
triggerall = statetype != A
trigger1 = ctrl = 1

[State -1, ソニックイーグル]
type = ChangeState
value = 695
TriggerAll = Var(59) = 0
triggerall = command = "a"
triggerall = statetype = A
trigger1 = stateno = 90

[State -1, ソニックアップドラフト]
type = ChangeState
value = 230
TriggerAll = Var(59) = 0
triggerall = command = "back_a"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = [200,202]
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = stateno = 402
trigger3 = MoveContAct

[State -1, ソニックフレアー]
type = ChangeState
value = 210
TriggerAll = Var(59) = 0
triggerall = statetype != A
trigger1 = command = "fwd_a"
trigger1 = ctrl = 1
trigger2 = command = "a"
trigger2 = stateno = 202
trigger2 = (time = [9,26]) || MoveContAct
trigger3 = command = "fwd_a"
trigger3 = stateno = [200,202]
trigger3 = (time = [9,26]) || MoveContAct
trigger4 = command = "fwd_a"
trigger4 = stateno = 402
trigger4 = MoveContAct

[State -1, ソニックフレアー(ガードキャンセル版)]
type = ChangeState
value = 211
TriggerAll = Var(59) = 0
triggerall = statetype != A
trigger1 = command = "a"
trigger1 = power>=1000
trigger1 = stateno = [150,154]

[State -1, ソニックパンチ]
type = ChangeState
value = 200
TriggerAll = Var(59) = 0
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 402
trigger2 = MoveContAct

[State -1, ソニックキック]
type = ChangeState
value = 201
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command != "holddown"
trigger1 = command = "b"
trigger1 = ctrl
trigger2 = (command = "a") || (command = "b")
trigger2 = stateno = 200
trigger2 = (time = [9,22]) || MoveContAct
trigger3 = command = "b"
trigger3 = stateno = 402
trigger3 = MoveContAct

[State -1, ベストキック]
type = ChangeState
value = 202
TriggerAll = Var(59) = 0
triggerall = statetype != A
triggerall = command != "holddown"
trigger1 = command = "c"
trigger1 = ctrl = 1
trigger2 = (command = "a") || (command = "c")
trigger2 = stateno = 201 || stateno = 200
trigger2 = (time >= 9) || MoveContAct
trigger3 = command = "b"
trigger3 = stateno = 402
trigger3 = MoveContAct

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

[State -1, ホーミングアタック]
type = ChangeState
value = 630
TriggerAll = Var(59) = 0
triggerall = command = "fwd_a"
triggerall = statetype = A
triggerall = var(30) = 0
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger3 = stateno = 1301
trigger3 = MoveContAct

[State -1, ソニックロケット]
type = ChangeState
value = 620
TriggerAll = Var(59) = 0
triggerall = command = "c"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger3 = stateno = 1301
trigger3 = MoveContAct

[State -1, ハミングトップ]
type = ChangeState
value = 610
TriggerAll = Var(59) = 0
triggerall = command = "b"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger3 = stateno = 1301
trigger3 = MoveContAct

[State -1, スピンジャンプ]
type = ChangeState
value = 600
TriggerAll = Var(59) = 0
triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 1301
trigger2 = MoveContAct

;==========================================================
;攻撃以外の動作

[state -1, ヒーリング]
type = ChangeState
value = 700
TriggerAll = Var(59) = 0
triggerall = command = "hold_y"
triggerall = statetype != A
trigger1 = ctrl = 1

[State -1,緊急回避]
type = changestate
value = 910
triggerall = var(59) <= 0
triggerall = command = "x"
triggerall = command = "holdback"
trigger1 = statetype != A
trigger1 = ctrl

[State -1,緊急回避]
type = changestate
value = 900
triggerall = var(59) <= 0
triggerall = command = "x"
trigger1 = statetype != A
trigger1 = ctrl

[state -1, 追撃]
type = ChangeState
value = 90
TriggerAll = Var(59) = 0
;triggerall = statetype = S
triggerall = command = "holdfwd"
triggerall = P2stateno = 218
trigger1 = stateno = [210,211]
trigger1 = time = [53, 68]
trigger2 = prevstateno = [210,211]
trigger2 = ctrl

[State -1, ダッシュ]
type = ChangeState
value = 100
TriggerAll = Var(59) = 0
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State -1, バックダッシュ]
type = ChangeState
value = 105
TriggerAll = Var(59) = 0
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl = 1

[State -1, ソニックバレット]
type = ChangeState
value = 110
TriggerAll = Var(59) = 0
triggerall = command = "FF"
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 635

[State -1, ソニックバレット(後ろ)]
type = ChangeState
value = 115
TriggerAll = Var(59) = 0
triggerall = command = "BB"
triggerall = statetype != C
triggerall = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 635

[State -1, 歩き]
type = ChangeState
value = 20
TriggerAll = Var(59) = 0
triggerall = statetype = S
triggerall = ctrl; = 1
triggerall = command != "up"
triggerall = command !="airjump"
triggerall = command !="airjumpfwd"
triggerall = command !="airjumpback"
trigger1 = command = "holdfwd"
trigger2 = command = "holdback"

;挑発
[state -1,taunt]
type = changestate
value = 195
triggerall = var(59) <= 0
triggerall = statetype = S
triggerall = ctrl
trigger1 = command = "start"