
;-| super motions |--------------------------------------------------------

[command] 
name = "erarushi" 
command = ~F, D, B, F, D, B, x
time = 60

[command] 
name = "erarushi" 
command = ~F, D, B, F, D, B, a
time = 60

[command] 
name = "erarushi" 
command = ~F, D, B, F, D, B, y
time = 60

[command] 
name = "kamui" 
command = ~D, DF, F, D, DF, F, x
time = 60

[command] 
name = "kamui" 
command = ~D, DF, F, D, DF, F, a
time = 60

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

;-| special motions |------------------------------------------------------

[command] 
name = "annu" 
command = ~D, DF, F, x
time = 20

[command] 
name = "annu2" 
command = ~D, DF, F, a
time = 20

[command] 
name = "annu3" 
command = ~D, DF, F, y
time = 20

[command] 
name = "rera" 
command = ~F, D, DF, x
time = 20

[command] 
name = "rera2" 
command = ~F, D, DF, a
time = 20

[command] 
name = "rera3" 
command = ~F, D, DF, y
time = 20

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

[command] 
name = "rimse2" 
command = ~B, D, DB, a
time = 20

[command] 
name = "rimse3" 
command = ~B, D, DB, y
time = 20

[command] 
name = "mamahaha" 
command = ~F, D, B, x
time = 20

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

[command] 
name = "mamahaha3" 
command = ~F, D, B, y
time = 20

[command] 
name = "mamahaha-r" 
command = ~D, DB, B, b
time = 20

;-| DoUBle tap |-----------------------------------------------------------
[command]
name = "ff"     ;required (do not remove)
command = F, F
time = 10

[command]
name = "bb"     ;required (do not remove)
command = B, B
time = 10

;-| 2/3 button combination |-----------------------------------------------
[command]
name = "recovery";required (do not remove)
command = x+a
time = 1

;-| Dir + button |---------------------------------------------------------
[command]
name = "down_a"
command = /$D,a
time = 1

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

[command]
name = "front_b"
command = /$F,b
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 = "start"
command = s
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

[command] 
name = "longjump"       
command = ~D, $U      
time = 5 

;---------------------------------------------------------------------------
; 2. state entry
; --------------


; Don't remove the Following line. it's required by the cmd standard.
[statedef -1]

;===========================================================================


;===========================================================================

[state -1]
type = changestate
value = 3000
triggerall = command = "erarushi"  
triggerall = statetype = s 
triggerall = power >= 1000
trigger1 = ctrl 
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 3100
triggerall = command = "kamui"  
triggerall = statetype = s 
triggerall = power >= 1000
trigger1 = ctrl 
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 1100
triggerall = command = "rera"  
triggerall = statetype = s 
trigger1 = ctrl 
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 1110
triggerall = command = "rera2"  
triggerall = statetype = s 
trigger1 = ctrl 
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 1120
triggerall = command = "rera3"  
triggerall = statetype = s 
trigger1 = ctrl
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 1000
triggerall = command = "annu"  
triggerall = statetype = s 
trigger1 = ctrl 
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 1010
triggerall = command = "annu2"  
triggerall = statetype = s 
trigger1 = ctrl  
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 1020
triggerall = command = "annu3"  
triggerall = statetype = s 
trigger1 = ctrl 
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 1200
triggerall = command = "rimse"  
triggerall = statetype = s 
trigger1 = ctrl 
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 1210
triggerall = command = "rimse2"  
triggerall = statetype = s 
trigger1 = ctrl  
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 1220
triggerall = command = "rimse3"  
triggerall = statetype = s 
trigger1 = ctrl 
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

[state -1]
type = changestate
value = 1250 
triggerall = command = "x" || command = "a" || command = "y"
trigger1 = stateno = 1200
trigger1 = animelem = 5, >0 && animelem = 8, <0
trigger2 = stateno = 1210
trigger2 = animelem = 14, >0 && animelem = 17, <0
trigger3 = stateno = 1220
trigger3 = animelem = 23, >0 && animelem = 26, <0

;===========================================================================

[state -1]
type = changestate
value = 1300
triggerall = command = "mamahaha"  
triggerall = statetype = s 
triggerall = helper(6000), parentdist x = (0, 70)
triggerall = helper(6000), pos y = [-132, -112]
trigger1 = ctrl 
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 1310
triggerall = command = "mamahaha2"  
triggerall = statetype = s 
triggerall = helper(6000), parentdist x = (0, 70)
triggerall = helper(6000), pos y = [-132, -112]
trigger1 = ctrl 
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 1320
triggerall = command = "mamahaha3"  
triggerall = statetype = s 
triggerall = helper(6000), parentdist x = (0, 70)
triggerall = helper(6000), pos y = [-132, -112]
trigger1 = ctrl 
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1]
type = changestate
value = 1400
triggerall = command = "mamahaha-r"  
triggerall = statetype = s 
triggerall = helper(6000), parentdist x = (0, 70)
triggerall = helper(6000), pos y = [-132, -112]
trigger1 = ctrl = 1
trigger2 = movecontact && (stateno = 200)
trigger3 = movecontact && (stateno = 205)
trigger4 = movecontact && (stateno = 210)
trigger5 = movecontact && (stateno = 215)
trigger6 = movecontact && (stateno = 230)
trigger7 = movecontact && (stateno = 235)
trigger8 = movecontact && (stateno = 240)
trigger9 = movecontact && (stateno = 450)
trigger10 = movecontact && (stateno = 400)
trigger11 = movecontact && (stateno = 430)
trigger12 = movecontact && (stateno = 410)
trigger13 = movecontact && (stateno = 700)

;===========================================================================

[state -1, kamui mutsbae]
type = changestate
value = 1413
triggerall = command = "recovery" 
triggerall = statetype = a
trigger1 = stateno = 1403
trigger1 = ctrl = 1
trigger2 = stateno = 1410
trigger2 = movecontact
trigger3 = stateno = 1412
trigger3 = movecontact

;---------------------------------------------------------------------------
;run back
;後退?ッシュ
[state -1, run back]
type = changestate
value = 105
trigger1 = command = "bb"
trigger1 = statetype = s
trigger1 = ctrl

;---------------------------------------------------------------------------
;kung Fu throw
;投げ
[state -1, kung Fu throw]
type = changestate
value = 800
trigger1 = command = "y" && command = "b"
trigger1 = statetype = s && (ctrl || (anim = [99,101])) && stateno != 1700

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

[state -1, t s]
type = changestate
value = 110
triggerall = command = "recovery"
triggerall = power >= 500
trigger1 = statetype != a
trigger1 = ctrl

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

[state -1, gc t s]
type = changestate
value = 110
triggerall = command = "recovery"
triggerall = power >= 1000
trigger1 = stateno = 150
trigger2 = stateno = 151

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

[state -1, ac t s]
type = changestate
value = 110
triggerall = command = "recovery"
triggerall = power >= 1000
trigger1 = stateno = [200,499]

;===========================================================================
;---------------------------------------------------------------------------
;stand light punch
;立ち弱パン?
[state -1, stand light punch]
type = changestate
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 110 && animelem = 3

;---------------------------------------------------------------------------
;stand strong punch
;立ち強パン?
[state -1, stand strong punch]
type = changestate
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = (stateno = 200) && movecontact
trigger3 = stateno = 110 && animelem = 3

;---------------------------------------------------------------------------
;stand light kick
;立ち弱キック
[state -1, stand light kick]
type = changestate
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = (stateno = 200) && movecontact
trigger3 = stateno = 110 && animelem = 3

;---------------------------------------------------------------------------
;standing strong kick
;立ち強キック
[state -1, standing strong kick]
type = changestate
value = 240
triggerall = command = "b"
triggerall = command != "holdfwd"
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6
trigger4 = stateno = 110 && animelem = 3

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

[state -1, 700]
type = changestate
value = 250
triggerall = power >= 1000
triggerall = command = "y" && command = "b"
trigger1 = stateno = 150
trigger2 = stateno = 151

;---------------------------------------------------------------------------
;standing strong kick
;立ち強キック
[state -1, standing strong kick]
type = changestate
value = 260
triggerall = command = "front_b"
trigger1 = statetype = s
trigger1 = ctrl
trigger2 = (stateno = 200) && time > 5
trigger3 = (stateno = 230) && time > 6

;---------------------------------------------------------------------------
;taunt
;挑発
[state -1, taunt]
type = changestate
value = 195
triggerall = command = "start"
trigger1 = statetype != a
trigger1 = ctrl

;---------------------------------------------------------------------------
;crouching light punch
;しゃがみ弱パン?
[state -1, crouching light punch]
type = changestate
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = c
trigger1 = ctrl
trigger2 = stateno = 450
trigger2 = movecontact
trigger3 = stateno = 110 && animelem = 3

;---------------------------------------------------------------------------
;crouching strong punch
;しゃがみ強パン?
[state -1, crouching strong punch]
type = changestate
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = c
trigger1 = ctrl
trigger2 = stateno = 110 && animelem = 3

;---------------------------------------------------------------------------
;crouching light kick
;しゃがみ弱キック
[state -1, crouching light kick]
type = changestate
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = c
trigger1 = ctrl
trigger2 = stateno = 110 && animelem = 3

;---------------------------------------------------------------------------
;crouching strong kick
;しゃがみ強キック
[state -1, crouching strong kick]
type = changestate
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = command != "holdback"
trigger1 = statetype = c
trigger1 = ctrl
trigger2 = stateno = 110 && animelem = 3

;---------------------------------------------------------------------------
;crouching strong kick
;しゃがみ強キック
[state -1, crouching strong kick]
type = changestate
value = 450
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = command = "holdback"
trigger1 = statetype = c
trigger1 = ctrl
trigger2 = stateno = 110 && animelem = 3

;---------------------------------------------------------------------------
;jump light punch
;空中弱パン?
[state -1, jump light punch]
type = changestate
value = 600
triggerall = command = "x"
triggerall = stateno != 1403
trigger1 = statetype = a
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = statetime >= 7
trigger3 = stateno = 1350 ;air blocking

;---------------------------------------------------------------------------
;jump strong punch
[state -1, jump strong punch]
type = changestate
value = 610
triggerall = command = "y"
triggerall = stateno != 1403
trigger1 = statetype = a
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact
trigger3 = stateno = 1350 ;air blocking

;---------------------------------------------------------------------------
;jump light kick
[state -1, jump light kick]
type = changestate
value = 630
triggerall = command = "a"
triggerall = stateno != 1403
trigger1 = statetype = a
trigger1 = ctrl
trigger2 = stateno = 1350 ;air blocking

;---------------------------------------------------------------------------
;jump strong kick
;空中強キック
[state -1, jump strong kick]
type = changestate
value = 640
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = stateno != 1403
trigger1 = statetype = a
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact
trigger3 = stateno = 1350 ;air blocking

;---------------------------------------------------------------------------
;jump strong kick
;空中強キック
[state -1, jump strong kick]
type = changestate
value = 650
triggerall = command = "down_b"
trigger1 = statetype = a
trigger1 = ctrl
trigger2 = stateno = 600 || stateno = 630 ;jump_x or jump_a
trigger2 = movecontact
trigger3 = stateno = 1350 ;air blocking

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

[state -1]
type = changestate
value = 700
triggerall = command = "x"
triggerall = statetype != a
trigger1 = stateno = 100 && time > 3

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

[state -1]
type = changestate
value = 700
triggerall = command = "a"
triggerall = statetype != a
trigger1 = stateno = 100 && time > 3

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

[state -1]
type = changestate
value = 700
triggerall = command = "y"
triggerall = statetype != a
trigger1 = stateno = 100 && time > 3

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

[state -1, run Fwd]
type = changestate
value = 102
trigger1 = command = "ff" && statetype = s && ctrl

[state -1, t s]
type = changestate
value = 102
triggerall = command = "ff"
triggerall = power >= 500
trigger1 = stateno = 150
trigger2 = stateno = 151

