;-| Super Motions |------------------------------------------------
[Command];赤主・檻髪
name = "hcf_c"
command = ~B, D, F, c

[Command];鬼門開封
name = "qcbhcf_c"
command = ~D, B, D, F, c
time = 25

[Command]
name = "change"
command = U, D, U, D, U, D, s
time = 25

[Command]
name = "AI"
command = ~x, y, z, a, b, c, s
time = 0

;-| Special Motions |----------------------------------------------
[Command];鳥を落とす
name = "qcf_a"
command = ~D, DF, F, a
[Command]
name = "qcf_b"
command = ~D, DF, F, b
[Command]
name = "qcf_c"
command = ~D, DF, F, c

[Command];赫訳・紅葉
name = "rupper_a"
command = ~B, D, DB, a
[Command]
name = "rupper_b"
command = ~B, D, DB, b
[Command]
name = "rupper_c"
command = ~B, D, DB, c

[Command];獣を焦がす
name = "qcb_a"
command = ~D, DB, B, a
[Command]
name = "qcb_b"
command = ~D, DB, B, b
[Command]
name = "qcb_c"
command = ~D, DB, B, c

[Command];月を穿つ
name = "dd_a"
command = ~D, D, a
[Command]
name = "dd_b"
command = ~D, D, b
[Command]
name = "dd_c"
command = ~D, D, c

[Command]
name = "upper_a"
command = ~F, D, DF, a
[Command]
name = "upper_b"
command = ~F, D, DF, b
[Command];飛翔
name = "upper_c"
command = ~F, D, DF, c

;-| Valiable |-----------------------------------------------------
[Command]
name = "qcf_s"
command = ~D, DF, F, s
[Command]
name = "qcb_s"
command = ~D, DB, B, s
[Command]
name = "rqcb_s"
command = ~B, DB, D, s

;-| Double Tap |---------------------------------------------------
[Command]
name = "FF"
command = F, F
time = 10
[Command]
name = "BB"
command = B, B
time = 10

;-| 2/3 Button Combination |---------------------------------------
[Command]
name = "recovery"
command = x+a
time = 1

[Command]
name = "recovery"
command = D, D
time = 10

;-| Single Button |------------------------------------------------
[Command]
name = "x"
command = x
time = 1
[Command]
name = "y"
command = y
time = 1
[Command]
name = "z"
command = z
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 = "s"
command = s
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

;-| Hold Dir |-----------------------------------------------------
[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

;------------------------------------------------------------------
[Statedef -1]

[State Mode Change]
type = ChangeState
value = 2900
triggerall = var(10) = 0 && fvar(10) = [0,1]
triggerall = command = "change"
triggerall = life >= 249 && power >= 3000 && roundstate = 2
trigger1 = statetype!= A && ctrl || stateno = 101

[State 鬼門開封]
type = ChangeState
value = 12100
triggerall = var(10) = 1 || fvar(10) >= 2
triggerall = command = "qcbhcf_c"
triggerall = power >= 3000 && roundstate = 2
trigger1 = statetype!= A && ctrl || stateno = 101
trigger2 =(stateno = [200,420])&& movecontact

[State 赤主・檻髪]
type = ChangeState
value = 2000
triggerall = command = "hcf_c"
triggerall = power >= 3000 && roundstate = 2
trigger1 = statetype!= A && ctrl || stateno = 101
trigger2 =(stateno = [200,420])&& movecontact

;------------------------------------------------------------------
[State 飛翔]
type = ChangeState
value = 11300
triggerall = var(10) = 1 || fvar(10) >= 2
triggerall = command = "upper_c" && power >= 1000
trigger1 = statetype!= A && ctrl
trigger2 =(stateno = [200,420])&& movecontact
trigger3 =(stateno = [600,720])&& movecontact

[State 赫訳・紅葉]
type = ChangeState
value = 1200
triggerall = command = "rupper_a" || command = "rupper_b" || command = "rupper_c" && power >= 1000
trigger1 = statetype!= A && ctrl
trigger2 =(stateno = [200,420])&& movecontact

[State 鳥を落とす]
type = ChangeState
value = 1000
triggerall = command = "qcf_a" || command = "qcf_b" || command = "qcf_c" && power >= 1000
trigger1 = statetype = S && ctrl
trigger2 =(stateno = [200,420])&& movecontact

[State 鳥を落とす(空中)]
type = ChangeState
value = 1050
triggerall = command = "qcf_a" || command = "qcf_b" || command = "qcf_c" && power >= 1000
trigger1 = statetype = A && ctrl
trigger2 =(stateno = [600,720])&& movecontact

[State 獣を焦がす(発動)]
type = ChangeState
value = 1130
triggerall = numhelper(1140) >= 1
triggerall = helper(1140),stateno=1140
triggerall = command = "qcb_a" || command = "qcb_b" || command = "qcb_c"
trigger1 = statetype = S && ctrl
trigger2 =(stateno = [200,420])&& movecontact

[State 獣を焦がす]
type = ChangeState
value = 1100
triggerall = numhelper(1140) = 0
triggerall = command = "qcb_a" || command = "qcb_b" || command = "qcb_c" && power >= 1000
trigger1 = statetype = S && ctrl
trigger2 =(stateno = [200,420])&& movecontact

[State 獣を焦がす(空中)]
type = ChangeState
value = 1150
triggerall = numhelper(1140) = 0
triggerall = command = "qcb_a" || command = "qcb_b" || command = "qcb_c" && power >= 1000
trigger1 = statetype = A && ctrl
trigger2 =(stateno = [600,720])&& movecontact

[State 月を穿つ]
type = ChangeState
value = 1250
triggerall = command = "dd_a" || command = "dd_b" || command = "dd_c" && power >= 1000
trigger1 = statetype!= A && ctrl
trigger2 =(stateno = [200,420])&& movecontact

;------------------------------------------------------------------
[State 投げ技]
type = ChangeState
value = 800
triggerall = command = "c"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = p2bodydist x < 10
trigger1 = p2statetype = S && p2movetype!= H
trigger1 = stateno!= 100
trigger1 = statetype = S && ctrl
trigger2 = stateno = 160 && time >= 5

[State 空中投げ技]
type = ChangeState
value = 820
triggerall = command = "c"
triggerall = command = "holdfwd"
triggerall = p2bodydist x < 20 && p2bodydist y = [-40,40]
triggerall = p2statetype = A
trigger1 = statetype = A && ctrl
trigger2 =(stateno = [600,620])&& movehit

[State Shield_S]
type = ChangeState
value = 900
triggerall = command = "z"
triggerall = command!= "holddown"
trigger1 = statetype = S && ctrl
trigger2 = stateno = [200,320]
[State Shield_C]
type = ChangeState
value = 910
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = stateno = [400,420]
[State Shield_A]
type = ChangeState
value = 920
triggerall = command = "z"
trigger1 = statetype = A && ctrl
trigger2 = stateno = [600,720]

;------------------------------------------------------------------
[State お嬢ヤクザキック]
type = ChangeState
value = 320
triggerall = command = "c"
triggerall = command = "holdfwd"
triggerall = command!= "holddown"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 160 && time >= 5
trigger3 = var(23) = 0 &&(stateno = [200,320])&& movecontact
trigger4 = var(23) = 0 &&(stateno = [400,420])&& movecontact

[State お嬢体罰覿面キック]
type = ChangeState
value = 720
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = A && ctrl
trigger2 = stateno = 161 && time >= 5
trigger3 =(stateno = [600,620])&& movecontact

;------------------------------------------------------------------
[State 立ち・弱]
type = ChangeState
value = 200
triggerall = command = "a"
triggerall = command!= "holddown"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 160 && time >= 5
trigger3 = stateno = 200 || var(20) = 0 && stateno = [210,320]
trigger3 = movecontact
trigger4 = var(20) = 0 &&(stateno = [400,420])&& movecontact

[State 立ち・中]
type = ChangeState
value = 210
triggerall = command = "b"
triggerall = command!= "holddown"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 160 && time >= 5
trigger3 = var(21) = 0 &&(stateno = [200,320])&& movecontact
trigger4 = var(21) = 0 &&(stateno = [400,420])&& movecontact

[State 立ち・強(近距離)]
type = ChangeState
value = 220
triggerall = command = "c"
triggerall = command!= "holddown"
triggerall = p2bodydist x < 20
trigger1 = statetype = S && ctrl
trigger2 = stateno = 160 && time >= 5
trigger3 = var(22) = 0 &&(stateno = [200,320])&& movecontact
trigger4 = var(22) = 0 &&(stateno = [400,420])&& movecontact

[State 立ち・強(遠距離)]
type = ChangeState
value = 225
triggerall = command = "c"
triggerall = command!= "holddown"
trigger1 = statetype = S && ctrl
trigger2 = stateno = 160 && time >= 5
trigger3 = var(22) = 0 &&(stateno = [200,320])&& movecontact
trigger4 = var(22) = 0 &&(stateno = [400,420])&& movecontact

;------------------------------------------------------------------
[State 屈み・弱]
type = ChangeState
value = 400
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = var(24) = 0 &&(stateno = [200,320])&& movecontact
trigger3 = stateno = 400 || var(24) = 0 && stateno = [410,420]
trigger3 = movecontact

[State 屈み・中]
type = ChangeState
value = 410
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = var(25) = 0 &&(stateno = [200,320])&& movecontact
trigger3 = var(25) = 0 &&(stateno = [400,420])&& movecontact

[State 屈み・強]
type = ChangeState
value = 420
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C && ctrl
trigger2 = var(26) = 0 &&(stateno = [200,320])&& movecontact
trigger3 = var(26) = 0 &&(stateno = [400,420])&& movecontact

;------------------------------------------------------------------
[State 空中・弱]
type = ChangeState
value = 600
triggerall = command = "a"
trigger1 = statetype = A && ctrl
trigger2 = stateno = 161 && time >= 5
trigger3 = stateno = 600 || var(27) = 0 && stateno = [610,620]
trigger3 = movecontact

[State 空中・中]
type = ChangeState
value = 610
triggerall = command = "b"
trigger1 = statetype = A && ctrl
trigger2 = stateno = 161 && time >= 5
trigger3 = var(28) = 0 &&(stateno = [600,620])&& movecontact

[State 空中・強]
type = ChangeState
value = 620
triggerall = command = "c"
trigger1 = statetype = A && ctrl
trigger2 = stateno = 161 && time >= 5
trigger3 = var(29) = 0 &&(stateno = [600,620])&& movecontact

;------------------------------------------------------------------
[State Dash Cancell]
type = null;ChangeState
triggerall = var(11) = 0
triggerall = command = "FF"
triggerall = command!= "holddown"
triggerall = statetype!= A
trigger1 =(stateno = [200,599])&& movecontact
value = 950

[State Super Jump]
type = ChangeState
triggerall = fvar(11) = 0
triggerall = command = "holdup"
triggerall = movehit
trigger1 = stateno = 215 && animelem = 3,[0,4]
value = 952

[State Jump Cancell]
type = ChangeState
triggerall = var(11) < 2
triggerall = command = "holdup"
trigger1 =(stateno = [200,799])&& movehit
value = 951

;------------------------------------------------------------------
[State Hi Jump]
type = ChangeState
value = 42
trigger1 = command = "holdup"
trigger1 = stateno = 10

[State Air Dash]
type = ChangeState
value = 102
triggerall = var(11) < 2
triggerall = command = "FF" || command = "BB"
triggerall = stateno!= 45 && stateno!= [102,103]
trigger1 = prevstateno!= 45
trigger1 = statetype = A && ctrl
trigger2 = prevstateno = 45 && stateno = 50 && time >= 10
trigger3 = stateno = 161 && time >= 5
trigger4 = fvar(0) < 64
trigger4 =(stateno = [600,790])&& movehit

[State Fall-recovery]
type = ChangeState
value = 5210
triggerall = fvar(0) < 64
triggerall = alive
triggerall = CanRecover
trigger1 = command = "recovery"
trigger1 = stateno = [5100,5110]

[State Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = command!= "holddown"
trigger1 = statetype = S && ctrl

[State Run Back]
type = ChangeState
value = 105
triggerall = command = "BB"
triggerall = command!= "holddown"
trigger1 = statetype = S && ctrl
trigger2 = fvar(0) < 64
trigger2 =(stateno = [200,590])&& movecontact

[State Taunt]
type = null;ChangeState
value = 195
trigger1 = command = "s"
trigger1 = statetype = S && ctrl
