[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;// 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="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

[command]
name="z"
command=z
time=1

;-| Super Motions |--------------------------------------------------------
[Command]
name = "SS"
command = ~DB, D, F, DF, a
time = 40

[Command]
name = "SS"
command = ~DB, D, F, DF, b
time = 40

[Command]
name = "MAD_x"
command = ~D, DF, F, D, DF, F, x
time = 30

[Command]
name = "MAD_y"
command = ~D, DF, F, D, DF, F, y
time = 30

[Command]
name = "SDS_a"
command = ~D, DF, F, D, DF, F, a
time = 30

[Command]
name = "SDS_b"
command = ~D, DF, F, D, DF, F, b
time = 30

;-| Special Motions |------------------------------------------------------
[Command]
name = "Accel_x"
command = ~D, DB, B, x

[Command]
name = "Accel_y"
command = ~D, DB, B, y

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

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

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

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

;-| 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"
command = x+y
time = 1
[Command]
name = "recovery"
command = a+b
time = 1
[Command]
name = "recovery"
command = x+a
time = 1
[Command]
name = "recovery"
command = y+b
time = 1

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

[Command]
name = "nage"
command = y+b
time = 1
[Command]
name = "nage"
command = z
time = 1

[Command]
name = "QC"
command = a+b
time = 5
[Command]
name = "QC"
command = x+y
time = 5

;-| Dir + Button & Alpa|--------
[Command]
name = "fwd_b"
command = /$F,b
time = 1

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

[Command]
name = "down_b"
command = /$D,b
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 = "start"
command = s
time = 1

[Command]
name = "BL_F"
command = F
time = 1

[Command]
name = "BL_D"
command = D
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd"
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 = "holdDF"
command = DF
time = 1

[Command]
name = "hold_a"
command = /$a
time = 1

[Command]
name = "hold_b"
command = /$b
time = 1

[Command]
name = "hold_x"
command = /$x
time = 1

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

[Command]
name = "hold_c"
command = /$c
time = 1

[Command]
name = "hold_z"
command = /$z
time = 1

[Command]
name = "hold_s"
command = /$s
time = 1

[Statedef -1]
;===========================================================================
;---------------------------------------------------------------------------
;Ｂ・スパイラル（ゲージレベル２）
[State -1]
type = ChangeState
value = 3300
TriggerAll = Var(59) <= 0
triggerall = command = "SS" && power >= 2000
trigger1 = statetype != A && (ctrl || (stateno = 100 && time >= 5))

[State -1]
type = ChangeState
value = 3305
TriggerAll = Var(59) <= 0
triggerall = command = "SS" && power >= 2000
trigger1 = statetype != A && (hitdefattr = SC, NA, SA)
trigger1 = (stateno != [3200,3299])  && movecontact

;---------------------------------------------------------------------------
;スナイプブレイカー（ゲージレベル２）
[State -1]
type = ChangeState
value = 3600
TriggerAll = Var(59) <= 0
triggerall = (command = "MAD_y") && power >= 2000
trigger1 = statetype = S && (ctrl || (stateno = 100 && time >= 5))
trigger2 = statetype != A && (hitdefattr = SC, NA, SA,HA)
trigger2 = movecontact

;---------------------------------------------------------------------------
;スピンドライブスマッシャー（ゲージレベル２）
[State -1]
type = ChangeState
value = 3500
TriggerAll = Var(59) <= 0
triggerall = (command = "SDS_b") && power >= 2000
trigger1 = statetype = S && (ctrl || (stateno = 100 && time >= 5))
trigger2 = statetype != A && (hitdefattr = SC, NA, SA,HA)
trigger2 = movecontact

;---------------------------------------------------------------------------
;スピンドライブスマッシャー（ゲージレベル１）
[State -1]
type = ChangeState
value = 3200
TriggerAll = Var(59) <= 0
triggerall = (command = "SDS_a" || command = "SDS_b") && power >= 1000
trigger1 = statetype = S && (ctrl || (stateno = 100 && time >= 5))
trigger2 = statetype != A && (hitdefattr = SC, NA, SA)
trigger2 = (stateno != [3200,3299])  && movecontact

;---------------------------------------------------------------------------
;スナイパーリフト（ゲージレベル１）
[State -1]
type = ChangeState
value = 3000
TriggerAll = Var(59) <= 0
triggerall = (command = "MAD_x" || command = "MAD_y") && power >= 1000
trigger1 = statetype = S
trigger1 = (ctrl || (stateno = 100 && time >= 5))
trigger2 = statetype != A && (hitdefattr = SC, NA, SA)
trigger2 = movecontact

;---------------------------------------------------------------------------
;スナイパーアサルト（ゲージレベル１）
[State -1]
type = ChangeState
value = 3100
TriggerAll = Var(59) <= 0
triggerall = (command = "MAD_x" || command = "MAD_y") && power >= 1000
trigger1 = statetype = A && ctrl
trigger2 = (stateno = [600,699]) && movecontact

;===========================================================================
;---------------------------------------------------------------------------
;スパイラルアロー
[State -1]
type = ChangeState
value = 1200
TriggerAll = Var(59) <= 0
triggerall = (command = "Snipe_a" || command = "Snipe_b") && statetype = A
trigger1 = ctrl || ((stateno = [600,699]) && movecontact)

;---------------------------------------------------------------------------
;アクセルスピンナックル
[State -1]
type = ChangeState
value = 1400
TriggerAll = Var(59) <= 0
triggerall = command = "Accel_x" && statetype != A
trigger1 = (ctrl || (stateno = 100 && time >= 5))
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 && movecontact

[State -1]
type = ChangeState
value = 1410
TriggerAll = Var(59) <= 0
triggerall = command = "Accel_y" && statetype != A
trigger1 = (ctrl || (stateno = 100 && time >= 5))
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 && movecontact

;---------------------------------------------------------------------------
;キャノンスパイク
[State -1]
type = ChangeState
value = 1100
TriggerAll = Var(59) <= 0
triggerall = command = "Spike_a" && statetype != A
trigger1 = (ctrl || (stateno = 100 && time >= 5))
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 && movecontact

[State -1]
type = ChangeState
value = 1110
TriggerAll = Var(59) <= 0
triggerall = command = "Spike_b" && statetype != A
trigger1 = (ctrl || (stateno = 100 && time >= 5))
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 && movecontact

;---------------------------------------------------------------------------
;スナイピングアロー
[State -1]
type = ChangeState
value = 1000
TriggerAll = Var(59) <= 0
triggerall = command = "Snipe_a" && statetype != A
trigger1 = (ctrl || (stateno = 100 && time >= 5))
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 && movecontact

[State -1]
type = ChangeState
value = 1010
]TriggerAll = Var(59) <= 0
triggerall = command = "Snipe_b" && statetype != A
trigger1 = (ctrl || (stateno = 100 && time >= 5))
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 && movecontact

;===========================================================================
;------------------------------------------
; クイックキャンセル
[State -1]
type = ChangeState
value = 888
TriggerAll = Var(59) <= 0 && statetype != A
triggerall = Command = "QC" && power >= 1000
trigger1 = (stateno = [200,3999])
trigger1 = movecontact = [1,2]

;---------------------------------------------------------------------------
; パワー溜め 
[State -1]
type = ChangeState
value = 790
TriggerAll = Var(59) <= 0
TriggerAll = StateNo != [790,799]
trigger1 = command = "start" && command = "holddown"
trigger1 = power < 3000 && statetype != A && ctrl

[State -1]
type = ChangeState
value = 791
TriggerAll = Var(59) <= 0
TriggerAll = StateNo != [790,799]
trigger1 = command = "hold_x" && command = "hold_y" && command = "hold_a"
trigger1 = power < 3000 && statetype != A && ctrl

;---------------------------------------------------------------------------
;ぶろっきん
[State -2]
type = VarSet
TriggerAll = Var(59) <= 0
triggerall = var(2) = 0
trigger1 = command = "BL_F" && command != "holddown"&& Command != "holdup"
var(2) = 1

[State -2]
type = VarSet
TriggerAll = Var(59) <= 0
triggerall = var(3) = 0
trigger1 = command = "BL_D" && command != "holdfwd"&& Command != "holdback"
var(3) = 1

;---------------------------------------------------------------------------
; 緊急回避動作（前）
[State -1]
type = ChangeState
value = 80
TriggerAll = Var(59) <= 0
triggerall = Command = "evasion" && Command != "holdback" || Command = "evasion" && Command = "holdfwd"
trigger1 = StateType != A && Ctrl
trigger2 = stateno = 100 || stateno = 101
trigger3 = (stateno = [150,153]) && power >= 1000

; 緊急回避動作（後）
[State -1]
type = ChangeState
value = 90
TriggerAll = Var(59) <= 0
triggerall = Command = "evasion" && Command = "holdback"
trigger1 = StateType != A && Ctrl
trigger2 = stateno = 100 || stateno = 101
trigger3 = (stateno = [150,153]) && power >= 1000

;---------------------------------------------------------------------------
;空中投げ
[State -1, nage]
type = ChangeState
value = 900
TriggerAll = Var(59) <= 0
trigger1 = command = "nage"
trigger1 = statetype = A && ctrl

;投げ
[State -1, nage]
type = ChangeState
value = 800
TriggerAll = Var(59) <= 0
trigger1 = command = "nage"
trigger1 = statetype != A && (ctrl || (stateno = 100 && time >= 5))

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

;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
TriggerAll = Var(59) <= 0
trigger1 = command = "BB"
trigger1 = statetype = S && ctrl

;---------------------------------------------------------------------------
;立ち前強キック
[State -1]
type = ChangeState
value = 250
TriggerAll = Var(59) <= 0
triggerall = command = "fwd_b" && command != "holddown"
trigger1 = statetype = S && (ctrl || (stateno = 100 && time >= 5))
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 250 && movecontact

;===========================================================================
;---------------------------------------------------------------------------
;立ち弱パンチ
[State -1, Stand Light Punch]
type = ChangeState
value = 200
TriggerAll = Var(59) <= 0
triggerall = command = "x" && command != "holddown"
trigger1 = statetype = S && (ctrl || (stateno = 100 && time >= 5))
trigger2 = stateno = 200 && time > 9

;---------------------------------------------------------------------------
;立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
TriggerAll = Var(59) <= 0
triggerall = command = "y" && command != "holddown"
trigger1 = statetype = S && (ctrl || (stateno = 100 && time >= 5))
trigger2 = stateno = 200 && movecontact

;---------------------------------------------------------------------------
;立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = 230
TriggerAll = Var(59) <= 0
triggerall = command = "a" && command != "holddown"
trigger1 = statetype = S && (ctrl || (stateno = 100 && time >= 5))
trigger2 = (stateno = 200) && time > 7
trigger3 = (stateno = 230) && time > 9

;---------------------------------------------------------------------------
;立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
TriggerAll = Var(59) <= 0
triggerall = command = "b" && command != "holddown"
trigger1 = statetype = S && (ctrl || (stateno = 100 && time >= 5))
trigger2 = (stateno = 230) && time > 9

;---------------------------------------------------------------------------
;挑発
[State -1, Taunt]
type = ChangeState
value = 195
TriggerAll = Var(59) <= 0
triggerall = command = "start"
trigger1 = statetype != A && (ctrl || (stateno = 100 && time >= 5))

;---------------------------------------------------------------------------
;しゃがみ弱パンチ
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
TriggerAll = Var(59) <= 0
triggerall = command = "x" && command = "holddown"
trigger1 = statetype = C && (ctrl || (stateno = 100 && time >= 5))

;---------------------------------------------------------------------------
;しゃがみ強パンチ
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
TriggerAll = Var(59) <= 0
triggerall = command = "y" && command = "holddown"
trigger1 = statetype = C && (ctrl || (stateno = 100 && time >= 5))
trigger2 = stateno = 200 || stateno = 400 
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;しゃがみ弱キック
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
TriggerAll = Var(59) <= 0
triggerall = command = "a" && command = "holddown"
trigger1 = statetype = C && (ctrl || (stateno = 100 && time >= 5))
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;しゃがみ強キック
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
TriggerAll = Var(59) <= 0
triggerall = command = "b" && command = "holddown"
trigger1 = statetype = C && (ctrl || (stateno = 100 && time >= 5))
trigger2 = stateno = 430 && time > 9

;---------------------------------------------------------------------------
;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
TriggerAll = Var(59) <= 0
triggerall = command = "x" && statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && statetime >= 7

;---------------------------------------------------------------------------
;空中強パンチ
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
TriggerAll = Var(59) <= 0
triggerall = command = "y" && statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600 || stateno = 630) && movecontact

;---------------------------------------------------------------------------
;空中弱キック
[State -1, Jump Light Kick]
type = ChangeState
value = 630
TriggerAll = Var(59) <= 0
triggerall = command = "a" && statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact

;---------------------------------------------------------------------------
;空中強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
TriggerAll = Var(59) <= 0
triggerall = command = "b" && statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600 || stateno = 630 || stateno = 610) && movecontact

