;-| CPUアルゴリズム用コマンド |------------------------------
;CPUアルゴリズムを使う際に便利な記述です。
;AIを使わないなら必要ありません。
;これらのコマンドは人間には入力できないものにする必要があります。

[Command]
Name    = "AI_00"
Command =  a, a
Time = 0
[Command]
Name    = "AI_01"
Command =  a, b
Time = 0
[Command]
Name    = "AI_02"
Command =  a, c
Time = 0
[Command]
Name    = "AI_03"
Command =  a, x
Time = 0
[Command]
Name    = "AI_04"
Command =  a, y
Time = 0
[Command]
Name    = "AI_05"
Command =  a, z
Time = 0
[Command]
Name    = "AI_06"
Command =  a, s
Time = 0
[Command]
Name    = "AI_07"
Command =  b, a
Time = 0
[Command]
Name    = "AI_08"
Command =  b, b
Time = 0
[Command]
Name    = "AI_09"
Command =  b, c
Time = 0
[Command]
Name    = "AI_10"
Command =  b, x
Time = 0
[Command]
Name    = "AI_11"
Command =  b, y
Time = 0
[Command]
Name    = "AI_12"
Command =  b, z
Time = 0
[Command]
Name    = "AI_13"
Command =  b, s
Time = 0
[Command]
Name    = "AI_14"
Command =  c, a
Time = 0
[Command]
Name    = "AI_15"
Command =  c, b
Time = 0
[Command]
Name    = "AI_16"
Command =  c, c
Time = 0
[Command]
Name    = "AI_17"
Command =  c, x
Time = 0
[Command]
Name    = "AI_18"
Command =  c, y
Time = 0
[Command]
Name    = "AI_19"
Command =  c, z
Time = 0
[Command]
Name    = "AI_20"
Command =  c, s
Time = 0
[Command]
Name    = "AI_21"
Command =  x, a
Time = 0
[Command]
Name    = "AI_22"
Command =  x, b
Time = 0
[Command]
Name    = "AI_23"
Command =  x, c
Time = 0
[Command]
Name    = "AI_24"
Command =  x, x
Time = 0
[Command]
Name    = "AI_25"
Command =  x, y
Time = 0
[Command]
Name    = "AI_26"
Command =  x, z
Time = 0
[Command]
Name    = "AI_27"
Command =  x, s
Time = 0
[Command]
Name    = "AI_28"
Command =  y, a
Time = 0
[Command]
Name    = "AI_29"
Command =  y, b
Time = 0
[Command]
Name    = "AI_30"
Command =  y, c
Time = 0
[Command]
Name    = "AI_31"
Command =  y, x
Time = 0
[Command]
Name    = "AI_32"
Command =  y, y
Time = 0
[Command]
Name    = "AI_33"
Command =  y, z
Time = 0
[Command]
Name    = "AI_34"
Command =  y, s
Time = 0
[Command]
Name    = "AI_35"
Command =  s, a
Time = 0
[Command]
Name    = "AI_36"
Command =  s, b
Time = 0
[Command]
Name    = "AI_37"
Command =  s, c
Time = 0
[Command]
Name    = "AI_38"
Command =  s, x
Time = 0
[Command]
Name    = "AI_39"
Command =  s, y
Time = 0
[Command]
Name    = "AI_40"
Command =  s, z
Time = 0
[Command]
Name    = "AI_41"
Command =  s, s
Time = 0
[Command]
Name    = "AI_42"
Command =  U, U
Time = 0
[Command]
Name    = "AI_43"
Command =  U, F
Time = 0
[Command]
Name    = "AI_44"
Command =  U, D
Time = 0
[Command]
Name    = "AI_45"
Command =  U, B
Time = 0
[Command]
Name    = "AI_46"
Command =  F, U
Time = 0
[Command]
Name    = "AI_47"
Command =  F, F
Time = 0
[Command]
Name    = "AI_48"
Command =  F, D
Time = 0
[Command]
Name    = "AI_49"
Command =  F, B
Time = 0
[Command]
Name    = "AI_50"
Command =  D, U
Time = 0
[Command]
Name    = "AI_51"
Command =  D, F
Time = 0
[Command]
Name    = "AI_52"
Command =  D, D
Time = 0
[Command]
Name    = "AI_53"
Command =  D, B
Time = 0
[Command]
Name    = "AI_54"
Command =  B, U
Time = 0
[Command]
Name    = "AI_55"
Command =  B, F
Time = 0
[Command]
Name    = "AI_56"
Command =  B, D
Time = 0
[Command]
Name    = "AI_57"
Command =  B, B
Time = 0
[Command]
Name    = "AI_58"
Command =  UF, UF
Time = 0
[Command]
Name    = "AI_59"
Command =  UF, UB
Time = 0
[Command]
Name    = "AI_60"
Command =  UF, DF
Time = 0
[Command]
Name    = "AI_61"
Command =  UF, DB
Time = 0
[Command]
Name    = "AI_62"
Command =  UB, UF
Time = 0
[Command]
Name    = "AI_63"
Command =  UB, UB
Time = 0
[Command]
Name    = "AI_64"
Command =  UB, DF
Time = 0
[Command]
Name    = "AI_65"
Command =  UB, DB
Time = 0
[Command]
Name    = "AI_66"
Command =  DF, UF
Time = 0
[Command]
Name    = "AI_67"
Command =  DF, UB
Time = 0
[Command]
Name    = "AI_68"
Command =  DF, DF
Time = 0
[Command]
Name    = "AI_69"
Command =  DF, DB
Time = 0


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

[Command] 
name = "TripleKFPalm"   ;Same name as above
command = ~D, DF, F, D, DF, F, y
time = 30;20

[Command] 
name = "Tehletteh"   
command = ~D, DF, F, y+b
time = 30

[Command] 
name = "FinalMaster"   
command = ~D, DF, F, x+a+b
time = 30

[Command] 
name = "MasterSpark"   
command = ~D, DF, F, x+a
time = 30
;[Command] 
;name = "MasterSpark"   
;command = ~D, DF, F, x+a;押しっぱからでも・・・うまくいかない。保留
;time = 30

[Command] 
name = "MasterBlade"   
command = ~D, DF, F, z+c
time = 30

[Command] 
name = "MaliceCannon"   
command = ~D, DF, F, z
time = 30

[Command] 
name = "NonDirLazer"   
command = ~D, DF, F, c
time = 30

[Command] 
name = "SuparHouki" 
;command = ~F, D, DF,  a+b;昇竜ＡＢ
command = ~D, DB, B,  a+b;竜巻ＡＢ
time = 30

[Command] 
name = "Axel";アクセルフォーム
command = ~B, D, F,  a+b;昇竜ＡＢ
time = 30

[Command] 
name = "Papi";ぱぴ！よん！ 
;command = ~F, D, B,  a+b;63214ＡＢ
command = ~F, D, DF,  a+b;昇竜ＡＢ
time = 30

[Command];げっと武器発動 関連ステートは35000-（SasugaFightingROBERT.stにまとめ）
name = "SPWeapons"
command = ~D, DB , B, y

;ドローカード！
[Command]
name = "BattleCard"     
command = ~D, D, D, s
time = 30

;-| 必殺技 |------------------------------------------------------
[Command]
name = "QCF_x"
command = ~D, DF, F, x

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

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

[Command]
name = "QCF_xy"
command = ~D, DF, F, x+y

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

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

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

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

[Command]
name = "FF_ab"
command = F, F, a+b

[Command]
name = "FF_a"
command = F, F, a

[Command]
name = "FF_b"
command = F, F, b

[Command]
Name    = "HoukiCrush1"
Command = ~D, D, a
Time    = 20

[Command]
Name    = "HoukiCrush2"
Command = ~D, D, b
Time    = 20

;とくしゅ挑発１
[Command]
name = "HAYAKAWA"
command = ~D, DB, B, s

;げっと投げコマンド-----------
[Command]
name = "GetNage"
command = ~F, D, B, F, y
time = 30
;-----------------------------

;※※※※※※※※※※※※※※※※※※※※ハイジャンプコマンド
;下をちょっと押して上を押す、と言う意味。
[Command]
name = "highjump"    
command = ~D,$U
time = 10

;本家魔理沙準拠で、特押しながら上もアリ
[Command]
name = "highjump"    
command = /y,U
time = 1

[Command]
name = "dashjump"    
command = /y,UF
time = 1

;[Command]
;name = "dashjump"    
;command = F/y,U
;time = 1

[Command]
name = "dashjump"    
command = /y,UB
time = 1

;[Command]
;name = "dashjump"    
;command = B/y,U
;time = 1

;※※※※※※※※※※※※※※※※※※※※前避け
;前を押しながらＡ＋Ｂ、という意味
;X+Yヘ変更
;[Command]
;name = "away-f"    
;command = /F,x+y
;time = 10

;[Command]
;name = "away-f"    
;command = x+y
;time = 10

;[Command]
;name = "away-f"    
;command = /x,y;XおしながらYでも
;time = 10

;※※※※※※※※※※※※※※※※※※※※前避け
;後を押しながらＡ＋Ｂ、という意味
;[Command]
;name = "away-b"    
;command = /B,x+y
;time = 10

;[Command]
;name = "away-b"    
;command = /B+x,y
;time = 10

;緊急回避共通コマンドにする

[Command]
name = "away"    
command = x+y
time = 10

[Command]
name = "away"    
command = /x,y;XおしながらYでも
time = 10

;ぱわーＭＡＸ
[Command]
name = "POWMAX"     
;command = ~D, D, D, y;かえまつ
command = x+a+b
time = 30

;-| ２回押し技 |-----------------------------------------------------------
[Command]
name = "FF"     
command = F, F
time = 10

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

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

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

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

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

;本家魔理沙準拠で、特押しながらもアリ

;-| ２・３個の同時押し技 |-----------------------------------------------
[Command]
name = "recovery"
command = x+y
time = 1

;アドバンシングガードもどき--------------------
[command]
name = "advguard"
command = x+a
time = 10

[command]
name = "advguard"
command = x+b
time = 10

[command]
name = "advguard"
command = a+b
time = 10

[command]
name = "advguard"
command = y;特殊ボタンなんだけども、これはアリにするべきか、しないべきか・・・
time = 10

;-| 方向とボタンで出す技 |---------------------------------------------------------
[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

;cとzは基本的に使わない方針
[Command]
name = "c"
command = c
time = 1

;ショット
[Command]
name = "x"
command = x
time = 1

;スペシャル
[Command]
name = "y"
command = y
time = 1

;cとzは基本的に使わない方針
[Command]
name = "z"
command = z
time = 1

;挑発
[Command]
name = "start"
command = s
time = 1

;ジャギ技用--------------------------------
;[Command]
;name = "F"
;command = F
;time = 1

;[Command]
;name = "B"
;command = B
;time = 1

;[Command]
;name = "U"
;command = U
;time = 1

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

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

[command]
name = "back"
command = B
time = 1

[command]
name = "up"
command = U
time = 1

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

;-| 押しっぱなし設定（いじらない）-------------------------------------------------------
[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

[Command]
name = "holdx"
command = /x
time = 1

[Command]
name = "releasex"
command = ~x
time = 1

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

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

; 下の記述↓は絶対に消さないでください。--------------------------------------
[Statedef -1]


;特殊超必-----
;ゲット武器発動！（武器ゲージを実装予定）
[State CMD, SPWeapons_Fire]
type = ChangeState
value = 35000 ;特殊武器関連のステートをまとめ。
triggerall = !var(59)
triggerall = command = "SPWeapons"
triggerall = var(5) > 0;装備してる？
triggerall = var(6);げーじ大丈夫？
trigger1 = ctrl
trigger1 = statetype != A
;地上コンボ三段目からキャンセルが可能
trigger2 =  (stateno = [230,235]) || (stateno = [250,255])
trigger2 = movecontact

;===========================================================================
;---------------------------------------------------------------------------
;テーレッテー
[State -1, Tehletteh]
type = ChangeState
value = 70000
triggerall = !var(59)
triggerall = var(42) != 1;一撃技可能 
triggerall = Numpartner = 0
triggerall = var(41) >= 7;七星ゲージＭＡＸ 
triggerall = var(5) >= -1;MAX状態〜特殊武器
triggerall = command = "Tehletteh"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 =  (stateno = 225)
trigger2 = movecontact
trigger3 =  (stateno = 240);マスィブブルーム
trigger3 = movecontact
trigger4 =  (stateno = 245);パワースィープ
trigger4 = movecontact

;---------------------------------------------------------------------------
;ますたーすぱーくLv3
[State -1, MasterSparkLv3]
type = ChangeState
value = 3010
triggerall = !var(59)
triggerall = command = "FinalMaster"
triggerall = power >= 2000
triggerall = var(5) = -1;MAX状態
triggerall = life < 300;ピンチ
trigger1 = statetype = S
trigger1 = ctrl
trigger2 =  (stateno = 225)
trigger2 = movecontact


;---------------------------------------------------------------------------
;ますたーすぱーくLv2
[State -1, MasterSparkLv2]
type = ChangeState
value = 3005
triggerall = !var(59)
triggerall = command = "MasterSpark"
triggerall = power >= 1000
triggerall = var(5) = -1;MAX状態
trigger1 = statetype = S
trigger1 = ctrl
trigger2 =  (stateno = 225)
trigger2 = movecontact
trigger3 =  (stateno = 215)
trigger3 = movecontact

;---------------------------------------------------------------------------
;ますたーすぱーくLv1
[State -1, MasterSparkLv1]
type = ChangeState
value = 3000
triggerall = !var(59)
triggerall = command = "MasterSpark"
triggerall = power >= 1000
triggerall = var(5) != -1;MAX状態じゃない
trigger1 = statetype = S
trigger1 = ctrl
trigger2 =  (stateno = 225)
trigger2 = movecontact
trigger3 =  (stateno = 245)
trigger3 = movecontact

;---------------------------------------------------------------------------
;ブレイジングスター
[State -1, ITEM-2]
type = ChangeState
value = 3045
triggerall = !var(59)
triggerall = command = "SuparHouki"
triggerall = power >= 1000
triggerall = var(5) = -1;MAX状態
trigger1 = statetype != C;立ち状態か空中状態
trigger1 = ctrl
trigger2 = (Stateno = 245) || (stateno = 261);パワースィープ　or　マスィブボディ
trigger2 = movecontact
;えりあるもキャンセルが可能
trigger3 =  (stateno = [605,630]) || (stateno = [610,615])
trigger3 = movecontact

;---------------------------------------------------------------------------
;スターダストレヴァリエ
[State -1, HOUKISP]
type = ChangeState
value = 3040
triggerall = !var(59)
triggerall = command = "SuparHouki"
triggerall = power >= 1000
triggerall = var(5) != -1;MAX状態じゃない
trigger1 = statetype != C;立ち状態か空中状態
trigger1 = ctrl
;地上コンボ三段目からキャンセルが可能
trigger2 =  (stateno = 261) ;なぜかヒップから繋がる
trigger2 = movecontact
;えりあるもキャンセルが可能
;trigger3 =  (stateno = [1010,1011]) || (stateno = [610,615])
;trigger3 = movecontact

;---------------------------------------------------------------------------
;ＭＡＸアクセルフォーム
[State -1, AXEL]
type = ChangeState
value = 30410
triggerall = !var(59)
triggerall = command = "Axel"
triggerall = power >= 1000
triggerall = var(5) = -1;MAX状態
trigger1 = statetype = S;立ち状態
trigger1 = ctrl

;---------------------------------------------------------------------------
;アクセルフォーム
[State -1, AXEL]
type = ChangeState
value = 30400
triggerall = !var(59)
triggerall = command = "Axel"
triggerall = power >= 1000
triggerall = var(5) != -1;MAX状態じゃない
trigger1 = statetype = S;立ち状態
trigger1 = ctrl

;---------------------------------------------------------------------------
;バタフライストームＭＡＸ
[State -1, HOUKISP]
type = ChangeState
value = 3035
triggerall = !var(59)
triggerall = command = "Papi"
triggerall = power >= 1000
triggerall = var(5) = -1;MAX状態
trigger1 = statetype = S;立ち状態
trigger1 = ctrl

;---------------------------------------------------------------------------
;バタフライストーム
[State -1, HOUKISP]
type = ChangeState
value = 3030
triggerall = !var(59)
triggerall = command = "Papi"
triggerall = power >= 1000
triggerall = var(5) != -1;MAX状態じゃない
trigger1 = statetype = S;立ち状態
trigger1 = ctrl
trigger2 = (Stateno = 245) ;パワースィープ
trigger2 = movecontact

;---------------------------------------------------------------------------
;マスターブレード
[State -1, MasterBlade]
type = ChangeState
value = 3090
triggerall = !var(59)
triggerall = var(30) = 0;アリスタイマーが０
triggerall = var(32) = 0;パチュリータイマーが０
;triggerall = life <= 500
triggerall = !NumHelper(1202)
triggerall = !NumHelper(3050)
triggerall = !NumHelper(3060)
triggerall = command = "MasterBlade"
triggerall = power >= 3000
triggerall = var(5) = 0;ノーマル
trigger1 = statetype = S
trigger1 = ctrl
;trigger2 =  (stateno = 225)
;trigger2 = movecontact
;マリス砲
[State -1, MaliceCannon]
type = ChangeState
value = 3050
triggerall = !var(59)
triggerall = var(30) = 0;アリスタイマーが０
triggerall = !NumHelper(1202)
triggerall = !NumHelper(3050)
triggerall = command = "MaliceCannon"
triggerall = power >= 2000
triggerall = var(5) = 0;ノーマル
trigger1 = statetype = S
trigger1 = ctrl
;trigger2 =  (stateno = 225)
;trigger2 = movecontact
;ノンディレクショナル
[State -1, NonDirLazer]
type = ChangeState
value = 3060
triggerall = !var(59)
triggerall = var(32) = 0;パチュリータイマーが０
;triggerall = !NumHelper(1202)
;triggerall = !NumHelper(3050)
triggerall = !NumHelper(3060)
triggerall = command = "NonDirLazer"
triggerall = power >= 2000
triggerall = var(5) = 0;ノーマル
trigger1 = statetype = S
trigger1 = ctrl
;trigger2 =  (stateno = 225)
;trigger2 = movecontact
;---------------------------------------------------------------------------
;陰陽ストライク
[State -1, RockBallA]
type = ChangeState
value = 1020
triggerall = !var(59)
triggerall = !NumHelper(1020)
triggerall = command = "QCB_a"
trigger1 = statetype != A
trigger1 = ctrl

[State -1, RockBallB]
type = ChangeState
value = 1021
triggerall = !var(59)
triggerall = !NumHelper(1020)
triggerall = command = "QCB_b"
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
;ひえいけん（北斗技装備時）
;アフロンさんの獄屠拳互換。
[State -1, HIEIKEN_A]
type = ChangeState
value = 1050
triggerall = !var(59)
triggerall = var(5) = [16,19];北斗装備
triggerall = command = "Shouryu_a"
;trigger1 = statetype != A
trigger1 = ctrl
;地上コンボ三段目からキャンセルが可能
trigger2 =  (stateno = [230,235]) || (stateno = [250,255])
trigger2 = movecontact

[State -1, HIEIKEN_B]
type = ChangeState
value = 1052
triggerall = !var(59)
triggerall = var(5) = [16,19];北斗装備
triggerall = command = "Shouryu_b"
;trigger1 = statetype != A
trigger1 = ctrl
;地上コンボ三段目からキャンセルが可能
trigger2 =  (stateno = [230,235]) || (stateno = [250,255])
trigger2 = movecontact
;---------------------------------------------------------------------------
;しょーりゅーけん
[State -1, RockUpperA]
type = ChangeState
value = 1010
triggerall = !var(59)
triggerall = command = "Shouryu_a"
trigger1 = statetype != A
trigger1 = ctrl
;地上コンボ三段目からキャンセルが可能
trigger2 =  (stateno = [230,235]) || (stateno = [250,255])
trigger2 = movecontact

[State -1, RockUpperB]
type = ChangeState
value = 1011
triggerall = !var(59)
triggerall = command = "Shouryu_b"
trigger1 = statetype != A
trigger1 = ctrl
;地上コンボ三段目からキャンセルが可能
trigger2 =  (stateno = [230,235]) || (stateno = [250,255])
trigger2 = movecontact

;---------------------
;さいこみさいる
[State -1, PsycoMissile]
type = ChangeState
value = 1000
triggerall = !var(59)
triggerall = command = "QCB_x";タツマキ＋バスター
triggerall = !NumHelper(3011);ミサイルが残っているときは連射できまそん
trigger1 = statetype = A;空中用必殺技
trigger1 = ctrl

;----------
;マスィブブルーム
[State -1]
Type       = ChangeState
Value      = 240
triggerall = !var(59)
Trigger1 = Command = "HoukiCrush1"
Trigger1 = StateType != A
Trigger1   = Ctrl
Trigger2 = Command = "a"
Trigger2   = StateNo = 230 || StateNo = 235
Trigger2   = MoveContACT

;----------
;パワースィープ
[State -1]
Type       = ChangeState
Value      = 245
triggerall = !var(59)
Trigger1 = Command = "HoukiCrush2"
Trigger1 = StateType != A
Trigger1   = Ctrl
Trigger2 = Command = "b"
Trigger2   = StateNo = 230 || StateNo = 235
Trigger2   = MoveContACT

;-----------
;チャージ発射関連
[State -1, ChargeFire SP]
type = Null;changestate;ちょーと封印
value = 3010
triggerall = !var(59)
triggerall = (command != "holdx" && PalNo % 6 != 0) || command = "x"
triggerall = var(1) >= 250
trigger1 = Ctrl
trigger1 = statetype = S
trigger1 = movetype != H
trigger2 = (stateno = 200) && MoveContact
trigger3 = (stateno = 205) && MoveContact
trigger4 = (stateno = 230) && MoveContact
trigger5 = (stateno = 235) && MoveContact
trigger6 = (stateno = 240) && MoveContact
trigger7 = (stateno = 245) && MoveContact
;trigger2 = (Stateno = 100);&& movecontact;ダッシュキャンセル可能？
;地上でフルチャージ時に放すと別の技に変化 仮に250以上とする

[State -1, ChargeFire stand]
type = changestate
value = 220
triggerall = !var(59)
triggerall = (command != "holdx" && PalNo % 6 != 0) || command = "x"
triggerall = var(1) >= 30
;triggerall = var(1) < 250
trigger1 = Ctrl
trigger1 = statetype = S
trigger1 = movetype != H
trigger2 = (stateno = 200) && MoveContact
trigger3 = (stateno = 205) && MoveContact
trigger4 = (stateno = 230) && MoveContact
trigger5 = (stateno = 235) && MoveContact

[State -1, ChargeFire jimen]
type = changestate
value = 420
triggerall = !var(59)
triggerall = (command != "holdx" && PalNo % 6 != 0) || command = "x"
triggerall = var(1) >= 30
triggerall = Ctrl
trigger1 = statetype = C
trigger1 = movetype != H

[State -1, ChargeFire AIRCOMBO FINISH]
type = changestate
value = 626
triggerall = !var(59)
triggerall = (command != "holdx" && PalNo % 6 != 0) || command = "x"
triggerall = var(1) >= 30
triggerall = !var(0) ;Var0（エリアルふっとばし中）が立ってない時でないと出せない
triggerall = stateno != 460
trigger1 = (stateno = 605) && MoveContact
trigger2 = (stateno = 610) && MoveContact
trigger3 = (stateno = 630) && MoveContact
trigger4 = (stateno = 615) && MoveContact

[State -1, Jump Shot AIRCOMBO FINISH]
type = ChangeState
value = 626
triggerall = !var(59)
triggerall = command = "x"
triggerall = !var(0) ;Var0（エリアルふっとばし中）が立ってない時でないと出せない
triggerall = stateno != 460
trigger1 = (stateno = 605) && MoveContact
trigger2 = (stateno = 610) && MoveContact
trigger3 = (stateno = 630) && MoveContact
trigger4 = (stateno = 615) && MoveContact

[State -1, ChargeFire sora];通常の空中チャージ
type = changestate
value = 620
triggerall = !var(59)
triggerall = (command != "holdx" && PalNo % 6 != 0) || command = "x"
triggerall = var(1) >= 30
triggerall = !NumProjID(10051);チャージバスターが飛んでない時
triggerall = stateno != 460
triggerall = (stateno != 630)
triggerall = (stateno != 615)
trigger1 = Ctrl
trigger1 = statetype = A
trigger1 = movetype != H
;===========================================================================
;---------------------------------------------------------------------------
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = !var(59)
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl
;trigger1 = p2bodydist X < 4;相手が近い時は発動しない

;---------------------------------------------------------------------------
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = !var(59)
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl
;trigger1 = p2bodydist X < 4;相手が近い時は発動しない

;---------------------------------------------------------------------------
;空中前ダッシュ
;普通のステート、この中では一番簡単なステート
;ただし空中ダッシュを連続でできないように「stateno ! = 2300」としています
;詳細はairdash.cnsで

[State -1, airrun]
type = ChangeState
value = 2300
triggerall = !var(59)
trigger1 = command = "FF"
triggerall = statetype = A
trigger1 = ctrl
trigger1 = stateno != 2300

;---------------------------------------------------------------------------
;パワー溜め
;新しく「holdx」「holdy」というコマンドを作ります
;あわせるとXとYを同時に押すとってことです。
;パワーがＭＡＸなのに溜めるのは変なのでトリガーにpower != 3000を付けます。
;詳細はpower.cnsで

;[State -1, Run Back]
;type = ChangeState
;value = 2000
;triggerall = !var(59)
;triggerall = power != 3000
;trigger1 = command = "holdx"
;trigger1 = command = "holdy"
;trigger1 = statetype = S
;trigger1 = ctrl

;ぱわーＭＡＸ
[State -1, POWERMAX]
type = ChangeState
value = 860
triggerall = !var(59)
triggerall = power >= 1000 ;パワーが１０００以上
trigger1 = var(5) = 0;現在、何も装備していない＆ＭＡＸでない
trigger1 = command = "POWMAX"
trigger1 = statetype = S
trigger1 = ctrl

;ドローカード！
[State -1, BATTLECARD]
type = ChangeState
value = 3503
triggerall = !var(59)
triggerall = power >= 1000 ;パワーが１０００以上
trigger1 = var(5) = 0;現在、何も装備していない＆ＭＡＸでない
trigger1 = command = "BattleCard"
trigger1 = statetype = S
trigger1 = ctrl
;ドローカード！
[State -1, CARDSHOOT]
type = ChangeState
value = 3600
triggerall = !var(59)
;triggerall = power >= 1000 ;パワーが１０００以上
trigger1 = var(5) > 0;現在、ＭＡＸでない＆何か装備している 0以上
trigger1 = command = "BattleCard"
trigger1 = statetype = S
trigger1 = ctrl
;-------------------------------
;アドバンシングガードもどき。
;普通のガードですでにエフェクト使ってるんで、ガードアニメを変えることでわかりやすくする。
[State -1,ADVGUARD ST]
Type = ChangeState
Value = 160;guard.cnsに詳細。
triggerall = !var(59)
TriggerAll = Command = "advguard"
TriggerAll = Statetype = S
Trigger1 = Stateno = [150,153];まぁ、通常であれば１５０になるんだろうけど

[State -1,ADVGUARD CR]
Type = ChangeState
Value = 161;guard.cnsに詳細。
triggerall = !var(59)
TriggerAll = Command = "advguard"
TriggerAll = Statetype = C
Trigger1 = Stateno = [151,153];

[State -1,ADVGUARD AIR]
Type = ChangeState
Value = 162;guard.cnsに詳細。
triggerall = !var(59)
TriggerAll = Command = "advguard"
TriggerAll = Statetype = A
Trigger1 = Stateno = 154;
trigger2 = Stateno = 154 && prevstateno != 162
trigger2 = Time < 15

;---------------------------------------------------------------------------
;援護攻撃
;アリス援護
[State -1, Alice]
type = ChangeState
value = 1200
triggerall = !var(59)
triggerall = var(30) = 0;アリスタイマーが０ ０以外の場合いかなる場合も撃てない
triggerall = !NumHelper(1202)
triggerall = command = "z"
trigger1 = statetype != A
trigger1 = ctrl
[State -1, Spilitia]
type = ChangeState
value = 1210
triggerall = !var(59)
triggerall = var(31) = 0;ティアタイマーが０
;triggerall = !NumHelper(1210)
triggerall = command = "c"
trigger1 = statetype != A
trigger1 = ctrl


;---------------------------------------------------------------------------
;真空投げ
;羅生門装備時発動
[State -1, Kung Fu Throw]
type = ChangeState
value = 65080
triggerall = !var(59)
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
triggerall = var(5) = [7,8];真空投げ装備
trigger1 = stateno != 100
trigger1 = (command = "holdfwd")||(command = "holdback")
trigger1 = p2bodydist X < 70
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
;---------------------------------------------------------------------------
;零距離ゴッドプレス
;運送装備時発動
[State -1, Kung Fu Throw]
type = ChangeState
value = 65150
triggerall = !var(59)
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
triggerall = var(5) = 15;運送装備
trigger1 = stateno != 100
trigger1 = (command = "holdfwd")||(command = "holdback")
trigger1 = p2bodydist X < 70
trigger1 = (command = "holdfwd")||(command = "holdback")
trigger1 = p2movetype != H
trigger2 = stateno != 100
trigger2 = command = "holdfwd"
trigger2 = p2bodydist X < 180
trigger2 = p2statetype = A
trigger2 = p2movetype = H;食らい状態・空中落下してる時
;---------------------------------------------------------------------------
;ゲット投げ
[State -1, GetNage]
type = ChangeState
value = 805
triggerall = !var(59)
triggerall = command = "GetNage"
triggerall = statetype = S
triggerall = ctrl
triggerall = var(5) = 0
trigger1 = stateno != 100
trigger1 = p2bodydist X < 70
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
;---------------------------------------------------------------------------
;投げ
;入れる方向で動作を変えたい
[State -1, Nage]
type = ChangeState
value = 800
triggerall = !var(59)
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
trigger1 = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 18
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H
trigger3 = (stateno = 2200) && MoveContact
trigger4 = (stateno = 2250) && MoveContact
trigger5 = (stateno = 250) && MoveContact
trigger6 = (stateno = 255) && MoveContact
Trigger7   = StateNo = 230 || StateNo = 235
Trigger7   = MoveContACT

;---------------------------------------------------------------------------
;前避け
;とても簡単なステートです。
;ここでやってる特殊なことは「効率化」です。
;詳細はaway.cnsで

[State -1, Run Back]
type = ChangeState
value = 2200
triggerall = !var(59)
triggerall = command = "away"
triggerall = command != "holdback"
triggerall = statetype = S
trigger1 = ctrl
;trigger2 = (stateno = [200,299]) || (stateno = [400,499])
;trigger2 = movecontact

;---------------------------------------------------------------------------
;後避け
;とても簡単なステートです。
;ここでやってる特殊なことは「効率化」です。
;詳細はaway.cnsで

[State -1, Run Back]
type = ChangeState
value = 2250
triggerall = !var(59)
triggerall = command = "away"
triggerall = command != "holdfwd"
triggerall = statetype = S
trigger1 = ctrl
;trigger2 = (stateno = [200,299]) || (stateno = [400,499])
;trigger2 = movecontact

;===========================================================================
;---------------------------------------------------------------------------
;ヒップ
[State -1, HIP Stand]
type = ChangeState
value = 260
triggerall = !var(59)
triggerall = command = "a";bをつかう
trigger1 = command = "holdfwd"
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 250) && MoveContact
trigger3 = (stateno = 255) && MoveContact

;立ち弱パンチ
;あらため、立ちパンチ
;[State -1, Stand Light Punch]
[State -1, Stand Punch]
type = ChangeState
value = 200
triggerall = !var(59)
triggerall = command = "a";aぼたんを使う
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 6

;-------
;パンチ二段目
[State -1, Stand Punch 2]
type = ChangeState
value = 205
triggerall = !var(59)
triggerall = command = "a";aぼたんを使う
triggerall = command != "holddown"
trigger1 = (stateno = 200) && MoveContact

;-------
;パンチ三段目
[State -1, Stand Punch 3]
type = ChangeState
value = 230
triggerall = !var(59)
triggerall = command = "a";aぼたんを使う
triggerall = command != "holddown"
trigger1 = (stateno = 205) && MoveContact

;-------
;205->キック
[State -1, Stand Drop Kick]
type = ChangeState
value = 235
triggerall = !var(59)
triggerall = command = "b";bぼたんきっく
triggerall = command != "holddown"
trigger1 = (stateno = 205) && MoveContact

;---------------------------------------------------------------------------
;横キック//エリアル発動技
[State -1, Eriak Kick]
type = ChangeState
value = 215
triggerall = !var(59)
triggerall = command = "b";bをつかう
trigger1 = command = "holdfwd"
trigger1 = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = Stateno = 100;前ダッシュ中に入れたら発動
trigger3 = (stateno = 250) && MoveContact
trigger4 = (stateno = 255) && MoveContact

;ニュートラルキック
;[State -1, Stand Strong Punch]
[State -1, Stand Kick]
type = ChangeState
value = 210
triggerall = !var(59)
triggerall = command = "b";bをつかう
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6
;trigger4 = Stateno = 100;前ダッシュ中に入れたら発動

;-------
;210->パンチ
[State -1, Stand Punch 4]
type = ChangeState
value = 250
triggerall = !var(59)
triggerall = command = "a";aぼたんを使う
triggerall = command != "holddown"
trigger1 = (stateno = 210) && MoveContact

;-------
;210->キック
[State -1, Stand Air Kick]
type = ChangeState
value = 255
triggerall = !var(59)
triggerall = command = "b";bぼたんきっく
triggerall = command != "holddown"
trigger1 = (stateno = 210) && MoveContact

;---------------------------------------------------------------------------
;立ち弱キック
;ではなく、ショットなんだなこれが
;その他の必殺ショットはこれより上に書くといい？
;[State -1, Stand Light Kick]
[State -1, Buster]
type = ChangeState
;value = 230
value = 220
triggerall = !var(59)
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = NumProjID(10053) < 3
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && MoveContact
trigger3 = (stateno = 205) && MoveContact
trigger4 = (stateno = 230) && MoveContact
trigger5 = (stateno = 235) && MoveContact
trigger6 = (stateno = 250) && MoveContact
trigger7 = (stateno = 255) && MoveContact
;trigger8 = (stateno = 410) && MoveContact
;trigger9 = (stateno = 440) && MoveContact

;---------------------------------------------------------------------------
;立ち強キック
;ではなく、特殊行動ボタンに割り当たってるんだな・・・
;つまり、ここいらない！？
;[State -1, Standing Strong Kick]
;type = ChangeState
;value = 240
;triggerall = !var(59)
;triggerall = command = "b"
;triggerall = command != "holddown"
;trigger1 = statetype = S
;trigger1 = ctrl
;trigger2 = (stateno = 200) && time > 5
;trigger3 = (stateno = 230) && time > 6

;---------------------------------------------------------------------------
;挑発
[State -1, Taunt2]
type = ChangeState
value = 196
triggerall = !var(59)
triggerall = command = "HAYAKAWA"
trigger1 = statetype != A
trigger1 = ctrl
;挑発
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = !var(59)
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl
;---------------------------------------------------------------------------
;挑発
;「だが、何をしても無駄だ」
;[State -1, CardDeck]

;---------------------------------------------------------------------------
;しゃがみ弱パンチ
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = !var(59)
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
;しゃがみ強パンチ
;しゃがみキックに変更
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = !var(59)
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) || (stateno = 430)
trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;しゃがみ弱キック
;ではなく、しゃがみショットなんだなこれが
;その他の必殺ショットはこれより上に書くといい？
;[State -1, Crouching Light Kick]
[State -1, Crouching Buster]
type = ChangeState
;value = 430
value = 420
triggerall = !var(59)
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = NumProjID(10053) < 3
trigger1 = statetype = C
trigger1 = ctrl
;trigger2 = (stateno = 400) || (stateno = 430)
;trigger2 = (time > 9) || (movecontact && time > 5)
trigger2 = (stateno = 200) && MoveContact
trigger3 = (stateno = 230) && MoveContact
trigger4 = (stateno = 210) && MoveContact
trigger5 = (stateno = 240) && MoveContact
trigger6 = (stateno = 400) && MoveContact
trigger7 = (stateno = 430) && MoveContact
trigger8 = (stateno = 410) && MoveContact
trigger9 = (stateno = 440) && MoveContact

;---------------------------------------------------------------------------
;しゃがみ強キック
;[State -1, Crouching Strong Kick]
;type = ChangeState
;value = 440
;triggerall = !var(59)
;triggerall = command = "b"
;triggerall = command = "holddown"
;trigger1 = statetype = C
;trigger1 = ctrl
;trigger2 = (stateno = 400) || (stateno = 430)
;trigger2 = (time > 9) || (movecontact && time > 5)

;---------------------------------------------------------------------------
;空中弱パンチ
[State -1, Jump Low Punch]
type = ChangeState
value = 605;600
triggerall = !var(59)
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = A
trigger1 = ctrl
;trigger2 = stateno = 605
;trigger2 = statetime >= 7
;trigger4 = (stateno = 610) && MoveContact

;空中中パンチ　掌撃
[State -1, Jump Mid Punch]
type = ChangeState
value = 630
triggerall = !var(59)
triggerall = command = "a"
;triggerall = statetype = A
;trigger1 = statetype = A
;trigger1 = ctrl
trigger1 = Stateno = 605;弱パンチから繋がる
trigger1 = movecontact
trigger2 = Stateno = 610;弱キック中で
trigger2 = movecontact

;空中強パンチ　;空中強パンチ 単発含めたい
[State -1, Jump Pow Punch]
type = ChangeState
value = 600
triggerall = !var(59)
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = command = "holddown"
;trigger2 = stateno = 600
;trigger2 = statetime >= 7
trigger2 = (stateno = 630) && MoveContact
trigger3 = (stateno = 615) && MoveContact

;-----------------------
;---------------------------------------------------------------------------
;空中強パンチ
;じゃなくて弱キック
;[State -1, Jump Strong Punch]
[State -1, Jump Kick]
type = ChangeState
value = 610
triggerall = !var(59)
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = A
trigger1 = ctrl
;trigger2 = stateno = 600 || stateno = 605 ;jump_x or jump_a
trigger2 = stateno = 605;605の空中Nパンチから繋げられる
trigger2 = movecontact

;ドロップキック
[State -1, Jump Mid Kick]
type = ChangeState
value = 615
triggerall = !var(59)
triggerall = command = "b"
;trigger1 = statetype = A
;trigger1 = ctrl
trigger1 = StateNo = 610;弱キックから繋げられる
trigger1 = movecontact
trigger2 = Stateno = 630;
trigger2 = movecontact;prevStateno = 610

;空中強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = !var(59)
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = Command = "holddown"
trigger2 = (stateno = 615) && MoveContact
trigger3 = (stateno = 630) && MoveContact

;---------------------------------------------------------------------------
;空中弱キック
;じゃなくて空中バスター
[State -1, Jump Shot]
type = ChangeState
;value = 630
value = 620
triggerall = !var(59)
triggerall = command = "x"
triggerall = !var(0) ;Var0（エリアルふっとばし中）が立ってない時でないと出せない
triggerall = stateno != 460
triggerall = NumProjID(10053) < 3
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 605) && MoveContact
trigger3 = (stateno = 610) && MoveContact
trigger4 = (stateno = 630) && MoveContact
trigger5 = (stateno = 615) && MoveContact



