; 斬鉄 - CMD

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

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

[Command]
name = "yami"
command = ~F, D, B, F, D, B, y
time = 40

[Command]
name = "dango"
command = ~F, B, D, F, x+y
time = 35

[Command]
name = "tourou"
command = ~D, F, D, F, x+y
time = 25


[Command]
name = "ranbu_x"
command = ~D, D, x
time = 12

[Command]
name = "ranbu_y"
command = ~D, D , y
time = 12

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


[Command]
name = "oboro"
command =  ~F,D,DF, a
time = 14

[Command]
name = "kage"
command =  D,DF,F, a
time = 25

[Command]
name = "gc"
command = ~b
time = 20

[Command]
name = "ryueijin"
command = ~D,DF,F, y
time = 18

[Command]
name = "ryu"
command = ~D, DF, F, x
time = 18

[Command]
name = "ryu2"
command = ~D, DF, F, y
time = 18

[Command]
name = "ryu3"
command = ~D, DF, F, a
time = 18

[Command]
name = "kikou"
command = ~D, B, y
time = 10

[Command]
name = "oboro_f"
command =  ~B,D,DB, a
time = 14

[Command]
name = "kage2"
command =  F,B,F, a
time = 25

[Command]
name = "kopa"
command = ~D,B, x
time = 10

[Command]
name = "kasumi"
command = ~D,B, y
time = 10

[Command]
name = "tenma"
command = ~F, D, B, a
time = 20

[Command]
name = "suimen"
command =  ~B,D,DB, x
time = 20

[Command]
name = "dango_J"
command = ~F, B, D, F
time = 35

[Command]
name = "ranbu_J"
command = ~D, D
time = 12

[Command]
name = "ryu_J"
command = ~D, DF, F
time = 20

[Command]
name = "kikou_J"
command = ~D,DB, B
time = 10

[Command]
name = "oboro_J"
command =  ~F,D,DF
time = 14

[Command]
name = "oboro_f_J"
command =  ~B,D,DB
time = 14

[Command]
name = "kage_J"
command =  F,B,F
time = 25

;-| ２回押し技 |-----------------------------------------------------------

[Command]
name = "FF"
command = F, F
time = 10

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

[command]
name = "Airkage"
command = F, F
time = 10

[command]
name = "Airkage_Back"
command = B, B
time = 10

[command]
name = "Airkage_Down"
command = D, D
time = 10

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

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

[Command]
name = "x+z"
command = x+a
time = 1

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

;-| 方向とボタンで出す技 |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

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

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

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

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

[Command]
name = "6z"
command = /F,a
time = 1

[Command]
name = "3z"
command = /DF,a
time = 1

;-| ボタン設定（いじらない）|---------------------------------------------------------
[Command]
name = "recovery"
command = b
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 = "hold_a"
command = /a
time = 1

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

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

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

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

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

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

[Command]
name = "hold_y+a"
command = /y+a
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]
;===========================================================================

[state -2, 蘇生]
type = Selfstate
triggerall = P2name != "The_Loser_Must_Die"
triggerall = !ishelper
trigger1 = sysvar(4) != [1,2]
trigger1 = roundstate = 2
trigger1 = var(43) = 0
trigger2 = !alive
value = 3102
ignorehitpause = 1

[State -2, 無想影法師地上]
type = Changestate
triggerall = var(43) >= 1
triggerall = var(15) = 0
triggerall = Movetype != A
triggerall = enemynear,HitDefAttr = SA,AA
triggerall = !ishelper
triggerall = numhelper(150)
trigger1 = helper(150),gethitvar(damage)
trigger1 = statetype != A
value = 1072
ignorehitpause = 1

[State -2, 無双影法師空中]
type = Changestate
triggerall = var(43) != 0
triggerall = var(15) = 0
triggerall = Movetype != A
triggerall = enemynear,HitDefAttr = SCA,AA
triggerall = !ishelper
triggerall = numhelper(150)
trigger1 = helper(150),gethitvar(damage)
trigger1 = statetype = A
value = 1073
ignorehitpause = 1

[State -2, バク宙]
type = Changestate
triggerall = var(43) >= 1
triggerall = var(15) = 0
triggerall = Movetype != A
triggerall = enemynear,HitDefAttr = C,AA
triggerall = !ishelper
triggerall = numhelper(150)
trigger1 = helper(150),gethitvar(damage)
trigger1 = statetype != A
value = 1120
ignorehitpause = 1


[State -1, 勝利]
type = Changestate
value = 180
triggerall = name = "The_Loser_Must_Die"
triggerall = !ishelper
triggerall = alive
triggerall = anim != [170,182]
triggerall = !time
triggerall = win
trigger1 = roundstate > 3
ignorehitpause = 1

;---------------------------------------------------------------------------
[State -1, 引き分け]
type = Changestate
value = 175
triggerall = name = "The_Loser_Must_Die"
triggerall = !ishelper
triggerall = alive
triggerall = anim != [170,182]
triggerall = !time
triggerall = drawgame
trigger1 = roundstate > 3
ignorehitpause = 1
;---------------------------------------------------------------------------
[State -1, 判定負け]
type = Changestate
value = 170
triggerall = name = "The_Loser_Must_Die"
triggerall = !ishelper
triggerall = alive
triggerall = anim != [170,182]
triggerall = !time
triggerall = losetime
trigger1 = roundstate > 3
ignorehitpause = 1
;---------------------------------------------------------------------------
[State -1, 立ちガード]
type = Changestate
value = 130
triggerall = name = "The_Loser_Must_Die"
triggerall = !ishelper
triggerall = alive
triggerall = statetype = S
triggerall = roundstate = 2
trigger1 = helper(150),gethitvar(damage)
ignorehitpause = 1
;---------------------------------------------------------------------------
[State -1, しゃがみガード]
type = Changestate
value = 131
triggerall = name = "The_Loser_Must_Die"
triggerall = !ishelper
triggerall = alive
triggerall = statetype = C
triggerall = roundstate = 2
trigger1 = helper(150),gethitvar(damage)
ignorehitpause = 1
;---------------------------------------------------------------------------
[State -1, ジャンプガード]
type = Changestate
value = 132
triggerall = name = "The_Loser_Must_Die"
triggerall = !ishelper
triggerall = alive
triggerall = statetype = A
triggerall = roundstate = 2
trigger1 = helper(150),gethitvar(damage)
ignorehitpause = 1
;---------------------------------------------------------------------------
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = name = "The_Loser_Must_Die"
triggerall = !ishelper
triggerall = alive
triggerall = statetype = S
triggerall = anim != [130,132]
triggerall = ctrl
trigger1 = command = "BB"
ignorehitpause = 1

;---------------------------------------------------------------------------
;走り
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl
ignorehitpause = 1
;---------------------------------------------------------------------------
[State -1, 立ち上がる動作]
type = Changestate
value = 12
triggerall = name = "The_Loser_Must_Die"
triggerall = !ishelper
triggerall = alive
triggerall = statetype = C
triggerall = command != "holddown"
triggerall = anim != [130,132]
trigger1 = ctrl
ignorehitpause = 1
;---------------------------------------------------------------------------
[State -1, しゃがみ]
type = Changestate
value = 11
triggerall = name = "The_Loser_Must_Die"
triggerall = !ishelper
triggerall = alive
triggerall = statetype = C
triggerall = animtime = 0
triggerall = command = "holddown"
triggerall = anim != [130,132]
trigger1 = ctrl
ignorehitpause = 1
;---------------------------------------------------------------------------
[State -1, しゃがむ動作]
type = Changestate
value = 10
triggerall = name = "The_Loser_Must_Die"
triggerall = !ishelper
triggerall = alive
triggerall = statetype = S
triggerall = command = "holddown"
triggerall = anim != [130,132]
trigger1 = ctrl
ignorehitpause = 1


;---------------------------------------------
;空中影法師
;空中ダッシュ
[State -1, Air Run Fwd]
type  = ChangeState
value  = 110    
trigger1 = command  =  "Airkage"
trigger1 = statetype  =  A
trigger1 = ctrl    =1

;---------------------------------------------
;後方空中ダッシュ
;空中ダッシュ
[State -1, Air Run Back]
type  = ChangeState
value  = 111
trigger1 = command  =  "Airkage_Back"
trigger1 = statetype  =  A
trigger1 = ctrl    =1

;---------------------------------------------
;後方空中ダッシュ
;空中ダッシュ
[State -1, Air Run Down]
type  = ChangeState
value  = 112
trigger1 = command  =  "Airkage_Down"
trigger1 = statetype  =  A
trigger1 = ctrl    =1

;---------------------------------------------------------------------------
;ジャンプ（後退のみ）
[State -1, jump]
type = ChangeState
value = 40
triggerall = command = "holdup"
triggerall = command = "holdback"
trigger1 = statetype = S
trigger1 = stateno = 101

;---------------------------------------------------------------------------
;闇狩り
[State -1]
type = ChangeState
value = 3100
triggerall = sysvar(1) != [3,4]
triggerall = sysvar(1) = 1 || sysvar(1) = 5
triggerall = power >= 75000 || (life <= lifemax / 4 && power >= 75000)
triggerall = command = "yami"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = sysvar(1) = [5,6]
trigger5 = stateno = 430
trigger5 = movecontact
trigger6 = sysvar(1) = [1,2]
trigger6 = stateno = 225
trigger6 = movecontact

;闇狩り
[State -1]
type = ChangeState
value = 3100
triggerall = sysvar(1) != [3,4]
triggerall = sysvar(1) = 2 || sysvar(1) = 6
triggerall = power >= 75000 && (life <= lifemax / 4)
triggerall = command = "yami"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = sysvar(1) = [5,6]
trigger5 = stateno = 430
trigger5 = movecontact
trigger6 = sysvar(1) = [1,2]
trigger6 = stateno = 225
trigger6 = movecontact

;---------------------------------------------------------------------------
;前転起き上がり
[State -1]
type = ChangeState
triggerall = command = "holdfwd"
trigger1 = (stateno = 5110) && (Time >= 25)
;trigger2 = (stateno = 5120) && (Time >= 25)
value = 5130

;後転起き上がり
[State -1]
type = ChangeState
triggerall = command = "holdback"
trigger1 = (stateno = 5110) && (Time >= 25)
;trigger2 = (stateno = 5120) && (Time >= 25)
value = 5135

;---------------------------------------------------------------------------
;投げ
[State -1, Zantetsu Throw]
type = ChangeState
value = 800
triggerall = command = "nage" || (command = "c" && var(20) = 0) 
triggerall = statetype != A 
trigger1 = ctrl
trigger2 = (stateno = 100) || (stateno = 101)
trigger3 = command = "holdfwd" && ctrl

;---------------------------------------------------------------------------
; ガードキャンセル
[State -1]
type = ChangeState
value = 8140
triggerall = command = "gc"
triggerall = statetype != A
triggerall = enemynear,movetype = A
triggerall = ctrl = 0
triggerall = stateno != 8140&&stateno != 8130
trigger1 = sysvar(1) = 1 || sysvar(1) = 3 || sysvar(1) = 5
trigger2 = sysvar(1) = 2 || sysvar(1) = 4 || sysvar(1) = 6

;---------------------------------------------------------------------------
;弾き 立ち
[State -1]
type = ChangeState
value = 8100
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype = S 
triggerall = stateno != 8101
trigger1 = ctrl || stateno = 100 || stateno = 101

;---------------------------------------------------------------------------
;弾き しゃがみ
[State -1]
type = ChangeState
value = 8110
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = statetype = C
triggerall = stateno != 8111
trigger1 = ctrl || stateno = 100 || stateno = 101

;---------------------------------------------------------------------------
;弾き 空中
[State -1]
type = ChangeState
value = 8120
trigger1 = command = "b"
trigger1 = statetype = A
trigger1 = ctrl

;弾き 空中
[State -1]
type = ChangeState
value = 8120
trigger1 = command = "b"
trigger1 = statetype = A
trigger1 = enemynear,movetype = A
trigger1 = stateno != 3105&&stateno !=3106&&stateno!= 3110&&stateno!= 3120
trigger1 = stateno !=1105&&stateno!= 1110&&stateno!= 1115&&stateno!= 1340
trigger1 = ctrl = 0

;---------------------------------------------------------------------------
;走り斬り
[State -1,rungiri]
type = ChangeState
value = 270
triggerall = command = "x" || command = "y"
trigger1 = stateno = 100 && time >= 12
trigger2 = (stateno = 101) && (AnimElem = 2,<= 0)

;---------------------------------------------------------------------------
;走り蹴り
[State -1,runkeri]
type = ChangeState
value = 275
triggerall = command = "holddown"
triggerall = command = "a" || command = "x" || command = "y"
trigger1 = stateno = 100 && time >= 12
trigger2 = (stateno = 101) && (AnimElem = 2,<= 0)

;---------------------------------------------------------------------------
;断鋼刃
[State -1]
type = ChangeState
value = 3000
triggerall = sysvar(1) = 1 || sysvar(1) = 3 || sysvar(1) = 5
triggerall = power >= 3000 || (life <= lifemax / 4)
triggerall = command = "dango"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = sysvar(1) != [1,2]
trigger6 = stateno = 430
trigger6 = movecontact
trigger7 = sysvar(1) = [1,2]
trigger7 = stateno = 225
trigger7 = movecontact

;断鋼刃
[State -1]
type = ChangeState
value = 3000
triggerall = sysvar(1) = 2 || sysvar(1) = 4 || sysvar(1) = 6
triggerall = power >= 3000 || (life <= lifemax / 4)
triggerall = command = "dango"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = sysvar(1) != [1,2]
trigger6 = stateno = 430
trigger6 = movecontact
trigger7 = sysvar(1) = [1,2]
trigger7 = stateno = 225
trigger7 = movecontact

; 蟷螂双刃
[State -1]
type = ChangeState
value = 3300
triggerall =stateno!=3300
triggerall = power >= 3000
triggerall = command = "tourou"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact
trigger3 = stateno=400||stateno=405||stateno=410||stateno=430
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)

;---------------------------------------------------------------------------
; 乱舞奥義_打上
[State -1]
type = ChangeState
value = 3500
triggerall = sysvar(1) != [1,2]
triggerall = sysvar(1) = 3 || sysvar(1) = 5
triggerall = power >= 2000 || ((life <= lifemax / 4) && power >= 1000)
triggerall = command = "ranbu_x"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410||stateno=430
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = movecontact && (stateno = 225)
trigger7 = (Stateno = 8101) || (Stateno = 8111)

; 乱舞奥義_打上
[State -1]
type = ChangeState
value = 3500
triggerall = sysvar(1) != [1,2]
triggerall = sysvar(1) = 4 || sysvar(1) = 6
triggerall = power >= 2000
triggerall = command = "ranbu_x"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410||stateno=430
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = movecontact && (stateno = 225)
trigger7 = (Stateno = 8101) || (Stateno = 8111)

;---------------------------------------------------------------------------
; 乱舞奥義_下段
[State -1]
type = ChangeState
value = 3520
triggerall = sysvar(1) != [1,2]
triggerall = sysvar(1) = 3 || sysvar(1) = 5
triggerall = power >= 2000 || ((life <= lifemax / 4) && power >= 1000)
triggerall = command = "ranbu_y"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410||stateno=430
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = movecontact && (stateno = 225)
trigger7 = (Stateno = 8101) || (Stateno = 8111)

; 乱舞奥義_下段
[State -1]
type = ChangeState
value = 3520
triggerall = sysvar(1) != [1,2]
triggerall = sysvar(1) = 4 || sysvar(1) = 6
triggerall = power >= 2000
triggerall = command = "ranbu_y"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410||stateno=430
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = movecontact && (stateno = 225)
trigger7 = (Stateno = 8101) || (Stateno = 8111)

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

;流影陣
[State -1]
type = ChangeState
value = 1002
triggerall = sysvar(1) != [1,2]
triggerall = command = "ryueijin"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = sysvar(1) != [1,2]
trigger6 = stateno=430
trigger6 = movecontact
trigger7 = sysvar(1) = [1,2]
trigger7 = movecontact

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

;流影刃
[State -1]
type = ChangeState
value = 1000
triggerall = command = "ryu"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = sysvar(1) != [1,2]
trigger6 = stateno=430
trigger6 = movecontact
trigger7 = sysvar(1) = [1,2]
trigger7 = stateno = 225
trigger7 = movecontact

;---------------------------------------------------------------------------
;気孔砲
[State -1]
type = ChangeState
value = 1010
triggerall = command = "kikou"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = sysvar(1) != [1,2]
trigger6 = stateno=430
trigger6 = movecontact
trigger7 = sysvar(1) = [1,2]
trigger7 = stateno = 225
trigger7 = movecontact

;---------------------------------------------------------------------------
;朧斬り
[State -1]
type = ChangeState
value = 1020
triggerall = command = "oboro"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = sysvar(1) != [1,2]
trigger6 = stateno=430
trigger6 = movecontact
trigger7 = sysvar(1) = [1,2]
trigger7 = stateno = 225
trigger7 = movecontact
;---------------------------------------------------------------------------
;空中朧斬り
[State -1]
type = ChangeState
value = 1020
triggerall = command = "oboro"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = sysvar(1) != [1,2]
trigger6 = stateno=430
trigger6 = movecontact
trigger7 = sysvar(1) = [1,2]
trigger7 = stateno = 225
trigger7 = movecontact

;---------------------------------------------------------------------------
;朧斬り_止め
[State -1]
type = ChangeState
value = 1035
triggerall = command = "oboro_f"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = sysvar(1) != [1,2]
trigger6 = stateno=430
trigger6 = movecontact
trigger7 = sysvar(1) = [1,2]
trigger7 = stateno = 225
trigger7 = movecontact

;---------------------------------------------------------------------------
;天魔脚
[State -1]
type = ChangeState
value = 1040
triggerall = command = "down_z"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=600||stateno=610||stateno=630

;---------------------------------------------------------------------------
;影法師
[State -1]
type = ChangeState
value = 1070
triggerall = command = "kage"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = sysvar(1) != [1,2]
trigger5 = stateno=430
trigger5 = movecontact
trigger6 = sysvar(1) = [1,2]
trigger6 = stateno = 225
trigger6 = movecontact
;---------------------------------------------------------------------------
;影法師_2
[State -1]
type = ChangeState
value = 1071
triggerall = command = "kage2"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = movecontact
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = sysvar(1) != [1,2]
trigger5 = stateno=430
trigger5 = movecontact
trigger6 = sysvar(1) = [1,2]
trigger6 = stateno = 225
trigger6 = movecontact

;---------------------------------------------------------------------------
;天魔落とし
[State -1]
type = ChangeState
value = 1100
triggerall = command = "tenma"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = sysvar(1) != [1,2]
trigger6 = stateno=430
trigger6 = movecontact
trigger7 = sysvar(1) = [1,2]
trigger7 = stateno = 225
trigger7 = movecontact

;---------------------------------------------------------------------------
;空中版天魔落とし
[State -1]
type = ChangeState
value = 1350
triggerall = command = "tenma"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=600||stateno=610||stateno=630

;---------------------------------------------------------------------------
;骸縫いＡ
[State -1]
type = ChangeState
value = 1400
triggerall = command = "ryu"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=600||stateno=610||stateno=630

;骸縫いＢ
[State -1]
type = ChangeState
value = 1410
triggerall = command = "ryu2"
triggerall = statetype = A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=600||stateno=610||stateno=630


;---------------------------------------------------------------------------
;水面隠れ
[State -1]
type = ChangeState
value = 1450
triggerall = command = "suimen"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=400||stateno=405||stateno=410
trigger4 = stateno = 101
trigger5 = movecontact && (stateno = 1080)
trigger6 = sysvar(1) != [1,2]
trigger6 = stateno=430
trigger6 = movecontact
trigger7 = sysvar(1) = [1,2]
trigger7 = stateno = 225
trigger7 = movecontact

;---------------------------------------------------------------------------
;ガード不能斬り
[State -1]
type = ChangeState
value = 250
triggerall = command = "oogiri" || (command = "z" && Var(20) = 0)
triggerall = sysvar(1) = [1,2]
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 211
trigger2 = PrevStateNo = 215

;---------------------------------------------------------------------------
;大斬り
[State -1]
type = ChangeState
value = 260
triggerall = command = "oogiri" || (command = "z" && Var(20) = 0)
triggerall = sysvar(1) != [1,2]
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=230||stateno=270
trigger3 = movecontact 
trigger3 = stateno=410
trigger4 = stateno = 101

;---------------------------------------------------------------------------
;立弱斬←入れ
[State -1, 立弱斬←入れ]
type = ChangeState
value = 205
triggerall = command = "4x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 101

;---------------------------------------------------------------------------
;立弱斬・連撃
[State -1, 立弱斬・連撃]
type = ChangeState
value = 201
triggerall = command = "4x"
triggerall = command != "holddown"
triggerall = movecontact && (stateno = 200)
trigger1 = sysvar(1) != [1,2]
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;立弱斬
[State -1, 立弱斬]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = sysvar(1) != [1,2]
trigger2 = movecontact && (stateno = 205)
trigger3 = stateno = 101

;---------------------------------------------------------------------------
;立超強斬
[State -1]
type = ChangeState
value = 215
triggerall = command = "6y" 
triggerall = command != "holddown"
trigger1 = ctrl
trigger1 = statetype = S
trigger2 = sysvar(1) != [1,2]
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=270||stateno=410
trigger3 = stateno = 101

;---------------------------------------------------------------------------
;立強斬
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = sysvar(1) != [1,2]
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=270
trigger3 = stateno = 101

;---------------------------------------------------------------------------
;蹴り飛ばし
[State -1, Standing Strong Kick]
type = ChangeState
value = 225
triggerall = command = "6z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = sysvar(1) != [1,2]
trigger2 = movecontact 
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=270||stateno=410
trigger3 = stateno = 101

;---------------------------------------------------------------------------
;立弱蹴
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 101

;---------------------------------------------------------------------------
;追い討ち 
[State -1,oiuchi]
type = ChangeState
value = 300
triggerall = command = "y"
triggerall = (command = "holdfwd") && (command = "holddown")
triggerall = statetype != A
trigger1 = p2StateType = L
trigger1 = p2stateno=5110||p2stateno=5111||p2stateno=310||p2stateno=311||p2stateno=1013
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;挑発
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = Power >= 5000
triggerall = stateno != 195&&stateno != 1500&&stateno != 3000&&stateno != 3005&&stateno != 3010
triggerall = stateno != 3100&&stateno != 3101&&stateno != 800&&stateno != 810
triggerall = command = "start"
trigger1 = statetype != A

;---------------------------------------------------------------------------
;屈弱斬
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = sysvar(1) != [1,2]
trigger2 = movecontact
trigger2 = stateno=200||stateno=205
trigger3 = stateno = 101

;---------------------------------------------------------------------------
;屈弱斬+
[State -1]
type = ChangeState
value = 405
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = sysvar(1) = [1,2]
trigger1 = movehit && (stateno = 400)
trigger2 = sysvar(1) != [1,2]
trigger2 = movecontact && (stateno = 400)

;---------------------------------------------------------------------------
;屈強斬
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = sysvar(1) != [1,2]
trigger2 = movecontact
trigger2 = stateno=200||stateno=201||stateno=205||stateno=270
trigger3 = stateno = 101

;---------------------------------------------------------------------------
;脚払
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = command = "3z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = sysvar(1) != [1,2]
trigger2 = movecontact
trigger2 = stateno=200||stateno=201||stateno=205||stateno=210||stateno=270||stateno=410

;---------------------------------------------------------------------------
;屈弱蹴
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 101

;---------------------------------------------------------------------------
;空弱斬
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x" || command = "x+z"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;空強斬
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = sysvar(1) != [1,2]
trigger2 = stateno = 600
trigger2 = movecontact

;---------------------------------------------------------------------------
;空蹴
[State -1, Jump Kick]
type = ChangeState
value = 630
triggerall = command = "a"
triggerall = command != "x+z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = sysvar(1) != [1,2]
trigger2 = stateno = 600
trigger2 = movecontact
