[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

[Command]
Name = "Waza1x"
Command = ~D, F, x
Time = 9
[Command]
Name = "Waza1y"
Command = ~D, F, y
Time = 9
[Command]
Name = "Waza1z"
Command = ~D, F, z
Time = 9

[Command]
Name = "Waza2x"
Command = F, ~D, DF, x
Time = 20
[Command]
Name = "Waza2y"
Command = F, ~D, DF, y
Time = 20
[Command]
Name = "Waza2z"
Command = F, ~D, DF, z
Time = 20

[Command]
Name = "Waza3a"
Command = ~D, B, a
[Command]
Name = "Waza3b"
Command = ~D, B, b
[Command]
Name = "Waza3c"
Command = ~D, B, c

[Command]
Name = "FF"
Command = F, F
[Command]
Name = "BB"
Command = B, 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 = "start"
Command = s
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

[Command]
Name = "holda"
Command = /$a
Time = 1
[Command]
Name = "holdb"
Command = /$b
Time = 1
[Command]
Name = "holdc"
Command = /$c
Time = 1

[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 = "recovery"
Command = a+b+c+x+y+z+s
Time = 0

[StateDef -1]

[State -1]
type = varset
triggerall = var(59) = 0
trigger1 = Command = "AI0"
trigger2 = Command = "AI1"
trigger3 = Command = "AI2"
trigger4 = Command = "AI3"
trigger5 = Command = "AI4"
trigger6 = Command = "AI5"
trigger7 = Command = "AI6"
trigger8 = Command = "AI7"
trigger9 = Command = "AI8"
trigger10 = Command = "AI9"
trigger11 = Command = "AI10"
trigger12 = Command = "AI11"
trigger13 = Command = "AI12"
trigger14 = Command = "AI13"
trigger15 = Command = "AI14"
trigger16 = Command = "AI15"
trigger17 = Command = "AI16"
trigger18 = Command = "AI17"
trigger19 = Command = "AI18"
trigger20 = Command = "AI19"
trigger21 = Command = "AI20"
trigger22 = Command = "AI21"
trigger23 = Command = "AI22"
trigger24 = Command = "AI23"
trigger25 = Command = "AI24"
trigger26 = Command = "AI25"
trigger27 = Command = "AI26"
trigger28 = Command = "AI27"
trigger29 = Command = "AI28"
trigger30 = Command = "AI29"
trigger31 = Command = "AI30"
trigger32 = Command = "AI31"
trigger33 = Command = "AI32"
trigger34 = Command = "AI33"
trigger35 = Command = "AI34"
trigger36 = Command = "AI35"
trigger37 = Command = "AI36"
trigger38 = Command = "AI37"
trigger39 = Command = "AI38"
trigger40 = Command = "AI39"
trigger41 = Command = "AI40"
trigger42 = Command = "AI41"
trigger43 = Command = "AI42"
trigger44 = Command = "AI43"
trigger45 = Command = "AI44"
trigger46 = Command = "AI45"
trigger47 = Command = "AI46"
trigger48 = Command = "AI47"
trigger49 = Command = "AI48"
trigger50 = Command = "AI49"
trigger51 = Command = "AI50"
;trigger52 = 1;仼忢帪AI
var(59) = 1

[State -1];徃棿対
type = ChangeState
value = 1100
Triggerall = command = "Waza2x"
Trigger1 = RoundState = 2 && Life > 0 && StateType != A && Ctrl
Trigger2 = stateno = 550

[State -1];徃棿対
type = ChangeState
value = 1101
Triggerall = command = "Waza2y"
Trigger1 = RoundState = 2 && Life > 0 && StateType != A && Ctrl
Trigger2 = stateno = 550

[State -1];徃棿対
type = ChangeState
value = 1102
Triggerall = command = "Waza2z"
Trigger1 = RoundState = 2 && Life > 0 && StateType != A && Ctrl
Trigger2 = stateno = 550

[State -1];棾姫慁晽媟
type = ChangeState
value = 1200
Triggerall = command = "Waza3a"
Trigger1 = RoundState = 2 && Life > 0 && StateType != A && Ctrl

[State -1];棾姫慁晽媟
type = ChangeState
value = 1201
Triggerall = command = "Waza3b"
Trigger1 = RoundState = 2 && Life > 0 && StateType != A && Ctrl

[State -1];棾姫慁晽媟
type = ChangeState
value = 1202
Triggerall = command = "Waza3c"
Trigger1 = RoundState = 2 && Life > 0 && StateType != A && Ctrl

[State -1];攇摦対
type = ChangeState
value = 1000
Triggerall = command = "Waza1x" && !NumProjID(1)
Trigger1 = RoundState = 2 && Life > 0 && StateType != A && Ctrl

[State -1];攇摦対
type = ChangeState
value = 1001
Triggerall = command = "Waza1y" && !NumProjID(1)
Trigger1 = RoundState = 2 && Life > 0 && StateType != A && Ctrl

[State -1];攇摦対
type = ChangeState
value = 1002
Triggerall = command = "Waza1z" && !NumProjID(1)
Trigger1 = RoundState = 2 && Life > 0 && StateType != A && Ctrl

[State -1];搳偘
Type = ChangeState
Trigger1 = StateNo = 20 && (Command = "y" || Command = "z" || Command = "b" || Command = "c" || (Var(10) = 2 && Command = "a")) && P2BodyDist X<(65*Const(Size.XScale)) && Var(30) != 1 && RoundState = 2
Value = IFelse(Command = "y", 504, IFelse(Command = "z", 500, IFelse(Command = "b", 510, 514)))

[State -1];棫偪僷儞僠宯峌寕
Type = ChangeState
Trigger1 = (Command = "x" || Command = "y" || Command = "z") && StateType = S && (Ctrl||(Var(12)=-2&&MoveType=H&&HitShakeOver)) && Var(30) != 1 && RoundState = 2
Value = IFelse(Command="x", 200+(P2BodyDist X<(35*Const(Size.XScale))), IFelse(Command="y", 210+(P2BodyDist X<(42*Const(Size.XScale))), 220+(P2BodyDist X<(46*Const(Size.XScale)))))
[State -1];棫偪僉僢僋宯峌寕
Type = ChangeState
Trigger1 = (Command = "a" || Command = "b" || Command = "c") && StateType = S && (Ctrl||(Var(12)=-2&&MoveType=H&&HitShakeOver)) && Var(30) != 1 && RoundState = 2
Value = IFelse(P2BodyDist X>(29*Const(Size.XScale)), IFelse(Command = "a", 230, IFelse(Command = "b", 240, IFelse(P2BodyDist X<(45*Const(Size.XScale)), 251, 250))), IFelse(Command = "a", 231, IFelse(Command = "b", 241, 251)))
[State -1];偟傖偑傒峌寕
Type = ChangeState
Trigger1 = (Command = "x" || Command = "y" || Command = "z" || Command = "a" || Command = "b" || Command = "c") && StateType = C && (Ctrl||(Var(12)=-2&&MoveType=H&&HitShakeOver)) && Var(30) != 1 && RoundState = 2
Value = IFelse(Command = "x", 300, IFelse(Command = "y", 310, IFelse(Command = "z", 320, IFelse(Command = "a", 330, IFelse(Command = "b", 340, 350)))))
[State -1];嬻拞僷儞僠
Type = ChangeState
Trigger1 = (Command = "x" || Command = "y" || Command = "z") && StateType = A && (Ctrl||(Var(12)=-2&&MoveType=H&&HitShakeOver&&Pos Y<=0)) && Var(30) != 1 && RoundState = 2
Value = IFelse(Command = "x", 400, IFelse(Command = "y", 410, 420))
[State -1];嬻拞僉僢僋
Type = ChangeState
Trigger1 = (Command = "a" || Command = "b" || Command = "c") && StateType = A && (Ctrl||(Var(12)=-2&&MoveType=H&&HitShakeOver&&Pos Y<=0)) && Var(30) != 1 && RoundState = 2
Value = IFelse(Vel X = 0, IFelse(Command = "a", 430, IFelse(Command = "b", 440, 450)), IFelse(Command = "a", 431, IFelse(Command = "b", 441, 451)))
[State -1];摨帪墴偟僗儁僔儍儖
Type = ChangeState
Trigger1 = Command = "a" && AnimElem = 2,>1 && (Command="x"||Command="y"||Command="z"||Command="holdup") && ((StateNo=231&&Command="holddown") || (Command!="holddown"&&StateNo=330)) && RoundState = 2
Value=IFelse(Command="holdup",40,IFelse(Command="holddown",IFelse(Command="x",300,IFelse(Command="y",310,320)),IFelse(P2Dist X<60*Const(Size.XScale),IFelse(Command="x",201,IFelse(Command="y",211,221)),IFelse(Command="x",200,IFelse(Command="y",210,220)))))
[State -1];庛峌寕楢懪張棟
Type = ChangeState
Trigger1 = (Command="x"&&((StateNo=[200,201])||StateNo=300)&&AnimElem=2,>1) || ((Command = "holddown" || P2Dist X < 60*Const(Size.XScale)) && Command = "a" && ((StateNo = 231 && AnimElem = 2,>1) || (StateNo = 330 && AnimElem = 2,>1)))&&RoundState=2
Value = IFelse(Command="x", IFelse(Command="holddown", 300, IFelse(P2Dist X>59*Const(Size.XScale),200,201)), IFelse(Command="holddown", 330, IFelse(StateNo=330||P2Dist X<60*Const(Size.XScale), 231, 230)))