;-| CPU Function |----------------------------------------------------
[command]
name = "AI1"
command = a, a
time = 1

[command]
name = "AI2"
command = a, a
time = 1

[command]
name = "AI3"
command = a, a
time = 1

[command]
name = "AI4"
command = a, a
time = 1

[command]
name = "AI5"
command = a, a
time = 1

[command]
name = "AI6"
command = a, a
time = 1

[command]
name = "AI7"
command = a, a
time = 1

[command]
name = "AI8"
command = a, a
time = 1

[command]
name = "AI9"
command = a, a
time = 1

[command]
name = "AI10"
command = a, a
time = 1

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

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

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

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

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

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

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

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

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

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

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

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

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

[command]
name = "AI24"
command = a, a
time = 1

[command]
name = "AI25"
command = a, a
time = 1

[command]
name = "AI26"
command = a, a
time = 1

[command]
name = "AI27"
command = a, a
time = 1

[command]
name = "AI28"
command = a, a
time = 1

[command]
name = "AI29"
command = a, a
time = 1

[command]
name = "AI30"
command = a, a
time = 1

[command]
name = "AI31"
command = a, a
time = 1

[command]
name = "AI32"
command = a, a
time = 1

[command]
name = "AI33"
command = a, a
time = 1

[command]
name = "AI34"
command = a, a
time = 1

[command]
name = "AI35"
command = a, a
time = 1

[command]
name = "AI36"
command = a, a
time = 1

[command]
name = "AI37"
command = a, a
time = 1

[command]
name = "AI38"
command = a, a
time = 1

[command]
name = "AI39"
command = a, a
time = 1

[command]
name = "AI40"
command = a, a
time = 1

[command]
name = "AI41"
command = a, a
time = 1

[command]
name = "AI42"
command = a, a
time = 1

[command]
name = "AI43"
command = a, a
time = 1

[command]
name = "AI44"
command = a, a
time = 1

[command]
name = "AI45"
command = a, a
time = 1

[command]
name = "AI46"
command = a, a
time = 1

[command]
name = "AI47"
command = a, a
time = 1

[command]
name = "AI48"
command = a, a
time = 1

[command]
name = "AI49"
command = a, a
time = 1

[command]
name = "AI50"
command = a, a
time = 1


;-| Super Motions |---------------------------------------------------

;---------------------------------------------------------------------
;影道・雷神拳　(Shadow RaiJinKen)
[Command]
name = "RaiJinKen"
command = ~F, D, DF, x+y
time = 20
[Command]
name = "RaiJinKen"
command = ~F, D, DF, y+z
time = 20
[Command]
name = "RaiJinKen"
command = ~F, D, DF, x+z
time = 20

;---------------------------------------------------------------------
;影道・鳳閣拳　(Shadow HouKakuKen)
[Command]
name = "HouKakuKen"
command = ~D, DF, F, x+y
time = 20
[Command]
name = "HouKakuKen"
command = ~D, DF, F, y+z
time = 20
[Command]
name = "HouKakuKen"
command = ~D, DF, F, x+z
time = 20

;---------------------------------------------------------------------
;影道・龍極破　(Shadow RyuKyokuHa)
[Command]
name = "RyuKyokuHa"
command = ~D, DF, F, a+b
time = 20
[Command]
name = "RyuKyokuHa"
command = ~D, DF, F, b+c
time = 20
[Command]
name = "RyuKyokuHa"
command = ~D, DF, F, a+c
time = 20

;---------------------------------------------------------------------
;影道・冥王拳　(Shadow MeiOuKen)
[Command]
name = "MeiOuKen"
command = ~B, D, DB, x+y
time = 20
[Command]
name = "MeiOuKen"
command = ~B, D, DB, y+z
time = 20
[Command]
name = "MeiOuKen"
command = ~B, D, DB, x+z
time = 20

;---------------------------------------------------------------------
;制極界　(SeiKyokuKai)
[Command]
name = "SeiKyokuKai"
command = ~D, DB, B, x+y
time = 20
[Command]
name = "SeiKyokuKai"
command = ~D, DB, B, y+z
time = 20
[Command]
name = "SeiKyokuKai"
command = ~D, DB, B, x+z
time = 20

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

;---------------------------------------------------------------------
; スカイハイクロー　(Sky High Claw)
[Command]
name = "shc_a"
command = ~D, DB, B, x
time = 20

[Command]
name = "shc_b"
command = ~D, DB, B, y
time = 20

[Command]
name = "shc_c"
command = ~D, DB, B, z
time = 20

;---------------------------------------------------------------------
;ショットクロー　(Shot Claw)
[Command]
name = "sc_x"
command = ~D, DF, F, x
time = 20

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

[Command]
name = "sc_z"
command = ~D, DF, F, z
time = 20

;---------------------------------------------------------------------
;イリュージョンダッシュ　(Illusion Dash)
[Command]
name = "dash_fa"
command = ~F, D, DF, a
time = 20

[Command]
name = "dash_fb"
command = ~F, D, DF, b
time = 20

[Command]
name = "dash_fc"
command = ~F, D, DF, c
time = 20

[Command]
name = "dash_ba"
command = ~B, D, DB, a
time = 20
[Command]
name = "dash_bb"
command = ~B, D, DB, b
time = 20

[Command]
name = "dash_bc"
command = ~B, D, DB, c
time = 20


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

;-| 2/3 Button Combination |------------------------------------------

[Command]
name = "recovery";Required (do not remove)
command = x+y
time = 1

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

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

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

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

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

[Command]
name = "cz"
command = c+z
time = 1

[Command]
name = "xy"
command = x+y
time = 1

[Command]
name = "xyz"
command = x+y+z
time = 1

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

;-| Dir + Button |----------------------------------------------------
[Command]
name = "fwd_a"
command = /F,a
time = 1

[Command]
name = "fwd_b"
command = /F,b
time = 1

[Command]
name = "fwd_c"
command = /F,c
time = 1

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

[Command]
name = "fwd_y"
command = /F,y
time = 1

[Command]
name = "fwd_z"
command = /F,z
time = 1

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

[Command]
name = "back_b"
command = /B,b
time = 1

[Command]
name = "back_c"
command = /B,c
time = 1

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

[Command]
name = "back_y"
command = /B,y
time = 1

[Command]
name = "back_z"
command = /B,z
time = 1

[Command]
name = "down_b"
command = /$D, b
time = 1

;------------------- Street Fighter Zero 3
[Command]
name = "throw_p"
command = /F,y
time = 1

[Command]
name = "throw_p"
command = /F,z
time = 1

[Command]
name = "throw_p"
command = /B,y
time = 1

[Command]
name = "throw_p"
command = /B,z
time = 1

[Command]
name = "airthrow_p"
command = /$F,y
time = 1

[Command]
name = "airthrow_p"
command = /$F,z
time = 1

[Command]
name = "airthrow_p"
command = /$B,y
time = 1

[Command]
name = "airthrow_p"
command = /$B,z
time = 1

[Command]
name = "airthrow_k"
command = /$F,b
time = 1

[Command]
name = "airthrow_k"
command = /$F,c
time = 1

[Command]
name = "airthrow_k"
command = /$B,b
time = 1

[Command]
name = "airthrow_k"
command = /$B,c
time = 1

;-| single Button |---------------------------------------------------
[Command]
name = "x"
command = x
time = 1

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

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

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

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

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

[Command]
name = "s"
command = s
time = 1

;-| Hold Button |-----------------------------------------------------
[Command]
name = "xx"
command = /x
time = 1

[Command]
name = "aa"
command = /a
time = 1

[Command]
name = "yy"
command = /y
time = 1

[Command]
name = "bb"
command = /b
time = 1

[Command]
name = "cc"
command = /c
time = 1

[Command]
name = "zz"
command = /z
time = 1

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

;------------------------ Balrog Only
[Command]
name = "holdupback"
command = /UB
time = 1

[Command]
name = "holdupfwd"
command = /UF
time = 1

;=====================================================================
; State Entry for Commands
;=====================================================================

[Statedef -1]

;=====================================================================
; CPU Function
;=====================================================================
;---------------------------------------------------------------------
;タッグ用

;制極界
[State -1,AI-H5]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = Ctrl = 1
triggerall = power >= 2000
;triggerall = (enemy,alive) + (enemy(1),alive) = 2
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
trigger1 = numpartner = 1
trigger1 = partner,movetype = H
value = 3400

;影道・雷神拳
[State -1,AI-H1]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = power >= 1000
triggerall = statetype != A
triggerall = Ctrl = 1
triggerall = (enemy,alive) + (enemy(1),alive) = 2
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
triggerall = (enemy,pos Y >= -60) || (enemy(1),pos Y >= -60)
trigger1 = (enemy,stateno    = [120,159]) || enemy,hitfall
trigger1 = (enemy(1),stateno = [120,159]) || enemy(1),hitfall
trigger1 = !(enemy,hitfall && enemy(1),hitfall)
value = 3200

;影道・龍極破
[State -1,AI-H3]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = power >= 1000
triggerall = (enemy,alive) + (enemy(1),alive) = 2
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
trigger1 = stateno = 220 || stateno = 360
trigger1 = movehit
value = 3300

;影道・龍極破
[State -1,AI-H3]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = power >= 1000
triggerall = (enemy,alive) + (enemy(1),alive) = 2
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
triggerall = ctrl = 1
triggerall = numpartner = 1
triggerall = partner,movehit
trigger1 = (enemy,movetype = H) && (enemy,statetype = S || enemy,statetype = C)
trigger2 = (enemy(1),movetype = H) && (enemy(1),statetype = S || enemy(1),statetype = C)
value = 3300

;影道・冥王拳
[State -1,AI-H4]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = power >= 1000
triggerall = (enemy,alive) + (enemy(1),alive) = 2
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
trigger1 = numpartner = 1
trigger1 = partner,alive = 0
trigger1 = numtarget(3300) >= 2
trigger1 = p2dist x = [-60,-40]
value = 3900

;イリュージョンダッシュ・前方
[State -1,AI-S2]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = ctrl = 1
triggerall = (enemy,alive) + (enemy(1),alive) = 2
triggerall = (pos x > enemy,pos x) && (pos x < enemy(1),pos x) || (pos x < enemy,pos x) && (pos x > enemy(1),pos x)
;右を向いている。味方が右にいる　＝　前方
trigger1 = numpartner = 1
trigger1 = partner,alive = 1
trigger1 = facing = 1
trigger1 = pos x < partner,pos x
;左を向いている。味方が左にいる　＝　前方
trigger2 = numpartner = 1
trigger2 = partner,alive = 1
trigger2 = facing = -1
trigger2 = pos x > partner,pos x
value = 2500

;イリュージョンダッシュ・後方
[State -1,AI-S2]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = ctrl = 1
triggerall = (enemy,alive) + (enemy(1),alive) = 2
triggerall = (pos x > enemy,pos x) && (pos x < enemy(1),pos x) || (pos x < enemy,pos x) && (pos x > enemy(1),pos x)
;右を向いている。味方が左にいる　＝　後方
trigger1 = numpartner = 1
trigger1 = partner,alive = 1
trigger1 = facing = 1
trigger1 = pos x > partner,pos x
;左を向いている。味方が右にいる　＝　後方
trigger2 = numpartner = 1
trigger2 = partner,alive = 1
trigger2 = facing = -1
trigger2 = pos x < partner,pos x
;味方がやられている　　　　　　　＝　後方
trigger3 = numpartner = 1
trigger3 = partner,alive = 0
trigger4 = numpartner = 0
value = 2600

;バックスラッシュ
[State -1,AI8]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = (enemy,alive) + (enemy(1),alive) = 2
trigger1 = numpartner = 0 || (numpartner = 1 && partner,alive = 0)
trigger1 = ctrl = 1
trigger1 = enemy,numproj || enemy(1),numproj
trigger1 = p2bodydist X < 150
trigger2 = StateNo = [150,155]
trigger2 = enemy,numproj || enemy(1),numproj
trigger3 = stateno = 800
trigger3 = movehit = 0
trigger3 = power < 1000
trigger4 = numpartner = 0 || (numpartner = 1 && partner,alive = 0)
trigger4 = ctrl = 1
trigger4 = p2stateno >= 3000
;trigger4 = p2bodydist X < 100
value = 1600

;影道・龍極破
[State -1,AI-H3]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = power >= 1000
triggerall = (enemy,alive) + (enemy(1),alive) = 2
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
trigger1 = stateno = 220 || stateno = 360
trigger1 = movehit
trigger2 = ctrl = 1
trigger2 = numpartner = 1
trigger2 = partner,movehit
value = 3300

;立ち強爪
[State -1,AI3]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = (enemy,alive) + (enemy(1),alive) = 2
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
triggerall = ctrl = 1
triggerall = numpartner = 1
triggerall = partner,movehit
trigger1 = (enemy,movetype = H) && (enemy,statetype = S || enemy,statetype = C)
trigger1 = pos x - enemy,pos x < 140
trigger2 = (enemy(1),movetype = H) && (enemy(1),statetype = S || enemy(1),statetype = C)
trigger2 = pos x - enemy(1),pos x < 140
value = 210

;---------------------------------------------------------------------
;シングル用

;制極界
[State -1,AI-H5]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = Ctrl = 1
triggerall = power >= 2000
triggerall = (enemy,alive) + (enemy(1),alive) = 1
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
triggerall = enemy,movetype != H || enemy(1),movetype != H
trigger1 = Var(32) = 1
trigger1 = power >= 3000
value = 3400

;影道・雷神拳
[State -1,AI-H1]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = power >= 1000
triggerall = statetype != A
triggerall = Ctrl = 1
triggerall = (enemy,alive) + (enemy(1),alive) = 1
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
triggerall = (enemy,pos Y >= -60) || (enemy(1),pos Y >= -60)
trigger1 = Var(32) = 0
trigger1 = power >= 3000
trigger1 = p2movetype = A || p2statetype = A
value = 3200

;影道・龍極破／鳳閣拳
[State -1,AI-H3H2]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = power >= 1000
triggerall = (enemy,alive) + (enemy(1),alive) = 1
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
trigger1 = Var(32) = 1
trigger1 = stateno = 220 || stateno = 360
trigger1 = movehit
value = 3300 + 300 * (numhelper(3650) = 0 && ((100 * life / const(data.life)) >= 40))

;影道・冥王拳
[State -1,AI-H4]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = power >= 1000
triggerall = (enemy,alive) + (enemy(1),alive) = 1
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
trigger1 = Var(32) = 1
trigger1 = stateno = 3300 && movehit 
trigger1 = numtarget(3300) >= 1
trigger1 = p2dist x = [-60,-40]
trigger1 = numpartner = 0 || (numpartner = 1 && partner,alive = 0)
value = 3900

;スカイハイクロー（龍極破後の追い打ち）
[State -1,AI-S2]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
trigger1 = ctrl = 1
trigger1 = numtarget(3300) >= 1
trigger1 = p2movetype = H
value = 1280

;スカイハイクロー
[State -1,AI-S2]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
trigger1 = ctrl = 1
trigger1 = p2bodydist Y = [-150,-10]
trigger1 = p2movetype = I
value = 1260

;イリュージョンダッシュ
[State -1,AI-S2]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = ctrl = 1
triggerall = (enemy,alive) + (enemy(1),alive) = 1
trigger1 = enemy,numproj || enemy(1),numproj
trigger1 = p2bodydist X >= 150
trigger2 = PrevStateno = [1800,1840]
trigger2 = p2bodydist X >= 80
value = 2500 + 20*(random>700) + 20*(random>700)

;バックスラッシュ
[State -1,AI8]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = (enemy,alive) + (enemy(1),alive) = 1
trigger1 = numpartner = 0 || (numpartner = 1 && partner,alive = 0)
trigger1 = ctrl = 1
trigger1 = enemy,numproj || enemy(1),numproj
trigger1 = p2bodydist X < 150
trigger2 = StateNo = [150,155]
trigger2 = enemy,numproj || enemy(1),numproj
trigger3 = stateno = 800
trigger3 = movehit = 0
trigger3 = power < 1000
trigger4 = numpartner = 0 || (numpartner = 1 && partner,alive = 0)
trigger4 = ctrl = 1
trigger4 = p2stateno >= 3000
;trigger4 = p2bodydist X < 100
value = 1600

;投げ
[State -1,AI1]
type = ChangeState
triggerall = Var(30) = 1
triggerall = StateType != A
triggerall = p2statetype = S || p2statetype = C
triggerall = RoundState = 2
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
triggerall = p2bodydist X = [0,20]
triggerall = p2stateno != [5000,5210]
triggerall = Numtarget = 0
trigger1 = ctrl = 1
value = 800

;小足
[State -1,AI2]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = p2statetype = S || p2statetype = C
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
trigger1 = ctrl = 1
trigger1 = p2bodydist X = [0, 50]
value = 350

;中足
[State -1,AI2]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = p2statetype = S || p2statetype = C
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
trigger1 = ctrl = 1
trigger1 = p2bodydist X = [51, 80]
trigger2 = stateno = 215 || stateno = 350
trigger2 = movecontact = 1
value = 360

;しゃがみ中爪
[State -1,AI3]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = p2statetype = S || p2statetype = C
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
trigger1 = ctrl = 1
trigger1 = p2bodydist X = [81, 110]
value = 310

;ショットクロー
[State -1,AI4]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = enemy,numproj = 0 && enemy(1),numproj = 0
trigger1 = ctrl = 1
trigger1 = p2bodydist X > 150
trigger2 = stateno = 220 || stateno = 360
trigger2 = moveguarded = 1
trigger3 = ctrl = 1
trigger3 = p2statetype = A
trigger3 = p2movetype = H
value = 1820 + 20 * (p2bodydist X > 180)

;大足
[State -1,AI5]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = p2statetype = S || p2statetype = C
trigger1 = ctrl = 1
trigger1 = p2bodydist X = [111, 160]
trigger2 = stateno = 220 || stateno = 360
trigger2 = movehit = 1
trigger2 = p2statetype = C
value = 370

;立ち大キック
[State -1,AI6]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = p2statetype = S || p2statetype = C
trigger1 = stateno = 220 || stateno = 360
trigger1 = movehit = 1
trigger1 = p2statetype = S
value = 225

;コズミックスマート
[State -1,AI7]
type = ChangeState
triggerall = Var(30) = 1
triggerall = RoundState = 2
triggerall = statetype != A
triggerall = p2statetype = S || p2statetype = C
trigger1 = stateno = 230
trigger1 = movehit = 1
trigger1 = p2statetype = S
value = 600



;=====================================================================
; Super Arts
;=====================================================================

;---------------------------------------------------------------------
;影道・雷神拳
[State -1]
type = ChangeState
value = 3200
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = power >= 1000
triggerall = Command = "RaiJinKen"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
;影道・鳳閣拳
[State -1]
type = ChangeState
value = 3600
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = power >= 1000
triggerall = numhelper(3650) = 0
triggerall = Command = "HouKakuKen"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
;影道・龍極破
[State -1]
type = ChangeState
value = 3300
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = power >= 1000
triggerall = Command = "RyuKyokuHa"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
;影道・冥王拳
[State -1]
type = ChangeState
value = 3900
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = power >= 1000
triggerall = Command = "MeiOuKen"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
trigger9 = StateNo = 3300 && movehit
;---------------------------------------------------------------------
;制極界　(SeiKyokuKai)
[State -1]
type = ChangeState
value = 3400
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = power >= 2000
triggerall = Command = "SeiKyokuKai"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195


;=====================================================================
; Special Arts 
;=====================================================================

;---------------------------------------------------------------------
;ショットクロー・弱
[State -1]
type = ChangeState
value = 1800
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "sc_x"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
;ショットクロー・中
[State -1]
type = ChangeState
value = 1820
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "sc_y"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
;ショットクロー・強
[State -1]
type = ChangeState
value = 1840
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "sc_z"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
;イリュージョンダッシュ・前・強
[State -1]
type = ChangeState
value = 2500
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "dash_fc"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
;イリュージョンダッシュ・前・中
[State -1]
type = ChangeState
value = 2520
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "dash_fb"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
;イリュージョンダッシュ・前・弱
[State -1]
type = ChangeState
value = 2540
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "dash_fa"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
;イリュージョンダッシュ・後・強
[State -1]
type = ChangeState
value = 2600
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "dash_bc"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
;イリュージョンダッシュ・後・中
[State -1]
type = ChangeState
value = 2620
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "dash_bb"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
;イリュージョンダッシュ・後・弱
[State -1]
type = ChangeState
value = 2640
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "dash_ba"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
; スカイハイクロー・弱
[State -1]
type = ChangeState
value = 1200
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "shc_a"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
; スカイハイクロー・中
[State -1]
type = ChangeState
value = 1260
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "shc_b"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;---------------------------------------------------------------------
; スカイハイクロー・強
[State -1]
type = ChangeState
value = 1280
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "shc_c"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;=====================================================================
; Special Attacks , Moves and so on.
;=====================================================================

;---------------------------------------------------------------------
; バックスラッシュ
[State -1]
type = ChangeState
value = 1600
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "BB";"xyz"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
;=====================================================================
; Basic Animation
;=====================================================================

;---------------------------------------------------------------------
;RunFwd
[State -1]
type = Null;ChangeState
value = 100
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "FF"
triggerall = statetype = S
trigger1 = ctrl = 1
trigger1 = StateNo != 100

;---------------------------------------------------------------------
;RunBack
[State -1]
type = Null;ChangeState
value = 105
triggerall = Var(30) = 0
triggerall = RoundState = 2
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl = 1

;=====================================================================
; Basic Throws
;=====================================================================

;---------------------------------------------------------------------
; レインボースープレックス（Ｐ通常投げ）
[State -1]
type = ChangeState
value = 800
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = StateNo != 100
triggerall = StateType = S
triggerall = Numtarget = 0
triggerall = Command = "throw_p"
triggerall = p2bodydist X < 20
trigger1 = Ctrl = 1
trigger2 = StateNo = 195
;---------------------------------------------------------------------
; スターダストドロップ（Ｐ空中投げ）
[State -1]
type = ChangeState
value = 900
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = StateType = A
triggerall = Ctrl = 1
triggerall = Numtarget = 0
trigger1 = Command = "airthrow_p"
trigger1 = p2bodydist X = [0,15]
trigger1 = p2bodydist Y = [-50,5]

;---------------------------------------------------------------------
; クレセントライン（Ｋ空中投げ）
[State -1]
type = ChangeState
value = 950
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = StateType = A
triggerall = Numtarget = 0
triggerall = Ctrl = 1
trigger1 = Command = "airthrow_k"
trigger1 = p2bodydist X = [0,15]
trigger1 = p2bodydist Y = [-5,50]
;=====================================================================
; 特殊能力
;=====================================================================
;
;---------------------------------------------------------------------
; 三角跳び
;------------------------ 後方
[State -1]
type = ChangeState
value = 4300
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = StateType = A
triggerall = Vel X < 0 && Pos Y <= -50 && Ctrl = 1
triggerall = BackEdgeDist <= 20
trigger1 = Command = "holdfwd" && !Command = "holddown"

;------------------------ 前方
[State -1]
type = ChangeState
value = 4350
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = StateType = A
triggerall = Vel X > 0 && Pos Y <= -50 && Ctrl = 1
triggerall = FrontEdgeDist <= 20
trigger1 = Command = "holdback" && !Command = "holddown"

;=====================================================================
; Dir + Button
;=====================================================================

;---------------------------------------------------------------------
; コズミックスマート（→＋強Ｋ）
[State -1]
type = ChangeState
value = 600
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "fwd_c"
triggerall = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 && movecontact
trigger3 = StateNo = 215 && movecontact
trigger4 = StateNo = 220 && movecontact
trigger5 = StateNo = 300 && movecontact
trigger6 = StateNo = 350 && movecontact
trigger7 = StateNo = 360 && movecontact
trigger8 = StateNo = 195
trigger9 = StateNo = 230 && movecontact

;=====================================================================
; Taunts
;=====================================================================

;---------------------------------------------------------------------
; 挑発
[State -1]
type = ChangeState
value = 195
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "s"
trigger1 = StateType != A
trigger1 = Ctrl = 1
trigger2 = StateNo = 200 || (StateNo = [215,220])
trigger3 = StateNo = 300 || (StateNo = [350,360])

;=====================================================================
; Basic Arts
;=====================================================================

;---------------------------------------------------------------------
; 弱パンチ
[State -1]
type = ChangeState
value = 200
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = StateNo = 195
;---------------------------------------------------------------------
; 中パンチ
[State -1]
type = ChangeState
value = 205
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = StateNo = 195
;---------------------------------------------------------------------
; 強パンチ
[State -1]
type = ChangeState
value = 210
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = StateNo = 195
;---------------------------------------------------------------------
; 弱キック
[State -1]
type = ChangeState
value = 215
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = StateNo = 195
;---------------------------------------------------------------------
; 中キック
[State -1]
type = ChangeState
value = 220
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = StateNo = 215 || StateNo = 350
trigger2 = movecontact
trigger3 = StateNo = 195
;---------------------------------------------------------------------
; 強キック
[State -1]
type = ChangeState
value = 225
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = StateNo = 215 || StateNo = 350 || StateNo = 220 || StateNo = 360
trigger2 = movecontact
trigger3 = StateNo = 195
;---------------------------------------------------------------------
; しゃがみ弱パンチ
[State -1]
type = ChangeState
value = 300
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = StateNo = 195
;---------------------------------------------------------------------
; しゃがみ中パンチ
[State -1]
type = ChangeState
value = 310
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = StateNo = 195
;---------------------------------------------------------------------
; しゃがみ強パンチ
[State -1]
type = ChangeState
value = 320
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "z"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = StateNo = 195
;---------------------------------------------------------------------
; しゃがみ弱キック
[State -1]
type = ChangeState
value = 350
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = StateNo = 195
;---------------------------------------------------------------------
; しゃがみ中キック
[State -1]
type = ChangeState
value = 360
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "b"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = StateNo = 215 || StateNo = 350
trigger2 = movecontact
trigger3 = StateNo = 195
;---------------------------------------------------------------------
; しゃがみ強キック
[State -1]
type = ChangeState
value = 370
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = Command = "c"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl = 1
trigger2 = StateNo = 215 || StateNo = 350 || StateNo = 220 || StateNo = 360
trigger2 = movecontact
trigger3 = StateNo = 195
;---------------------------------------------------------------------
; ジャンプ弱パンチ
[State -1]
type = ChangeState
value = 500
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "x"
triggerall = statetype = A
triggerall = ctrl = 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ中パンチ
[State -1]
type = ChangeState
value = 510
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "y"
triggerall = statetype = A
triggerall = ctrl = 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ強パンチ
[State -1]
type = ChangeState
value = 520
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "z"
triggerall = statetype = A
triggerall = ctrl = 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ弱キック
[State -1]
type = ChangeState
value = 530
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "a"
triggerall = statetype = A
triggerall = ctrl = 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ中キック
[State -1]
type = ChangeState
value = 540
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "b"
triggerall = statetype = A
triggerall = ctrl = 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ強キック
[State -1]
type = ChangeState
value = 550
triggerall = Var(30) = 0
triggerall = RoundState = 2
triggerall = command = "c"
triggerall = statetype = A
triggerall = ctrl = 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ＣＰＵ専用フラグ
[State -1,12]
type = VarSet
trigger1 = command = "AI1"
trigger2 = command = "AI2"
trigger3 = command = "AI3"
trigger4 = command = "AI4"
trigger5 = command = "AI5"
trigger6 = command = "AI6"
trigger7 = command = "AI7"
trigger8 = command = "AI8"
trigger9 = command = "AI9"
trigger10 = command = "AI10"
trigger11 = command = "AI11"
trigger12 = command = "AI12"
trigger13 = command = "AI13"
trigger14 = command = "AI14"
trigger15 = command = "AI15"
trigger16 = command = "AI16"
trigger17 = command = "AI17"
trigger18 = command = "AI18"
trigger19 = command = "AI19"
trigger20 = command = "AI20"
trigger21 = command = "AI21"
trigger22 = command = "AI22"
trigger23 = command = "AI23"
trigger24 = command = "AI24"
trigger25 = command = "AI25"
trigger26 = command = "AI26"
trigger27 = command = "AI27"
trigger28 = command = "AI28"
trigger29 = command = "AI29"
trigger30 = command = "AI30"
trigger31 = command = "AI31"
trigger32 = command = "AI32"
trigger33 = command = "AI33"
trigger34 = command = "AI34"
trigger35 = command = "AI35"
trigger36 = command = "AI36"
trigger37 = command = "AI37"
trigger38 = command = "AI38"
trigger39 = command = "AI39"
trigger40 = command = "AI40"
trigger41 = command = "AI41"
trigger42 = command = "AI42"
trigger43 = command = "AI43"
trigger44 = command = "AI44"
trigger45 = command = "AI45"
trigger46 = command = "AI46"
trigger47 = command = "AI47"
trigger48 = command = "AI48"
trigger49 = command = "AI49"
trigger50 = command = "AI50"
;trigger51 = 1
v = 30
value = 1

;---------------------------------------------------------------------
[State -1]
type = DisplayToClipboard
trigger1 = 1
text = "var9=%d, var10=%d"
params = var(9),var(10)
