;　　方向キー：　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
;　　　　　　　　　　　　　（下要素を３０フレーム溜めて離した後にＡボタンとＢボタンを同時押しします）
;
[Remap]
x = x ;　格闘
y = y ;　射撃１
z = z ;　射撃２
a = a ;　飛翔
b = b ;　カード送り
c = c ;　カード使用
s = s ;

;-| 標準化 |-------------------------------------------------------
[Defaults]
command.time = 15

command.buffer.time = 1

;━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
;AI起動ヘルパー
;━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[Statedef 10000]
;anim=10000;なにも表示しないｱﾆﾒでもいいけど入れなくても全然問題ない
;ctrl=0

;[State 10000,間違いで本体が来たら立ちへ移行]
;type=selfstate
;trigger1=!ishelper
;value=0

[State 10000,プレイヤー判定]
type=varset
trigger1=command="up"&&root,command="up"
trigger2=command="down"&&root,command="down"
trigger3=command="back"&&root,command="back"
trigger4=command="fwd"&&root,command="fwd"
trigger5=command="a"&&root,command="a"
trigger6=command="b"&&root,command="b"
trigger7=command="c"&&root,command="c"
trigger8=command="x"&&root,command="x"
trigger9=command="y"&&root,command="y"
trigger10=command="z"&&root,command="z"
trigger11=command="start"&&root,command="start"
var(59)=-1

[State 10000,立ったら消失]
Type = DestroySelf
triggerAll = isHelper
Trigger1 = root,var(59)||var(59)=-1
trigger2=command="up"&&root,command="up"
trigger3=command="down"&&root,command="down"
trigger4=command="back"&&root,command="back"
trigger5=command="fwd"&&root,command="fwd"
trigger6=command="a"&&root,command="a"
trigger7=command="b"&&root,command="b"
trigger8=command="c"&&root,command="c"
trigger9=command="x"&&root,command="x"
trigger10=command="y"&&root,command="y"
trigger11=command="z"&&root,command="z"
trigger12=command="start"&&root,command="start"

[State 10000,ﾌﾗｸﾞON]
type=varset
triggerall=var(59)!=-1
trigger1=root,command="up"
trigger2=root,command="down"
trigger3=root,command="back"
trigger4=root,command="fwd"
trigger5=root,command="a"
trigger6=root,command="b"
trigger7=root,command="c"
trigger8=root,command="x"
trigger9=root,command="y"
trigger10=root,command="z"
trigger11=root,command="start"
var(59)=1

;-| CPUアルゴリズム用コマンド |------------------------------
;[Command]
;name = "AI0"
;command = a,U,D,F,F,B,B,D,U,U
;time = 1
;[Command]
;name = "AI1"
;command = b,U,D,F,B,F,B,D,U,D
;time = 1
;[Command]
;name = "AI2"
;command = c,U,D,B,F,B,F,D,U,B
;time = 1
;[Command]
;name = "AI3"
;command = x,U,D,B,F,F,B,D,U,F
;time = 1
;[Command]
;name = "AI4"
;command = y,U,D,F,F,B,B,D,U,a
;time = 1
;[Command]
;name = "AI5"
;command = z,U,D,F,B,F,B,D,U,b
;time = 1
;[Command]
;name = "AI6"
;command = s,U,D,B,F,B,F,D,U,c
;time = 1
;[Command]
;name = "AI7"
;command = b,U,D,B,F,F,B,D,U,x
;time = 1
;[Command]
;name = "AI8"
;command = c,U,D,F,B,F,B,D,U,y
;time = 1
;[Command]
;name = "AI9"
;command = y,U,D,B,F,B,F,D,U,z
;time = 1
;[Command]
;name = "AI10"
;command = z,U,D,B,F,F,B,D,U,s
;time = 1
;[Command]
;name = "AI11"
;command = U,D,F,F,B,B,D,U,a+x
;time = 1
;[Command]
;name = "AI12"
;command = U,D,F,B,F,B,D,U,b+y
;time = 1
;[Command]
;name = "AI13"
;command = U,D,B,F,B,F,D,U,c+z
;time = 1
;[Command]
;name = "AI14"
;command = U,D,s,B,F,F,B,s,D,U
;time = 1
;[Command]
;name = "AI15"
;command = a,U,D,F,F,B,B,D,U,U,s
;time = 1
;[Command]
;name = "AI16"
;command = b,U,D,F,B,F,B,D,U,D,s
;time = 1
;[Command]
;name = "AI17"
;command = c,U,D,B,F,B,F,D,U,B,s
;time = 1
;[Command]
;name = "AI18"
;command = x,U,D,B,F,F,B,D,U,F,s
;time = 1
;[Command]
;name = "AI19"
;command = y,U,D,F,F,B,B,D,U,a,s
;time = 1
;[Command]
;name = "AI20"
;command = z,U,D,F,B,F,B,D,U,b,s
;time = 1
;[Command]
;name = "AI21"
;command = s,U,D,B,F,B,F,D,U,c,s
;time = 1
;[Command]
;name = "AI22"
;command = b,U,D,B,F,F,B,D,U,x,s
;time = 1
;[Command]
;name = "AI23"
;command = c,U,D,F,B,F,B,D,U,y,s
;time = 1
;[Command]
;name = "AI24"
;command = y,U,D,B,F,B,F,D,U,z,s
;time = 1
;[Command]
;name = "AI25"
;command = z,U,D,B,F,F,B,D,U,s,z
;time = 1
;[Command]
;name = "AI26"
;command = U,D,F,F,B,B,D,U,a+x,s
;time = 1
;[Command]
;name = "AI27"
;command = U,D,F,B,F,B,D,U,b+y,s
;time = 1
;[Command]
;name = "AI28"
;command = U,D,B,F,B,F,D,U,c+z,s
;time = 1
;[Command]
;name = "AI29"
;command = U,D,s,B,F,F,B,s,D,U,z
;time = 1

[Command]
name = "AI0"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI1"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI2"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI3"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI4"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI5"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI6"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI7"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI8"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI9"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI10"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI11"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI12"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI13"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI14"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI15"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI16"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI17"
command = a,B,c,x,y,z,s,B,D,F,U,a,b,c,x,y,z,s,s
time = 0
[Command]
name = "AI18"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI19"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 0
[Command]
name = "AI20"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI21"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI22"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI23"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI24"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI25"
command = F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F,F
time = 0
[Command]
name = "AI26"
command = D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D
time = 0
[Command]
name = "AI27"
command = B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B,B
time = 0
[Command]
name = "AI28"
command = U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U,U
time = 0
[Command]
name = "AI29"
command = a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a
time = 0
[Command]
name = "AI30"
command = c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c
time = 0
[Command]
name = "AI31"
command = x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x
time = 0
[Command]
name = "AI32"
command = y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y,y
time = 0
[Command]
name = "AI33"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI34"
command = s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,s
time = 0
[Command]
name = "AI35"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI36"
command = z,z,z,z,z,z,a,a,a,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI37"
command = z,a,a,a,a,a,a,a,a,a,a,a,a,a,a,a,z,z,z
time = 0
[Command]
name = "AI38"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z
time = 0
[Command]
name = "AI39"
command = z,z,z,z,z,a,a,a,z,z,z,z,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI40"
command = z,z,z,z,a,a,a,z,z,z,z,a,z,z,a,a,z,z,z
time = 0
[Command]
name = "AI41"
command = z,z,z,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z,z
time = 0
[Command]
name = "AI42"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI43"
command = z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,a,a,z
time = 0
[Command]
name = "AI44"
command = z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,a,a,a,z
time = 0
[Command]
name = "AI45"
command = z,z,z,z,z,z,a,a,z,z,z,z,z,a,a,a,a,z,z
time = 0
[Command]
name = "AI46"
command = z,z,z,z,z,z,z,z,a,a,a,a,a,a,z,z,z,z,z
time = 0
[Command]
name = "AI47"
command = z,z,z,a,a,a,a,z,z,z,z,z,z,z,z,z,z,z,z
time = 0
[Command]
name = "AI48"
command = z,z,z,z,z,a,a,a,z,z,z,a,a,a,z,z,a,z,a
time = 0
[Command]
name = "AI49"
command = z,z,z,z,a,a,a,z,z,z,z,z,a,a,a,z,z,z,z
time = 0
[Command]
name = "AI50"
command = z,z,z,a,a,z,z,z,z,z,z,z,z,z,a,a,z,z,z
time = 0

;＝　スペルカード　＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
[Command]
Name = "card"
Command = c
Time = 15

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

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

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

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

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

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

[Command]
name = "236_xy"
command = ~$D, F, x+y

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

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

[Command]
name = "214_xy"
command = ~$D, B, x+y

[Command]
name = "214_a"
command = ~$D, F, a

[Command]
name = "214_b"
command = ~$D, F, 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 = "jump"    
command = ~$D,$U
time = 8

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

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

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

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

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

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


;-| 方向キー＋ボタン |---------------------------------------------------------
[Command]
name = "down_x"
command = /$D,x
time = 1

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

[Command]
name = "fwd_x"
command = /$F,x
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 = "holda"
Command = /a
Time = 1

[Command]
Name = "holdb"
Command = /b
Time = 1

[Command]
Name = "holdc"
Command = /c
Time = 1

[Command]
Name = "holdx"
Command = /x

[Command]
Name = "holdy"
Command = /y

[Command]
Name = "holdz"
Command = /z

[Command]
Name = "holdstart"
Command = /s
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

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

[state -1,AI]
type = varset 
triggerall = !var(59)
triggerall = RoundState = [1,2] 
trigger1 = Command = "AI0"
trigger2 = Command = "AI1"
trigger3 = Command = "AI2"
trigger4 = Command = "AI3"
trigger5 = Command = "AI4"
trigger6 = Command = "AI5"
trigger7 = Command = "AI6"
trigger8 = Command = "AI7"
trigger9 = Command = "AI8"
trigger10 = Command = "AI9"
trigger11 = Command = "AI10"
trigger12 = Command = "AI11"
trigger13 = Command = "AI12"
trigger14 = Command = "AI13"
trigger15 = Command = "AI14"
trigger16 = Command = "AI15"
trigger17 = Command = "AI16"
trigger18 = Command = "AI17"
trigger19 = Command = "AI18"
trigger20 = Command = "AI19"
trigger21 = Command = "AI20"
trigger22 = Command = "AI21"
trigger23 = Command = "AI22"
trigger24 = Command = "AI23"
trigger25 = Command = "AI24"
trigger26 = Command = "AI25"
trigger27 = Command = "AI26"
trigger28 = Command = "AI27"
trigger29 = Command = "AI28"
trigger30 = Command = "AI29"
trigger31 = Command = "AI30"
trigger32 = Command = "AI31"
trigger33 = Command = "AI32"
trigger34 = Command = "AI33"
trigger35 = Command = "AI34"
trigger36 = Command = "AI35"
trigger37 = Command = "AI36"
trigger38 = Command = "AI37"
trigger39 = Command = "AI38"
trigger40 = Command = "AI39"
trigger41 = Command = "AI40"
trigger42 = Command = "AI41"
trigger43 = Command = "AI42"
trigger44 = Command = "AI43"
trigger45 = Command = "AI44"
trigger46 = Command = "AI45"
trigger47 = Command = "AI46"
trigger48 = Command = "AI47"
trigger49 = Command = "AI48"
trigger50 = Command = "AI49"
trigger51 = Command = "AI50"
trigger52 = Helper(10000),var(59)
var(59) = 10
fvar(39) = 10

;難題「蓬莱の弾の枝　-虹色の弾幕-」
[State -1, Counter]
type = ChangeState
value = 3500
triggerall = var(59) = 0
triggerall = Command = "card"
;triggerall = power >= 5000
triggerall = power >= 3000
trigger1 = statetype = A
Trigger1 = Ctrl
Trigger1 = var(17) = 11



;難題「燕の子安貝　-永命線-」
[State -1, Counter]
type = ChangeState
value = 3300
triggerall = var(59) = 0
triggerall = Command = "card"
triggerall = power >= 3000
trigger1 = statetype = S
Trigger1 = Ctrl
Trigger1 = var(17) = 10

;難題「火鼠の皮衣　-焦れぬ心-」
[State -1, Counter]
type = ChangeState
value = 3200
triggerall = var(59) = 0
triggerall = Command = "card"
triggerall = power >= 2000
trigger1 = statetype = S
Trigger1 = Ctrl
Trigger1 = var(17) = 9
;trigger2 = stateno = [150,153]
;trigger2 = p2dist x = [0,80]
Trigger2 = StateType != A
Trigger2 = var(17) = 9

;難題「仏の御石の鉢　-砕けぬ意志-」
[State -1, Counter]
type = ChangeState
value = 3100
triggerall = var(59) = 0
triggerall = Command = "card"
triggerall = power >= 2000
trigger1 = statetype = A
Trigger1 = Ctrl
Trigger1 = var(17) = 8

;難題「龍の頸の玉　-五色の弾丸-」
[State -1, Counter]
type = ChangeState
value =3000
triggerall = var(59) = 0
triggerall = Command = "card"
triggerall = power >= 1000
trigger1 = statetype = S
Trigger1 = Ctrl
Trigger1 = var(17) = 7

;カード宣言
;------------------------------------------------------------------------------
;天候変化
[State -1, Counter]
type = ChangeState
value = 930
triggerall = var(59) = 0
triggerall = Command = "card"
triggerall = power >= 1000
Triggerall = StateType != A
Triggerall = Ctrl
Trigger1 = var(17) = 1

[State -1];霊撃
Type       = ChangeState
Value      = 910
triggerall = var(59) = 0
Triggerall = Command = "card"
Triggerall = StateType = S
triggerall = statetype != A
Triggerall = power >= 1000
Triggerall = Ctrl
Trigger1 = var(17) = 2

;ガードキャンセルカウンター
;[State -1, Counter]
[State -3, ガードキャンセルカウンター]
type = ChangeState
value = 920
triggerall = var(59) = 0
triggerall = Command = "card"
triggerall = power >= 1000
Triggerall = StateType != A
trigger1 = stateno = [150,153]
trigger1 = p2dist x = [0,80]
Trigger1 = var(17) = 3

;符力うｐ
[State -1, Counter]
type = ChangeState
value = 940
triggerall = var(59) = 0
triggerall = Command = "card"
triggerall = power >= 1000
Triggerall = StateType != A
Triggerall = StateType = S
Triggerall = Ctrl
Trigger1 = var(17) = [4,6]

;------------------------------------------------------------------------------
;ダッシュ
[State -1, Dash]
type = ChangeState
value = 100
triggerall = var(59) = 0
triggerall = statetype = S
trigger1 = command = "FF"
trigger1 = ctrl && StateNo != 101 && StateNo != 10
trigger2 = command = "holdfwd"
trigger2 = command = "holda"
trigger2 = ctrl && StateNo != 101 && StateNo != 10
trigger2 = time > 7
trigger3 = command = "FF"
trigger3 = stateno = 105
trigger3 = time > 7
trigger4 = command = "holdfwd"
trigger4 = command = "holda"
trigger4 = stateno = 105
trigger4 = time > 7     

;バックステップ
[State -1, Back Step]
type = ChangeState
value = 105
triggerall = var(59) = 0
triggerall = statetype = S
trigger1 = command = "BB"
trigger1 = ctrl
trigger2 = command = "holdback"
trigger2 = command = "holda"
trigger2 = ctrl
trigger3 = command = "BB"
trigger3 = stateno = 100
trigger3 = time > 7 
trigger4 = command = "holdback"
trigger4 = command = "holda"
trigger4 = stateno = 100
trigger4 = time > 7 

;空中ダッシュ
[State -1, airdashF]
type = ChangeState
value = 103
triggerall = var(59) = 0
triggerall = command = "FF"
triggerall = statetype = A
triggerall = stateno != 105
triggerall = var(4) != 0    ;ダッシュ残数が0の時はできない
triggerall = ctrl
triggerall = vel Y = [-9,9] ;高速落下時ダッシュ不可
trigger1 = stateno != 103   ;空中前ダッシュ中不可
trigger1 = stateno != 108   ;空中後ろダッシュ中不可
trigger2 = stateno = 103
trigger2 = time > 14        ;空中前ダッシュ中でも指定時間が経過すれば可
trigger3 = stateno = 108
trigger3 = time > 14        ;空中後ろダッシュ中でも指定時間が経過すれば可

[State -1, airdashB]
type = ChangeState
value = 108
triggerall = var(59) = 0
triggerall = command = "BB"
triggerall = statetype = A
triggerall = stateno != 105
triggerall = var(4) != 0
triggerall = ctrl
triggerall = vel Y = [-10,10]
triggerall = var(57) = 0
trigger1 = stateno != 103
trigger1 = stateno != 108
trigger2 = stateno = 103
trigger2 = time > 14
trigger3 = stateno = 108
trigger3 = time > 14

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

;射撃２ue
[State -1]
type = null;ChangeState
value = 320
triggerall = var(59) = 0
triggerall = command = "holdfwd"
triggerall = command = "z"
Triggerall = var(50) >= 25
trigger1 = statetype = S
trigger1 = ctrl


;射撃２
[State -1]
type = ChangeState
value = 310
triggerall = var(59) = 0
triggerall = command = "z"
Triggerall = var(50) >= 25
trigger1 = statetype = S
trigger1 = ctrl


;射撃１
[State -1]
type = ChangeState
value = 300
triggerall = var(59) = 0
triggerall = command = "y"
Triggerall = var(50) >= 25
trigger1 = statetype = S
trigger1 = ctrl

;屈射撃1
[State -1, Crouching Light Kick]
type = ChangeState
value = 410
triggerall = var(59) = 0
triggerall = command = "y"
triggerall = command = "holddown"
Triggerall = var(50) >= 25
trigger1 = statetype = C
trigger1 = ctrl

;屈射撃2
[State -1, Crouching Light Kick]
type = ChangeState
value = 420
triggerall = var(59) = 0
triggerall = command = "holdz"
triggerall = command = "holddown"
Triggerall = var(50) >= 25
trigger1 = statetype = C
trigger1 = ctrl

;------------------------------------------------------------------------------
;特殊格闘
[State -1]
type = null;ChangeState
value = 240
triggerall = var(59) = 0
triggerAll = Command = "holdfwd"
triggerall = command = "x"
triggerAll = StateType != A
trigger1 = ctrl


;格闘４段目
[State -1]
type = ChangeState
value = 230
triggerall = command = "x"
triggerAll = StateType != A
Trigger1   = StateNo = 220 
Trigger1   = MoveContACT


;格闘３段目
[State -1]
type = ChangeState
value = 220
triggerall = command = "x"
triggerAll = StateType != A
Trigger1   = StateNo = 210 
Trigger1   = MoveContACT


;格闘２段目
[State -1]
type = ChangeState
value = 210
triggerall = command = "x"
triggerAll = StateType != A
Trigger1   = StateNo = 200 
Trigger1   = MoveContACT


;格闘１段目
[State -1]
type = ChangeState
value = 200
triggerall = statetype = S
triggerall = command = "x"
triggerall = command != "holddown"
triggerAll = Command != "holdfwd"
triggerAll = StateType != A
trigger1 = var(57) = 0     ;人間用
trigger1 = ctrl
;trigger2   = StateNo = 100 
;------------------------------------------------------------------------------
;屈格闘
[State -1, Crouching Light Kick]
type = ChangeState
value = 400
triggerall = var(59) = 0
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;------------------------------------------------------------------------------
;空中強パンチ
[State -1, Jump Strong Punch]
type = ChangeState
value = 640
triggerall = var(59) = 0
triggerall = command = "fwd_x"
triggerall = stateno != 105
triggerall = var(57) = 0   ;以下は一度攻撃したら行動不能になるため制御する
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 
trigger2 = movecontact

;空中強パンチ
[State -1, Jump Strong Punch]
type = ChangeState
value = 630
triggerall = var(59) = 0
triggerall = command = "down_x"
triggerall = stateno != 105
triggerall = var(57) = 0   ;以下は一度攻撃したら行動不能になるため制御する
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 
trigger2 = movecontact

;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = var(59) = 0
triggerall = command = "x"
triggerall = stateno != 105  ;バックステップ中は禁止
;triggerall = var(57) = 0   ;連打できるため比較的安全なので制御しない
trigger1 = statetype = A
trigger1 = ctrl



;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 610
triggerall = var(59) = 0
triggerall = command = "y"
triggerall = stateno != 105  ;バックステップ中は禁止
;triggerall = var(57) = 0   ;連打できるため比較的安全なので制御しない
Triggerall = var(50) >= 25
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 
trigger2 = movecontact


;空中強パンチ
[State -1, Jump Strong Punch]
type = ChangeState
value = 620
triggerall = var(59) = 0
triggerall = command = "z"
triggerall = stateno != 105
Triggerall = var(50) >= 25
triggerall = var(57) = 0   ;以下は一度攻撃したら行動不能になるため制御する
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600 
trigger2 = movecontact




;------------------------------------------------------------------------------
;飛翔
[State -1]
Type       = ChangeState
Value      = 700
triggerall = var(59) = 0
TriggerAll = Command = "holda"  
TriggerAll = Command = "holdup" 
triggerall = var(4) != 0 
TriggerAll = StateType = A && Pos Y <= -50
Triggerall = var(50) >= 2
Trigger1   = Ctrl

[State -1]
Type       = ChangeState
Value      = 701
triggerall = var(59) = 0
TriggerAll = Command = "holda"  
TriggerAll = Command = "holdfwd" 
TriggerAll = Command = "holdup"
triggerall = var(4) != 0 
TriggerAll = StateType = A && Pos Y <= -50
Triggerall = var(50) >= 2
Trigger1   = Ctrl

[State -1]
Type       = ChangeState
Value      = 702
triggerall = var(59) = 0
TriggerAll = Command = "holda"  
TriggerAll = Command = "holdfwd" 
triggerall = var(4) != 0 
TriggerAll = StateType = A && Pos Y <= -50
Triggerall = var(50) >= 2
Trigger1   = Ctrl

[State -1]
Type       = ChangeState
Value      = 703
triggerall = var(59) = 0
TriggerAll = Command = "holda"  
TriggerAll = Command = "holdfwd" 
TriggerAll = Command = "holddown" 
triggerall = var(4) != 0 
TriggerAll = StateType = A && Pos Y <= -50
Triggerall = var(50) >= 2
Trigger1   = Ctrl

[State -1]
Type       = ChangeState
Value      = 704
triggerall = var(59) = 0
TriggerAll = Command = "holda"  
TriggerAll = Command = "holddown" 
triggerall = var(4) != 0 
TriggerAll = StateType = A && Pos Y <= -50
Triggerall = var(50) >= 2
Trigger1   = Ctrl

[State -1]
Type       = ChangeState
Value      = 705
triggerall = var(59) = 0
TriggerAll = Command = "holda"  
TriggerAll = Command = "holdback" 
TriggerAll = Command = "holddown" 
triggerall = var(4) != 0 
TriggerAll = StateType = A && Pos Y <= -50
Triggerall = var(50) >= 2
Trigger1   = Ctrl

[State -1]
Type       = ChangeState
Value      = 706
triggerall = var(59) = 0
TriggerAll = Command = "holda"  
TriggerAll = Command = "holdback" 
triggerall = var(4) != 0 
TriggerAll = StateType = A && Pos Y <= -50
Triggerall = var(50) >= 2
Trigger1   = Ctrl

[State -1]
Type       = ChangeState
Value      = 707
triggerall = var(59) = 0
TriggerAll = Command = "holda"  
TriggerAll = Command = "holdback" 
TriggerAll = Command = "holdup"
triggerall = var(4) != 0 
TriggerAll = StateType = A && Pos Y <= -50
Triggerall = var(50) >= 2
Trigger1   = Ctrl

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