;------------------------------------------------------------------------------
;-| ボタンコンフィグ |---------------------------------------------------------

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

;------------------------------------------------------------------------------
;-| デフォルト設定 |-----------------------------------------------------------

[Defaults]
command.time = 15

command.buffer.time = 1

;------------------------------------------------------------------------------
;-| 超必殺技 |-----------------------------------------------------------------

[command]
name = "Phoenix Force"
command = ~D, DF, F, D, DF, F, c
time = 25

[Command]
name = "PhoenixFangArrow_x"
command = ~D,F,D,F,x
time = 26

[Command]
name = "PhoenixFangArrow_y"
command = ~D,F,D,F,y
time = 26

[Command]
name = "PhoenixFangArrow_max"
command = ~D,B,D,B,c
time = 26

[Command]
name = "PhoenixFangArrow_max"
command = ~D,B,D,B,x+y
time = 26

[Command]
name = "PhoenixFangArrow_xy"
command = ~D,F,D,F,x+y
time = 26

[Command]
name = "ShiningCrystalBit_x"
command = ~B,F,$D,B,x
time = 32

[Command]
name = "ShiningCrystalBit_max"
command = ~B,F,$D,B,c
time = 32

[Command]
name = "ShiningCrystalBit_xy"
command = ~B,F,$D,B,x+y
time = 32

[Command]
name = "ShiningCrystalBit_y"
command = ~B,F,$D,B,y
time = 32

[Command]
name = "CrystalShoot_x"
command = ~D,DB,B,/x

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

;------------------------------------------------------------------------------
;-| 必殺技 |-------------------------------------------------------------------

[Command]
name = "SuperPsychicThrow"
command = ~B,D,F,y

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

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

[Command]
name = "PsychoSword_x"
command = ~F,D,DF,x

[Command]
name = "PsychoSword_y"
command = ~F,D,DF,y

[Command]
name = "PsychoReflector_a"
command = ~F,D,B,a

[Command]
name = "PsychoReflector_b"
command = ~F,D,B,b

[Command]
name = "PhoenixArrow_x"
command = ~D,DB,B,x

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

[Command]
name = "PsychoBallAttack_x"
command = ~D,DB,B,x

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

;------------------------------------------------------------------------------
;-| キー２回連続入力 |---------------------------------------------------------

[Command]
name = "FF"       ;必須コマンド名
command = F, F
time = 10

[Command]
name = "BB"       ;必須コマンド名
command = B, B
time = 10

[Command]
name = "DU"
command = $D, $U
time = 10

;------------------------------------------------------------------------------
;-| 同時押し |-----------------------------------------------------------------

[Command]
name = "recovery" ;必須コマンド名
command = x+y
time = 1

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

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

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

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

;------------------------------------------------------------------------------
;-| 方向キー＋ボタン |---------------------------------------------------------

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

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

;------------------------------------------------------------------------------
;-| ボタン単発 |---------------------------------------------------------------

[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 = "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 = "hold_start"
command = /s
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

;==============================================================================

[Statedef -1]

;==============================================================================
; MAX超必殺技
;==============================================================================
;KoF XI LDM
[state -1]
type = ChangeState
value = 22200
triggerall = power >= 2000
triggerall = command = "Phoenix Force"
trigger1 = ctrl | stateno = 105
trigger2 =((stateno = [200,799])| stateno = 910)& movecontact
trigger3 = (stateno = 1100 || stateno = 1202) && movecontact;fvar(0) = 0 & var(11) = 1 &(stateno = 1100 | stateno = 3101)& movehit
trigger4 = stateno = 3000 && var(2) = 0
trigger5 = stateno = [3100,3101]
trigger5 = movecontact
trigger5 = var(2) = 0
trigger6 = stateno = 2400
trigger7 = stateno = 2410
trigger8 = stateno = 1101 && movecontact
trigger9 = stateno = 1111 && movecontact
trigger10 = stateno = 1112 && movecontact
trigger11 = stateno = 2000
trigger12 = stateno = 2200
trigger13 = stateno = 2010
trigger14 = stateno = 2210
trigger15 = stateno = 1310 && movecontact
trigger16 = stateno = 1315 && movecontact
trigger17 = stateno = 1210


;MAXフェニックスファングアロー（弱）
[State -1]
type = ChangeState
value = 3400
triggerall = command = "PhoenixFangArrow_max"
;triggerall = power >= 1000 && var(2) = 1
triggerall = power >= 2000 && var(2) = 0
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 250) && (AnimElemTime(6) >= 0 && AnimElemTime(7) < 0) && (movecontact)
trigger3 = (stateno = 600) && (movecontact)
trigger4 = (stateno = 601) && (movecontact)
trigger5 = (stateno = 610) && (movecontact)
trigger6 = (stateno = 611) && (movecontact)
trigger7 = (stateno = 700) && (movecontact)
;supercancels
trigger8 = stateno = 1310 && movecontact
trigger9 = stateno = 1315 && movecontact
trigger10 = stateno = 1101 && movecontact
trigger11 = stateno = 1111 && movecontact
trigger12 = stateno = 1112 && movecontact

;MAXフェニックスファングアロー（強）
[State -1]
type = ChangeState
value = 3410
triggerall = command = "PhoenixFangArrow_xy"
;triggerall = power >= 1000 && var(2) = 1
triggerall = power >= 2000 && var(2) = 0
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 250) && (AnimElemTime(6) >= 0 && AnimElemTime(7) < 0) && (movecontact)
trigger3 = (stateno = 600) && (movecontact)
trigger4 = (stateno = 601) && (movecontact)
trigger5 = (stateno = 610) && (movecontact)
trigger6 = (stateno = 611) && (movecontact)
trigger7 = (stateno = 700) && (movecontact)
;supercancels
trigger8 = stateno = 1310 && movecontact
trigger9 = stateno = 1315 && movecontact
trigger10 = stateno = 1101 && movecontact
trigger11 = stateno = 1111 && movecontact
trigger12 = stateno = 1112 && movecontact
;------------------------------------------------------------------------------

;MAXシャイニングクリスタルビット（弱／空中）
[State -1]
type = ChangeState
value = 3200
triggerall = command = "ShiningCrystalBit_max"
;triggerall = power >= 1000 && var(2) = 1
triggerall = power >= 2000 && var(2) = 0
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 250) && (AnimElemTime(6) >= 0 && AnimElemTime(7) < 0) && (movecontact)
trigger3 = (stateno = 600) && (movecontact)
trigger4 = (stateno = 601) && (movecontact)
trigger5 = (stateno = 610) && (movecontact)
trigger6 = (stateno = 611) && (movecontact)
trigger7 = (stateno = 700) && (movecontact)
;supercancels
trigger8 = stateno = 1310 && movecontact
trigger9 = stateno = 1315 && movecontact
trigger10 = stateno = 1101 && movecontact
trigger11 = stateno = 1111 && movecontact
trigger12 = stateno = 1112 && movecontact

;MAXシャイニングクリスタルビット（強／空中）
[State -1]
type = ChangeState
value = 3210
triggerall = command = "ShiningCrystalBit_xy"
;triggerall = power >= 1000 && var(2) = 1
triggerall = power >= 2000 && var(2) = 0
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 250) && (AnimElemTime(6) >= 0 && AnimElemTime(7) < 0) && (movecontact)
trigger3 = (stateno = 600) && (movecontact)
trigger4 = (stateno = 601) && (movecontact)
trigger5 = (stateno = 610) && (movecontact)
trigger6 = (stateno = 611) && (movecontact)
trigger7 = (stateno = 700) && (movecontact)
;supercancels
trigger8 = stateno = 1310 && movecontact
trigger9 = stateno = 1315 && movecontact
trigger10 = stateno = 1101 && movecontact
trigger11 = stateno = 1111 && movecontact
trigger12 = stateno = 1112 && movecontact
;------------------------------------------------------------------------------

;MAXクリスタルシュート（弱／空中）
[State -1]
type = ChangeState
value = 3300
triggerall = command = "CrystalShoot_x"
triggerall = statetype = A
trigger1 = (stateno = 3200) && (Time = [64, 150])
trigger2 = (stateno = 3210) && (Time = [64, 180])

;MAXクリスタルシュート（強／空中）
[State -1]
type = ChangeState
value = 3310
triggerall = command = "CrystalShoot_y"
triggerall = statetype = A
trigger1 = (stateno = 3200) && (Time = [64, 150])
trigger2 = (stateno = 3210) && (Time = [64, 180])

;------------------------------------------------------------------------------

;MAXシャイニングクリスタルビット（弱）
[State -1]
type = ChangeState
value = 3000
triggerall = command = "ShiningCrystalBit_max"
;triggerall = power >= 1000 && var(2) = 1
triggerall = power >= 2000 && var(2) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)
;supercancels
trigger12 = stateno = 1310 && movecontact
trigger13= stateno = 1315 && movecontact
trigger14 = stateno = 1101 && movecontact
trigger15 = stateno = 1111 && movecontact
trigger16 = stateno = 1112 && movecontact

;MAXシャイニングクリスタルビット（強）
[State -1]
type = ChangeState
value = 3010
triggerall = command = "ShiningCrystalBit_xy"
;triggerall = power >= 1000 && var(2) = 1
triggerall = power >= 2000 && var(2) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)
;supercancels
trigger12 = stateno = 1310 && movecontact
trigger13= stateno = 1315 && movecontact
trigger14 = stateno = 1101 && movecontact
trigger15 = stateno = 1111 && movecontact
trigger16 = stateno = 1112 && movecontact
trigger17 = stateno = 1210

;------------------------------------------------------------------------------

;MAXクリスタルシュート（弱）
[State -1]
type = ChangeState
value = 3100
triggerall = command = "CrystalShoot_x"
triggerall = statetype != A
trigger1 = (stateno = 3000) && (Time = [64, 150])
trigger2 = (stateno = 3010) && (Time = [64, 180])

;MAXクリスタルシュート（強）
[State -1]
type = ChangeState
value = 3110
triggerall = command = "CrystalShoot_y"
triggerall = statetype != A
trigger1 = (stateno = 3000) && (Time = [64, 150])
trigger2 = (stateno = 3010) && (Time = [64, 180])

;==============================================================================
; 超必殺技
;==============================================================================

;フェニックスファングアロー（弱）
[State -1]
type = ChangeState
value = 2400
triggerall = command = "PhoenixFangArrow_x"
triggerall = power >= 1000 && var(2) = 0
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 250) && (AnimElemTime(6) >= 0 && AnimElemTime(7) < 0) && (movecontact)
trigger3 = (stateno = 600) && (movecontact)
trigger4 = (stateno = 601) && (movecontact)
trigger5 = (stateno = 610) && (movecontact)
trigger6 = (stateno = 611) && (movecontact)
trigger7 = (stateno = 700) && (movecontact)
;supercancels
trigger8 = stateno = 1310 && movecontact
trigger9 = stateno = 1315 && movecontact
trigger10 = stateno = 1101 && movecontact
trigger11 = stateno = 1111 && movecontact
trigger12 = stateno = 1112 && movecontact

;フェニックスファングアロー（強）
[State -1]
type = ChangeState
value = 2410
triggerall = command = "PhoenixFangArrow_y"
triggerall = power >= 1000 && var(2) = 0
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 250) && (AnimElemTime(6) >= 0 && AnimElemTime(7) < 0) && (movecontact)
trigger3 = (stateno = 600) && (movecontact)
trigger4 = (stateno = 601) && (movecontact)
trigger5 = (stateno = 610) && (movecontact)
trigger6 = (stateno = 611) && (movecontact)
trigger7 = (stateno = 700) && (movecontact)
;supercancels
trigger8 = stateno = 1310 && movecontact
trigger9 = stateno = 1315 && movecontact
trigger10 = stateno = 1101 && movecontact
trigger11 = stateno = 1111 && movecontact
trigger12 = stateno = 1112 && movecontact

;------------------------------------------------------------------------------

;シャイニングクリスタルビット（弱／空中）
[State -1]
type = ChangeState
value = 2200
triggerall = command = "ShiningCrystalBit_x"
triggerall = power >= 1000 && var(2) = 0
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 250) && (AnimElemTime(6) >= 0 && AnimElemTime(7) < 0) && (movecontact)
trigger3 = (stateno = 600) && (movecontact)
trigger4 = (stateno = 601) && (movecontact)
trigger5 = (stateno = 610) && (movecontact)
trigger6 = (stateno = 611) && (movecontact)
trigger7 = (stateno = 700) && (movecontact)
;supercancels
trigger8 = stateno = 1310 && movecontact
trigger9 = stateno = 1315 && movecontact
trigger10 = stateno = 1101 && movecontact
trigger11 = stateno = 1111 && movecontact
trigger12 = stateno = 1112 && movecontact


;シャイニングクリスタルビット（強／空中）
[State -1]
type = ChangeState
value = 2210
triggerall = command = "ShiningCrystalBit_y"
triggerall = power >= 1000 && var(2) = 0
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 250) && (AnimElemTime(6) >= 0 && AnimElemTime(7) < 0) && (movecontact)
trigger3 = (stateno = 600) && (movecontact)
trigger4 = (stateno = 601) && (movecontact)
trigger5 = (stateno = 610) && (movecontact)
trigger6 = (stateno = 611) && (movecontact)
trigger7 = (stateno = 700) && (movecontact)
;supercancels
trigger8 = stateno = 1310 && movecontact
trigger9 = stateno = 1315 && movecontact
trigger10 = stateno = 1101 && movecontact
trigger11 = stateno = 1111 && movecontact
trigger12 = stateno = 1112 && movecontact

;------------------------------------------------------------------------------

;クリスタルシュート（弱／空中）
[State -1]
type = ChangeState
value = 2300
triggerall = command = "CrystalShoot_x"
triggerall = statetype = A
trigger1 = (stateno = 2200) && (Time = [64, 150])
trigger2 = (stateno = 2210) && (Time = [64, 180])

;クリスタルシュート（強／空中）
[State -1]
type = ChangeState
value = 2310
triggerall = command = "CrystalShoot_y"
triggerall = statetype = A
trigger1 = (stateno = 2200) && (Time = [64, 150])
trigger2 = (stateno = 2210) && (Time = [64, 180])

;------------------------------------------------------------------------------

;シャイニングクリスタルビット（弱）
[State -1]
type = ChangeState
value = 2000
triggerall = command = "ShiningCrystalBit_x"
triggerall = power >= 1000 && var(2) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)
;supercancels
trigger12 = stateno = 1310 && movecontact
trigger13 = stateno = 1315 && movecontact
trigger14 = stateno = 1101 && movecontact
trigger15 = stateno = 1111 && movecontact
trigger16 = stateno = 1112 && movecontact
trigger17 = stateno = 1210

;シャイニングクリスタルビット（強）
[State -1]
type = ChangeState
value = 2010
triggerall = command = "ShiningCrystalBit_y"
triggerall = power >= 1000 && var(2) = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)
;supercancels
trigger12 = stateno = 1310 && movecontact
trigger13 = stateno = 1315 && movecontact
trigger14 = stateno = 1101 && movecontact
trigger15 = stateno = 1111 && movecontact
trigger16 = stateno = 1112 && movecontact
trigger17 = stateno = 1210

;------------------------------------------------------------------------------

;クリスタルシュート（弱）
[State -1]
type = ChangeState
value = 2100
triggerall = command = "CrystalShoot_x"
triggerall = statetype != A
trigger1 = (stateno = 2000) && (Time = [64, 150])
trigger2 = (stateno = 2010) && (Time = [64, 180])

;クリスタルシュート（強）
[State -1]
type = ChangeState
value = 2110
triggerall = command = "CrystalShoot_y"
triggerall = statetype != A
trigger1 = (stateno = 2000) && (Time = [64, 150])
trigger2 = (stateno = 2010) && (Time = [64, 180])

;==============================================================================
; 必殺技
;==============================================================================

;スーパーサイキックスルー
[State -1]
type = ChangeState
value = 1500
triggerall = command = "SuperPsychicThrow"
triggerall = statetype != A
triggerall = p2bodydist X < 30
triggerall = (p2statetype = S) || (p2statetype = C)
triggerall = p2StateNo != [120, 155]
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)

;------------------------------------------------------------------------------

;サイキックテレポート（弱）
[State -1]
type = ChangeState
value = 1400
triggerall = command = "PsychicTeleport_a"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)

;サイキックテレポート（強）
[State -1]
type = ChangeState
value = 1410
triggerall = command = "PsychicTeleport_b"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)

;------------------------------------------------------------------------------

;サイコソード（弱）
[State -1]
type = ChangeState
value = 1300
triggerall = command = "PsychoSword_x"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)

;サイコソード（弱／空中）
[State -1]
type = ChangeState
value = 1305
triggerall = command = "PsychoSword_x"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 250) && (AnimElemTime(6) >= 0 && AnimElemTime(7) < 0) && (movecontact)
trigger3 = (stateno = 600) && (movecontact)
trigger4 = (stateno = 601) && (movecontact)
trigger5 = (stateno = 610) && (movecontact)
trigger6 = (stateno = 611) && (movecontact)
trigger7 = (stateno = 700) && (movecontact)

;サイコソード（強）
[State -1]
type = ChangeState
value = 1310
triggerall = command = "PsychoSword_y"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)

;サイコソード（強／空中）
[State -1]
type = ChangeState
value = 1315
triggerall = command = "PsychoSword_y"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 250) && (AnimElemTime(6) >= 0 && AnimElemTime(7) < 0) && (movecontact)
trigger3 = (stateno = 600) && (movecontact)
trigger4 = (stateno = 601) && (movecontact)
trigger5 = (stateno = 610) && (movecontact)
trigger6 = (stateno = 611) && (movecontact)
trigger7 = (stateno = 700) && (movecontact)

;------------------------------------------------------------------------------

;νサイコリフレクター（弱）
[State -1]
type = ChangeState
value = 1200
triggerall = command = "PsychoReflector_a"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)

;νサイコリフレクター（強）
[State -1]
type = ChangeState
value = 1210
triggerall = command = "PsychoReflector_b"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)

;------------------------------------------------------------------------------

;フェニックスアロー（弱）
[State -1]
type = ChangeState
value = 1100
triggerall = command = "PhoenixArrow_x"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 250) && (AnimElemTime(6) >= 0 && AnimElemTime(7) < 0) && (movecontact)
trigger3 = (stateno = 600) && (movecontact)
trigger4 = (stateno = 601) && (movecontact)
trigger5 = (stateno = 610) && (movecontact)
trigger6 = (stateno = 611) && (movecontact)
trigger7 = (stateno = 700) && (movecontact)

;フェニックスアロー（強）
[State -1]
type = ChangeState
value = 1110
triggerall = command = "PhoenixArrow_y"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 250) && (AnimElemTime(6) >= 0 && AnimElemTime(7) < 0) && (movecontact)
trigger3 = (stateno = 600) && (movecontact)
trigger4 = (stateno = 601) && (movecontact)
trigger5 = (stateno = 610) && (movecontact)
trigger6 = (stateno = 611) && (movecontact)
trigger7 = (stateno = 700) && (movecontact)

;------------------------------------------------------------------------------

;サイコボールアタック（弱）
[State -1]
type = ChangeState
value = 1000
triggerall = command = "PsychoBallAttack_x"
triggerall = numproj = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)

;サイコボールアタック（強）
[State -1]
type = ChangeState
value = 1010
triggerall = command = "PsychoBallAttack_y"
triggerall = numproj = 0
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 300) && (movecontact)
trigger8 = (stateno = 400) && (movecontact)
trigger9 = (stateno = 410) && (movecontact)
trigger10 = (stateno = 420) && (movecontact)
trigger11 = (stateno = 430) && (movecontact)

;==============================================================================
; 移動関連
;==============================================================================

;三角跳び
[State -1]
type = ChangeState
value = 60
triggerall = statetype = A
triggerall = MoveType = I
triggerall = Vel X != 0
trigger1 = BackEdgeBodyDist = 0
trigger1 = Vel X < 0
trigger1 = stateno != 105
trigger1 = (command = "holdfwd") && (command = "holdup")
trigger1 = command != "holdback"
trigger2 = FrontEdgeBodyDist = 0
trigger2 = Vel X > 0
trigger2 = stateno != 100
trigger2 = (command = "holdback") && (command = "holdup")
trigger2 = command != "holdfwd"

;フロントダッシュ
[State -1]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;バックステップ
[State -1]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;大ジャンプ
[State -1]
type = ChangeState
value = 41
trigger1 = command = "DU"
trigger1 = statetype != A
trigger1 = var(1) = 1
trigger1 = ctrl

;==============================================================================
; 特殊技
;==============================================================================

;MAX発動
[State -1]
type = null;ChangeState
value = 950
triggerall = var(2) = 0
triggerall = (command = "c+z") || (command = "a+x+y")
triggerall = power >= 1000
triggerall = statetype = S
trigger1 = ctrl

;緊急回避（前）
[State -1]
type = ChangeState
value = 900
triggerall = command != "holdback"
triggerall = (command = "a+x") || (command = "z")
triggerall = statetype = S
trigger1 = ctrl

;緊急回避（後）
[State -1]
type = ChangeState
value = 901
triggerall = command = "holdback"
triggerall = (command = "a+x") || (command = "z")
triggerall = statetype = S
trigger1 = ctrl

;ＧＣ緊急回避（前）
[State -1]
type = ChangeState
value = 902
triggerall = command != "holdback"
triggerall = (command = "a+x") || (command = "z")
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = stateno = 150
trigger2 = stateno = 152

;ＧＣ緊急回避（後）
[State -1]
type = ChangeState
value = 904
triggerall = command = "holdback"
triggerall = (command = "a+x") || (command = "z")
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = stateno = 150
trigger2 = stateno = 152

;ふっとばし攻撃
[State -1]
type = ChangeState
value = 300
triggerall = (command = "b+y") || (command = "c")
triggerall = statetype = S
trigger1 = ctrl

;ＧＣふっとばし攻撃
[State -1]
type = ChangeState
value = 301
triggerall = (command = "b+y") || (command = "c")
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = stateno = 150
trigger2 = stateno = 152

;空中ふっとばし攻撃
[State -1]
type = ChangeState
value = 700
triggerall = (command = "b+y") || (command = "c")
triggerall = statetype = A
trigger1 = ctrl

;連環腿
[State -1]
type = ChangeState
value = 250
triggerall = command = "holdfwd"
triggerall = command != "holddown"
triggerall = command = "a"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact)
trigger3 = (stateno = 201) && (movecontact)
trigger4 = (stateno = 210) && (movecontact)
trigger5 = (stateno = 220) && (movecontact)
trigger6 = (stateno = 230) && (movecontact)
trigger7 = (stateno = 400) && (movecontact)
trigger8 = (stateno = 410) && (movecontact)
trigger9 = (stateno = 420) && (movecontact)
trigger10 = (stateno = 430) && (movecontact)

ジャンプレバー下強キック
[State -1]
type = ChangeState
value = 650
triggerall = command = "holddown"
triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact)
trigger3 = (stateno = 601) && (movecontact)
trigger4 = (stateno = 610) && (movecontact)
trigger5 = (stateno = 611) && (movecontact)

;------------------------------------------------------------------------------

;Ｐ投げ
[State -1]
type = ChangeState
value = 800
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 26
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 26
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

;Ｋ投げ
[State -1]
type = ChangeState
value = 810
triggerall = command = "b"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 26
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 26
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

;空中投げ
[State -1]
type = ChangeState
value = 820
triggerall = command = "y"
triggerall = statetype = A
triggerall = ctrl
trigger1 = command = "holdfwd"
trigger1 = (p2dist X > 0) && (p2bodydist X < 26)
trigger1 = (p2dist Y > -26) && (p2dist Y < 26)
trigger1 = p2statetype = A
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = (p2dist X > 0) && (p2bodydist X < 26)
trigger2 = (p2dist Y > -26) && (p2dist Y < 26)
trigger2 = p2statetype = A
trigger2 = p2movetype != H

;==============================================================================
; 通常攻撃技
;==============================================================================

;近距離弱パンチ
[State -1]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = P2bodydist X <= 20
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && AnimElemTime(4) >= 0
trigger3 = stateno = 201 && AnimElemTime(6) >= 0
trigger4 = stateno = 400 && AnimElemTime(3) >= 0
trigger5 = stateno = 420 && AnimElemTime(3) >= 0

;遠距離弱パンチ
[State -1]
type = ChangeState
value = 201
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = P2bodydist X > 20
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && AnimElemTime(4) >= 0
trigger3 = stateno = 201 && AnimElemTime(6) >= 0
trigger4 = stateno = 400 && AnimElemTime(3) >= 0
trigger5 = stateno = 420 && AnimElemTime(3) >= 0

;近距離強パンチ
[State -1]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = P2bodydist X <= 25
trigger1 = statetype = S
trigger1 = ctrl

;遠距離強パンチ
[State -1]
type = ChangeState
value = 211
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = P2bodydist X > 25
trigger1 = statetype = S
trigger1 = ctrl

;近距離弱キック
[State -1]
type = ChangeState
value = 220
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = P2bodydist X <= 25
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && AnimElemTime(4) >= 0
trigger3 = stateno = 201 && AnimElemTime(6) >= 0
trigger4 = stateno = 400 && AnimElemTime(3) >= 0
trigger5 = stateno = 420 && AnimElemTime(3) >= 0

;遠距離弱キック
[State -1]
type = ChangeState
value = 221
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = P2bodydist X > 25
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 && AnimElemTime(4) >= 0
trigger3 = stateno = 201 && AnimElemTime(6) >= 0
trigger4 = stateno = 400 && AnimElemTime(3) >= 0
trigger5 = stateno = 420 && AnimElemTime(3) >= 0

;近距離強キック
[State -1]
type = ChangeState
value = 230
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = P2bodydist X <= 30
trigger1 = statetype = S
trigger1 = ctrl

;遠距離強キック
[State -1]
type = ChangeState
value = 231
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = P2bodydist X > 30
trigger1 = statetype = S
trigger1 = ctrl

;------------------------------------------------------------------------------

;挑発
[State -1]
type = ChangeState
value = 195
triggerall = command = "start"
triggerall = statetype != A
trigger1 = ctrl

;------------------------------------------------------------------------------

;しゃがみ弱パンチ
[State -1]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && AnimElemTime(4) >= 0
trigger3 = stateno = 201 && AnimElemTime(6) >= 0
trigger4 = stateno = 400 && AnimElemTime(3) >= 0
trigger5 = stateno = 420 && AnimElemTime(3) >= 0

;しゃがみ強パンチ
[State -1]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;しゃがみ弱キック
[State -1]
type = ChangeState
value = 420
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 && AnimElemTime(4) >= 0
trigger3 = stateno = 201 && AnimElemTime(6) >= 0
trigger4 = stateno = 400 && AnimElemTime(3) >= 0
trigger5 = stateno = 420 && AnimElemTime(3) >= 0

;しゃがみ強キック
[State -1]
type = ChangeState
value = 430
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;------------------------------------------------------------------------------

;垂直ジャンプ弱パンチ
[State -1]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = vel x = 0
trigger1 = ctrl

;斜めジャンプ弱パンチ
[State -1]
type = ChangeState
value = 601
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl

;垂直ジャンプ強パンチ
[State -1]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = vel x = 0
trigger1 = ctrl

;斜めジャンプ強パンチ
[State -1]
type = ChangeState
value = 611
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl

;垂直ジャンプ弱キック
[State -1]
type = ChangeState
value = 620
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = vel x = 0
trigger1 = ctrl

;斜めジャンプ弱キック
[State -1]
type = ChangeState
value = 621
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

;垂直ジャンプ強キック
[State -1]
type = ChangeState
value = 630
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = vel x = 0
trigger1 = ctrl

;斜めジャンプ強キック
[State -1]
type = ChangeState
value = 631
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl

;------------------------------------------------------------------------------
