

;=====================================================================
; Definition of the Commands
;=====================================================================
;
;-| CPU Function |----------------------------------------------------
[Command]
name = "CPU_1"
command = U,U,a,F,D
time = 1
[Command]
name = "CPU_2"
command = U,D,U,F,F
time = 1
[Command]
name = "CPU_3"
command = B,B,D,F,U
time = 1
[Command]
name = "CPU_4"
command = F,F,a,a,U,F
time = 1
[Command]
name = "CPU_5"
command = D,F,U,B
time = 1
[Command]
name = "CPU_6"
command = D,D,U,U,U,B
time = 1
[Command]
name = "CPU_7"
command = B,B,U,U,U,D
time = 1
[Command]
name = "CPU_8"
command = U,U,D,D,B,B
time = 1
[Command]
name = "CPU_9"
command = U,D,F,B,B,B,B
time = 1
[Command]
name = "CPU_10"
command = D,U,F,F,F,F
time = 1
[Command]
name = "CPU_11"
command = F,D,B,D,D,F
time = 1
[Command]
name = "CPU_12"
command = F,F,F,D,D,D
time = 1
[Command]
name = "CPU_13"
command = F,F,D,D,F,U,U
time = 1
[Command]
name = "CPU_14"
command = U,D,F,U,U,U,D
time = 1
[Command]
name = "CPU_15"
command = F,c,U,F,U,D,F
time = 1
[Command]
name = "CPU_16"
command = D,D,U,F,B,B
time = 1
[Command]
name = "CPU_17"
command = F,F,F,F,F,F
time = 1
[Command]
name = "CPU_18"
command = D,D,D,D,D,D,D,D
time = 1
[Command]
name = "CPU_19"
command = U,D,F,U,U,F,F,D,B
time = 1
[Command]
name = "CPU_20"
command = U,D,F,D,D,F,F,D,B
time = 1
[Command]
name = "CPU_21"
command = U,D,F,B,B,D,F,D,B
time = 1
[Command]
name = "CPU_22"
command = U,D,F,F,B,B
time = 1



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




[Command]
name = "ファイナルサイコクラッシャー"
command = D, F, D,  F,x
time = 40

[Command]
name = "ファイナルサイコクラッシャー"
command = D, F, D,  F,y
time = 40

[Command]
name = "ニープレスナイトメア3"
command = D, F, D,  F,a+b
time = 40

[Command]
name = "ニープレスナイトメア3"
command = D, F, D,  F,c
time = 40

[Command]
name = "ニープレスナイトメア1"
command = D, F, D,  F,a
time = 40

[Command]
name = "ニープレスナイトメア2"
command = D, F, D,  F,b
time = 40

[Command]
name = "メイドの土産だ"
command = D, B, D,  B,x
time = 40

[Command]
name = "メイドの土産だ！"
command = D, B, D,  B,y
time = 40


[Command]
name = "ここが貴様の墓場だ"
command = D, B, D,  B,a
time = 40

[Command]
name = "ここが貴様の墓場だ"
command = D, B, D,  B,b
time = 40

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


[Command]
name = "ヘッドプレス"
command = F,D,DF, a
time = 20

[Command]
name = "ヘッドプレス"
command = ~45$D, $U, ~a
time = 12

[Command]
name = "ヘッドプレス"
command = F,D,DF, b
time = 20

[Command]
name = "ヘッドプレス"
command = ~45$D, $U, ~b
time = 12

[Command]
name = "サイコバニッシュ"
command = ~F, D, DF, x
time = 20

[Command]
name = "サイコバニッシュ"
command = ~F, D, DF, y
time = 20


[Command]
name = "サイコショットx"
;command = ~D, DB, B, x
command = ~45$B, $F, x
time = 20

[Command]
name = "サイコショットy"
;command = ~D, DB, B, y
command = ~45$B, $F, y
time = 20

[Command]
name = "サイコクラッシャー1"
command = ~D, DF,F, x
time = 12

[Command]
name = "サイコクラッシャー1"
command = ~45$B, $F, ~x
time = 12

[Command]
name = "サイコクラッシャー2"
command = ~D, DF,F, y
time = 12

[Command]
name = "サイコクラッシャー2"
command = ~45$B, F, ~y
time = 12




[Command]
name = "ダブルニープレス1"
command = ~D,DF,F, a
time = 20

[Command]
name = "ダブルニープレス1"
command = ~45$B, $F, ~a
time = 12

[Command]
name = "ダブルニープレス2"
command = ~D,DF, F, b
time = 20

[Command]
name = "ダブルニープレス2"
command = ~45$B, F, ~b
time = 12



[Command]
name = "サガット"
command = D, B,b
time = 40

[Command]
name = "バロック"
command = D, B,a
time = 40

[Command]
name = "アレ"
command = D, B,x
time = 40

[Command]
name = "ソレ"
command = D, B,y
time = 40


[Command]
name = "setunax"
command =~D,D,x
time = 12

[Command]
name = "setunay"
command =~D,D,y
time = 12

[Command]
name = "setunaa"
command =~D,D,a
time = 12

[Command]
name = "setunab"
command =~D,D,b
time = 12

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

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

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

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





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

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

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

[Command]
name = "bx"
command = b+x
time = 1

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

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

[Command]
name = "xy"
command = x+y
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_x"
command = /F,x
time = 1

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



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

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



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

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



[Command]
name = "down_b"
command = /D,b
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



[Command]
name = "down"
command = D
time = 1

[command]
name = "fwd"
command = F
time = 1


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

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

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

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

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

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

[Command]
name = "hold_s"
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 = "holdupfwd"
command = /UF
time = 1

[Command]
name = "holdupback"
command = /UB
time = 1

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

[Statedef -1]

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

;=====================================================================
; CPU Function
;=====================================================================

;=====================================================================
; Super Arts
;=====================================================================
;=====================================================================
[State -1]
type = ChangeState
value = 2500
triggerall= Command = "ファイナルサイコクラッシャー" 
triggerall = power >= 0 && Life <= 474
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------
;---------------------------------------------------------------------

[State -1]
type = ChangeState
value = 2450
triggerall = NumHelper(20000) = 0
triggerall = NumHelper(30000) = 0
triggerall = NumHelper(10000) = 0
triggerall= Command = "ここが貴様の墓場だ" 
;triggerall= Command = "x" 
triggerall = power >= 3000
trigger1= StateType != A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------
;=====================================================================
;---------------------------------------------------------------------

[State -1]
type = ChangeState
value = 2458
triggerall = NumHelper(20000) = 0
triggerall = NumHelper(30000) = 0
triggerall = NumHelper(10000) = 0
triggerall= Command = "ここが貴様の墓場だ" 
;triggerall= Command = "x" 
triggerall = power >= 3000
trigger1= StateType = A && Ctrl =1
trigger2 = StateNo = 600 
trigger3 = (StateNo = [600,650] )&& MoveContact 

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

[State -1]
type = ChangeState
value = 2200
triggerall= Command = "ニープレスナイトメア3" 
;triggerall= Command = "x" 
triggerall = power >= 3000
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------

[State -1]
type = ChangeState
value = 2000
triggerall= Command = "ニープレスナイトメア1" 
;triggerall= Command = "x" 
triggerall = power >= 1000
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------
[State -1]
type = ChangeState
value = 2100
triggerall= Command = "ニープレスナイトメア2" 
triggerall = power >= 2000
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------
;---------------------------------------------------------------------
;メイドの土産だ！
[State -1]
type = ChangeState
value = 2360
triggerall= Command = "メイドの土産だ！" 
;triggerall= Command = "x" 
triggerall = power >= 2000
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------





;---------------------------------------------------------------------
;メイドの土産だ
[State -1]
type = ChangeState
value = 2350
triggerall= Command = "メイドの土産だ" 
;triggerall= Command = "x" 
triggerall = power >= 1000
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------

;=====================================================================
; Basic Animation
;=====================================================================
;---------------------------------------------------------------------
;サガット
[State -1]
type = ChangeState
value = 1430
triggerall = NumHelper(10000) = 0
triggerall= Command = "サガット" 
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------
;---------------------------------------------------------------------
;バロック
[State -1]
type = ChangeState
value = 1400
triggerall = NumHelper(20000) = 0
triggerall= Command = "バロック" 
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------
;---------------------------------------------------------------------
;ソレ
[State -1]
type = ChangeState
value = 1420
triggerall = NumHelper(30000) = 0
triggerall= Command = "ソレ" 
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------
;---------------------------------------------------------------------
;アレ
[State -1]
type = ChangeState
value = 1410
triggerall = NumHelper(30000) = 0
triggerall= Command = "アレ" 
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------

[State -1]
type = ChangeState
value = 1300
triggerall= Command = "ヘッドプレス" 
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------
;サイコバニッシュ
[State -1]
type = ChangeState
value = 1200
triggerall= Command = "サイコバニッシュ" 
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 




[State -1]
type = ChangeState
value = 1100
triggerall= Command = "ダブルニープレス1" 
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 

[State -1]
type = ChangeState
value = 1110
triggerall= Command = "ダブルニープレス2" 
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 

;

[State -1]
type = ChangeState
value = 1150
triggerall= Command = "ダブルニープレス1" 
;triggerall= Command = "x" 
trigger1= StateType = A && Ctrl =1

[State -1]
type = ChangeState
value = 1160
triggerall= Command = "ダブルニープレス2" 
;triggerall= Command = "x" 
trigger1= StateType = A && Ctrl =1


;


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

[State -1]
type = ChangeState
value = 1000
triggerall= Command = "サイコクラッシャー1" 
;triggerall= Command = "x" 

trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 

[State -1]
type = ChangeState
value = 1010
triggerall= Command = "サイコクラッシャー2" 
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 

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

[State -1]
type = ChangeState
value = 1700
triggerall = NumHelper(1710) = 0 
triggerall= Command = "サイコショットx" 
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 

[State -1]
type = ChangeState
value = 1750
triggerall = NumHelper(1710) = 0 
triggerall= Command = "サイコショットy" 
;triggerall= Command = "x" 
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------
;---------------------------------------------------------------------
;---------------------------------------------------------------------
;刹那・x
[State -1]
type = ChangeState
value = 1500
triggerall = !var(59)
triggerall = command = "setunax"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 

[State -1]
type = ChangeState
value = 1510
triggerall = !var(59)
triggerall = command = "setunaa"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 

[State -1]
type = ChangeState
value = 1520
triggerall = !var(59)
triggerall = command = "setunay"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 

[State -1]
type = ChangeState
value = 1530
triggerall = !var(59)
triggerall = command = "setunab"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 && MoveContact 
trigger4 = StateNo = 230  
trigger5 = StateNo = 240 && MoveContact 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 && MoveContact 
trigger8 = StateNo = 430 && MoveContact 
trigger9 = StateNo = 440 && MoveContact 
trigger10 = StateNo = 220
trigger11 = StateNo = 570 && MoveContact 
;---------------------------------------------------------------------

;---------------------------------------------------------------------
;RunFwd
[State -1]
type = ChangeState
value = 100
trigger1 = Command = "FF" && StateType = S && Ctrl = 1 && StateNo != 100

;---------------------------------------------------------------------
;RunBack
[State -1]
type = ChangeState
value = 105
trigger1 = Command = "BB" && StateType = S && Ctrl = 1

;=====================================================================
; 2/3 Buttons
;=====================================================================
;
;=====================================================================
; Basic Throws
;=====================================================================

;---------------------------------------------------------------------
; デスタワー
[State -1]
type = ChangeState
value = 800
triggerall = StateType = S && Ctrl
trigger1 =  P2MoveType != H && !P2StateType = A
trigger1 = (Command = "fwd_b" && P2BodyDist X < 8) || (Command = "back_b" && P2BodyDist X < 20)

[State -1]
type = ChangeState
value = 830
triggerall = StateType = S && Ctrl
trigger1 =  P2MoveType != H && !P2StateType = A
trigger1 = (Command = "fwd_y" && P2BodyDist X < 8) || (Command = "back_y" && P2BodyDist X < 20)

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


;---------------------------------------------------------------------
; Special Attacks , Moves and so on.
;---------------------------------------------------------------------

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



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

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

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


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


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


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


;=====================================================================
; Dir + Button
;=====================================================================
;---------------------------------------------------------------------
; 
[State -1]
type = ChangeState
value = 570
triggerall= Command = "fwd_a" && !Command = "holddown"
trigger1= !StateType = A && Ctrl =1
trigger2 = StateNo = 200 
trigger3 = StateNo = 210 
trigger4 = StateNo = 230 
trigger5 = StateNo = 240 
trigger6 = StateNo = 400 
trigger7 = StateNo = 410 
trigger8 = StateNo = 430 
trigger9 = StateNo = 440
trigger10 = StateNo = 220

;---------------------------------------------------------------------
; アット ザ ウェイストランド（空中で↓＋B）
[State -1]
type = ChangeState
value = 720
triggerall = Command = "down_b" && StateType = A
trigger1 = StateNo = 105 || Ctrl = 1
trigger2  = MoveContact && (StateNo = 600 && AnimElem = 4,> 0)
trigger3  = MoveContact && (StateNo = 610 && AnimElem = 5,> 0)
trigger4  = MoveContact && (StateNo = 640 && AnimElem = 4,> 0)

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

;---------------------------------------------------------------------
; 挑発
[State -1]
type = ChangeState
value = 195
triggerall = command = "s"
trigger1 = StateType = S && Ctrl = 1

;=====================================================================
; Basic Arts
;=====================================================================
;---------------------------------------------------------------------
; Dodge backward (Kof98)
[State -1]
type = changestate
value = 360
triggerall = command = "ax" ^^ command = "c"
triggerall = command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 150 || stateno = 151) && power >= 1000
trigger3 = stateno = 101


[State -1]
type = changestate
value = 362
triggerall = command = "ax" ^^ command = "c"
trigger1= stateno = 5050
trigger1 = pos y >=-20


; Dodge forward 98(after dodge forward 99)
[State -1]
type = changestate
value = 361
triggerall = command = "ax" ^^ command = "c"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 150 || stateno = 151) && power >= 1000
trigger3 = stateno = 101

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


;---------------------------------------------------------------------
; 弱パンチ
[State -1]
type = ChangeState
value = 200
triggerall = Command = "x" && !Command = "holddown"
trigger1 = StateType = S && Ctrl = 1
trigger2 = StateNo = 200 && AnimElem = 4,>0
trigger3 = StateNo = 230 && AnimElem = 4,>0
trigger4 = StateNo = 400 && AnimElem = 4,>0
trigger5 = StateNo = 430 && AnimElem = 5,>0

;---------------------------------------------------------------------
; 弱キック
[State -1]
type = ChangeState
value = 230
triggerall = Command = "a" && !Command = "holddown"
trigger1 = StateType = S && Ctrl = 1
trigger2 = StateNo = 200 && AnimElem = 4,>0
trigger3 = StateNo = 230 && AnimElem = 4,>0
trigger4 = StateNo = 400 && AnimElem = 4,>0
trigger5 = StateNo = 430 && AnimElem = 5,>0

;---------------------------------------------------------------------
; 強パンチ
[State -1]
type = ChangeState
value = IfElse(P2BodyDist X <= 25,220,210)
triggerall = Command = "y" && !Command = "holddown"
trigger1 = StateType = S && Ctrl = 1

;---------------------------------------------------------------------
; 強キック
[State -1]
type = ChangeState
value = 240
triggerall = Command = "b" && !Command = "holddown"
trigger1 = StateType = S && Ctrl = 1

;---------------------------------------------------------------------
; しゃがみ弱パンチ
[State -1]
type = ChangeState
value = 400
triggerall = Command = "x" && Command = "holddown"
trigger1 =  (StateType = C && Ctrl) 
trigger2 = StateNo = 200 && AnimElem = 4,>0
trigger3 = StateNo = 230 && AnimElem = 4,>0
trigger4 = StateNo = 400 && AnimElem = 4,>0
trigger5 = StateNo = 430 && AnimElem = 5,>0

;---------------------------------------------------------------------
; しゃがみ強パンチ
[State -1]
type = ChangeState
value = 410
triggerall = Command = "y" && Command = "holddown"
trigger1 =  (StateType = C && Ctrl) 

;---------------------------------------------------------------------
; しゃがみ弱キック
[State -1]
type = ChangeState
value = 430
triggerall = Command = "a" && Command = "holddown"
trigger1 =  (StateType = C && Ctrl) 
trigger2 = StateNo = 200 && AnimElem = 4,>0
trigger3 = StateNo = 230 && AnimElem = 4,>0
trigger4 = StateNo = 400 && AnimElem = 4,>0
trigger5 = StateNo = 430 && AnimElem = 5,>0

;---------------------------------------------------------------------
; しゃがみ強キック
[State -1]
type = ChangeState
value = 440
triggerall = Command = "b" && Command = "holddown"
trigger1 = StateType = C && Ctrl = 1

;---------------------------------------------------------------------
; ジャンプ弱パンチ
[State -1]
type = ChangeState
value = 600
triggerall = Command = "x" && StateType = A && Ctrl = 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ強パンチ
[State -1]
type = ChangeState
value = 610
triggerall = Command = "y" && StateType = A && Ctrl = 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ弱キック
[State -1]
type = ChangeState
value = 630
triggerall = Command = "a" && StateType = A && Ctrl = 1
trigger1 = StateNo != 105

;---------------------------------------------------------------------
; ジャンプ強キック
[State -1]
type = ChangeState
value = 640
triggerall = Command = "b" && StateType = A && Ctrl = 1
trigger1 = StateNo != 105
