;-| スーパーコンボ |-------------------------------------------------------
[Command]
name = "onimusou"
command = ~55$B,$F,B$,F,x
time = 30
[Command]
name = "onimusou"
command = ~55$B,$F,B$,F,y
time = 30
[Command]
name = "onimusou"
command = ~55$B,$F,B$,F,z
time = 30

;-| (勝手に)新スーパーコンボ |---------------------------------------------
[Command]
name = "1000handslap"
command = ~55$B,$F,B$,F,a
time = 30
[Command]
name = "1000handslap"
command = ~55$B,$F,B$,F,b
time = 30
[Command]
name = "1000handslap"
command = ~55$B,$F,B$,F,c
time = 30

; 大蛇砕き
[Command]
name = "orochi"
command = F,D,B,F,D,B,x
time = 50
[Command]
name = "orochi"
command = F,D,B,F,D,B,y
time = 50
[Command]
name = "orochi"
command = F,D,B,F,D,B,z
time = 50

;-| 特殊技 |---------------------------------------------------------------
[Command]
name = "RC"
command = a+x
time = 1

[Command]
name = "EC"
command = b+y
time = 1

[Command]
name = "SC"
command = c+z
time = 1

;-| 必殺技 |---------------------------------------------------------------
; スーパー頭突き
[Command]
name = "spheadbutt_L"
command = ~55$B,F,x
time = 30
[Command]
name = "spheadbutt_M"
command = ~55$B,F,y
time = 30
[Command]
name = "spheadbutt_H"
command = ~55$B,F,z
time = 30

; 百烈張り手
[Command]
name = "100handslap_L"
command = x,x
time = 30
[Command]
name = "100handslap_L2"
command = x,x,x
time = 30
[Command]
name = "100handslap_M"
command = y,y
time = 30
[Command]
name = "100handslap_M2"
command = y,y,y
time = 30
[Command]
name = "100handslap_H"
command = z,z
time = 30
[Command]
name = "100handslap_H2"
command = z,z,z
time = 30

; スーパー百貫落とし
[Command]
name = "sp100kan_L"
command = ~55$D,$U,a
time = 30
[Command]
name = "sp100kan_M"
command = ~55$D,$U,b
time = 30
[Command]
name = "sp100kan_H"
command = ~55$D,$U,c
time = 30

; 大銀杏投げ
[Command]
name = "ithou_L"
Command = ~F, DF, D, DB, B, x
Time = 40
[Command]
name = "ithou_M"
Command = ~F, DF, D, DB, B, y
Time = 40
[Command]
name = "ithou_H"
Command = ~F, DF, D, DB, B, z
Time = 40
[Command]
name = "ithou_L"
Command = ~B, DB, D, DF, F, x
Time = 40
[Command]
name = "ithou_M"
Command = ~B, DB, D, DF, F, y
Time = 40
[Command]
name = "ithou_H"
Command = ~B, DB, D, DF, F, z
Time = 40

;-| 通常技 |---------------------------------------------------------------
[Command]
name = "LP"
command = x
time = 1

[Command]
name = "MP"
command = y
time = 1

[Command]
name = "HP"
command = z
time = 1

[Command]
name = "LK"
command = a
time = 1

[Command]
name = "MK"
command = b
time = 1

[Command]
name = "HK"
command = c
time = 1

;-| 特殊 |-----------------------------------------------------------------
[Command]
name = "fwd"
command = $F

[Command]
name = "back"
command = $B

[Command]
name = "up"
command = $U

[Command]
name = "down"
command = $D

[Command]
name = "refwd"
command = ~$F

[Command]
name = "reback"
command = ~$B

[Command]
name = "reup"
command = ~$U

[Command]
name = "redown"
command = ~$D

[Command]
name = "holds"
command = /s
[Command]
name = "holdF"
command = /F
[Command]
name = "holdDF"
command = /DF
[Command]
name = "holdD"
command = /D
[Command]
name = "holdDB"
command = /DB
[Command]
name = "holdB"
command = /B
[Command]
name = "holdUB"
command = /UB
[Command]
name = "holdU"
command = /U
[Command]
name = "holdUF"
command = /UF
[Command]
name = "holda"
command = /a
[Command]
name = "holdb"
command = /b
[Command]
name = "holdc"
command = /c
[Command]
name = "holdx"
command = /x
[Command]
name = "holdy"
command = /y
[Command]
name = "holdz"
command = /z

[Command]
name = "AI"
command = ~D,~DF,~F
time = 2
[Command]
name = "AI"
command = ~D,~DB,~B
time = 2

;-| 使用必須cmd |----------------------------------------------------------
[Command]
name="holdfwd"
command=/$F
[Command]
name="holddown"
command=/$D
time=1
[Command]
name="holdback"
command=/$B
time=1
[Command]
name="holdup"
command=/$U
time=1
;-| 未使用必須cmd |--------------------------------------------------------
[Command]
name="FF"
command=F,F
time=10
[Command]
name="BB"
command=B,B
time=10

[Command]
name = "recovery"
command = a
time = 1
[Command]
name = "recovery"
command = b
time = 1
[Command]
name = "recovery"
command = x
time = 1
[Command]
name = "recovery"
command = y
time = 1

[Statedef -1]
;---------------------------------------------------------------------------
; スーパーコンボ
;---------------------------------------------------------------------------
; 鬼無双
[State -1]
type = ChangeState
value = 3000
;triggerall = var(3) >=5
triggerall = command = "onimusou"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,209]


;---------------------------------------------------------------------------
; 千烈張り手
[State -1]
type = ChangeState
value = 4000
;triggerall = var(3) >=6
triggerall = command = "1000handslap"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,209]

;---------------------------------------------------------------------------
; 大蛇砕き
[State -1]
type = ChangeState
value = 4100
triggerall = var(5)!=1||(p2bodydist x=[-3,55))
triggerall = var(3) >=6
triggerall = command = "orochi"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = [200,209]

;---------------------------------------------------------------------------
; 必殺技
;---------------------------------------------------------------------------
; スーパー頭突き
[State -1]
type = ChangeState
value = 1000
triggerall=command="spheadbutt_L"||command="spheadbutt_M"||command="spheadbutt_H"
trigger1 = statetype = S || var(3)=2
trigger1 = ctrl
trigger2 = (stateno = [200,209]) || (var(3)=2&&(stateno=[200,799]))

;---------------------------------------------------------------------------
; 空中スーパー頭突き
[State -1]
type = ChangeState
value = 1010
triggerall = var(3) >=6
triggerall=command="spheadbutt_L"||command="spheadbutt_M"||command="spheadbutt_H"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = [200,209]

;---------------------------------------------------------------------------
; 百烈張り手
[State -1]
type = ChangeState
value = 1050
triggerall=command="100handslap_L"||command="100handslap_M"||command="100handslap_H" || (var(5)=1&&(stateno=[200,209])&&movehit)
trigger1 = statetype = S || var(3)=2
trigger1 = ctrl
trigger2 = (stateno = [200,209]) || (var(3)=2&&(stateno=[200,799]))

;---------------------------------------------------------------------------
; スーパー百貫落とし
[State -1]
type = ChangeState
value = 1100
triggerall = var(3) >=3
triggerall=command="sp100kan_L"||command="sp100kan_M"||command="sp100kan_H"
trigger1 = statetype !=A
trigger1 = ctrl || stateno=40
trigger2 = stateno = [200,209]

;---------------------------------------------------------------------------
; 大銀杏投げ
[State -1]
type = ChangeState
value = 1150
triggerall = var(3) >=5
triggerall = command="ithou_L"||command="ithou_M"||command="ithou_H"
triggerall = statetype !=A
triggerall = ctrl
trigger1 = p2bodydist X <=30
trigger1 = p2statetype !=A
trigger1 = p2movetype !=H

;---------------------------------------------------------------------------
; 特殊技
;---------------------------------------------------------------------------
; 細工バースト
[State -1, burst]
type = varset
v = 59
value = ctrl
triggerall = var(3) >=6
triggerall = command="LP" && command="MP" && command="HP"
triggerall = fvar(0)>= 54
triggerall = roundstate = 2 && alive
trigger1 = ctrl
trigger2 = var(1) = 0
trigger2 = movetype = H
trigger2 = anim!= 5300
[State -1, burst]
type = ChangeState
value = 9100
triggerall = var(3) >=6
triggerall = command="LP" && command="MP" && command="HP"
triggerall = fvar(0)>= 54
triggerall = roundstate = 2 && alive
trigger1 = ctrl
trigger2 = var(1) = 0
trigger2 = movetype = H
trigger2 = anim!= 5300

;---------------------------------------------------------------------------
; ロマンキャンセル
[State -1, RC]
type = ChangeState
value = 9000
triggerall = var(3) >=6
triggerall = command = "RC"
triggerall = power >= 500
triggerall = Stateno!= 0
triggerall = Stateno!= 9000
triggerall = PrevStateno!= 9000
trigger1 = movecontact
ignorehitpause = 1

; イージーキャンセル
[State -1, EC]
type = ChangeState
value = 9010
triggerall = var(3) >=6
triggerall = command = "EC"
triggerall = power >= 500
triggerall = Stateno!= 0
triggerall = Stateno!= 9010
triggerall = PrevStateno!= 9010
trigger1 = movecontact
trigger1 = stateno = [200,799]
ignorehitpause = 1

; スーパーキャンセル
[State -1, SC]
type = ChangeState
value = 9020
triggerall = var(3) >=6
triggerall = command = "SC"
triggerall = power >= 500
triggerall = Stateno!= 0
triggerall = Stateno!= 9020
triggerall = PrevStateno!= 9020
trigger1 = movecontact
trigger1 = statetype!= a
ignorehitpause = 1

;---------------------------------------------------------------------------
; 通常技
;---------------------------------------------------------------------------
; 俵投げ
[State -1, throw]
type = ChangeState
value = 800
triggerall = command = "MP"
triggerall = statetype = S
triggerall = ctrl
trigger1 = p2bodydist X <=15
trigger1 = command="holdfwd"||command="holdback"||command="holdup"
trigger1 = p2statetype = S || p2statetype = C
trigger1 = p2movetype != H

;---------------------------------------------------------------------------
; さば折り
[State -1, throw2]
type = ChangeState
value = 820
triggerall = command = "HP"
triggerall = statetype = S
triggerall = ctrl
trigger1 = p2bodydist X <=15
trigger1 = command="holdfwd"||command="holdback"||command="holdup"
trigger1 = p2statetype = S || p2statetype = C
trigger1 = p2movetype != H

;---------------------------------------------------------------------------
; 折檻蹴り
[State -1, throw3]
type = ChangeState
value = 840
triggerall = command = "HK"
triggerall = statetype = S
triggerall = ctrl
trigger1 = p2bodydist X <=15
trigger1 = command="holdfwd"||command="holdback"||command="holdup"
trigger1 = p2statetype = S || p2statetype = C
trigger1 = p2movetype != H

;---------------------------------------------------------------------------
; 立ち弱パンチ
[State -1]
type = ChangeState
value = 200+(var(3)>=5)*(p2bodydist x=[-3,25))*5
triggerall = command = "LP" || (var(5)=1&&p2bodydist x<=40&&p2movetype!=A&&p2statetype!=A&&prevstateno!=1050)
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200|| stateno = 205
trigger2 = time > 6

;---------------------------------------------------------------------------
; 立ち中パンチ
[State -1]
type = ChangeState
value = 210+(var(3)>=5)*(p2bodydist x<30)*5
triggerall = command = "MP"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; 立ち強パンチ
[State -1]
type = ChangeState
value = 225-(var(3)>=5)*(p2bodydist x>40)*5
triggerall = command = "HP" || (var(5)&&p2bodydist x<60&&(p2bodydist x<40||p2statetype!=A)&&p2bodydist y>-80&&p2movetype!=A)
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; 立ち弱キック
[State -1]
type = ChangeState
value = 230+(var(3)<5)+(var(3)>=5)*(p2bodydist x<5)*5+(var(3)<5)*(p2bodydist x<50)*5
triggerall = command = "LK"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; 膝蹴り
[State -1]
type = ChangeState
value = 247
triggerall = (var(3)>=5)&&(p2bodydist x<5)||(var(3)<5)&&(p2bodydist x<60)
triggerall = command = "MK"
triggerall = command="holdfwd"||command="holdback"||command="holdup"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; 立ち中キック
[State -1]
type = ChangeState
value = 240+(var(3)<5)+(var(3)>=5)*(p2bodydist x<5)*5+(var(3)<5)*(p2bodydist x<60)*5
triggerall = command = "MK"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; 払い蹴り
[State -1]
type = ChangeState
value = 255
triggerall = var(3) > 3
triggerall = command = "HK"
triggerall =(command="holdfwd")||(command="holdback")
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; 立ち強キック
[State -1]
type = ChangeState
value = 250+(var(3)<5)*(p2bodydist x>60)*5
triggerall = command = "HK"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
; しゃがみ弱パンチ
[State -1]
type = ChangeState
value = 400
triggerall = command = "LP"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
; しゃがみ中パンチ
[State -1]
type = ChangeState
value = 410
triggerall = command = "MP"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
; しゃがみ強パンチ
[State -1]
type = ChangeState
value = 420+(var(3)<5)
triggerall = command = "HP"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
; しゃがみ弱キック
[State -1]
type = ChangeState
value = 430+(var(3)<5)
triggerall = command = "LK"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
; しゃがみ中キック
[State -1]
type = ChangeState
value = 440+(var(3)<5)
triggerall = command = "MK"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
; しゃがみ強キック
[State -1]
type = ChangeState
value = 450
triggerall = command = "HK"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
; 空中弱パンチ
[State -1]
type = ChangeState
value = 600
triggerall = command = "LP"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
; 空中中パンチ
[State -1]
type = ChangeState
value = 610
triggerall = command = "MP"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
; 空中強パンチ
[State -1]
type = ChangeState
value = 620
triggerall = command = "HP"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
; 空中弱キック
[State -1]
type = ChangeState
value = 630+(anim=42||anim=43)*5
triggerall = command = "LK"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
; 空中中キック
[State -1]
type = ChangeState
value = 640+(((anim=42||anim=43)&&(command="holddown"))||var(3)<4)*5
triggerall = command = "MK"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
; 空中強キック
[State -1]
type = ChangeState
value = 650
triggerall = command = "HK"
trigger1 = statetype = A
trigger1 = ctrl
