[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s
;---CPU判定---
[Command]
name = "AI1"
command = a,F,F,F,F,F,F,F,F
time = 1

[Command]
name = "AI2"
command = a,F,F,F,F,F,F,F,B
time = 1

[Command]
name = "AI3"
command = a,F,F,F,F,F,F,B,F
time = 1

[Command]
name = "AI4"
command = a,F,F,F,F,F,B,F,F
time = 1

[Command]
name = "AI5"
command = a,F,F,F,F,B,F,F,F
time = 1

[Command]
name = "AI6"
command = a,F,F,F,B,F,F,F,F
time = 1

[Command]
name = "AI7"
command = a,F,F,B,F,F,F,F,F
time = 1

[Command]
name = "AI8"
command = a,F,B,F,F,F,F,F,F
time = 1

[Command]
name = "AI9"
command = a,B,F,F,F,F,F,F,F
time = 1

[Command]
name = "AI10"
command = a,B,B,F,F,F,F,F,F
time = 1

[Command]
name = "AI11"
command = a,a,a,a,a,a,a,a,a,a,a,a
time = 1

[Command]
name = "AI12"
command = b,a,a,a,a,a,a,a,a,a,a,a
time = 1

[Command]
name = "AI13"
command = a,b,a,a,a,a,a,a,a,a,a,a
time = 1

[Command]
name = "AI14"
command = a,a,b,a,a,a,a,a,a,a,a,a
time = 1

[Command]
name = "AI15"
command = a,a,a,b,a,a,a,a,a,a,a,a
time = 1

[Command]
name = "AI16"
command = a,a,a,a,b,a,a,a,a,a,a,a
time = 1

[Command]
name = "AI17"
command = a,a,a,a,a,b,a,a,a,a,a,a
time = 1

[Command]
name = "AI18"
command = a,a,a,a,a,a,b,a,a,a,a,a
time = 1

[Command]
name = "AI19"
command = a,a,a,a,a,a,a,b,a,a,a,a
time = 1

[Command]
name = "AI20"
command = a,a,a,a,a,a,a,a,b,a,a,a
time = 1

[Command]
name = "AI21"
command = a,a,a,a,a,a,a,a,a,b,a,a
time = 1

[Command]
name = "AI22"
command = a,a,a,a,a,a,a,a,a,a,b,a
time = 1

[Command]
name = "AI23"
command = a,a,a,a,a,a,a,a,a,a,a,b
time = 1

[Command]
name = "AI24"
command = b,b,b,b,b,b,b,b,b,b,b,b
time = 1

[Command]
name = "AI25"
command = c,b,b,b,b,b,b,b,b,b,b,b
time = 1

[Command]
name = "AI26"
command = b,c,b,b,b,b,b,b,b,b,b,b
time = 1

[Command]
name = "AI27"
command = b,b,c,b,b,b,b,b,b,b,b,b
time = 1

[Command]
name = "AI28"
command = b,b,b,c,b,b,b,b,b,b,b,b
time = 1

[Command]
name = "AI29"
command = b,b,b,b,c,b,b,b,b,b,b,b
time = 1

[Command]
name = "AI30"
command = b,b,b,b,b,c,b,b,b,b,b,b
time = 1

[Command]
name = "AI31"
command = b,b,b,b,b,b,c,b,b,b,b,b
time = 1

[Command]
name = "AI32"
command = b,b,b,b,b,b,b,c,b,b,b,b
time = 1

[Command]
name = "AI33"
command = b,b,b,b,b,b,b,b,c,b,b,b
time = 1

[Command]
name = "AI34"
command = b,b,b,b,b,b,b,b,b,c,b,b
time = 1

[Command]
name = "AI35"
command = b,b,b,b,b,b,b,b,b,b,c,b
time = 1

[Command]
name = "AI36"
command = b,b,b,b,b,b,b,b,b,b,b,c
time = 1

[Command]
name = "AI37"
command = b,b,b,c,b,b,b,b,b,b,b,b
time = 1

[Command]
name = "AI38"
command = b,b,b,b,b,b,c,b,b,b,b,b
time = 1

[Command]
name = "AI39"
command = b,b,b,b,b,b,b,b,c,b,b,b
time = 1

[Command]
name = "AI40"
command = b,b,b,b,b,b,b,b,b,b,c,b,F
time = 1

[Command]
name = "AI41"
command = b,b,b,b,b,c,b,b,b,b,b,b,F
time = 1

[Command]
name = "AI42"
command = b,b,b,b,b,b,c,b,b,b,b,b,F
time = 1

[Command]
name = "AI43"
command = b,b,b,b,b,b,b,c,b,b,b,b,F
time = 1

[Command]
name = "AI44"
command = b,b,b,b,b,b,b,b,c,b,b,b,F
time = 1

[Command]
name = "AI45"
command = b,b,b,b,b,b,b,b,b,c,b,b,F
time = 1

[Command]
name = "AI46"
command = b,b,b,b,b,b,b,b,b,b,c,b,F
time = 1

[Command]
name = "AI47"
command = b,b,b,b,b,b,b,b,b,b,b,c,F
time = 1

[Command]
name = "AI48"
command = b,b,b,c,b,b,b,b,b,b,b,b,F
time = 1

[Command]
name = "AI49"
command = b,b,b,b,b,b,c,b,b,b,b,b,F
time = 1

[Command]
name = "AI50"
command = b,b,b,b,b,b,b,b,c,b,b,b,F
time = 1

;---２度押し系統---
[Command]
name = "FF"
command = F, F
time = 10

[Command]
name = "BB"
command = B, B
time = 10

;---復帰---
[Command]
name = "recovery"
command = x+y
time = 1

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

[Command]
name = "recovery"
command = x
time = 1

[Command]
name = "recovery"
command = a
time = 1

[Command]
name = "recovery"
command = y
time = 1

[Command]
name = "recovery"
command = b
time = 1

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

[Command]
name = "recovery"
command = c
time = 1

;---必殺技---
[Command]
name = "めざパ炎"
command = D,DF,F,a
time = 20

[Command]
name = "めざパ超"
command = D,DF,F,b
time = 20

[Command]
name = "めざパ岩"
command = D,DF,F,c
time = 20

[Command]
name = "めざパ霊"
command = D,DB,B,a
time = 20

[Command]
name = "めざパ雷"
command = D,DB,B,b
time = 20

[Command]
name = "めざパ氷"
command = D,DB,B,c
time = 20

;---通常技---
[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 = "fwd"
command = $F
time = 1

[Command]
name = "holdfwd"
command = /$F
time = 1

[Command]
name = "back"
command = $B
time = 1

[Command]
name = "holdback"
command = /$B
time = 1

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

[Command]
name = "holddown"
command = /$D
time = 1
[Statedef -1]

;---AI---

[State -1, AI]
Type = VarSet
TriggerAll = ((Var(59) = 0) && (RoundState != 3))
Trigger1 = Command = "AI1" || Command = "AI2" || Command = "AI3" || Command = "AI4"
Trigger2 = Command = "AI5" || Command = "AI6" || Command = "AI7" || Command = "AI8" || Command = "AI9"
Trigger3 = Command = "AI10" || Command = "AI11" || Command = "AI12" || Command = "AI13" || Command = "AI14"
Trigger4 = Command = "AI15" || Command = "AI16" || Command = "AI17" || Command = "AI18" || Command = "AI19"
Trigger5 = Command = "AI20" || Command = "AI21" || Command = "AI22" || Command = "AI23" || Command = "AI24"
Trigger6 = Command = "AI25" || Command = "AI26" || Command = "AI27" || Command = "AI28" || Command = "AI29"
Trigger7 = Command = "AI30" || Command = "AI31" || Command = "AI32" || Command = "AI33" || Command = "AI34"
Trigger8 = Command = "AI35" || Command = "AI36" || Command = "AI37" || Command = "AI38" || Command = "AI39"
Trigger9 = Command = "AI40" || Command = "AI41" || Command = "AI42" || Command = "AI43" || Command = "AI44"
Trigger10 = Command = "AI45" || Command = "AI46" || Command = "AI47" || Command = "AI48" || Command = "AI49"
Trigger11 = Command = "AI50"
V = 59
Value = 1
IgnoreHitPause = 1

[State -1, AI]
Type = VarSet
TriggerAll = Var(59) = 1
Trigger1 = Win = 1
Trigger2 = Lose = 1
Trigger3 = DrawGame = 1
Trigger4 = RoundState = 4
Trigger5 = RoundState = [0,1]
V = 59
Value = -1
IgnoreHitPause = 1

[State -1, AI]
Type = VarSet
Trigger1 = Var(59) = -1
Trigger1 = RoundState = 2
V = 59
Value = 1
IgnoreHitPause = 1