;-| ボタンリマップ（ボタンコンフィグ）|---------------------------------------- 第１部

[Remap]
x = x      ;Ｘボタンの入力判定を実際に押すボタンに割り当てる。
y = y      ;Ｙボタン　　　　　　　　　〃
z = z      ;Ｚボタン　　　　　　　　　〃
a = a      ;Ａボタン　　　　　　　　　〃
b = b      ;Ｂボタン　　　　　　　　　〃
c = c      ;Ｃボタン　　　　　　　　　〃
s = s      ;スタートボタン　　　　　　〃

;------------------------------------------------------------------------------
; 例えば「本来Ｘボタンで出す弱パンチをＢボタンに変えたい場合」なら、
;
; x = b
;
; で簡単に出来る。使わないボタンを使っているボタンに割り当てる事も可能。

;==========================================================================
;コマンド関連ファイル
;0805現在　AI以外のコマンド数約40
;==========================================================================
[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 = "fwd"
command = F
time = 1
[command]
name = "back"
command = B
time = 1
[command]
name= "up"
command  =U
time = 1
[command]
name = "start"
command = s
time = 1
[command]
name = "down"
command = D
time = 1
[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,a,z,z,z,z,z,z,z,z,z,a,a,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 = "AI51"
command = z,z,z,a,a,z,z,z,z,a,z,z,z,z,a,a,z,z,z
time = 0
;-----超必殺-----------------------------------------------------------------
[Command]
name = "狂いの落葉"
;command = z
command = D, F,D, F, a
time = 35

[Command]
name = "狂いの落葉L"
;command = z
command = D, F,D, F, a+c
time = 35

[Command]
name = "嵐といふらむ"
command = D, F,D, F, b
time = 35

[Command]
name = "神のまにまにa"
command = F, D, B, F, a
;command = y
time = 35

[Command]
name = "神のまにまにb"
command = F, D, B, F, b
;command = y

time = 35

[Command]
name = "からくれなゐ"
command = a+b+c
time = 10
;------------------------------------------------------------
[Command]
name = "雁行"
command = D, DF, F, a
time = 30

[Command]
name = "雁行b"
command = D, DF, F, b
time = 30

[Command]
name = "千秋楽"
command = a+b
;command = y
time = 30

[Command]
name = "晴鶴"
command = F, D, DF, a
;command = y
time = 30

[Command]
name = "晴鶴b"
command = F, D, DF, b
time = 30

[Command]
name = "群燕"
command = D, DB, B, a
time = 30

[Command]
name = "群燕b"
command = D, DB, B, b
;command = y
time = 30

[Command]
name = "白楊"
command = B, D, DB, b
;command = y
time = 30

[Command]
name = "秋光"
command = D, DB, B, c
;command = y
time = 30

[Command]
name = "散り紅葉・弧"
command = F, D, DF, c
time = 30

[Command]
name = "散り紅葉・直"
command = D, DF, F, c
time = 30

[Command]
name = "コマンドダッシュ前"
command = /z,F
time = 1

[Command]
name = "コマンドダッシュ後ろ"
command = /z,B
time = 1

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF";Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB2"
command = /x, B, B
time = 10

[Command]
name = "BB";Required (do not remove)
command = B, B
time = 10

[Command]
name = "high jump"
command = D, U
time = 30

[Command]
name = "紅葉陣"
command = D, D, b
time = 40

[Command]
name = "白秋"
command = D, D, a
time = 40

[Command]
name = "枯れ薄、弾幕Ⅱ"
command = D, D, c
time = 40

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "巴投げ"
command = b+x
time = 30

[Command]
name = "平手紅葉"
command = a+x
time = 30

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

[Command]
Name    = "recovery"
Command = a+c
Time    = 1

[Command]
Name    = "recovery"
Command = a+x
Time    = 1

[Command]
Name    = "recovery"
Command = b+c
Time    = 1

[Command]
Name    = "recovery"
Command = b+x
Time    = 1

[Command]
Name    = "recovery"
Command = c+x
Time    = 1
time = 1

[Command]
Name    = "recovery"
Command = x+z
Time    = 1

[Command]
Name    = "recovery"
Command = y+z
Time    = 1

;-| Dir + Button |---------------------------------------------------------
;前＋ボタン
[Command]
name = "fwd_a"
command = /F,a
time = 1

[Command]
name = "fwd_b"
command = /F,b
time = 1

[Command]
name = "fwd_c"
command = /F,c
time = 1

;しゃがみ攻撃
[Command]
name = "down_a"
command = /$D,a
time = 1

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

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

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

;-| 攻撃ボタン押しっぱなし |-----------------------------------------------
[Command]
name = "/x"
command = /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 = "+b"
;command = ~30b
;time = 1
;-| Single Button |---------------------------------------------------------
[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 = "s"
command = s
time = 1

[Command]
name = "u"
command = $U
time = 1
[Command]
name = "uu"
command = /$U
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup";Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1

; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]


;===========================================================================
;コマンド実行部分（優先順位が高いものを先に表記）
;===========================================================================
;===================================================================
超必殺技
;===================================================================
;狂いの落葉ルナティック
[State -1]
type = ChangeState
value = 20007
TriggerAll	= Var(59) = 0
triggerall = power >= 2000
triggerall = command = "狂いの落葉L"
Triggerall = life <= 250
trigger1 = statetype = S
trigger1 = ctrl = 1
Trigger2 = Stateno = 790
Trigger2 = (AnimElem = 4) || (movecontact)
;-------------------------------------------------------------------
;狂いの落葉
[State -1]
type = ChangeState
value = 2000
TriggerAll	= Var(59) = 0
triggerall = power >= 1000
triggerall = command = "狂いの落葉"
trigger1 = statetype = S
trigger1 = ctrl = 1
Trigger2 = Stateno = 790
Trigger2 = (AnimElem = 4) || (movecontact)
Trigger3 = Stateno = 933
Trigger3 = movehit
;-------------------------------------------------------------------
;嵐といふらむ
[State -1]
type = ChangeState
value = 2600
TriggerAll	= Var(59) = 0
triggerall = power >= 1000
triggerall = command = "嵐といふらむ"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 970
trigger2 = Time >= 32
;---------------------------------------------------------------------------
;神のまにまにa
[State -1]
type = ChangeState
value = 2099
TriggerAll	= Var(59) = 0
triggerall = power >= 1000
triggerall = NumHelper(2100) = 0
triggerall = command = "神のまにまにa"
trigger1 = statetype = S
trigger1 = ctrl = 1
;----------------------------------------------------------------
;神のまにまにb
[State -1]
type = ChangeState
value = 2098
TriggerAll	= Var(59) = 0
triggerall = power >= 1000
triggerall = NumHelper(2100) = 0
triggerall = command = "神のまにまにb"
trigger1 = statetype = S
trigger1 = ctrl = 1
;-----------------------------------------------------------------
;からくれなゐ
[State -1]
type = ChangeState
value = 2200
TriggerAll	= Var(59) = 0
triggerall = power >= 1000
triggerall = NumHelper(2100) = 0
triggerall = command = "からくれなゐ"
triggerall = statetype != A
triggerall = var(50) >= 116
trigger1 = ctrl = 1
;-----------------------------------------------------------------
;===========================================================================
;　必殺技
;===========================================================================
;晴鶴　対空
[State -1]
type = ChangeState
value = 840
TriggerAll	= Var(59) = 0
triggerall = command = "晴鶴"
Triggerall = var(7) <= 3
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 201
trigger3 = movecontact
Trigger4 = stateno = 880
Trigger4 = Time = [24,44]
Trigger5 = stateno = 820
Trigger5 = Time >= 21
;----------------------------------------------------------------
;晴鶴ｂ　対空
[State -1]
type = ChangeState
value = 846
TriggerAll	= Var(59) = 0
triggerall = command = "晴鶴b"
Triggerall = var(7) <= 3
triggerall = var(50) >= 36
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 201
trigger3 = movecontact
Trigger4 = stateno = 880
Trigger4 = Time = [24,44]
Trigger5 = stateno = 823
Trigger5 = Time >= 28
;----------------------------------------------------------------
;雁行a
[State -1]
type = ChangeState
value = 820
TriggerAll	= Var(59) = 0
triggerall = command = "雁行"
triggerall = NumHelper(10820) = 0
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 200 ;a
trigger2 = movecontact
;----------------------------------------------------------------
;雁行b 
[State -1]
type = ChangeState
value = 823
TriggerAll	= Var(59) = 0
triggerall = command = "雁行b"
triggerall = NumHelper(10820) = 0
triggerall = var(50) >= 36
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact
;----------------------------------------------------------------
;白楊
[State -1]
type = ChangeState
value = 880
TriggerAll	= Var(59) = 0
triggerall = command = "白楊"
Triggerall = var(7) <= 3
triggerall = var(50) >= 36
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 201
trigger3 = movecontact
trigger4 = stateno = 204
trigger4 = movecontact
;----------------------------------------------------------------
;随嵐
[State -1]
type = ChangeState
value = 870
TriggerAll	= Var(59) = 0
triggerall = command = "晴鶴"
Triggerall = var(7) <= 3
Triggerall = Stateno != 870
trigger1 = command = "晴鶴"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger1 = Vel X  >= 0
trigger2 = (stateno = 600) || (stateno = 810) || (stateno = 640)
trigger2 = movecontact
trigger3 = stateno = 842
trigger3 = movecontact
Trigger3 = Time = [15,20]
trigger4 = stateno = 1403
Trigger4 = Time >= 20
;-----------------------------------------------------------------
;秋光
[State -1]
type = ChangeState
value = 1400
TriggerAll	= Var(59) = 0
triggerall = command = "秋光"
triggerall = var(50) >= 36
Triggerall = Pos Y <= -20
triggerall = NumHelper(11401) = 0
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = movecontact
trigger3 = stateno = 842
trigger3 = movecontact
Trigger3 = Time = [15,20]
trigger4 = stateno = 870
Trigger4 = Time >= 20
;-----------------------------------------------------------------
;散紅葉・弧
[State -1]
type = ChangeState
value = 1415
TriggerAll	= Var(59) = 0
triggerall = command = "散り紅葉・弧"
triggerall = var(50) >= 36
trigger1 = ctrl = 1
Trigger2 = stateno = 880
Trigger2 = Time = [24,44]
;-----------------------------------------------------------------
;散紅葉・直　地上
[State -1]
type = ChangeState
value = 1410
TriggerAll	= Var(59) = 0
triggerall = command = "散り紅葉・直"
triggerall = var(50) >= 36
;Triggerall = Statetype != A
trigger1 = ctrl = 1
Trigger2 = stateno = 880
Trigger2 = Time = [24,44]
;-----------------------------------------------------------------
;群燕
[State -1]
type = ChangeState
value = 810
Triggerall = var(7) <= 3
TriggerAll	= Var(59) = 0
triggerall = var(1) < 2
triggerall = command = "群燕"
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = movecontact
trigger3 = stateno = 842
trigger3 = movecontact
Trigger3 = Time = [15,20]
trigger4 = stateno = 870
Trigger4 = Time >= 20
;----------------------------------------------------------------
;群燕b
[State -1]
type = ChangeState
value = 811
Triggerall = var(7) <= 3
TriggerAll	= Var(59) = 0
triggerall = var(1) < 2
triggerall = command = "群燕b"
triggerall = var(50) >= 36
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = movecontact
trigger3 = stateno = 870
Trigger3 = Time >= 20
;-----------------------------------------------------------------
;巴投げ
[State -1, Kung Fu Throw]
type = ChangeState
value = 910
TriggerAll	= Var(59) = 0
triggerall = command = "巴投げ"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = p2bodydist X < 30
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H

;移動巴投げ
[State -1, Kung Fu Throw]
type = ChangeState
value = 909
TriggerAll	= Var(59) = 0
triggerall = command = "巴投げ"
triggerall = statetype = S
trigger1 = ctrl
trigger1 = stateno != 100

;平手紅葉　近
[State -1, Kung Fu Throw]
type = ChangeState
value = 930
TriggerAll	= Var(59) = 0
triggerall = command = "平手紅葉"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = p2bodydist X < 20
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H

;平手紅葉　遠
[State -1, Kung Fu Throw]
type = ChangeState
value = 933
TriggerAll	= Var(59) = 0
triggerall = command = "平手紅葉"
triggerall = statetype = S
trigger1 = ctrl
trigger1 = stateno != 100
;----------------------------------------------------------------
;白秋
[State -1]
type = ChangeState
value = 790
TriggerAll	= Var(59) = 0
Triggerall = var(7) <= 3
triggerall = statetype != A
triggerall = command = "白秋"
trigger1 = ctrl
trigger2 = (stateno = 201) ||(stateno = 203) ||(stateno = 204)
trigger2 = movecontact
Trigger3 = stateno = 880
Trigger3 = Movecontact
Trigger3 = Time = [24,44]
;-------------------------------------------------------------
;ダッキングからの突き上げ
[State -1]
type = ChangeState
value = 752
TriggerAll	= Var(59) = 0
Trigger1 = command = "recovery"
trigger1 = stateno = 751
;-------------------------------------------------------------
;千秋楽
[State -1]
type = ChangeState
value = 720
TriggerAll	= Var(59) = 0
triggerall = statetype != A
Triggerall = fvar(1) >= 0.7
trigger1 = command = "fwd_a"
trigger1 = command != "holddown"
Trigger1 = fvar(1) < 1
trigger1 = ctrl = 1
Trigger2 = command = "千秋楽"
trigger2 = (ctrl = 1) || (stateno = 200) || (StateNo = 100) || (stateno = 240)
;----------------------------------------------------------------
;紅葉陣
[State -1]
type = ChangeState
value = 1100
TriggerAll	= Var(59) = 0
triggerall = command = "紅葉陣"
triggerall = NumHelper(11100) = 0
triggerall = var(50) >= 36
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
;-----------------------------------------------------------------
;弾幕Ⅱ
[State -1]
type = ChangeState
value = 1300
TriggerAll	= Var(59) = 0
triggerall = command = "枯れ薄、弾幕Ⅱ"
triggerall = NumHelper(11300) = 0
triggerall = var(50) >= 36
triggerall = statetype = A
trigger1 = ctrl
;-------------------------------------------------------------
;枯れ薄
[State -1]
type = ChangeState
value = 970
TriggerAll	= Var(59) = 0
triggerall = command = "枯れ薄、弾幕Ⅱ"
triggerall = var(50) >= 36
triggerall = statetype != A
triggerall = NumHelper(2490) = 0
trigger1 = ctrl
;===========================================================================
;　通常技：左右キー入力
;===========================================================================
;しゃがみ後ろｂ
[State -1]
type = ChangeState
value = 470
TriggerAll	= Var(59) = 0
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = command = "holdback"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact
;-------------------------------------------------------------
;横+パンチ　ストレート
[State -1]
type = ChangeState
value = 210
TriggerAll	= Var(59) = 0
triggerall = command = "fwd_a"
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) || (StateNo = 100) || (stateno = 240)
trigger2 = movecontact
Trigger3 = (StateNo = 100) || (Stateno = 102)
;-------------------------------------------------------------
;横＋キック（近）　踵落とし
[State -1]
type = ChangeState
value = 250
TriggerAll	= Var(59) = 0
triggerall = command = "fwd_b"
triggerall = command != "holddown"
triggerall = p2bodydist X < 50
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 201
trigger2 = movecontact
trigger3 = stateno = 200
trigger3 = movecontact
;-------------------------------------------------------------
;横＋キック（遠）ニールキック　
[State -1]
type = ChangeState
value = 700
TriggerAll	= Var(59) = 0
triggerall = command = "fwd_b"
triggerall = command != "holddown"
Triggerall = Stateno != 700
Triggerall = PrevStateno != 700 
;trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 203 && Time = [7,14]
trigger3 = stateno = 240 && Time >= 15
;-------------------------------------------------------------
;横＋ｃ　紅葉胡蝶弾
[State -1]
type = ChangeState
value = 1010
TriggerAll	= Var(59) = 0
triggerall = command = "fwd_c"
triggerall = command != "holddown"
triggerall = NumHelper(22461) = 0
triggerall = NumHelper(21011) = 0
triggerall = var(50) >= 27
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
;-------------------------------------------------------------
;屈→c
[State -1]
type = ChangeState
value = 1020
TriggerAll	= Var(59) = 0
triggerall = command = "c"
triggerall = command = "holdfwd"
triggerall = statetype = C
triggerall = NumHelper(21011) = 0
triggerall = var(50) >= 27
triggerall = NumHelper(22461) = 0
trigger1 = ctrl
;===========================================================================
;　通常技：上下キー入力
;===========================================================================
;-------------------------------------------------------------
;キック　チェーン」1-②スライディング/ダッシュ↓キック
[State -1]
type = ChangeState
value = 206
TriggerAll	= Var(59) = 0
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = stateno = 204
trigger1 = movecontact
trigger2 =stateno =100
;-------------------------------------------------------------
;空中↓ｂ
[State -1]
type = ChangeState
value = 670
TriggerAll	= Var(59) = 0
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 810
Trigger2 = Time >= 11
;-------------------------------------------------------------
;ジャンプ↓c
[State -1]
type = ChangeState
value = 1205
TriggerAll	= Var(59) = 0
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = statetype = A
triggerall = NumHelper(2463) = 0
triggerall = var(50) >= 27
trigger1 = ctrl
;===========================================================================
;基本動作
;===========================================================================
;飛翔　前・上
[State -1]
type = changestate
value = 80
TriggerAll	= Var(59) = 0
Triggerall = command = "holdfwd"
Triggerall = command = "holdup"
Triggerall = command = "/x"
Triggerall = statetype = A
triggerall = var(50) >= 18
triggerall = var(1) < 3
Triggerall = PrevStateno != [105,109]
triggerall = stateno != [105,109]
Trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;飛翔　前・下
[State -1]
type = changestate
value = 81
TriggerAll	= Var(59) = 0
Triggerall = command = "holdfwd"
Triggerall = command = "holddown"
Triggerall = command = "/x"
Triggerall = statetype = A
triggerall = var(50) >= 18
triggerall = var(1) < 3
Triggerall = PrevStateno != [105,109]
triggerall = stateno != [105,109]
Trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;飛翔　後・上
[State -1]
type = changestate
value = 82
TriggerAll	= Var(59) = 0
Triggerall = command = "holdback"
Triggerall = command = "holdup"
Triggerall = command = "/x"
Triggerall = statetype = A
triggerall = var(50) >= 18
triggerall = var(1) < 3
Triggerall = PrevStateno != [105,109]
triggerall = stateno != [105,109]
Trigger1 = ctrl = 1
Trigger2 = Stateno = 846
Trigger2 = Time = [20,29]
;---------------------------------------------------------------------------
;飛翔　後・下
[State -1]
type = changestate
value = 83
TriggerAll	= Var(59) = 0
Triggerall = command = "holdback"
Triggerall = command = "holddown"
Triggerall = command = "/x"
Triggerall = statetype = A
triggerall = var(50) >= 18
triggerall = var(1) < 3
Triggerall = PrevStateno != [105,109]
triggerall = stateno != [105,109]
Trigger1 = ctrl = 1
Trigger2 = Stateno = 846
Trigger2 = Time = [20,29]
;---------------------------------------------------------------------------
;飛翔　前
[State -1]
type = changestate
value = 76
TriggerAll	= Var(59) = 0
Triggerall = statetype = A
Triggerall = command = "holdfwd"
Triggerall = command = "/x"
triggerall = var(50) >= 18
triggerall = var(1) < 3
Triggerall = PrevStateno != [105,109]
triggerall = stateno != [105,109]
Trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;飛翔　後
[State -1]
type = changestate
value = 77
TriggerAll	= Var(59) = 0
Triggerall = command = "holdback"
Triggerall = command = "/x"
Triggerall = statetype = A
triggerall = var(50) >= 18
triggerall = var(1) < 3
Triggerall = PrevStateno != [105,109]
triggerall = stateno != [105,109]
Trigger1 = ctrl = 1
Trigger2 = Stateno = 846
Trigger2 = Time = [20,29]
;---------------------------------------------------------------------------
;飛翔　上
[State -1]
type = changestate
value = 78
TriggerAll	= Var(59) = 0
Triggerall = command = "holdup"
Triggerall = command = "/x"
Triggerall = statetype = A
triggerall = var(50) >= 18
triggerall = var(1) < 3
Triggerall = PrevStateno != [105,109]
triggerall = stateno != [105,109]
Trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;飛翔　下
[State -1]
type = changestate
value = 79
TriggerAll	= Var(59) = 0
Triggerall = command = "holddown"
Triggerall = command = "/x"
Triggerall = statetype = A
triggerall = var(50) >= 18
triggerall = var(1) < 3
Triggerall = PrevStateno != [105,109]
triggerall = stateno != [105,109]
Trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;ダッキング
[State -1]
type = ChangeState
value = 103
TriggerAll	= Var(59) = 0
triggerall = command = "FF"
triggerall = command = "/x"
triggerall = statetype = S
trigger1 = ctrl 
;---------------------------------------------------------------------------
;ダッキング:その場
[State -1]
type = ChangeState
value = 102
TriggerAll	= Var(59) = 0
triggerall = command = "holddown"
triggerall = command = "/x"
triggerall = statetype = S
trigger1 = ctrl 
;---------------------------------------------------------------------------
;前方ダッシュ
[State -1]
type = ChangeState
value = 100
TriggerAll	= Var(59) = 0
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl = 1
;---------------------------------------------------------------------------
;大バックステップ
[State -1]
type = ChangeState
value = 107
TriggerAll	= Var(59) = 0
triggerall = command = "BB"
triggerall = command = "/x"
triggerall = statetype = S
trigger1 = ctrl 
;---------------------------------------------------------------------------
;バックステップ
[State -1]
type = ChangeState
value = 105
TriggerAll	= Var(59) = 0
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = command = "狂いの落葉"
Trigger2 = Stateno = 790
Trigger2 = (AnimElem = 4) || (movecontact)
Trigger2 = power <= 1000
;---------------------------------------------------------------------------
;空中ダッシュ(air)
[State -1, Dash]
type = ChangeState
value = 110
TriggerAll	= Var(59) = 0
triggerall = var(1) < 2
triggerall = Pos Y <= -30
trigger1 = command = "FF"
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = stateno != 110
trigger1 = stateno != 115
;---------------------------------------------------------------------------
;空中バックダッシュ(air)
[State -1, Dash]
type = ChangeState
value = 115
TriggerAll	= Var(59) = 0
triggerall = var(1) < 2
triggerall = Pos Y <= -30
trigger1 = command = "BB"
trigger1 = statetype = A
trigger1 = ctrl
trigger1 = stateno != 110
trigger1 = stateno != 115
;---------------------------------------------------------------------------
;ガード反撃
[State -1]
type = ChangeState
value = 8000
TriggerAll	= Var(59) = 0
TriggerAll = command = "x"
TriggerAll = Statetype = S
Trigger1 = (StateNo = 151) || (StateNo = 153)
triggerall = power >= 500
;----------------------------------------------------------------------------
;===========================================================================
;　通常技：単発ボタン
;===========================================================================
;----------------------------------------------------------------
;晴鶴ｂ追撃蹴り
[State -1]
type = ChangeState
value = 953
TriggerAll	= Var(59) = 0
triggerall = command = "b"
Triggerall = var(7) <= 3
triggerall = var(50) >= 36
trigger1 = stateno = 846
Trigger1 = Time >= 29
;---------------------------------------------
;キック　チェーン」2-②吹き飛ばし前蹴り
[State -1]
type = ChangeState
value = 205
TriggerAll	= Var(59) = 0
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = stateno = 204
trigger1 = movecontact
;---------------------------------------------
;キック　チェーン2-①蹴込み
[State -1]
type = ChangeState
value = 204
TriggerAll	= Var(59) = 0
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = stateno = 201
trigger1 = movecontact
;---------------------------------------------
;パンチ　チェーン1-③　
[State -1]
type = ChangeState
value = 202
TriggerAll	= Var(59) = 0
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = stateno = 203
trigger1 = movecontact
;---------------------------------------------
;パンチ　チェーン1-③　
[State -1]
type = ChangeState
value = 203
TriggerAll	= Var(59) = 0
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = stateno = 201
trigger1 = movecontact
;---------------------------------------------
;パンチ　チェーン1-①　
[State -1]
type = ChangeState
value = 201
TriggerAll	= Var(59) = 0
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = stateno = 200
trigger1 = movecontact
;---------------------------------------------
;パンチ　ジャブ
[State -1]
type = ChangeState
value = 200
TriggerAll	= Var(59) = 0
triggerall = command = "a"
trigger1 = statetype = S
trigger1 = command != "holddown"
trigger1 = ctrl = 1
trigger2 = stateno = 102  ;その場ダッキング
trigger2 = Time >= 4
;-------------------------------------------------------------
;キック　蹴込み
[State -1]
type = ChangeState
value = 240
TriggerAll	= Var(59) = 0
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) 
trigger2 = movecontact
Trigger3 = (StateNo = 100) || (StateNo = 101)
;-----------------------------------------------------------------
;ｃ　紅葉蝶弾
[State -1]
type = ChangeState
value = 1005
TriggerAll	= Var(59) = 0
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = NumHelper(21005) = 0
triggerall = var(50) >= 18
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact
Trigger3 = Stateno = 880
Trigger3 = Time = [24,44]
;-------------------------------------------------------------------
;しゃがみパンチ
[State -1]
type = ChangeState
value = 400
TriggerAll	= Var(59) = 0
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 210
trigger3 = movecontact
Trigger4 = StateNo = 400
trigger4 = Time >= 10
;---------------------------------------------------------------------
;しゃがみキック
[State -1]
type = ChangeState
value = 440
TriggerAll	= Var(59) = 0
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact
;-------------------------------------------------------------
;屈c
[State -1]
type = ChangeState
value = 1015
TriggerAll	= Var(59) = 0
triggerall = command = "c"
triggerall = statetype = C
triggerall = NumHelper(22459) = 0
triggerall = NumHelper(21200) = 0
triggerall = var(50) >= 18
trigger1 = ctrl
;---------------------------------------------------------------------------
;ジャンプa
[State -1]
type = ChangeState
value = 600
TriggerAll	= Var(59) = 0
triggerall = command = "a"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = movecontact
Trigger2 = Time >= 7
;-----------------------------------------------------------------
;ジャンプc
[State -1]
type = ChangeState
value = 1200
TriggerAll	= Var(59) = 0
triggerall = command = "c"
triggerall = statetype = A
triggerall = NumHelper(22459) = 0
triggerall = NumHelper(21200) = 0
triggerall = var(50) >= 18
trigger1 = ctrl
;-----------------------------------------------------------------
;ジャンプキック
[State -1]
type = ChangeState
value = 640
TriggerAll	= Var(59) = 0
triggerall = command = "b"
triggerall = statetype = A
trigger1 = ctrl
;----------------------------------------------------------------
挑発
[State -1]
type = ChangeState
value = 195
TriggerAll	= Var(59) = 0
triggerall = command = "s"
triggerall = statetype = S
trigger1 = ctrl
