;-| 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 = "AI51"
command = a,b,c,x,y,z,z,z,z,z,z,z,z,a,b,c,x,y,z
time = 0
---------------------------------------------------------------------------


; 僐儞僼傿僊儏儗乕僔儑儞

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

; 僐儅儞僪
;-| Super Motions |--------------------------------------------------------

[Command]
name = "dragonrush"
command = ~D, B, F, b
time = 30

[Command]
name = "shinkuu"
command = ~D, F, D, F, y
time = 25

[Command]
name = "stone"
command = ~D, F, D, F, b
time = 25

[Command]
name = "stone2"
command = ~D, B, y
time = 25

[Command]
name = "mega"
command = ~D, B, F, y
time = 20


;-| Special Motions |------------------------------------------------------

[Command]
name = "shoryuken"
command = ~F, D, DF, x
time = 20

[Command]
name = "shoryuken2"
command = ~F, D, DF, y
time = 20

[Command]
name = "hadouken"
command = ~D, F, x
time = 20

[Command]
name = "hadouken2"
command = ~D, F, y
time = 20

[Command]
name = "tatsumaki"
command = ~D, B, a
time = 20

[Command]
name = "tatsumaki2"
command = ~D, B, b
time = 20

[command]
name = "headattack"
command = ~D, F, a
time = 20

[command]
name = "headattack2"
command = ~D, F, b
time = 20

[Command]
name = "dash_x"
command = ~F, F, x

[Command]
name = "dash_y"
command = ~F, F, y

[Command]
name = "dash_a"
command = ~F, F, a

[Command]
name = "dash_b"
command = ~F, F, b

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"
command = F, F
time = 10

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

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery"
command = x+a
time = 1

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

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

;-| Dir + Button |---------------------------------------------------------
[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 = "z"
command = z
time = 1

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

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

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

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

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

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

[Command]
name = "start"
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

[Command]
name = "holddownfwd";Required (do not remove)
command = /$DF
time = 1

[Command]
name = "longjump"
command = ~D, $U
time = 11

;------------------------------------------------------------------------------
;;AI梡夵曄偁傝

[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 = 3000
triggerall = var(59)<=0
triggerall = command = "dragonrush"
triggerall = power >= 3000
trigger1 = ctrl
trigger1 = statetype != A
trigger2 = stateno = 52 || stateno = 101
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 200 && movecontact
trigger7 = stateno = 204 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 260 && movecontact
trigger10 = stateno = 270 && movecontact
trigger11 = stateno = 400 && movecontact
trigger12 = stateno = 410 && movecontact
trigger13 = stateno = 420 && movecontact
trigger14 = stateno = 450 && movecontact
trigger15 = stateno = 500 && movecontact
trigger16 = stateno = 550 && movecontact

; 僨僗價乕儉
[State -1,]
type = ChangeState
value = 2200
triggerall = var(59)<=0
triggerall = command = "shinkuu"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 52 || stateno = 101
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 200 && movecontact
trigger7 = stateno = 204 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 260 && movecontact
trigger10 = stateno = 270 && movecontact
trigger11 = stateno = 400 && movecontact
trigger12 = stateno = 410 && movecontact
trigger13 = stateno = 420 && movecontact
trigger14 = stateno = 450 && movecontact
trigger15 = stateno = 500 && movecontact


; 嬻拞僨僗價乕儉
[State -1,]
type = ChangeState
value = 2300
triggerall = var(59)<=0
triggerall = command = "shinkuu"
triggerall = power >= 1000
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 630 && movecontact
trigger6 = stateno = 635 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

; 儊僈僶僗僞乕
[State -1]
type = ChangeState
value = 1700
triggerall = var(59)<=0
triggerall = command = "mega"
triggerall = power >= 200
triggerall = numproj = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 52 || stateno = 100
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 200 && movecontact = 1
trigger4 = stateno = 220 && movecontact = 1
trigger5 = stateno = 250 && movecontact = 1
trigger6 = stateno = 270 && movecontact = 1
trigger7 = stateno = 400 && movecontact = 1
trigger8 = stateno = 410 && movecontact = 1
trigger9 = stateno = 420 && movecontact = 1
trigger10 = stateno = 450 && movecontact = 1
;trigger11 = stateno = 210 && movecontact = 1;嬤庛P
;trigger12 = stateno = 230 && movecontact = 1;嬤嫮P
;trigger13 = stateno = 260 && movecontact = 1;嬤庛K
;trigger14 = stateno = 500 && movecontact = 1;僟僢僔儏P

; 僒僀僐僉僱僔僗傾僞僢僋
[State -1,]
type = ChangeState
value = 2000
triggerall = var(59)<=0
triggerall = command = "stone"
triggerall = power >= 2000
triggerall = NumHelper(2001) = 0
triggerall = NumHelper(2002) = 0
triggerall = NumHelper(2003) = 0
triggerall = NumHelper(2004) = 0
triggerall = NumHelper(2005) = 0
triggerall = NumHelper(2006) = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 52 || stateno = 101
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 200 && movecontact
trigger7 = stateno = 204 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 260 && movecontact
trigger10 = stateno = 270 && movecontact
trigger11 = stateno = 400 && movecontact
trigger12 = stateno = 410 && movecontact
trigger13 = stateno = 420 && movecontact
trigger14 = stateno = 450 && movecontact
trigger15 = stateno = 500 && movecontact

; 僗僷僀儔儖傾僢僷乕乮庛乯
[State -1,]
type = ChangeState
value = 1500
triggerall = var(59)<=0
triggerall = command = "shoryuken"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 100
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact = 1
trigger4 = stateno = 210 && movecontact = 1
trigger5 = stateno = 230 && movecontact = 1
trigger6 = stateno = 200 && movecontact = 1
trigger7 = stateno = 204 && movecontact = 1
trigger8 = stateno = 250 && movecontact = 1
trigger9 = stateno = 260 && movecontact = 1
trigger10 = stateno = 270 && movecontact = 1
trigger11 = stateno = 400 && movecontact = 1
trigger12 = stateno = 410 && movecontact = 1
trigger13 = stateno = 420 && movecontact = 1
trigger14 = stateno = 450 && movecontact = 1
trigger15 = stateno = 500 && movecontact = 1
trigger16 = stateno = 550 && movecontact
trigger17 = stateno = 5120
trigger18 = stateno = 101 || stateno = 102

; 僗僷僀儔儖傾僢僷乕乮嫮乯
[State -1,]
type = ChangeState
value = 1550
triggerall = var(59)<=0
triggerall = command = "shoryuken2"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 100
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact = 1
trigger4 = stateno = 210 && movecontact = 1
trigger5 = stateno = 230 && movecontact = 1
trigger6 = stateno = 200 && movecontact = 1
trigger7 = stateno = 204 && movecontact = 1
trigger8 = stateno = 250 && movecontact = 1
trigger9 = stateno = 260 && movecontact = 1
trigger10 = stateno = 270 && movecontact = 1
trigger11 = stateno = 400 && movecontact = 1
trigger12 = stateno = 410 && movecontact = 1
trigger13 = stateno = 420 && movecontact = 1
trigger14 = stateno = 450 && movecontact = 1
trigger15 = stateno = 500 && movecontact = 1
trigger16 = stateno = 550 && movecontact
trigger17 = stateno = 5120
trigger18 = stateno = 101 || stateno = 102

; 娾傪旘偽偡
[State -1,]
type = ChangeState
value = 2100
triggerall = var(59)<=0
triggerall = var(16)=1
;triggerall = NumHelper(2001) || NumHelper(2002) || NumHelper(2003) || NumHelper(2004) || NumHelper(2005) || NumHelper(2006)
triggerall = command = "hadouken2"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 52 || stateno = 101
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 230 && movecontact
trigger6 = stateno = 200 && movecontact
trigger7 = stateno = 204 && movecontact
trigger8 = stateno = 250 && movecontact
trigger9 = stateno = 260 && movecontact
trigger10 = stateno = 270 && movecontact
trigger11 = stateno = 400 && movecontact
trigger12 = stateno = 410 && movecontact
trigger13 = stateno = 420 && movecontact
trigger14 = stateno = 450 && movecontact
trigger15 = stateno = 500 && movecontact

; 娾傪旘偽偡乮嬻拞乯
[State -1,]
type = ChangeState
value = 2101
triggerall = var(59)<=0
triggerall = var(16)=1
;triggerall = NumHelper(2001) || NumHelper(2002) || NumHelper(2003) || NumHelper(2004) || NumHelper(2005) || NumHelper(2006)
triggerall = command = "hadouken2"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 630 && movecontact
trigger6 = stateno = 635 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

; 僨僗儃乕儖乮庛乯
[State -1]
type = ChangeState
value = 1200
triggerall = var(59)<=0
triggerall = command = "hadouken"
triggerall = power >= 100
triggerall = numproj = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 52 || stateno = 100
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact = 1
trigger4 = stateno = 210 && movecontact = 1
trigger5 = stateno = 230 && movecontact = 1
trigger6 = stateno = 200 && movecontact = 1
trigger7 = stateno = 204 && movecontact = 1
trigger8 = stateno = 250 && movecontact = 1
trigger9 = stateno = 260 && movecontact = 1
trigger10 = stateno = 270 && movecontact = 1
trigger11 = stateno = 400 && movecontact = 1
trigger12 = stateno = 410 && movecontact = 1
trigger13 = stateno = 420 && movecontact = 1
trigger14 = stateno = 450 && movecontact = 1
trigger15 = stateno = 500 && movecontact = 1

; 僨僗儃乕儖乮嫮乯
[State -1]
type = ChangeState
value = 1205
triggerall = var(59)<=0
triggerall = command = "hadouken2"
triggerall = power >= 100
triggerall = numproj = 0
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 52 || stateno = 100
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact = 1
trigger4 = stateno = 210 && movecontact = 1
trigger5 = stateno = 230 && movecontact = 1
trigger6 = stateno = 200 && movecontact = 1
trigger7 = stateno = 204 && movecontact = 1
trigger8 = stateno = 250 && movecontact = 1
trigger9 = stateno = 260 && movecontact = 1
trigger10 = stateno = 270 && movecontact = 1
trigger11 = stateno = 400 && movecontact = 1
trigger12 = stateno = 410 && movecontact = 1
trigger13 = stateno = 420 && movecontact = 1
trigger14 = stateno = 450 && movecontact = 1
trigger15 = stateno = 500 && movecontact = 1

; 嬻拞僨僗儃乕儖乮庛乯
[State -1,]
type = ChangeState
value = 1400
triggerall = var(59)<=0
triggerall = command = "hadouken"
triggerall = power >= 100
triggerall = numproj = 0
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 630 && movecontact
trigger6 = stateno = 635 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

; 嬻拞僨僗儃乕儖乮嫮乯
[State -1,]
type = ChangeState
value = 1405
triggerall = var(59)<=0
triggerall = command = "hadouken2"
triggerall = power >= 100
triggerall = numproj = 0
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 630 && movecontact
trigger6 = stateno = 635 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

; 僿僢僪傾僞僢僋(嫮)1
[State -1,]
type = ChangeState
value = 1000
triggerall = var(59)<=0
triggerall = command = "headattack2"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 52 || stateno = 101
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact = 1
trigger4 = stateno = 210 && movecontact = 1
trigger5 = stateno = 230 && movecontact = 1
trigger6 = stateno = 200 && movecontact = 1
trigger7 = stateno = 204 && movecontact = 1
trigger8 = stateno = 250 && movecontact = 1
trigger9 = stateno = 260 && movecontact = 1
trigger10 = stateno = 270 && movecontact = 1
trigger11 = stateno = 400 && movecontact = 1
trigger12 = stateno = 410 && movecontact = 1
trigger13 = stateno = 420 && movecontact = 1
trigger14 = stateno = 450 && movecontact = 1
trigger15 = stateno = 500 && movecontact = 1

; 僿僢僪傾僞僢僋(嫮)2
[State -1,]
type = ChangeState
value = 1100
triggerall = var(59)<=0
triggerall = command = "headattack2"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 1001
trigger2 = time > 12
trigger3 = stateno = 1051
trigger3 = time > 12
trigger4 = stateno = 1002
trigger4 = time < 6

; 僿僢僪傾僞僢僋(庛)1
[State -1,]
type = ChangeState
value = 1050
triggerall = var(59)<=0
triggerall = command = "headattack"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 52 || stateno = 101
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact = 1
trigger4 = stateno = 210 && movecontact = 1
trigger5 = stateno = 230 && movecontact = 1
trigger6 = stateno = 200 && movecontact = 1
trigger7 = stateno = 204 && movecontact = 1
trigger8 = stateno = 250 && movecontact = 1
trigger9 = stateno = 260 && movecontact = 1
trigger10 = stateno = 270 && movecontact = 1
trigger11 = stateno = 400 && movecontact = 1
trigger12 = stateno = 410 && movecontact = 1
trigger13 = stateno = 420 && movecontact = 1
trigger14 = stateno = 450 && movecontact = 1
trigger15 = stateno = 500 && movecontact = 1

; 僿僢僪傾僞僢僋(庛)2
[State -1,]
type = ChangeState
value = 1150
triggerall = var(59)<=0
triggerall = command = "headattack"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 1051
trigger2 = time > 9
trigger3 = stateno = 1001
trigger3 = time > 9
trigger4 = stateno = 1002
trigger4 = time < 6

; 儔僀僕儞僌傾僞僢僋乮嫮乯1
[State -1,]
type = ChangeState
value = 1005
triggerall = var(59)<=0
triggerall = command = "tatsumaki2"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 100
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact = 1
trigger4 = stateno = 210 && movecontact = 1
trigger5 = stateno = 230 && movecontact = 1
trigger6 = stateno = 200 && movecontact = 1
trigger7 = stateno = 204 && movecontact = 1
trigger8 = stateno = 250 && movecontact = 1
trigger9 = stateno = 260 && movecontact = 1
trigger10 = stateno = 270 && movecontact = 1
trigger11 = stateno = 400 && movecontact = 1
trigger12 = stateno = 410 && movecontact = 1
trigger13 = stateno = 420 && movecontact = 1
trigger14 = stateno = 450 && movecontact = 1
trigger15 = stateno = 500 && movecontact = 1
trigger16 = stateno = 550 && movecontact

; 儔僀僕儞僌傾僞僢僋乮嫮乯2
[State -1,]
type = ChangeState
value = 1105
triggerall = var(59)<=0
triggerall = command = "tatsumaki2"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 1051
trigger2 = time > 9
trigger3 = stateno = 1001
trigger3 = time > 9
trigger4 = stateno = 1002
trigger4 = time < 6

; 儔僀僕儞僌傾僞僢僋乮庛乯
[State -1,]
type = ChangeState
value = 1055
triggerall = var(59)<=0
triggerall = command = "tatsumaki"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 100
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact = 1
trigger4 = stateno = 210 && movecontact = 1
trigger5 = stateno = 230 && movecontact = 1
trigger6 = stateno = 200 && movecontact = 1
trigger7 = stateno = 204 && movecontact = 1
trigger8 = stateno = 250 && movecontact = 1
trigger9 = stateno = 260 && movecontact = 1
trigger10 = stateno = 270 && movecontact = 1
trigger11 = stateno = 400 && movecontact = 1
trigger12 = stateno = 410 && movecontact = 1
trigger13 = stateno = 420 && movecontact = 1
trigger14 = stateno = 450 && movecontact = 1
trigger15 = stateno = 500 && movecontact = 1
trigger16 = stateno = 550 && movecontact

; 儔僀僕儞僌傾僞僢僋乮庛乯2
[State -1,]
type = ChangeState
value = 1155
triggerall = var(59)<=0
triggerall = command = "tatsumaki"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 1051
trigger2 = time > 9
trigger3 = stateno = 1001
trigger3 = time > 9
trigger4 = stateno = 1002
trigger4 = time < 6

; 僟僀價儞僌傾僞僢僋(嫮)1
[State -1,]
type = ChangeState
value = 1007
triggerall = var(59)<=0
triggerall = command = "tatsumaki2"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 630 && movecontact
trigger6 = stateno = 635 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

; 僟僀價儞僌傾僞僢僋(嫮)2
[State -1,]
type = ChangeState
value = 1107
triggerall = var(59)<=0
triggerall = command = "tatsumaki2"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = stateno = 1015
trigger2 = time > 9
trigger3 = stateno = 1065
trigger3 = time > 9
trigger4 = stateno = 1021
trigger4 = time > 9
trigger5 = stateno = 1031
trigger5 = time > 9

; 僟僀價儞僌傾僞僢僋(庛)1
[State -1,]
type = ChangeState
value = 1057
triggerall = var(59)<=0
triggerall = command = "tatsumaki"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 630 && movecontact
trigger6 = stateno = 635 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

; 僟僀價儞僌傾僞僢僋(庛)2
[State -1,]
type = ChangeState
value = 1157
triggerall = var(59)<=0
triggerall = command = "tatsumaki"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = stateno = 1015
trigger2 = time > 9
trigger3 = stateno = 1065
trigger3 = time > 9
trigger4 = stateno = 1021
trigger4 = time > 9
trigger5 = stateno = 1031
trigger5 = time > 9

; 嬻拞僿僢僪傾僞僢僋(嫮)1
[State -1,]
type = ChangeState
value = 1020
triggerall = var(59)<=0
triggerall = command = "headattack2"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 630 && movecontact
trigger6 = stateno = 635 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

; 嬻拞僿僢僪傾僞僢僋(嫮)2
[State -1,]
type = ChangeState
value = 1120
triggerall = var(59)<=0
triggerall = command = "headattack2"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = stateno = 1015
trigger2 = time > 9
trigger3 = stateno = 1065
trigger3 = time > 9
trigger4 = stateno = 1008
trigger4 = time > 9
trigger5 = stateno = 1158
trigger5 = time > 9
trigger6 = stateno = 1021
trigger6 = time > 9
trigger7 = stateno = 1031
trigger7 = time > 9


; 嬻拞僿僢僪傾僞僢僋(庛)1
[State -1,]
type = ChangeState
value = 1030
triggerall = var(59)<=0
triggerall = command = "headattack"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 620 && movecontact
trigger5 = stateno = 630 && movecontact
trigger6 = stateno = 635 && movecontact
trigger7 = stateno = 640 && movecontact
trigger8 = stateno = 650 && movecontact

; 嬻拞僿僢僪傾僞僢僋(庛)2
[State -1,]
type = ChangeState
value = 1130
triggerall = var(59)<=0
triggerall = command = "headattack"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = stateno = 1015
trigger2 = time > 9
trigger3 = stateno = 1065
trigger3 = time > 9
trigger4 = stateno = 1008
trigger4 = time > 9
trigger5 = stateno = 1158
trigger5 = time > 9
trigger6 = stateno = 1021
trigger6 = time > 9
trigger7 = stateno = 1031
trigger7 = time > 9


; 僟僢僔儏嫮僷儞僠 (僯儏乕僩儔儖)
[State -1,]
type = ChangeState
value = 510
triggerall = var(59)<=0
triggerall = command = "dash_y"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 100
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact; = 1
trigger4 = stateno = 210 && movecontact; = 1
trigger5 = stateno = 230 && movecontact; = 1
trigger6 = stateno = 200 && movecontact; = 1
trigger7 = stateno = 204 && movecontact; = 1
trigger8 = stateno = 250 && movecontact; = 1
trigger9 = stateno = 260 && movecontact; = 1
trigger10 = stateno = 270 && movecontact; = 1
trigger11 = stateno = 400 && movecontact = 1
trigger12 = stateno = 410 && movecontact = 1
trigger13 = stateno = 420 && movecontact = 1
trigger14 = stateno = 450 && movecontact = 1
trigger15 = stateno = 500 && movecontact = 1

;---------------------------------------------------------------------------
;============================摿庩媄=========================================
;---------------------------------------------------------------------------

;僟僢僔儏
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(59)<=0
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;嬻拞僟僢僔儏
[State -1, Run Fwd]
type = ChangeState
value = 110
triggerall = var(59)<=0
trigger1 = command = "FF"
trigger1 = statetype = A
trigger1 = ctrl

; 僶僢僋僗僥僢僾
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = var(59)<=0
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

; 嬻拞僶僢僋僟僢僔儏
[State -1, Run Back]
type = ChangeState
value = 112
triggerall = var(59)<=0
triggerall = vel x <= 0;-1 
trigger1 = command = "BB"
trigger1 = statetype = A
trigger1 = ctrl

; 搳偘
[State -1,]
type = ChangeState
value = 1300
triggerall = var(59)<=0
triggerall = (command = "holdfwd" || command = "holdback") && (command = "y")
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = p2bodydist X < 7
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H

; 偐偐偭偨偹両乮僇僂儞僞乕乯
[State -1]
type = ChangeState
value = 305
triggerall = var(59)<=0
triggerall = command = "recovery" ^^ command = "z"
trigger1 = (stateno = 150 || stateno = 151) && power >= 1000
trigger2 = (stateno = 152 || stateno = 153) && power >= 1000

; 婥椡棴傔
[State -1]
type = ChangeState
value = 1900
triggerall = var(59)<=0
triggerall = statetype = S
triggerall = Power < 3000
triggerall = ctrl = 1
trigger1 = command = "hold_b" && command = "hold_y"
trigger2 = command = "hold_c"

; 挧敪
[State -1]
type = ChangeState
value = 195
triggerall = var(59)<=0
trigger1 = command = "start"
trigger1 = Vel X = 0
trigger1 = stateno != 195
trigger1 = statetype = S
trigger1 = ctrl = 1

; 崅懍堏摦 (屻曽)
[State -1]
type = ChangeState
value = 360
triggerall = var(59)<=0
triggerall = command = "recovery" ^^ command = "z"
triggerall = command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 100
trigger3 = stateno = 101
trigger4 = stateno = 102

; 崅懍堏摦 (慜曽)
[State -1]
type = ChangeState
value = 361
triggerall = var(59)<=0
triggerall = command = "recovery" ^^ command = "z"
trigger1 = statetype = S
trigger1 = ctrl

 僟僢僔儏崅懍堏摦 (慜曽)
[State -1]
type = ChangeState
value = 361
triggerall = var(59)<=0
triggerall = stateno = 100 || stateno = 101 || stateno = 102
triggerall = ctrl = 0
trigger1 = command = "hold_x" && command = "hold_a" 
trigger2 = command = "hold_z"
trigger3 = command = "hold_c"


;---------------------------------------------------------------------------
;=======================僟僢僔儏峌寕========================================
;---------------------------------------------------------------------------

; 僟僢僔儏嫮僷儞僠 (僟僢僔儏拞)
[State -1,]
type = ChangeState
value = 511
triggerall = var(59)<=0
triggerall = stateno = 101
trigger1 = command = "hold_y"

; 僟僢僔儏庛僷儞僠 (僟僢僔儏拞)
[State -1,]
type = ChangeState
value = 500
triggerall = var(59)<=0
triggerall = stateno = 101
trigger1 = command = "hold_x"

 僟僢僔儏庛僉僢僋 (僗儔僀僨傿儞僌僉僢僋)
[State -1,]
type = ChangeState
value = 550
triggerall = var(59)<=0
triggerall = stateno = 101
trigger1 = command = "hold_a"

 僟僢僔儏嫮僉僢僋 (僟僢僔儏拞)
[State -1,]
type = ChangeState
value = 525
triggerall = var(59)<=0
triggerall = stateno = 101
trigger1 = command = "hold_b"

;---------------------------------------------------------------------------
;============================捠忢媄=========================================
;---------------------------------------------------------------------------
;-------------僷儞僠

; 庛僷儞僠 (嬤嫍棧)
[State -1,]
type = ChangeState
value = 210
triggerall = var(59)<=0
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = p2bodydist x < 10
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 52 || stateno = 101
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 210
trigger3 = time > 4
trigger4 = stateno = 500 && movecontact

; 庛僷儞僠
[State -1,]
type = ChangeState
value = 200
triggerall = var(59)<=0
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 52 || stateno = 101
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 200
trigger3 = time > 9
trigger4 = stateno = 210
trigger4 = time > 4
trigger5 = stateno = 260 && movecontact
trigger6 = stateno = 500 && movecontact

; 嫮僷儞僠 (嬤嫍棧)
[State -1,]
type = ChangeState
value = 230
triggerall = var(59)<=0
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = p2bodydist x < 15
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 210 && movecontact
trigger3 = stateno = 200 && movecontact
trigger4 = stateno = 500 && movecontact

; 嫮僷儞僠
[State -1,]
type = ChangeState
value = 220
triggerall = var(59)<=0
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 230 && movecontact
trigger3 = stateno = 200 && movecontact
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 250 && movecontact
trigger6 = stateno = 260 && movecontact
trigger7 = stateno = 500 && movecontact

;-------------------------------------------僉僢僋

; 庛僉僢僋 (嬤嫍棧)
[State -1,]
type = ChangeState
value = 260
triggerall = var(59)<=0
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = p2bodydist x < 5
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 235
trigger2 = time > 3
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 200 && movecontact
trigger5 = stateno = 500 && movecontact

; 庛僉僢僋
[State -1,]
type = ChangeState
value = 250
triggerall = var(59)<=0
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 250
trigger2 = time > 14
trigger3 = stateno = 260
trigger3 = time > 3
trigger4 = stateno = 210 && movecontact
trigger5 = stateno = 200 && movecontact
trigger6 = stateno = 500 && movecontact
trigger7 = stateno = 250 && movecontact

; 嫮僉僢僋 (嬤嫍棧)
[State -1,]
type = ChangeState
value = 280
triggerall = var(59)<=0
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = p2bodydist x < 15
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 230 && movecontact
trigger3 = stateno = 200 && movecontact
;trigger4 = stateno = 250 && movecontact
trigger4 = stateno = 260 && movecontact
trigger5 = stateno = 500 && movecontact

; 嫮僉僢僋
[State -1]
type = ChangeState
value = 270
triggerall = var(59)<=0
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 220 && movecontact
trigger3 = stateno = 210 && movecontact
trigger4 = stateno = 230 && movecontact
trigger5 = stateno = 200 && movecontact
trigger6 = stateno = 250 && movecontact
trigger7 = stateno = 260 && movecontact
trigger8 = stateno = 500 && movecontact

;---------------------------------------------------------------------------
;============================偟傖偑傒=========================================
;---------------------------------------------------------------------------

; 偟傖偑傒庛僷儞僠
[State -1]
type = ChangeState
value = 410
triggerall = var(59)<=0
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 101
trigger3 =  stateno = 410
trigger3 =  time > 6
trigger4 = stateno = 500 && movecontact

; 偟傖偑傒嫮僷儞僠
[State -1]
type = ChangeState
value = 400
triggerall = var(59)<=0
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 101
trigger3 = stateno = 420 && movecontact
trigger4 = stateno = 410 && movecontact
trigger5 = stateno = 210 && movecontact
trigger6 = stateno = 200 && movecontact
trigger7 = stateno = 250 && movecontact
trigger8 = stateno = 260 && movecontact
trigger9 = stateno = 500 && movecontact

; 偟傖偑傒庛僉僢僋
[State -1]
type = ChangeState
value = 420
triggerall = var(59)<=0
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 101
trigger3 = stateno = 420 && movecontact
trigger3 = time > 4
trigger4 = stateno = 410 && movecontact
trigger5 = stateno = 210 && movecontact
trigger6 = stateno = 200 && movecontact
trigger7 = stateno = 500 && movecontact

; 偟傖偑傒嫮僉僢僋
[State -1]
type = ChangeState
value = 450
triggerall = var(59)<=0
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 101
trigger3 = stateno = 420 && movecontact
trigger4 = stateno = 410 && movecontact
trigger5 = stateno = 200 && movecontact
trigger6 = stateno = 210 && movecontact
trigger7 = stateno = 250 && movecontact
;trigger8 = stateno = 280 && movecontact
trigger8 = stateno = 220 && movecontact
trigger9 = stateno = 230 && movecontact
trigger10 = stateno = 400 && movecontact
trigger11 = stateno = 500 && movecontact

;---------------------------------------------------------------------------
;============================嬻拞媄=========================================
;---------------------------------------------------------------------------

; 僕儍儞僾庛僷儞僠
[State -1]
type = ChangeState
value = 610
triggerall = var(59)<=0
triggerall = command = "x"
trigger1 = statetype = A && vel x != 0 
trigger1 = ctrl = 1
;trigger2 = stateno = 610 && movecontact = 1

; 僕儍儞僾庛僷儞僠 (悅捈)
[State -1]
type = ChangeState
value = 600
triggerall = var(59)<=0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl = 1
;trigger2 = stateno = 600 && movecontact = 1 && AnimElem = 2, >= 1 && AnimElem = 3, <= 1

; 僕儍儞僾嫮僷儞僠
[State -1]
type = ChangeState
value = 620
triggerall = var(59)<=0
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 600 && movecontact = 1
trigger3 = stateno = 610 && movecontact = 1
trigger4 = stateno = 630 && movecontact = 1
trigger5 = stateno = 635 && movecontact = 1

; 僕儍儞僾庛僉僢僋
[State -1]
type = ChangeState
value = 630
triggerall = var(59)<=0
triggerall = command = "a"
trigger1 = statetype = A && vel x != 0
trigger1 = ctrl = 1
trigger2 = stateno = 610 && movecontact = 1
;trigger3 = stateno = 630 && movecontact = 1

; 僕儍儞僾庛僉僢僋 (悅捈)
[State -1]
type = ChangeState
value = 635
triggerall = var(59)<=0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 600 && movecontact = 1
trigger3 = stateno = 635 && movecontact = 1

; 僕儍儞僾嫮僉僢僋
[State -1]
type = ChangeState
value = 650
triggerall = var(59)<=0
triggerall = command = "b"
trigger1 = statetype = A && vel x != 0
trigger1 = ctrl = 1
trigger2 = stateno = 610 && movecontact = 1
trigger3 = stateno = 630 && movecontact = 1
trigger4 = stateno = 620 && movecontact = 1

; 僕儍儞僾嫮僉僢僋 (悅捈)
[State -1]
type = ChangeState
value = 640
triggerall = var(59)<=0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 600 && movecontact = 1
trigger3 = stateno = 635 && movecontact = 1
trigger4 = stateno = 620 && movecontact = 1
