; カンフーマンの入力コマンド定義ファイルです。
; コマンドの入力キーを設定するパートと、技を実行するための条件を設定するパートに分かれています。
;------------------------------------------------------------------------------
;==============================================================================
; 入力キーの設定パート
;==============================================================================
;------------------------------------------------------------------------------
;■設定はこの形が決まり事です。詳細は以下参照。
;
;[Command]
;name = "***"
;command = ###
;time = &&&
;
;■コマンドの名前：「name = "***"」という風に入れます。***に文字を入れてください。
; 　　　　　　　　アルファベットは大文字と小文字でも区別されます。日本語も可能です。
;
;■指定方法：「command = ###」という風に入れます。
;　　　　　　###に下記のキーを組み合わせ入力するコマンドを設定してください。
;
;　　方向キー：　B, DB, D, DF, F, UF, U, UB　（全て大文字で）
;　　　　　　　　B=Back（後）・D=Down（下）・F=Forward（前）・U=Up（上）になっています。
;
;　　ボタン　：　a, b, c, x, y, z, s 　　　　（全て小文字で）
; 
;　※特殊文字
;
;　　スラッシュ（ / ）：ボタンを押しっぱなしにする場合はこれを入れます。
;　　　　　　　　例：command = /F　　　（前キーを押したままにする）
;　　　　　　　　　　command = /B,y　　（後キーを押したままＹボタンを入力）
;
;　　チルダ　　（ ~ ）：ボタンが離される事を認識させる場合はこれを入れます。
;　　　　　　　　例：command = ~c　　　（Ｃボタンを離す）
;　　　　　　　　　　command = ~DB,DF,x（斜め後下を離して斜め前下=>Ｘボタンの順番に入力）
;
;　　　　　　　　※数値を追加する事で、ボタンを離すまでの時間、いわゆる『溜め』を設定出来ます。
;　　　　　　　　例：command = ~20z　　（Ｚボタンを押したままにし、２０フレーム後に離す）
;　　　　　　　　　　command = ~40B,F,b（後キーを押したままにし、４０フレーム後に離して前キー=>Ｂボタンの順番に入力）
;
;　　ドル　　　（ $ ）：複数の方向キー要素を入力出来るようにする場合はこれを入れます。
;　　　　　　　　例：command = $U　　　（上・斜め前上・斜め後上のどれからで始めても良い）
;　　　　　　　　　　command = $DF 　　（下・斜め前下・前のどれからで始めても良い）
;
;　　プラス　　（ + ）：ボタンを同時押しする場合はこれを入れます。
;　　　　　　　　例：command = a+b 　　（ＡボタンとＢボタンを同時押しします）
;　　　　　　　　　　command = x+y+z 　（ＸボタンとＹボタンとＺボタンを同時押しします）
;　　　　　　　　　　command = F+c 　　（前キーとＣボタンを同時押しします）
;
;　※これらの特殊文字は、組み合わせて使用する事も可能です。
;　　　　　　　　例：command = ~30$D,a+b
;　　　　　　　　　　　　　（下要素を３０フレーム溜めて離した後にＡボタンとＢボタンを同時押しします）
;
;■入力コマンド受付時間：「time = &&&」という風に入れます。オプションなので省略可能。
;　　　　　　　　　　　　&&&にコマンドを入力出来る時間を入れてください。時間はフレーム数です（１フレーム＝1/60秒）。
;　　　　　　　　例：time = 24　（入力受付時間を２４フレーム（0.4秒）に設定）
;
; 後は実際に登録されているものを参照してください。
;==============================================================================

;-| ボタン配置 |-----------------------------------------------------
;各ボタンの配置を簡単に変更できます。
;このキャラクターのボタン配置を変えたいときなどに使います。
;x = x を x = a に変えれば、xがaに変わります。

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

;-| 標準化 |-------------------------------------------------------
[Defaults]
; timeを記述しなかった場合、以下の値が参照されます。最小値は1です。
command.time = 15

; buffer.timeの値です。1〜30まで設定できます。
; 普通は1です。
command.buffer.time = 1
;------------------------------------------------------------------------------
;-| 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 =  y, c,z
Time = 0

[Command]
Name    = "AI_45"
Command =  y, x,z
Time = 0

[Command]
Name    = "AI_46"
Command =  y, y,z
Time = 0

[Command]
Name    = "AI_47"
Command =  y, z,z
Time = 0

[Command]
Name    = "AI_48"
Command =  y, s,z
Time = 0

[Command]
Name    = "AI_49"
Command =  s, a,z
Time = 0

[Command]
Name    = "AI_50"
Command =  s, b,x
Time = 0

[Command]
Name    = "AI_51"
Command =  s, c,z
Time = 0

[Command]
Name    = "AI_52"
Command =  s, x,z
Time = 0

[Command]
Name    = "AI_53"
Command =  s, c,z,a
Time = 0

[Command]
Name    = "AI_54"
Command =  s, x,z,a
Time = 0

;------------------------------------------------------------------------------
;-| ストライカー |--------------------------------------------------------------
[Command]
name = "ストライカーアテナ"    
command = s+B
time = 20

[Command]
name = "ストライカーアテナ"    
command = s, B
time = 20

[Command]
name = "ストライカーアテナ"    
command = B, s
time = 20

[Command]
name = "ストライカー庵"    
command = s+F
time = 20

[Command]
name = "ストライカー庵"    
command = s, F
time = 20

[Command]
name = "ストライカー庵"    
command = F, s
time = 20

[Command]
name = "ストライカークローン京"    
command = s+D
time = 20

[Command]
name = "ストライカークローン京"    
command = s, D
time = 20

[Command]
name = "ストライカークローン京"    
command = D, s
time = 20

[Command]
name = "クローン京ズ"    
command = x+y+a+b
time = 20
;------------------------------------------------------------------------------
;-| リーダー超必殺技 |--------------------------------------------------------------

[Command]
name = "無式"
command = ~D, F, a+b
time = 35

[Command]
name = "秘奥義・裏百八式・大蛇薙"
command = ~D, B, D, F, x+y
time = 35

[Command]
name = "千弐百弐拾七式・無塵"
command = ~F, D, B, a+b
time = 35

[Command]
name = "伍百弐拾四式・神塵"
command = ~D, B, D, B, c
time = 35

[Command]
name = "無式・壱之段"
command = ~D, F, D, F, c
time = 25

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

[Command]
name = "裏百八式・大蛇薙"
command = ~D, B, D, F, x
time = 25

[Command]
name = "裏百八式・大蛇薙"
command = ~D, B, D, F, y
time = 25

[Command]
name = "百八拾弐式"
command = ~D, F, D, F, x
time = 25

[Command]
name = "百八拾弐式"
command = ~D, F, D, F, y
time = 25

[Command]
name = "百弐拾参式・灼焉"
command = ~F, D, B, y
time = 25

[Command]
name = "百弐拾参式・灼焉"
command = ~F, D, B, x
time = 25


[Command]
name = "百弐拾参式・灼焉"
command = ~F, y
time = 25

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

[Command]
name = "弱四百弐拾七式・轢鉄"
command = ~F, D, B, a
time = 25

[Command]
name = "強四百弐拾七式・轢鉄"
command = ~F, D, B, b
time = 25

[Command]
name = "七百八十五式・影踏み"
command = ~F, D, B, x+y
time = 25

[Command]
name = "百弐拾七式・八錆"
command = ~D, B, x
time = 25

[Command]
name = "百弐拾七式・八錆"
command = ~D, B, y
time = 25

[Command]
name = "百八式・闇払い改"
command = ~D, B, x
time = 25

[Command]
name = "裏四百弐拾七式・餓柱"
command = ~D, B, y
time = 25

[Command]
name = "弱独楽屠り"
command = ~B, D, DB, a

[Command]
name = "強独楽屠り"
command = ~B, D, DB, b

[Command]
name = "弱百式・鬼焼き"
command = ~F, D, DF, x

[Command]
name = "強百式・鬼焼き"
command = ~F, D, DF, y

[Command]
name = "弱空中独楽屠り"
command = ~D, B, a

[Command]
name = "強空中独楽屠り"
command = ~D, B, b

[Command]
name = "弱七拾五式・改"
command = ~D, F, a

[Command]
name = "強七拾五式・改"
command = ~D, F, b

[Command]
name = "百拾四式・荒咬み"
command = ~D, F, x

[Command]
name = "百拾五式・毒咬み"
command = ~D, F, y

[Command]
name = "六百六拾壱式・虚空Ａ"
command = ~D, D, a

[Command]
name = "六百六拾壱式・虚空Ｂ"
command = ~D, D, b

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

[Command]
name = "裏・百式"
command = z+c
time = 15

[Command]
name = "裏・百式B"
command = /z
time = 15

[Command]
name = "裏・百式C"
command = /c
time = 15

[Command]
name = "六百弐拾四式・阿炎Ａ"
command = D, c
time = 15

[Command]
name = "六百弐拾四式・阿炎Ｂ"
command = D, z
time = 15

[Command]
name = "前"    
command = $F
time = 20

;------------------------------------------------------------------------------
;-| キー２回連続入力 |---------------------------------------------------------
[Command]
name = "FF"     ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
command = F, F
time = 10

[Command]
name = "BB"     ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
command = B, B
time = 10

;------------------------------------------------------------------------------
;-| 同時押し |-----------------------------------------------------------------
[Command]
name = "recovery"   ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
command = x+a
time = 1

[Command]
name = "recovery"   ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
command = z
time = 1

[Command]
name = "ふっとばし"
command = y+b
time = 1

[Command]
name = "ふっとばし"
command = c
time = 1

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

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

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

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

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

[Command]
name = "up"
command = U
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"   ;要求済み (キーの変更は可能ですが名前を変えたり無効にしてはいけません)
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 = "holdxy"
command = /$x+y
time = 1

[Command]
name = "holdc"
command = /$c
time = 1

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

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

;------------------------------------------------------------------------------
;==============================================================================
; 技を実行するための条件の設定（ステートエントリーパート）
;==============================================================================
;------------------------------------------------------------------------------
; ここから下は「どのコマンドでどの番号のステートをどういう条件で出せるか」を設定する場所です。
;（ステートに関してはCNSファイルを参照）
; 
;■設定は基本的にこの形になります。
;
; [State -1, Label]                  ;「Label」の部分はただのラベルです。何でも良いです。それ以外は変更不可。
; type = ChangeState                 ;「別のステートに変更する」という意味のステートコントローラ
; value = new_state_number           ;出したい技のステート番号を入れます
; trigger1 = command = command_name  ;入力キー設定パートで登録したコマンドの名前をどれか入れます
; . . .  (any additional triggers)   ;trigger（条件を指定するトリガー）を追加出来ます
;
;■triggerに使える基本的な条件（通常は「トリガー」と呼ばれています）
;
;   - StateType    - キャラクターがどの状態の時にそのステートを出せるかどうかを決められます。
;                    S=立った状態・C=座った状態・A=空中にいる状態・L=横に倒れた状態、の４つが決まり事です。
;                    CNSのStatedefの下にある「Type = *」の項目が状態の意味なので、これをこのトリガーで判断します。
;
;   - Ctrl         - コントロールが可能か不可能かどちらかの時にそのステートを出せるかどうかを決められます。
;                    0=コントロール不可能状態・1=コントロール可能状態、ですが通常は Ctrl = 1 ( = 1 省略可能)が基本。
;
;   - StateNo      - 別の番号のステートから出せる事が可能になります。
;                    これを応用してスーパーキャンセルも可能です。
;
;   - MoveContact  - 物理攻撃が相手に当たった時（攻撃がヒットした時、もしくはガードされた時）に、
;                    そのステートを出せるかどうかを決められます。２種類４パターンあります。
;                    MoveContact or MoveContact = 1  （攻撃が当たった時）
;                    !MoveContact or MoveContact = 0 （攻撃が当たってない時）
;                    これを応用してスーパーキャンセルも可能です。
;
;　※上の４つ以外にもありますが、他のトリガーはM.U.G.E.N本体docsフォルダの中の
;　　CNSドキュメンテーションを参照してください。
;
;■ステートエントリーの順序
;
; ChangeStateの登録の順番は重要です。上に来れば来るほどコマンド入力の優先度が高くなります。
;
; 引用になりますが、例えば「波動拳コマンドのChangeState（↓＼→＋パンチ）」を
;「昇龍拳コマンドのChangeState（→↓＼＋パンチ）」よりも上に登録した場合、
; ゲーム中では昇龍拳を出そうとしても波動拳が誤って暴発しやすくなってしまいます。
; 防止するためには、「波動拳のChangeState」を「昇龍拳のChangeState」よりも下に登録しなくてはなりません。
;「レバーを前に入れて出す特殊技」と「投げ技」の関係なども同様です。
;
; 順番をよく考えて登録しましょう。
;
;■AI(CPU)はどう動くのか
;MUGENの標準CPUは相手に近づき適当に攻撃を繰り出すだけなので、AIスイッチによる制御が必要なこともあります。
;
;■[Statedef -1]とは？
;
; この部分はCNSプログラミングの拡張部分の、常時監視ステートになります。
; どのいかなる状態でも設定した記述が常に有効になるステートです（CNSの[Statedef -2]と似たような部分）。
;
; 必要な記述と行なので、絶対に消さないでください。
;
;==============================================================================
;------------------------------------------------------------------------------
;==========================================================================
;---------------------------------------------------------------------------
;--------------
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Statedef -1];←この行は絶対に消さないでください。必須の項目です。
;==============================================================================
;AI
[State -1, AI1]
Type = VarSet
Trigger1  = Command = "AI_00" || Command = "AI_01" || Command = "AI_02" || Command = "AI_03" || Command = "AI_04" || Command = "AI_05" || Command = "AI_06" || Command = "AI_07" || Command = "AI_08" || Command = "AI_09" || Command = "AI_10"
Trigger2  = Command = "AI_11" || Command = "AI_12" || Command = "AI_13" || Command = "AI_14" || Command = "AI_15" || Command = "AI_16" || Command = "AI_17" || Command = "AI_18" || Command = "AI_19" || Command = "AI_20" || Command = "AI_21"
Trigger3  = Command = "AI_22" || Command = "AI_23" || Command = "AI_24" || Command = "AI_25" || Command = "AI_26" || Command = "AI_27" || Command = "AI_28" || Command = "AI_29" || Command = "AI_30" || Command = "AI_31" || Command = "AI_32"
Trigger4  = Command = "AI_33" || Command = "AI_34" || Command = "AI_35" || Command = "AI_36" || Command = "AI_37" || Command = "AI_38" || Command = "AI_39" || Command = "AI_40" || Command = "AI_41" || Command = "AI_42" || Command = "AI_43"
Trigger5  = Command = "AI_44" || Command = "AI_45" || Command = "AI_46" || Command = "AI_47" || Command = "AI_48" || Command = "AI_49" || Command = "AI_50" || Command = "AI_51" || Command = "AI_52" || Command = "AI_53" || Command = "AI_54"
;Trigger6 = AILevel >= 1  ;新ＭＵＧＥＮ用ＡＩスイッチ
;Trigger6 = 1;				←観戦用スイッチ（左端の";"を消すとAI常時作動)
v = 59
value = 1

[State -1, AI2]
Type = VarSet 
triggerall = var(59) = 1 
Trigger1  = RoundState = 1
v = 59
value = 2

[State -1, AI3]
Type = VarSet
triggerall = var(59) = 2
Trigger1  = RoundState = 2
v = 59
value = 1

[State -1, AI3]
Type = VarSet
triggerall = var(59) = 1
Trigger1  = RoundState = [3,4]
v = 59
value = 2
;==============================================================================
[State -1, シールド]
type = ChangeState
value = 701
triggerall = command = "前"
triggerall = p2MoveType = A
triggerall = P2Dist X <=  250
triggerall = P2Dist Y >= -150
trigger1 = ctrl
trigger2 = stateno = [150,151]
trigger3 = stateno = [140,141]
trigger4 = stateno = [130,131]

;裏・百式
[State -1, SAIKU]
type = ChangeState
value = 13800
triggerall = command = "裏・百式"
triggerall = power >= 1000
trigger1 = stateno = [5000,5070]


;パワー溜め
[State -1, SAIKU]
type = ChangeState
value = 18002
triggerall = command = "裏・百式"
trigger1 = statetype != A
trigger1 = ctrl
;==============================================================================
;最終決戦奥儀・無式
[State -1, MUSIKI]
type = ChangeState
value = 15000
triggerall = var(59) != 1
triggerall = command = "無式"
triggerall = RoundNo >= 2
triggerall = life <= 250
triggerall = power >= 6000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 1155 && AnimElemtime(1) >= 0 && AnimElemtime(2) < 0 && movecontact
trigger14 = stateno = 1310 && movecontact
trigger15 = stateno = 1350 && movecontact
trigger16 = stateno = 2110 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger17 = stateno = 2111 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger18 = stateno = 2112 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger19 = stateno = 3100 && movecontact
trigger20 = stateno = 12550 && movecontact
trigger21 = stateno = [150,151]
trigger22 = stateno = [140,141]
trigger23 = stateno = [130,131]
trigger24 = stateno = 12500 && movecontact
trigger25 = stateno = 701

[State -1, ]
type = ChangeState
value = 16500
triggerall = var(59) != 1
triggerall = RoundState = 2
triggerall = command = "無式"
trigger1 = PalNo = 6
trigger1 = ctrl
;------------------------------------------------------------------------------
;千弐百弐拾七式・無塵
[State -1, KAMUKURA]
type = ChangeState
value = 16500
triggerall = var(59) != 1
triggerall = command = "千弐百弐拾七式・無塵"
triggerall = life <= 500
triggerall = power >= 4000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 3100 && movecontact
trigger3 = stateno = 701

[State -1, ]
type = ChangeState
value = 16500
triggerall = var(59) != 1
triggerall = RoundState = 2
triggerall = command = "千弐百弐拾七式・無塵"
trigger1 = PalNo = 6
trigger1 = ctrl
;------------------------------------------------------------------------------
;"秘奥義・裏百八式・大蛇薙"
[State -1, OROCHI]
type = ChangeState
value = 13400
triggerall = var(59) != 1
triggerall = command = "秘奥義・裏百八式・大蛇薙"
triggerall = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 1155 && AnimElemtime(1) >= 0 && AnimElemtime(2) < 0 && movecontact
trigger14 = stateno = 1310 && movecontact
trigger15 = stateno = 1350 && movecontact
trigger16 = stateno = 2110 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger17 = stateno = 2111 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger18 = stateno = 2112 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger19 = stateno = 12500 && movecontact
trigger20 = stateno = 12550 && movecontact
trigger21 = stateno = 701

;------------------------------------------------------------------------------
;伍百弐拾四式・神塵
[State -1, KAMUKURA]
type = ChangeState
value = 3000
triggerall = var(59) != 1
triggerall = command = "伍百弐拾四式・神塵"
triggerall = power >= 2000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 1155 && AnimElemtime(1) >= 0 && AnimElemtime(2) < 0 && movecontact
trigger14 = stateno = 1310 && movecontact
trigger15 = stateno = 1350 && movecontact
trigger16 = stateno = 2110 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger17 = stateno = 2111 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger18 = stateno = 2112 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger19 = stateno = 701

;------------------------------------------------------------------------------
;無式・壱之段
[State -1, MUSHIKI]
type = ChangeState
value = 3100
triggerall = var(59) != 1
triggerall = command = "無式・壱之段"
triggerall = power >= 2000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 1155 && AnimElemtime(1) >= 0 && AnimElemtime(2) < 0 && movecontact
trigger14 = stateno = 1310 && movecontact
trigger15 = stateno = 1350 && movecontact
trigger16 = stateno = 2110 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger17 = stateno = 2111 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger18 = stateno = 2112 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger19 = stateno = 12500 && movecontact
trigger20 = stateno = 12550 && movecontact
trigger21 = stateno = [150,151]
trigger22 = stateno = [140,141]
trigger23 = stateno = [130,131]
trigger24 = stateno = 701

;------------------------------------------------------------------------------
;裏百八式・大蛇薙
[State -1, OROCHI]
type = ChangeState
value = 2000
triggerall = var(59) != 1
triggerall = command = "裏百八式・大蛇薙"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 1155 && AnimElemtime(1) >= 0 && AnimElemtime(2) < 0 && movecontact
trigger14 = stateno = 1310 && movecontact
trigger15 = stateno = 1350 && movecontact
trigger16 = stateno = 2110 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger17 = stateno = 2111 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger18 = stateno = 2112 && AnimElemtime(7) >= 0 && AnimElemtime(11) < 0 && movecontact
trigger19 = stateno = 12500 && movecontact
trigger20 = stateno = 12550 && movecontact
trigger21 = stateno = 701

;------------------------------------------------------------------------------
;百八拾弐式
[State -1, 182]
type = ChangeState
value = 2100
triggerall = var(59) != 1
triggerall = command = "百八拾弐式"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 1155 && AnimElemtime(1) >= 0 && AnimElemtime(2) < 0 && movecontact
trigger14 = stateno = 1310 && movecontact
trigger15 = stateno = 1350 && movecontact
trigger16 = stateno = 12500 && movecontact
trigger17 = stateno = 12550 && movecontact
trigger18 = stateno = 701
;------------------------------------------------------------------------------
;ストライカーアテナ
[State -1, 182]
type = ChangeState
value = 13499
triggerall = var(59) != 1
triggerall = var(40) = 0 
triggerall = command = "ストライカーアテナ"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 701

;ストライカー庵
[State -1, 182]
type = ChangeState
value = 13999
triggerall = var(59) != 1
triggerall = var(41) = 0 
triggerall = command = "ストライカー庵"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 701

;クローン京
[State -1, 182]
type = ChangeState
value = 16490
triggerall = var(59) != 1
triggerall = var(42) = 0 
triggerall = command = "ストライカークローン京"
triggerall = power >= 1000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 701

;クローン京ズ
[State -1, 182]
type = ChangeState
value = 15490
triggerall = var(59) != 1
triggerall = command = "クローン京ズ"
triggerall = GameTime <= 600
triggerall = life <= 300 
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 701
trigger3 = stateno = [150,151]
trigger4 = stateno = [140,141]
trigger5 = stateno = [130,131]
trigger6 = stateno = [5000,5200]

[State -1, ]
type = ChangeState
value = 15490
triggerall = var(59) != 1
triggerall = RoundState = 2
triggerall = command = "クローン京ズ"
trigger1 = PalNo = 6
trigger1 = ctrl
;------------------------------------------------------------------------------
;弱独楽屠り
[State -1, L RED]
type = ChangeState
value = 1800
triggerall = var(59) != 1
triggerall = command = "弱独楽屠り"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 1605 && movecontact
trigger13 = var(33)!= 0
trigger14 = stateno = 1700 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 12500 && movecontact
trigger16 = stateno = 12550 && movecontact

;強独楽屠り
[State -1, S RED]
type = ChangeState
value = 1850
triggerall = var(59) != 1
triggerall = command = "強独楽屠り"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 1605 && movecontact
trigger13 = var(33)!= 0
trigger14 = stateno = 1700 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 12500 && movecontact
trigger16 = stateno = 12550 && movecontact

;------------------------------------------------------------------------------
;弱百式・鬼焼き
[State -1, L ONIYAKI]
type = ChangeState
value = 1100
triggerall = var(59) != 1
triggerall = command = "弱百式・鬼焼き"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 320 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701

;強百式・鬼焼き
[State -1, S ONIYAKI]
type = ChangeState
value = 1150
triggerall = var(59) != 1
triggerall = command = "強百式・鬼焼き"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 320 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;"七百八十五式・影踏み"
[State -1, ]
type = ChangeState
value = 101000
triggerall = var(59) != 1
triggerall = power >= 500
triggerall = command = "七百八十五式・影踏み"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 320 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701


;"百八式・闇払い改"
[State -1, ]
type = ChangeState
value = 100090
triggerall = var(59) != 1
triggerall = command = "百八式・闇払い改"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 320 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 1620 && movecontact
trigger17 = stateno = 701

;"裏四百弐拾七式・餓柱"
[State -1, ]
type = ChangeState
value = 102100
triggerall = var(59) != 1
triggerall = command = "裏四百弐拾七式・餓柱"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 320 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 1620 && movecontact
trigger17 = stateno = 701


;"六百弐拾四式・阿炎Ａ"
[State -1,]
type = ChangeState
value = 100400
triggerall = var(59) != 1
triggerall = command = "六百弐拾四式・阿炎Ａ"
triggerall = statetype != A
triggerall = p2stateno != [5000,5100]
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 320 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 1620 && movecontact


;"六百弐拾四式・阿炎Ａ"
[State -1, ]
type = ChangeState
value = 100410
triggerall = var(59) != 1
triggerall = command = "六百弐拾四式・阿炎Ｂ"
triggerall = statetype != A
triggerall = p2stateno != [5000,5100]
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 320 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 1620 && movecontact


;"六百拾五式・追撃ち （弱） "
[State -1, ]
type = ChangeState
value = 102500
triggerall = var(59) != 1
triggerall = command = "百拾四式・荒咬み" 
trigger1 = statetype = A
trigger1 = movetype != A
trigger1 = ctrl
trigger2 = stateno = 1105 && movecontact
trigger3 = stateno = 1155 && movecontact
trigger4 = stateno = 1500 && movecontact
trigger5 = stateno = 1550 && movecontact
trigger6 = stateno = 1730 && movecontact


;"六百拾五式・追撃ち （強）"
[State -1, ]
type = ChangeState
value = 102550
triggerall = var(59) != 1
triggerall = command = "百拾五式・毒咬み"
trigger1 = statetype = A
trigger1 = movetype != A
trigger1 = ctrl
trigger2 = stateno = 1105 && movecontact
trigger3 = stateno = 1155 && movecontact
trigger4 = stateno = 1500 && movecontact
trigger5 = stateno = 1550 && movecontact
trigger6 = stateno = 1730 && movecontact


;六百六拾壱式・虚空Ａ
[State -1, ]
type = ChangeState
value = 101900
triggerall = var(59) != 1
triggerall = command = "六百六拾壱式・虚空Ａ"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 320 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701


;六百六拾壱式・虚空Ｂ
[State -1, ]
type = ChangeState
value = 101910
triggerall = var(59) != 1
triggerall = command = "六百六拾壱式・虚空Ｂ"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 320 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701
;------------------------------------------------------------------------------
;弱空中独楽屠り
[State -1, L ARED]
type = ChangeState
value = 1500
triggerall = var(59) != 1
triggerall = command = "弱空中独楽屠り"
triggerall = statetype = A
triggerall = Pos Y < -20
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 635 && movecontact
trigger6 = stateno = 640 && movecontact
trigger7 = stateno = 645 && movecontact
trigger8 = stateno = 650 && movecontact
trigger9 = stateno = 1105 && movecontact
trigger10 = stateno = 1155 && movecontact
trigger11 = stateno = 1730 && movecontact
trigger12 = stateno = 701

;強空中独楽屠り
[State -1, S ARED]
type = ChangeState
value = 1550
triggerall = var(59) != 1
triggerall = command = "強空中独楽屠り"
triggerall = statetype = A
triggerall = Pos Y < -20
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 635 && movecontact
trigger6 = stateno = 640 && movecontact
trigger7 = stateno = 645 && movecontact
trigger8 = stateno = 650 && movecontact
trigger9 = stateno = 1105 && movecontact
trigger10 = stateno = 1155 && movecontact
trigger11 = stateno = 1730 && movecontact
trigger12 = stateno = 701

;------------------------------------------------------------------------------
;弱四百弐拾七式・轢鉄
[State -1, L HIKIGANE]
type = ChangeState
value = 1300
triggerall = var(59) != 1
triggerall = command = "弱四百弐拾七式・轢鉄"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 1605 && movecontact
trigger13 = var(33)!= 0
trigger14 = stateno = 1700 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 701
trigger16 = stateno = 1100 && movecontact
trigger17 = stateno = 1150 && movecontact

;強四百弐拾七式・轢鉄
[State -1, S HIKIGANE]
type = ChangeState
value = 1350
triggerall = var(59) != 1
triggerall = command = "強四百弐拾七式・轢鉄"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 1605 && movecontact
trigger13 = var(33)!= 0
trigger14 = stateno = 1700 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 701
trigger16 = stateno = 1100 && movecontact
trigger17 = stateno = 1150 && movecontact
;------------------------------------------------------------------------------
;弱七拾五式・改
[State -1, L 75]
type = ChangeState
value = 1200
triggerall = var(59) != 1
triggerall = command = "弱七拾五式・改"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 1605 && movecontact
trigger13 = var(33)!= 0
trigger14 = stateno = 1700 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 701

;強七拾五式・改
[State -1, S 75]
type = ChangeState
value = 1250
triggerall = var(59) != 1
triggerall = command = "強七拾五式・改"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 1605 && movecontact
trigger13 = var(33)!= 0
trigger14 = stateno = 1700 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 701

;------------------------------------------------------------------------------
;百拾四式・荒咬み
[State -1, ARAGAMI]
type = ChangeState
value = 1600
triggerall = var(59) != 1
triggerall = command = "百拾四式・荒咬み"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 320 && movecontact
trigger14 = stateno = 1700 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 701

;百拾五式・毒咬み
[State -1, DOKUGAMI]
type = ChangeState
value = 1700
triggerall = var(59) != 1
triggerall = command = "百拾五式・毒咬み"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger13 = stateno = 320 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger14 = var(18) = 0
trigger15 = stateno = 701

;---------------------------------------------------------------------------
;後緊急回避
[State -1, T S]
type = ChangeState
value = 710
triggerall = var(59) != 1
triggerall = command = "recovery" && command = "holdback"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = power >= 1000
trigger2 = stateno = [150,151]

;---------------------------------------------------------------------------
;前緊急回避
[State -1, T S]
type = ChangeState
value = 700
triggerall = var(59) != 1
triggerall = command = "recovery"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = power >= 1000
trigger2 = stateno = [150,151]
trigger3 = stateno = 100

;---------------------------------------------------------------------------
;受身
[State -1, UKEMI]
type = ChangeState
value = 52000
triggerall = command = "recovery"
triggerall = alive = 1
trigger1 = stateno = 5050
trigger1 = pos y > -30
trigger1 = vel y > 0 && vel y < 9

;------------------------------------------------------------------------------
;ふっとばし
[State -1, Throw]
type = ChangeState
value = 300
triggerall = var(59) != 1
triggerall = command = "ふっとばし"
triggerall = statetype = S
triggerall = stateno != 100
trigger1 = ctrl
trigger2 = power >= 1000
trigger2 = stateno = [150,151]
trigger3 = power >= 1000
trigger3 = stateno = [140,141]
trigger4 = stateno = 701

;ふっとばし特殊
[State -1, Throw]
type = ChangeState
value = 299
triggerall = var(59) != 1
triggerall = command = "ふっとばし"
triggerall = statetype = C
triggerall = stateno != 100
trigger1 = power >= 1000
trigger1 = stateno = [150,151]
trigger2 = power >= 1000
trigger2 = stateno = [140,141]

;------------------------------------------------------------------------------
;空中ふっとばし
[State -1, CD]
type = ChangeState
value = 650
triggerall = command = "ふっとばし"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 701

;------------------------------------------------------------------------------
;P投げ
[State -1, Throw]
type = ChangeState
value = 800
triggerall = command = "y"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = statetype = S
triggerall = stateno != 100
trigger1 = p2bodydist X < 15
trigger1 = p2statetype != A && p2movetype != H
trigger1 = ctrl

;------------------------------------------------------------------------------
;K投げ
[State -1, Throw]
type = ChangeState
value = 800
triggerall = command = "b"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = statetype = S
triggerall = stateno != 100
trigger1 = p2bodydist X < 15
trigger1 = p2statetype != A && p2movetype != H
trigger1 = ctrl

;------------------------------------------------------------------------------
;外式・奈落落とし
[State -1, NARAKU]
type = ChangeState
value = 330
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 105
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 635 && movecontact
trigger6 = stateno = 640 && movecontact
trigger7 = stateno = 645 && movecontact
trigger8 = stateno = 701

;------------------------------------------------------------------------------
;八拾八式
[State -1, 88]
type = ChangeState
value = 320
triggerall = var(59) != 1
triggerall = command = "b"
triggerall = command = "holdfwd"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 701

;------------------------------------------------------------------------------
;外式・轟斧　陽
[State -1, GOUHU]
type = ChangeState
value = 310
triggerall = var(59) != 1
triggerall = command = "a"
triggerall = command = "holdfwd"
triggerall = statetype != A
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 701

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

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

;==============================================================================
;近距離立ち弱パンチ
[State -1, Stand Light Punch]
type = ChangeState
value = 205
triggerall = var(59) != 1
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = p2bodydist X < 18
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701

;遠距離立ち弱パンチ
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = var(59) != 1
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701

;近距離立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 215
triggerall = var(59) != 1
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = p2bodydist X < 24
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701

;遠距離立ち強パンチ
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = var(59) != 1
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701

;------------------------------------------------------------------------------
;近距離立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = 235
triggerall = var(59) != 1
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = p2bodydist X < 14
trigger1 = ctrl
trigger2 = stateno = 701

;遠距離立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = var(59) != 1
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701

;近距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 245
triggerall = var(59) != 1
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype = S
triggerall = p2bodydist X < 20
trigger1 = ctrl
trigger2 = stateno = 701

;遠距離立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = var(59) != 1
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701

;------------------------------------------------------------------------------
;挑発
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = var(59) != 1
triggerall = command = "start"
triggerall = var(20) = 0
triggerall = p2statetype != L
triggerall = p2movetype != H
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 701

;------------------------------------------------------------------------------
;しゃがみ弱パンチ
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = var(59) != 1
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701

;しゃがみ強パンチ
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = var(59) != 1
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701
;------------------------------------------------------------------------------
;しゃがみ弱キック
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = var(59) != 1
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 701


;しゃがみ強キック
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = var(59) != 1
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact
trigger3 = stateno = 215 && movecontact
trigger4 = stateno = 235 && movecontact
trigger5 = stateno = 240 && movecontact
trigger6 = stateno = 245 && movecontact
trigger7 = stateno = 400 && movecontact
trigger8 = stateno = 410 && movecontact
trigger9 = stateno = 430 && movecontact
trigger10 = stateno = 440 && movecontact
trigger11 = stateno = 300 && movecontact
trigger12 = stateno = 315 && movecontact
trigger14 = stateno = 1605 && movecontact
trigger14 = var(33)!= 0
trigger15 = stateno = 1700 && movecontact
trigger15 = var(33)!= 0
trigger16 = stateno = 701

;------------------------------------------------------------------------------
;ジャンプ弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
triggerall = stateno != 105
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 635 && movecontact
trigger6 = stateno = 640 && movecontact
trigger7 = stateno = 645 && movecontact
trigger8 = stateno = 701

;ジャンプ強パンチ
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "y"
triggerall = stateno != 105
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = (stateno = 610)  && time > 6
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 635 && movecontact
trigger6 = stateno = 640 && movecontact
trigger7 = stateno = 645 && movecontact
trigger8 = stateno = 701
;------------------------------------------------------------------------------
;垂直ジャンプ弱キック
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
triggerall = stateno != 105
triggerall = vel X = 0
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 635 && movecontact
trigger6 = stateno = 640 && movecontact
trigger7 = stateno = 645 && movecontact
trigger8 = stateno = 701

;斜めジャンプ弱キック
[State -1, Jump Light Kick]
type = ChangeState
value = 635
triggerall = command = "a"
triggerall = stateno != 105
triggerall = vel X != 0
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 635 && movecontact
trigger6 = stateno = 640 && movecontact
trigger7 = stateno = 645 && movecontact
trigger8 = stateno = 701

;垂直ジャンプ強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = command = "b"
triggerall = stateno != 105
triggerall = vel X = 0
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 635 && movecontact
trigger6 = stateno = 640 && movecontact
trigger7 = stateno = 645 && movecontact
trigger8 = stateno = 701

;斜めジャンプ強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 645
triggerall = command = "b"
triggerall = stateno != 105
triggerall = vel X != 0
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 635 && movecontact
trigger6 = stateno = 640 && movecontact
trigger7 = stateno = 645 && movecontact
trigger8 = stateno = 701


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;-------------------------------------------------------------
;クローン京ズ
[State -1,]
type = ChangeState
value = 15490
triggerall = var(59) = 1
trigger1 = PalNo = 6
trigger1 = ctrl

;クローン京ズ
[State -1,]
type = ChangeState
value = 15490
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = GameTime <= 600
triggerall = life <= 300 
triggerall   = Random < 800
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 701
trigger3 = stateno = [150,151]
trigger4 = stateno = [140,141]
trigger5 = stateno = [130,131]
trigger6 = stateno = [5000,5200]

;-------------------------------------------------------------
;最終決戦奥儀・無式
[State -1, ]
type = ChangeState
value = 15000
triggerall = RoundState = 2
triggerall = RoundNo >= 2
triggerall = var(59) = 1
triggerall = life <= 250
triggerall = power >= 6000
Triggerall= statetype != A
triggerall = p2statetype != L
Triggerall = P2BodyDist Y >= -40
Triggerall = P2BodyDist X <= 150
Triggerall = P2Dist X >= 50
trigger1 = ctrl
trigger2 = stateno = [150,151]
trigger3 = stateno = [140,141]
trigger4 = stateno = [130,131]

;-------------------------------------------------------------
;虚空Ａ（死にかけ）
[State -1, ]
type = ChangeState
value  = 11900
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = statetype != A
Triggerall = p2movetype != H
Triggerall = life <= 250
trigger1 = ctrl

;-------------------------------------------------------------
;ダッシュ
[State -1, ]
type = ChangeState
value  = 3013
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = p2movetype != A
triggerall = P2BodyDist Y >= -30
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
Triggerall = life > 500
trigger1 = P2BodyDist X >= 11
trigger1 = ctrl

;-------------------------------------------------------------
;バックステップ
[State -1, Back Step]
type = ChangeState
value = 105
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = p2movetype = A
triggerall = BackEdgeBodyDist > 100
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
trigger1 = life > 750
trigger1 = ctrl

;---------------------------------------------------------------------------
;後緊急回避
[State -1, T S]
type = ChangeState
value = 710
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = p2movetype = A
triggerall = BackEdgeBodyDist > 100
Triggerall = Enemy,NumHelper > var(13) || Enemy,NumProj >= 1
trigger1 = P2BodyDist X > 11
trigger1 = life > 750
trigger1 = ctrl

;---------------------------------------------------------------------------
;前緊急回避
[State -1, T S]
type = ChangeState
value = 700
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = p2movetype = A
Triggerall = Enemy,NumHelper > var(13) || Enemy,NumProj >= 1
trigger1 = life > 750
trigger1 = P2BodyDist X <= 11
trigger1 = ctrl

;-------------------------------------------------------------
; 虚空Ａ
[State -1, ]
type = ChangeState
value  = 11900
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall != PalNo = 6
triggerall != var(50) >= 6000
Triggerall = p2statetype != L
triggerall = life <= 750
triggerall = ctrl
triggerall = power < 8999
Trigger1 = Random < 100
Trigger1 = P2BodyDist X >= 280
trigger2 = BackEdgeBodyDist < 50
trigger2 = P2BodyDist X <= 100
trigger2 = P2BodyDist Y >= -3
Trigger2 = p2movetype = A

[State -1, ]
type = ChangeState
value  = 11900
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall != var(50) >= 6000
triggerall = life <= 750
triggerall = ctrl
Triggerall = Enemy,NumHelper > var(13) || Enemy,NumProj > 0
Trigger1 = Random < 300
trigger1 = P2BodyDist Y >= -120

[State -1, ]
type = ChangeState
value  = 11900
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = var(59) = 1
triggerall = power < 8999
triggerall = statetype != A
trigger1 = stateno = [701,702]
trigger2 = stateno = [150,152]
trigger3 = stateno = [140,142]
trigger4 = stateno = [130,132]

;-------------------------------------------------------------
;強七拾五式・改
[State -1, ]
type = ChangeState
value = 1250
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = var(59) = 1
triggerall = statetype != A
Triggerall = Enemy,NumHelper > var(13) || Enemy,NumProj > 0
Trigger1 = p2movetype = H
trigger1 = FrontEdgeBodyDist <= 100
trigger1 = P2BodyDist Y <= -70
trigger1 = P2BodyDist Y >= -120
trigger1 = ctrl

;-------------------------------------------------------------
;受身
[State -1, ]
type = ChangeState
value = 52000
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = alive = 1
trigger1 = stateno = 5050
trigger1 = pos y > -30
Trigger1 = Random < 800

;-------------------------------------------------------------
;"六百拾五式・追撃ち （弱）"
[State -1, ]
type = ChangeState
value = 12500
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
trigger1 = stateno = 330 && movecontact
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 610 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 635 && movecontact
trigger6 = stateno = 640 && movecontact
trigger7 = stateno = 645 && movecontact

;-------------------------------------------------------------
;"六百拾五式・追撃ち （強）"
[State -1, ]
type = ChangeState
value = 12550
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
trigger1 = Pos Y < -40
trigger1 = statetype = A
trigger1 = ctrl

;-------------------------------------------------------------
;パワー溜め
[State -1, ]
type = ChangeState
value = 18002
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = power < 9000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = P2BodyDist X >=  141
triggerall = power <= const(data.power)
triggerall = statetype != A
Triggerall = Enemy,NumHelper = 0 || Enemy,NumProj = 0
triggerall = ctrl
trigger1 = p2statetype = L
trigger2 = p2movetype = H

;-------------------------------------------------------------
[State -1, ]
type = ChangeState
value = 701
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = p2MoveType = A
triggerall = Random < 100
triggerall = P2BodyDist X <= 100
triggerall = P2BodyDist Y >= -80
trigger1 = ctrl
trigger2 = stateno = [150,152]
trigger3 = stateno = [140,142]
trigger4 = stateno = [130,132]

;-------------------------------------------------------------
;裏・百式
[State -1, ]
type = ChangeState
value = 13800
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = power >= 1000
triggerall = stateno = [5000,5070]
trigger1 = Random < 10
trigger2 = Random < 11
trigger2 = life <= 800
trigger3 = Random < 12
trigger3 = life <= 600
trigger4 = Random < 13
trigger4 = life <= 400
trigger5 = Random < 14
trigger5 = life <= 200

;-------------------------------------------------------------
;挑発
[State -1, ]
type = ChangeState
value = 195
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = p2statetype != L
triggerall = p2movetype != H
trigger1 = ctrl
Trigger1 = P2BodyDist Y <= -255
trigger1 = Random < 500

;-------------------------------------------------------------
;千弐百弐拾七式・無塵
[State -1, ]
type = ChangeState
value = 16500
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = var(59) = 1
triggerall = life <= 500
triggerall = p2statetype != L
triggerall = p2stateno != [120,159]
triggerall = ctrl
trigger1 = p2movetype = H
trigger1 = p2life <= 400
trigger1 = power >= 4000
trigger2 = power >= 6000

;-------------------------------------------------------------
;神塵
[State -1, ]
type = ChangeState
value = 3000
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = p2stateno != [150,152]
triggerall = p2stateno != [140,142]
triggerall = p2stateno != [130,132]
triggerall = p2stateno != [120,122]
Triggerall = statetype != A
Triggerall = life > 250
triggerall = p2statetype != A
triggerall = p2statetype != L
triggerall = ctrl
Triggerall = P2BodyDist X <= 10
Triggerall = P2Dist X > 0
trigger1 = power >= 4000
trigger2 = power >= 2000
trigger2 = p2life < 250

;------------------------------------------------------------------------------
;ストライカーアテナ
[State -1, ]
type = ChangeState
value = 13499
triggerall = PalNo != 6
triggerall = var(50) < 6000
Triggerall = RoundState = 2
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
triggerall = var(59) = 1
triggerall = var(40) = 0 
triggerall = life <= 400
triggerall = power >= 1000
triggerall = P2BodyDist X >= 100
triggerall   = Random < 800
trigger1 = ctrl
Trigger1= statetype != A
trigger2 = stateno = 701

;-------------------------------------------------------------
;ストライカー庵
;[State -1, ]
type = ChangeState
value = 997
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = var(29) = 0 
triggerall = power >= 3000
triggerall = P2BodyDist X >= 100
triggerall = Random < 70
triggerall = var(50) >= 1000
triggerall = statetype != A
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
trigger1 = ctrl
trigger2 = stateno = 701

;-------------------------------------------------------------
;クローン京
[State -1, ]
type = ChangeState
value = 16490
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = var(42) = 0 
triggerall = power >= 4000
triggerall = P2BodyDist X >= 100
triggerall = Random > 930
triggerall = life <= 600
triggerall = statetype != A
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
trigger1 = ctrl
trigger2 = stateno = 701

;-------------------------------------------------------------
;"回し蹴り"
[State -1, ]
type = ChangeState
value = 250
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = Random < 400
triggerall = p2statetype != A
triggerall = p2movetype != A
triggerall = p2statetype != L
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
Trigger1= statetype != A
Trigger1 = P2BodyDist X >= 20
Trigger1 = P2BodyDist X <= 50
trigger1 = ctrl

;-------------------------------------------------------------
;近距離立ち強キック
[State -1, ]
type = ChangeState
value = 245
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = Random < 300
triggerall = p2statetype != A
triggerall = p2movetype != A
triggerall = p2statetype != L
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
Trigger1= statetype != A
Trigger1 = P2BodyDist X >= 10
Trigger1 = P2BodyDist X <= 20
trigger1 = ctrl

;-------------------------------------------------------------
;"小足"
[State -1, ]
type = ChangeState
value = 430
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = Random < 500
triggerall = p2movetype != A
triggerall = p2statetype != A
triggerall = p2statetype != L
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
Trigger1 = P2BodyDist X <= 10
Trigger1 = P2BodyDist X >= 0
trigger1 = ctrl
Trigger1= statetype != A

;-------------------------------------------------------------
;弱四百弐拾七式・轢鉄
[State -1, S ]
type = ChangeState
value = 1300
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = ctrl
Triggerall = life > 250
triggerall = statetype != A
triggerall = p2statetype != L
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
Trigger1 = P2BodyDist X >= 100
Trigger1 = P2BodyDist X <= 180
Trigger1 = Random > 900
Trigger2 = P2BodyDist X >= 150
Trigger2 = p2movetype = A 
trigger2 = p2statetype != A


;-------------------------------------------------------------
;強独楽屠り
[State -1, ]
type = ChangeState
value = 1850
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = p2statetype != L
triggerall = p2movetype != H
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
triggerall   = Random < 300
Trigger1= statetype != A
Trigger1 = P2BodyDist Y >= -150
Trigger1 = P2BodyDist Y <= -20
Trigger1 = P2BodyDist X >= 120
trigger1 = ctrl

;-------------------------------------------------------------
; 鬼焼き
[State -1,]
type = ChangeState
value  = 1100
triggerall = PalNo != 6
triggerall = var(59) = 1
triggerall = p2statetype != L
triggerall   = Random < 600
Triggerall = P2BodyDist Y >= -150
Triggerall = P2BodyDist Y <= -10
triggerall = ctrl
Triggerall = statetype != A
Trigger1 = P2BodyDist X <= 120
Triggerall = P2Dist X >= 0
Trigger1 = Enemy,NumHelper <= 3 || Enemy,NumProj <= 3


[State -1, ]
type = ChangeState
value  = 1100
triggerall = PalNo != 6
triggerall = var(59) = 1
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = p2statetype != L
triggerall = p2movetype != H
triggerall = Random < 600
Triggerall = P2BodyDist Y >= -150
triggerall = ctrl
Trigger1 = P2BodyDist X <= 60
Triggerall = P2Dist X >= 0
Trigger1 = Enemy,NumHelper > 3 || Enemy,NumProj > 3

;-------------------------------------------------------------
; 六百弐拾四式・阿炎Ａ
[State -1, ]
type = ChangeState
value  = 10400
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = p2statetype != L
triggerall = p2movetype != H
triggerall = P2BodyDist X > 85
triggerall = P2BodyDist X <= 250
triggerall = ctrl
triggerall = statetype != A
trigger1 = p2life > 100
trigger1 = Random < 150
trigger2 = p2life < 99
trigger2 = Random < 30

;-------------------------------------------------------------
;六百弐拾四式・阿炎Ｂ
[State -1, ]
type = ChangeState
value = 10410
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = p2statetype != L
triggerall = p2movetype != H
triggerall = P2BodyDist X <= 85
Triggerall = P2Dist X >= 0
triggerall = statetype != A
trigger1 = ctrl
trigger1 = p2life > 100
trigger1 = Random < 150
trigger2 = p2life < 99
trigger2 = Random < 30
trigger2 = ctrl

;------------------------------------------------------------------------------
;秘奥義・大蛇薙
[State -1, ]
type = ChangeState
value = 13400
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = p2statetype != L
triggerall = statetype != A
Triggerall = P2BodyDist Y >= -80
Triggerall = P2Dist X >= 0
Triggerall = P2BodyDist X <= 160
triggerall = ctrl
trigger1 = power >= 5000
trigger1 = p2life <= 300
trigger1 = Random > 800
Trigger1 = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1

;------------------------------------------------------------------------------
;大蛇薙
[State -1, ]
type = ChangeState
value = 2000
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = p2life <= 500
triggerall   = Random > 100
triggerall = p2statetype != L
triggerall = p2movetype != A
triggerall = power >= 4000
triggerall = statetype != A
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
Trigger1 = P2BodyDist Y >= -80
Trigger1 = P2Dist X >= 0
Trigger1 = P2BodyDist X <= 160
trigger1 = ctrl

;-------------------------------------------------------------
;無式・壱之段
[State -1, MUSHIKI]
type = ChangeState
value = 3100
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = p2life <= 600
triggerall   = Random < 50
triggerall = power >= 4000
triggerall = p2statetype != L
triggerall = statetype != A
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
Trigger1 = P2BodyDist Y >= -100
Trigger1 = P2Dist X >= 0
Trigger1 = P2BodyDist X <= 150
trigger1 = ctrl

;-------------------------------------------------------------
;"百八式・闇払い改"
[State 1006,2 ]
type = ChangeState
value = 10090
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = var(56) < 2
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = p2statetype != A
triggerall = p2life > 100
triggerall = statetype != A
Triggerall = P2Dist X >= 0
triggerall = ctrl
Trigger1 = P2BodyDist X >= 150
trigger1 = Random > 970
Trigger2 = p2statetype = L
trigger2 = Random > 500
Trigger3 = p2movetype = H
trigger3 = Random > 500

;-------------------------------------------------------------
;"裏四百弐拾七式・餓柱"
[State -1,]
type = ChangeState
value = 12100
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = var(56) < 2
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall   = Random > 950
triggerall = p2statetype != A
triggerall = p2life > 150
triggerall = statetype != A
Trigger1 = P2BodyDist X >= 50
Trigger1 = P2BodyDist X <= 200
trigger1 = ctrl

;-------------------------------------------------------------
;"七百八十五式・影踏み"
[State -1, ]
type = ChangeState
value = 11000
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = var(56) < 2
triggerall = RoundState = 2
triggerall = var(59) = 1
triggerall = p2movetype != H
triggerall = power >= 3000
triggerall   = Random > 500
triggerall   = Random < 600
triggerall = statetype != A
Trigger1 = P2BodyDist X >= 120
trigger1 = ctrl

;-------------------------------------------------------------
;虚空Ａ
[State -1, ]
type = ChangeState
value = 11900
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = FrontEdgeBodyDist >= 100
triggerall = life < 500
Trigger1 = P2BodyDist X <= 30
Trigger1 = P2Dist X >= 0
trigger1 = ctrl

;虚空Ｂ
[State -1, ]
type = ChangeState
value = 11910
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = life < 500
triggerall = BackEdgeBodyDist >= 100
Trigger1 = P2BodyDist X <= 30
Trigger1 = P2Dist X >= 0
trigger1 = ctrl

;-------------------------------------------------------------
[State -1, ダッシュ]
type = ChangeState
value  = 3013
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = P2BodyDist Y >= -30
Triggerall = Enemy,NumHelper <= var(13) || Enemy,NumProj < 1
trigger1 = P2BodyDist X >= 11
trigger1 = ctrl

;---------------------------------------------------------------------------------
;------------------------------------------
;亜神モード
[State -1, デバック用]
type = LifeSet
triggerall = RoundState = [2,3]
trigger1 = PalNo = 6
trigger2 = var(50) >= 6000
value = 9999*9999*9999*9999*9999
ignorehitpause = 1

[State -1, 無敵]
type = NotHitBy
triggerall = RoundState = [2,3]
trigger1 = PalNo = 6
trigger2 = var(50) >= 6000
value = SCA
ignorehitpause = 1

[State -1]
type = SelfState
triggerall = RoundState = [2,3]
triggerall = PalNo = 6
triggerall = stateno != 4498234
trigger1 = stateno >= 21000
value = 0
ctrl = 1
ignorehitpause = 1

[State -1]
type = ReversalDef
trigger1 = PalNo = 6
trigger2 = var(50) >= 6000
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,0
sparkno = s22133
hitsound = s2562,31
p1stateno = 20100
p2facing = 1
p2stateno = 4498234
ignorehitpause = 1

[State -1]
type = HitOverRide
trigger1 = PalNo = 6
trigger2 = var(50) >= 6000
time = 1
attr = SCA,AA,AT,AP
slot = 0
stateno = 1
ignorehitpause = 1

[State -1, 0]
type = SelfState
triggerall = PalNo = 6
triggerall = var(50)-var(48) != 0
trigger1 != ishelper
value = 0
ignorehitpause = 1

[State -1,あ]
type = SelfState
triggerall = name = "HONKI-Kyo"
triggerall = RoundState = [2,3]
triggerall = PalNo = 6
triggerall = stateno != 4498234
trigger1 = stateno >= 21000
value = 0
ctrl = 1
ignorehitpause = 1

[State -1,あ]
type = SelfState
triggerall = RoundState = [2,3]
triggerall = PalNo = 6
triggerall = ishelper
trigger1 = stateno != 186
trigger1 = stateno != 217
trigger1 = stateno != 20099
trigger1 = stateno != [15500,16000]
value = 15500
ignorehitpause = 1

[State -1,あ]
type = SelfState
triggerall = RoundState = [2,3]
triggerall = PalNo = 6
triggerall = ishelper
trigger1 = stateno != 186
trigger1 = stateno != 217
trigger1 = stateno != 20099
trigger1 = stateno != [15500,16000]
value = 15500
ignorehitpause = 1

[State -1, 0]
type = DefenceMulSet
triggerall = name = "HONKI-Kyo"
trigger1 = PalNo = 6
trigger2 = var(50) >= 6000
value = 0

[State -1, 0]
type = SelfState
triggerall = MoveReversed
triggerall = PalNo = 6
trigger1 != ishelper
value = 0
ignorehitpause = 1

[State -1, 0]
type = SelfState
triggerall = MoveReversed
triggerall = PalNo = 6
trigger1 = ishelper
value = 15500
ignorehitpause = 1
;------------------------------------------
;大ダメージ防止
[State -1, ライフ確認]
type = VarSet
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = statetype != L
triggerall = movetype != H
trigger1 = RoundState = [2,3]
trigger1 = alive
v = 22
value = Life   ;Var(22)に自分のライフを保存

[State -1, ライフ確認]
type = VarSet
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = [2,3]
trigger1  = statetype = L
trigger2  = movetype = H
v = 57
value = Life   ;Var(57)に自分のライフを保存

[State -1, 差分セット]
type = VarSet
triggerall = PalNo != 6
triggerall = var(50) < 6000
trigger1 = alive
v = 58
value = Var(22) - Var(57)

[State -1, 差分再配置]
type = LifeSet
triggerall = PalNo != 6
triggerall = var(50) < 6000
triggerall = RoundState = [2,3]
trigger1 = Var(58) > 400
value = Var(22)-400
;------------------------------------------
[State LifeA, -1]
type = lifeadd
trigger1 = PalNo = 6
trigger2 = var(50) >= 6000
ignorehitpause = 1
persistent = 0
value = ceil(Gethitvar(damage)*1)
;------------------------------------------
[State -1, デバック用]
type = AssertSpecial
triggerall = name = "HONKI-Kyo"
trigger1 = PalNo = 6
trigger2 = var(50) >= 6000
flag = NOKO
;------------------------------------------
[State -1, 0]
type = SelfState
triggerall = var(59) = 1
triggerall = PalNo = 6
triggerall = name = "HONKI-Kyo"
triggerall = stateno != 187
triggerall = stateno != 15881
triggerall != ishelper
trigger1 = var(50) > 4000
trigger2 = var(48) > 4000
value = 187
ignorehitpause = 1

