
;-| CPUアルゴリズム用コマンド |------------------------------
;CPUアルゴリズムを使う際に便利な記述です。
;AIを使わないなら必要ありません。

[Command]
name = "cpu"
command = a,U,D,F,F,B,B,D,U,U
time = 1
[Command]
name = "cpu"
command = b,U,D,F,B,F,B,D,U,D
time = 1
[Command]
name = "cpu"
command = c,U,D,B,F,B,F,D,U,B
time = 1
[Command]
name = "cpu"
command = x,U,D,B,F,F,B,D,U,F
time = 1
[Command]
name = "cpu"
command = y,U,D,F,F,B,B,D,U,a
time = 1
[Command]
name = "cpu"
command = z,U,D,F,B,F,B,D,U,b
time = 1
[Command]
name = "cpu"
command = s,U,D,B,F,B,F,D,U,c
time = 1
[Command]
name = "cpu"
command = b,U,D,B,F,F,B,D,U,x
time = 1
[Command]
name = "cpu"
command = c,U,D,F,B,F,B,D,U,y
time = 1
[Command]
name = "cpu"
command = y,U,D,B,F,B,F,D,U,z
time = 1
[Command]
name = "cpu"
command = z,U,D,B,F,F,B,D,U,s
time = 1
[Command]
name = "cpu"
command = U,D,F,F,B,B,D,U,a+x
time = 1
[Command]
name = "cpu"
command = U,D,F,B,F,B,D,U,b+y
time = 1
[Command]
name = "cpu"
command = U,D,B,F,B,F,D,U,c+z
time = 1
[Command]
name = "cpu"
command = U,D,s,B,F,F,B,s,D,U
time = 1
;追加用
[Command]
name = "s"
command = a,U,D,F,x,B,B,D,U,U
time = 1
[Command]
name = "dd"
command = c,U,D,B,z,B,F,D,U,B
time = 1
[Command]
name = "zc"
command = U,D,F,b,B,B,D,U,a+x
time = 1
[Command]
name = "Bing"
command = b,U,D,B,y,F,B,D,U,x
time = 1
[Command]
name = "Bing2"
command = c,U,D,F,B,z,B,D,U,y
time = 1
[Command]
name = "right"
command = z,U,D,F,B,c,B,D,U,b
time = 1
[Command]
name = "down"
command = s,U,D,B,x,B,F,D,U,c
time = 1
[Command]
name = "up"
command = y,U,D,B,s,B,F,D,U,z
time = 1
[Command]
name = "left"
command = z,U,D,B,a,F,B,D,U,s
time = 1
[Command]
name = "AI-1"
command = U,D,F,B,c,B,D,U,b+y
time = 1
[Command]
name = "AI-2"
command = U,D,B,F,B,s,D,U,c+z
time = 1
[Command]
name = "AI-3"
command = U,B,s,F,B,D,U,s,D,F
time = 1
[Command]
name = "AI-4"
command = b,U,D,F,B,y,B,D,U,D
time = 1
[Command]
name = "AI-5"
command = x,U,D,B,a,F,B,D,U,F
time = 1
[Command]
name = "AI-6"
command = y,U,D,F,b,B,B,D,U,a
time = 1
[Command]
name = "AI-7"
command = ~F,F,F,F,F,F,F,F,F,F,x
time = 0

[Command]
name = "AI-8"
command = ~F,F,F,F,F,F,F,F,F,F,y
time = 0

[Command]
name = "AI-9"
command = ~F,F,F,F,F,F,F,F,F,F,z
time = 0

[Command]
name = "AI-10"
command = ~F,F,F,F,F,F,F,F,F,F,a
time = 0

[Command]
name = "AI-11"
command = ~F,F,F,F,F,F,F,F,F,F,b
time = 0

[Command]
name = "AI-12"
command = ~F,F,F,F,F,F,F,F,F,F,c
time = 0

[Command]
name = "AI-13"
command = ~D,D,D,D,D,D,D,D,D,D,x
time = 0

[Command]
name = "AI-14"
command = ~D,D,D,D,D,D,D,D,D,D,y
time = 0

[Command]
name = "AI-15"
command = ~D,D,D,D,D,D,D,D,D,D,z
time = 0

[Command]
name = "AI-16"
command = ~D,D,D,D,D,D,D,D,D,D,a
time = 0

[Command]
name = "AI-17"
command = ~D,D,D,D,D,D,D,D,D,D,b
time = 0

[Command]
name = "AI-18"
command = ~D,D,D,D,D,D,D,D,D,D,c
time = 0

[Command]
name = "AI-19"
command = ~B,B,B,B,B,B,B,B,B,B,x
time = 0

[Command]
name = "AI-20"
command = ~B,B,B,B,B,B,B,B,B,B,y
time = 0

[Command]
name = "AI-21"
command = ~B,B,B,B,B,B,B,B,B,B,z
time = 0

[Command]
name = "AI-22"
command = ~B,B,B,B,B,B,B,B,B,B,a
time = 0

[Command]
name = "AI-23"
command = ~B,B,B,B,B,B,B,B,B,B,b
time = 0

[Command]
name = "AI-24"
command = ~B,B,B,B,B,B,B,B,B,B,c
time = 0

[Command]
name = "AI-25"
command = ~U,x,D,b,B,y,F,a
time = 0

[Command]
name = "AI-26"
command = ~U,U,U,U,U,U,U,U,U,U,x+y
time = 0

[Command]
name = "AI-27"
command = ~U,U,U,U,U,U,U,U,U,U,y+z
time = 0

[Command]
name = "AI-28"
command = ~U,U,U,U,U,U,U,U,U,U,z+x
time = 0

[Command]
name = "AI-29"
command = ~U,U,U,U,U,U,U,U,U,U,a+b
time = 0

[Command]
name = "AI-30"
command = ~U,U,U,U,U,U,U,U,U,U,b+c
time = 0

[Command]
name = "AI-31"
command = ~U,U,U,U,U,U,U,U,U,U,c+a
time = 0

[Command]
name = "AI-32"
command = ~F,F,F,F,F,F,F,F,F,F,x+y
time = 0

[Command]
name = "AI-33"
command = ~F,F,F,F,F,F,F,F,F,F,y+z
time = 0

[Command]
name = "AI-34"
command = ~F,F,F,F,F,F,F,F,F,F,z+x
time = 0

[Command]
name = "AI-35"
command = ~F,F,F,F,F,F,F,F,F,F,a+b
time = 0

[Command]
name = "AI-36"
command = ~F,F,F,F,F,F,F,F,F,F,b+c
time = 0

[Command]
name = "AI-37"
command = ~F,F,F,F,F,F,F,F,F,F,c+a
time = 0

[Command]
name = "AI-38"
command = ~D,D,D,D,D,D,D,D,D,D,x+y
time = 0

[Command]
name = "AI-39"
command = ~D,D,D,D,D,D,D,D,D,D,y+z
time = 0

[Command]
name = "AI-40"
command = ~D,D,D,D,D,D,D,D,D,D,z+x
time = 0

[Command]
name = "AI-41"
command = ~D,D,D,D,D,D,D,D,D,D,a+b
time = 0

[Command]
name = "AI-42"
command = ~D,D,D,D,D,D,D,D,D,D,b+c
time = 0

[Command]
name = "AI-43"
command = ~D,D,D,D,D,D,D,D,D,D,c+a
time = 0

[Command]
name = "AI-44"
command = ~B,B,B,B,B,B,B,B,B,B,x+y
time = 0

[Command]
name = "AI-45"
command = ~B,B,B,B,B,B,B,B,B,B,y+z
time = 0

[Command]
name = "AI-46"
command = ~B,B,B,B,B,B,B,B,B,B,z+x
time = 0

[Command]
name = "AI-47"
command = ~B,B,B,B,B,B,B,B,B,B,a+b
time = 0

[Command]
name = "AI-48"
command = ~B,B,B,B,B,B,B,B,B,B,b+c
time = 0

[Command]
name = "AI-49"
command = ~B,B,B,B,B,B,B,B,B,B,c+a
time = 0




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


;-| 超必殺技 |--------------------------------------------------------
;ここには超必殺技を記述してください。
;同じ名前を「name =」欄に書けますがコマンドは違ったものにしてください。
;カンフーマンは弱パンチと強パンチで技が出せるように
;同じ名前のコマンドで内容が弱と強になっています。
;「time=20」と書くことで、
;「コマンドを20フレーム以内に入力」と設定できます。

[Command]
name = "236236_b"
command = ~D, DF, F, D, DF, F, b
time = 26

[Command]
name = "236236_c"
command = ~D, DF, F, D, DF, F, c
time = 26

[Command]
name = "236236_y"
command = ~D, DF, F, D, DF, F, y
time = 26

[Command]
name = "236236_z"
command = ~D, DF, F, D, DF, F, z
time = 26

[Command]
name = "236236_x"
command = ~D, DF, F, D, DF, F, x
time = 26

[Command]
name = "2362362_a"
command = ~D, DF, F, D, DF, F, D,a
time = 26

[Command]
name = "236236_a"
command = ~D, DF, F, D, DF, F, a
time = 26

[Command]
name = "214214_b"
command = ~D, DB, B, D, DB, B, b
time = 28

[Command]
name = "214214_x"
command = ~D, DB, B, D, DB, B, x
time = 28

[Command]
name = "214214_a"
command = ~D, DB, B, D, DB, B, a
time = 28

[Command]
name = "214214_x"
command = ~D, DB, B, D, DB, B, x
time = 28

[Command]
name = "214214_y"
command = ~D, DB, B, D, DB, B, y
time = 28

[Command]
name = "214214_c"
command = ~D, DB, B, D, DB, B, c
time = 28

[Command]
name = "214214_z"
command = ~D, DB, B, D, DB, B, z
time = 28

[Command]
name = "222_y"
command = ~D, D, D,y
time = 20

[Command]
name = "222_b"
command = ~D, D, D, b
time = 20

;-| 必殺技 |------------------------------------------------------
;一般的に超必殺技の次は、必殺技を記述します。
;コマンドの一部が重なる場合、先に書かれたものが優先されるので
;気を付けてください。

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

[Command]
name = "236_z"
command = ~D, DF, F, z

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

[Command]
name = "214_z"
command = ~D, DB, B, z

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

[Command]
name = "214_a"
command = ~D, DB, B, a


[Command]
name = "214_yz"
command = ~D, DB, B, y+z

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

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

[Command]
name = "421_a"
command = ~B, D, DB, a

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

[Command]
name = "22_x"
command = ~D, D, x
time = 20

[Command]
name = "214_c"
command = ~D, DB, B, c

[Command]
name = "214_b"
command = ~D, DB, B, b

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

[Command]
name = "214_a"
command = ~D, DB, B, a

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

[Command]
name = "236_c"
command = ~D, DF, F, c

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

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

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

[Command]
name = "236_z"
command = ~D, DF, F, z

[Command]
name = "214_z"
command = ~D, DB, B, z

[Command]
name = "3_z"
command = ~DF, z
;---------------------------------------------------------
[Command]
name = "F_a"
command = /$F, a

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

[Command]
name = "jump"    
command = ~$D,$U
time = 6

[Command]
name = "jump"    
command = $D,$U
time = 6

;-| 2回押し |-----------------------------------------------------------
[Command]
name = "FF"     ;消さないように
command = F, F
time = 10

[Command]
name = "BB"     ;消さなくて良い
command = B, B
time = 10

;-| 2,3ボタン同時押し |-----------------------------------------------
[Command]
name = "recovery" ;消さないこと
command = x
time = 1

;-| 方向とボタン |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,b
time = 1

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

[Command]
name = "mode1"
command = /$B,s
time = 1

[Command]
name = "mode2"
command = /$F,s
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 = "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 = "hold_x"
command = /a
time = 1

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

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

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

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

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

;===========================================================================
[Statedef -1]


;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S && ctrl

;バックステップ
[State -1, Run Back]
type = ChangeState
value = ifelse(var(2)=1,105,118)
triggerall = var(7) = 0
trigger1 = command = "BB"
trigger1 = statetype = S && ctrl

;---------------------------------------------------------------------------
;空中ダッシュ
;空中ダッシュを連続でできないように「stateno != 」としています

[State -1, Fwd Air Dash]
type = ChangeState
value = 103
triggerall = command = "FF" && var(7) = 0 && ctrl
triggerall = statetype = A && stateno != 105
trigger1 = stateno != 103 && stateno != 108
trigger2 = stateno = 103 && time > 15
trigger3 = stateno = 108 && time > 15

[State -1, Back Air Dash]
type = ChangeState
value = 108
triggerall = command = "BB" && statetype = A && ctrl
trigger1 = stateno != 103 && stateno != 108
trigger2 = stateno = 103 && time > 15
trigger3 = stateno = 108 && time > 15

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


;AI用スイッチ
[State -1, AIflg]
type = VarSet
trigger1  = command = "AI-1"
trigger2  = command = "AI-2"
trigger3  = command = "AI-3"
trigger4  = command = "AI-4"
trigger5  = command = "AI-5"
trigger6  = command = "AI-6"
trigger7  = command = "AI-7"
trigger8  = command = "AI-8"
trigger9  = command = "AI-9"
trigger10 = command = "AI-10"
trigger11 = command = "AI-11"
trigger12 = command = "AI-12"
trigger13 = command = "AI-13"
trigger14 = command = "AI-14"
trigger15 = command = "AI-15"
trigger16 = command = "AI-16"
trigger17 = command = "AI-17"
trigger18 = command = "AI-18"
trigger19 = command = "AI-19"
trigger20 = command = "AI-20"
trigger21 = command = "AI-21"
trigger22 = command = "AI-22"
trigger23 = command = "AI-23"
trigger24 = command = "AI-24"
trigger25 = command = "AI-25"
trigger26 = command = "AI-26"
trigger27 = command = "AI-27"
trigger28 = command = "AI-28"
trigger29 = command = "AI-29"
trigger30 = command = "AI-30"
trigger31 = command = "AI-31"
trigger32 = command = "AI-32"
trigger33 = command = "AI-33"
trigger34 = command = "AI-34"
trigger35 = command = "AI-35"
trigger36 = command = "AI-36"
trigger37 = command = "AI-37"
trigger38 = command = "AI-38"
trigger39 = command = "AI-39"
trigger40 = command = "AI-40"
trigger41 = command = "AI-41"
trigger42 = command = "AI-42"
trigger43 = command = "AI-43"
trigger44 = command = "AI-44"
trigger45 = command = "AI-45"
trigger46 = command = "AI-46"
trigger47 = command = "AI-47"
trigger48 = command = "AI-48"
trigger49 = command = "AI-49"
;trigger50 = palno =12 && 1
v =  30
value = 1  ;AIスイッチ　　1でオン　0でオフ

;--------------------------------------------------------------------------
;ＡＩ
;--------------------------------------------------------------------------

[State -3,ロードローラー]
Type       = ChangeState
Value      = 17800
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1 && var(31)=1
Trigger1 = Ctrl && random>=990 && power >=2000 && var(2)=0
trigger2 = ctrl && enemy,movetype = H && power>=4000 && random>=920 && var(2)=0
trigger3 = ctrl && fvar(1)=[2,100]
trigger3 = var(2)=1
trigger4 = ctrl &&  random>=400 && var(2)=1 && fvar(1) = [0,2000]
trigger5 = ctrl && enemy,pos y <-90 && var(2)=1 && fvar(1)>=2
trigger6 = ctrl && var(2)=0 && enemy,stateno = 7100 && enemy,movetype = H&&power>=2000
trigger7 = ctrl && var(2)=0 && enemy,pos y<-60 && enemy,movetype = H &&power>=2000

[State -3,時止め]
Type       = ChangeState
Value      = 12000
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1 && var(31)=1
TriggerAll = StateType = S && numhelper(20350) = 1 && var(2) = 0&& power >=3000 
Trigger1 = Ctrl && random>=850
trigger2 = ctrl && enemy,statetype = L && random>=600  
trigger3 = ctrl && enemy,movetype = H && random>=600 && pos y >-10
trigger4 = ctrl && random>=200 && power >=4000 
trigger5 = ctrl && var(2)=0 && enemy,stateno = 7100 && enemy,movetype = H&&power>=3000 && random<=500

[State -3,パニッシュメント]
Type       = ChangeState
Value      = 31050
TriggerAll = Alive && RoundState = 2&& var(31)=1
TriggerAll = Var(30) = 1&& enemy,statetype !=L
TriggerAll = StateType = S && statetype!=A&&enemy,statetype !=L && enemy,pos y >=-45 && enemy,stateno !=130
Trigger1   = Ctrl && random>=990 && power >=1200
trigger1 =  p2bodydist x <=178 && life >=200 && var(2) = 0
trigger2 = ctrl && numhelper(20350)=1&& power >=1500 && p2bodydist x <=178 && random>=990 && var(2) = 0
Trigger3 = Ctrl && random>=920 && var(2) = 1 && p2bodydist x <=178 && fvar(1)>=2
trigger4 = helper(40000),movehit&& stateno !=31050 &&enemy,movetype = H &&power =[1000,2000]
trigger4 = p2bodydist x <=178 && var(2)=0 && random>=990
trigger5 = Ctrl && random>=975 && power >= 1800 && life <=200 && var(2) = 0
Trigger6 = Ctrl && random>=871 && var(2) = 1 && p2bodydist x <=178 && fvar(1) = [1,3000]

[State -3,チェックメイトだ！]
Type       = ChangeState
Value      = ifelse(var(2)=0,65000,ifelse(random>=500,65000,62000))
TriggerAll = Alive && RoundState = 2&& var(31)=1
TriggerAll = Var(30) = 1 && enemy,statetype !=L
TriggerAll = StateType = S && numhelper(20350)=1
Trigger1 = Ctrl && random>=990 && power >=1000
trigger2 = ctrl && random>=400 && var(2) = 1 && fvar(1)>=3000
trigger3 = ctrl && var(2)=0 && enemy,stateno = 7100 && enemy,movetype = H&&power>=1000

[State -3,インペリアルレイ]
Type       = ChangeState
Value      = 42200
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S && enemy,statetype !=L
Trigger1   = Ctrl && random>=980 && power >=1000 && !numhelper(40000) && var(2)=0


[State -3,タイムクラッシュ]
Type       = ChangeState
Value      = 31600
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S && enemy,statetype !=L && enemy,pos y >=-45 && enemy,stateno !=130
Trigger1   = Ctrl && random>=997 && power >=1000 && !numhelper(40000)
Trigger2   = Ctrl && random>=910 && power >=4000 && !numhelper(40000)

[State -3,ガード]
Type       = ChangeState
Value      = 130
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1 
TriggerAll = StateType = S
Triggerall   = Ctrl && var(2)=0
trigger1 =  P2BodyDist X <= 30 && enemy,movetype = A && enemy,numproj>=8
trigger2 = enemy,numproj >=7
trigger3 = enemy,movetype = A && enemy,numhelper>=6 && random>=900 
trigger4 = InGuardDist && random>=700
trigger4 = P2statetype = S || P2statetype = C
trigger4 = P2movetype = A
trigger5 = InGuardDist && random>=500
trigger6 = enemy,movetype = A && random>=700
trigger7 = Inguarddist && enemy,numhelper>=2 && random = [0,400]

[State -3,~ダッシュ~]
Type       = ChangeState
Value      = 100
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1
TriggerAll = StateType = S && stateno !=100 && random>=800
Trigger1   = Ctrl && P2BodyDist X <= 300
trigger1   = enemy,movetype !=A

[State -3,~後退ダッシュ~]
Type       = ChangeState
Value      = 105
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1
TriggerAll = StateType = S && BackEdgeBodyDist >= 80  && stateno !=105 && random>=800
Trigger1   = Ctrl && P2BodyDist X <= 30 && enemy,movetype = A

[State -3,スピニングパイルドライバ]
Type       = ChangeState
Value      = 8201
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1 && var(36)=1
TriggerAll = StateType = S && enemy,statetype != L
Trigger1   = Ctrl && P2BodyDist X <= 50
trigger1   = enemy,pos y =  0 && random>=500

[State -3,投げ]
Type       = ChangeState
Value      = 3810
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1 && var(50)<=5 && var(2)=0 && var(36) = 0
TriggerAll = StateType = S && Random >= 200  && enemy,statetype != L
Trigger1   = Ctrl && P2BodyDist X <= 50
trigger1   = enemy,pos y =  0

[State -3,パンチ]
Type       = ChangeState
Value      = 205
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1 && enemy,statetype != L
TriggerAll = StateType = S && Random >= 940 && numhelper(20350)=0 
Trigger1   = Ctrl && P2BodyDist X <= 100
trigger1   = stateno !=205 && stateno !=210 && stateno !=220

[State -3,キック]
Type       = ChangeState
Value      = 235
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1 && enemy,statetype != L
TriggerAll = StateType = S && Random >= 940 && numhelper(20350)=0 
Trigger1   = Ctrl && P2BodyDist X <= 50

[State -3,強攻撃]
Type       = ChangeState
Value      = 3821
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1 && enemy,statetype != L
TriggerAll = StateType = S && Random >= 900 && numhelper(20350)=0 
Trigger1   = Ctrl && P2BodyDist X <= 40
trigger1 = enemy,pos y >-50

[State -3,ワールド召喚]
Type       = ChangeState
Value      = 6600
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S 
Trigger1   = Ctrl && numhelper(20350) = 0&&random<=100 && enemy,statetype != L && P2BodyDist X >= 145
trigger2 = ctrl && numhelper(20350) = 1 && Random <=5
trigger3 = ctrl && var(2)=1 && !numhelper(20350) && random<=500

[State -3,影脛砕き]
Type       = ChangeState
Value      = 29401
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S
Triggerall = Ctrl 
triggerall =  numhelper(40000) = 0
Trigger1   = random>=920 && P2BodyDist X <= 145 && enemy,pos y >-20
Trigger2   = enemy,statetype = L && P2BodyDist X <= 145

[State -3,影3連ナックル]
Type       = ChangeState
Value      = 29200
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1
TriggerAll = StateType = S&& var(31)=1
Triggerall = Ctrl 
Trigger1   = random>=800 && P2BodyDist X >= 160
trigger1 =  numhelper(40000) = 0

[State -3,影上段]
Type       = ChangeState
Value      = 28000
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S
Triggerall = Ctrl 
Trigger1   = random>=300 && P2BodyDist X <= 160
trigger1 =  numhelper(40000) = 0 && enemy,pos y<-30 && enemy,statetype = A

[State -3,影中段]
Type       = ChangeState
Value      = 24000
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S
Triggerall = Ctrl 
Trigger1   = random>=400 && P2BodyDist X <= 170
trigger1 = numhelper(40000) = 0

[State -3,影下段]
Type       = ChangeState
Value      = 29100
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S
Triggerall = Ctrl 
Trigger1   = random>=400 && P2BodyDist X <= 130
trigger1 = enemy,pos y <0&&numhelper(40000) = 0

[State -3,空中影下段]
Type       = ChangeState
Value      = 29101
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = A 
Triggerall = Ctrl 
Trigger1   = random>=400 && P2BodyDist X <= 170
trigger1 = enemy,pos y >30&&numhelper(40000) = 0

[State -3,空中影上段]
Type       = ChangeState
Value      = 28001
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = A && enemy,statetype !=C
Triggerall = Ctrl 
Trigger1   = random>=300 && P2BodyDist X <= 160
trigger1 =  numhelper(40000) = 0 && enemy,statetype = A && enemy,pos y<-40

[State -3,空中影中段]
Type       = ChangeState
Value      = 25020
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = A && enemy,statetype !=C
Triggerall = Ctrl 
Trigger1   = random>=400 && P2BodyDist X <= 170
trigger1 = numhelper(40000) = 0 && enemy,pos y<-10

[State -3,バウンス後ろ]
Type       = ChangeState
Value      = 2520
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S
Triggerall = ctrl && enemy,statetype !=L
trigger1 = P2BodyDist X >= 100 && random>=990
trigger2 = p2bodydist x >=160 && random =[425,488]

[State -3,アンビシャスジャック]
Type       = ChangeState
Value      = 2590
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1 
TriggerAll = StateType = S
Triggerall = ctrl && enemy,anim !=[5000,5150]
trigger1 = P2BodyDist X >= 100 && random>=990
trigger2 = p2bodydist x >=160 && random =[500,522]

[State -3,空中アンビシャスジャック]
Type       = ChangeState
Value      = 2591
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1
TriggerAll = StateType = A
Triggerall = ctrl && enemy,anim !=[5000,5150]
trigger1 = P2BodyDist X >= 100 && random>=990
trigger2 = p2bodydist x >=160 && random >=981

[State -3,無駄無駄！下段]
Type       = ChangeState
Value      = 6803
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S
Triggerall = ctrl && enemy,pos y= 0
trigger1 = P2BodyDist X <= 100 && numhelper(20350) = 1&& random>=910 && helper(20351),stateno = 20351
trigger2 = P2BodyDist X <= 100 &&  random>=900 && numhelper(20350) = 0

[State -3,無駄無駄！中段]
Type       = ChangeState
Value      = 6802
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S
Triggerall = ctrl
trigger1 = P2BodyDist X <= 130 && numhelper(20350) = 1&& random>=910 && helper(20351),stateno = 20351
trigger2 = P2BodyDist X <= 130 &&  random>=920 && numhelper(20350) = 0

[State -3,無駄無駄！上段]
Type       = ChangeState
Value      = 6801
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S
Triggerall = ctrl && enemy,pos y >=-30
trigger1 = P2BodyDist X <= 100 && numhelper(20350) = 1&& random>=910 && helper(20351),stateno = 20351
trigger2 = P2BodyDist X <= 100 &&  random>=920 && numhelper(20350) = 0

[State -3,長無駄ｧ！]
Type       = ChangeState
Value      = 2804
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S
Triggerall = ctrl && enemy,statetype !=L
triggerall = numhelper(20350) = 1 && helper(20350),stateno =20351 || !numhelper(20350)
trigger1 = enemy,pos y< -50 && P2BodyDist X >= 100 && random>=980
trigger2 = p2bodydist x >=160 && random>=900

[State -3,中無駄ｧ！]
Type       = ChangeState
Value      = 2803
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S
Triggerall = ctrl && enemy,statetype !=L
triggerall = numhelper(20350) = 1 && helper(20350),stateno =20351 || !numhelper(20350)
trigger1 = P2BodyDist X >= 60 && numhelper(20350) = 1&& random>=990
trigger2 = p2bodydist x >=120 && random>=910

[State -3,短無駄ｧ！]
Type       = ChangeState
Value      = 2802
TriggerAll = Alive && RoundState = 2
TriggerAll = Var(30) = 1&& var(31)=1
TriggerAll = StateType = S
Triggerall = ctrl && enemy,statetype !=L
triggerall = numhelper(20350) = 1 && helper(20350),stateno =20351 || !numhelper(20350)
trigger1 = P2BodyDist X <= 50 && numhelper(20350) = 1&& random>=990


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

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





;バウンスノーバウンス上
[State -1, B.N.B.1]
type = ChangeState
value = 2540
triggerall = var(25) != 1
triggerall = command = "214_x"
triggerall = movetype != A
triggerall = var(30) !=1
trigger1 = movetype != H
trigger1 = Statetype  = S
trigger1 = ctrl


;バウンスノーバウンス後
[State -1, B.N.B.2]
type = ChangeState
value = 2520
triggerall = command = "421_y"
triggerall = var(30) !=1
trigger1 = movetype != H
trigger1 = Statetype  = S
trigger1 = ctrl
trigger2 = stateno =2590
trigger2 = time >=30


;アンビシャスジャック
[State -1, Ambitious-J]
type = ChangeState
value = 2590
triggerall = var(25) != 1
triggerall = command = "214_y"
triggerall = movetype != A
triggerall = var(30) !=1
trigger1 = movetype != H
trigger1 = Statetype  = S
trigger1 = ctrl
trigger2 = stateno =2520
trigger2 = time >=30

;空中アンビシャスジャック
[State -1, A-Ambitious]
type = ChangeState
value = 2591
triggerall = command = "236_y"
triggerall = Pos Y < -10
triggerall = Statetype != S
triggerall = var(30) !=1
trigger1 = statetype = A && Ctrl
trigger1 = ctrl

;通常射撃（空中）
[State -1, Jump Knife]
type =null; ChangeState
value = 2440
triggerall = command = "y"
triggerall = var(25) != 1
triggerall = Pos Y < -10
triggerall = var(30) !=1
trigger1 = statetype = A && Ctrl
trigger2 = stateno = [600,640]
trigger2 = movecontact
trigger1 = ctrl


;集中
[State -1, Charge]
type = null;ChangeState
value = 700
triggerall = command = "hold_x"
triggerall = command = "hold_a"
triggerall = power < powermax
triggerall = var(20) = 0
triggerall = var(7) = 0
triggerall = var(30) !=1
trigger1 = statetype != A
trigger1 = ctrl







;----------------
;;;;;;;;;;;;;;;;;;;;;;
;;;;超必殺　通常
;;;;;;;;;;;;;;;;;;;;;;;


[State -1, インペリアルレイ]
type = ChangeState
value = 42200
triggerall = command = "222_y"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = power >=1000
trigger1 = ctrl

;インスクライブレッドソウル
[State -1, Stand Punch]
type = null;ChangeState
value = 4700
triggerall = command = "236236_x"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = power >=3000
trigger1 = ctrl

;インスクライブレッドソウル
[State -1, Stand Punch]
type = null;ChangeState
value = 4500
triggerall = command = "236236_a"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = power >=1000
trigger1 = ctrl
;----------------------------------------------------------------------
;必殺　タンデム
;------------

[State -1, タンデムアタック]
type = null;ChangeState
value = 82000
triggerall = command = "222_b" && statetype = S
trigger1 = ctrl
;--------------------------------------------
;ワールド２１　超必
;--------------------------------------------

[State -1, パニッシュメント]
type = ChangeState
value = 31050
triggerall = command = "236236_z" && statetype = S && (power >=1000||var(2)=1)
trigger1 = ctrl && numhelper(40000) = 0
trigger2 = helper(40000),stateno = 40000
trigger3 = helper(40000),stateno = 45125
trigger4 = helper(40000),stateno = 45550

[State -1, タイムクラッシュ]
type = ChangeState
value = 31600
triggerall = command = "214214_z" && (power >=1000||var(2)=1)
trigger1 = statetype != A
trigger1 = statetype = S
trigger1 = ctrl && numhelper(40000) = 0
;--------------------------------------------
;ワールド２１　
;--------------------------------------------

[State -1, 影 3連]
type = ChangeState
value = 29200
triggerall = command = "214_z"
triggerall = command != "holddown"
trigger1 = statetype != A
trigger1 = ctrl && numhelper(40000) = 0

[State -1, 影中段 敵背後]
type = ChangeState
value = 25091
triggerall = command = "z"
triggerall = command = "holdback"
trigger1 = statetype != A
trigger1 = statetype = S
trigger1 = ctrl && numhelper(40000) = 0

[State -1, 影 脛砕き]
type = ChangeState
value = 29401
triggerall = command = "3_z"
trigger1 = statetype != A
trigger1 = ctrl && numhelper(40000) = 0

[State -1, 影 下段アッパー]
type = ChangeState
value = ifelse(pos y>0,29100,29101)
triggerall = command = "z"
triggerall = command = "holddown"
;trigger1 = statetype != A
;trigger1 = statetype = C
trigger1 = ctrl && numhelper(40000) = 0

[State -1, 影上段]
type = ChangeState
value = ifelse(pos y>0,28000,28001)
triggerall = command = "z"
triggerall = command = "holdfwd"
;trigger1 = statetype != A
;trigger1 = statetype = S
trigger1 = ctrl && numhelper(40000) = 0

[State -1, 影中段]
type = ChangeState
value = ifelse(pos y>0,24000,25020)
triggerall = command = "z"
;trigger1 = statetype != A
;trigger1 = statetype = S
trigger1 = ctrl && numhelper(40000) = 0


;----------------------------
;ザ・ワールド！
[State -1, Stand Kick]
type = ChangeState
value = 6600
triggerall = command = "start"
triggerall = command != "holddown"
triggerall = statetype != A 
triggerall = var(30) !=1
trigger1 = statetype = S
trigger1 = ctrl
;--------------------------------------------
;超必殺
;--------------------------------------------

[State -1, チェックメイトVer2]
type = ChangeState
value = 62000
triggerall = command = "236236_x"
triggerall = movetype != A
triggerall = var(30) !=1
triggerall = numhelper(20350) = 1
triggerall = helper(20350),stateno = 20351 && (power >=1000||var(2)=1)
trigger1 = movetype != H
trigger1 = Statetype  = S
trigger1 = ctrl

[State -1, チェックメイト]
type = ChangeState
value = 65000
triggerall = var(25) != 1
triggerall = command = "236236_a"
triggerall = movetype != A
triggerall = var(30) !=1
triggerall = numhelper(20350) = 1
triggerall = helper(20350),stateno = 20351 && (power >=1000||var(2)=1)
trigger1 = movetype != H
trigger1 = Statetype  = S
trigger1 = ctrl

[State -1, 時止め]
type = ChangeState
value = 12000
triggerall = var(25) != 1
triggerall = command = "236236_b"
triggerall = movetype != A
triggerall = var(30) !=1
triggerall = numhelper(20350) = 1
triggerall = helper(20350),stateno = 20351 && power >=3000 && var(2)=0
trigger1 = movetype != H
trigger1 = Statetype  = S
trigger1 = ctrl

[State -1, ロードローラー]
type = ChangeState
value = 17800
triggerall = var(25) != 1
triggerall = command = "236236_c"
triggerall = movetype != A
triggerall = var(30) !=1 && (power >=2000||var(2)=1)
trigger1 = ctrl
;--------------------------------
;ワールド出現後
;--------------------------------
;無駄無駄　上
[State -1, Stand Kick]
type = ChangeState
value = 6803
triggerall = command = "236_a"
triggerall = command != "holddown"
triggerall = statetype != A 
triggerall = var(30) !=1
triggerall = helper(20350),stateno = 20351 && numhelper(20350) = 1 || !numhelper(20350)
trigger1 = statetype = S
trigger1 = ctrl
;ctrl = 1

;無駄無駄　中
[State -1, Stand Kick]
type = ChangeState
value = 6801
triggerall = command = "236_b"
triggerall = command != "holddown"
triggerall = statetype != A 
triggerall = var(30) !=1
triggerall = helper(20350),stateno = 20351 && numhelper(20350) = 1 || !numhelper(20350)
trigger1 = statetype = S
trigger1 = ctrl
;ctrl = 1

;無駄無駄　下
[State -1, Stand Kick]
type = ChangeState
value = 6802
triggerall = command = "236_c"
triggerall = command != "holddown"
triggerall = statetype != A 
triggerall = var(30) !=1
triggerall = helper(20350),stateno = 20351 && numhelper(20350) = 1 || !numhelper(20350)
trigger1 = statetype = S
trigger1 = ctrl
;ctrl = 1


;無駄ｧｯ！ 短距離
[State -1, Stand Kick]
type = ChangeState
value = 2802
triggerall = command = "214_a"
triggerall = command != "holddown"
triggerall = statetype != A 
triggerall = var(30) !=1
;triggerall = numhelper(20350) = 1
trigger1 = statetype = S
trigger1 = ctrl

;無駄ｧｯ！ 短距離
[State -1, Stand Kick]
type = ChangeState
value = 2803
triggerall = command = "214_b"
triggerall = command != "holddown"
triggerall = statetype != A 
triggerall = var(30) !=1
;triggerall = numhelper(20350) = 1
trigger1 = statetype = S
trigger1 = ctrl

;無駄ｧｯ！ 短距離
[State -1, Stand Kick]
type = ChangeState
value = 2804
triggerall = command = "214_c"
triggerall = command != "holddown"
triggerall = statetype != A 
triggerall = var(30) !=1
;triggerall = numhelper(20350) = 1
trigger1 = statetype = S
trigger1 = ctrl

;投げ
[State -1, Stand Kick]
type = ChangeState
value =  3810
triggerall = command = "a";"214_y"
triggerall = command = "holdfwd"
triggerall = statetype != A 
triggerall = var(30) !=1
triggerall = p2bodydist x < 25
trigger1 = statetype = S
trigger1 = ctrl

;パンチ
[State -1, Stand Kick]
type = ChangeState
value = 2800
triggerall = command = "a";"214_y"
triggerall = command != "holddown"
triggerall = statetype != A 
triggerall = var(30) !=1
triggerall = numhelper(20350) = 1
trigger1 = statetype = S
trigger1 = ctrl

;キック
[State -1, Stand Kick]
type = ChangeState
value = 2801
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype != A 
triggerall = var(30) !=1
triggerall = numhelper(20350) = 1
trigger1 = statetype = S
trigger1 = ctrl

;下段キック
[State -1, Stand Kick]
type = ChangeState
value = 2809
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = statetype != A 
triggerall = var(30) !=1
triggerall = numhelper(20350) = 1
trigger1 = statetype = C
trigger1 = ctrl
;-------------------------
;通常性能
;-------------------------

;咲夜パイルドライバー
[State -1, Stand Punch]
type = ChangeState
value = 8201
triggerall = command = "b"
triggerall = command = "holdfwd"
triggerall = stateno != 100
triggerall = var(7) = 0
triggerall = statetype != A 
triggerall = var(30) !=1
triggerall = numhelper(20350)=0
trigger1 = ctrl
trigger1 = statetype = S

;咲夜パンチ
[State -1, Stand Punch]
type = ChangeState
value = 205
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = stateno != 100
triggerall = var(7) = 0
triggerall = statetype != A 
triggerall = var(30) !=1
triggerall = numhelper(20350)=0
trigger1 = stateno != 205
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 750|| stateno = 205 && time >=10

;咲夜キック
[State -1, Stand Kick]
type = ChangeState
value = 235
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = stateno != 100
triggerall = var(7) = 0
triggerall = statetype != A 
triggerall = var(30) !=1
triggerall = numhelper(20350)=0
trigger1 = statetype = S
trigger1 = ctrl

;強攻撃
[State -1, Stand Kick]
type = ChangeState
value = 3821
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = stateno != 100
triggerall = var(7) = 0
triggerall = statetype != A 
triggerall = var(30) !=1
triggerall = numhelper(20350)=0
trigger1 = statetype = S
trigger1 = ctrl