

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

[command]
name = "shinki"
command = ~D, DF, F,D, DF, F, x
time = 30

[command]
name = "shinki"
command = ~D, DF, F,D, DF, F, y
time = 30

[command]
name = "nanmu"
command = ~D, F, D, B, a
time = 30

[command]
name = "nanmu"
command = ~D, F, D, B, b
time = 30

[command]
name = "Joker"
command = ~30$B, F, B, F, c
time = 30

[command]
name = "issen"
command = ~D, F, D, B, c
time = 30

[command]
name = "moon"
command = ~F, D, B, F, z
time = 30

[command]
name = "munokyouchi"
command = ~D, F, D, F, c
time = 30

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

[command]
name = "tomanite_a"
command = ~D, DF, F, x
time = 12

[command]
name = "tomanite_b"
command = ~D, DF, F, y
time = 12

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

[command]
name = "tikayorite"
command = ~F, D, DF, b
time = 20

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

[command]
name = "suigetsu2"
command = ~D, DB, B, b
time = 20

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

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

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

[command]
name = "fubang"
command = ~B, D, F, b
time = 20

[command]
name = "clober"
command = ~D, DF, F, b
time = 20

[command]
name = "sasame"
command = ~F, D, B, z
time = 20

[command]
name = "heal"
command = ~D, D, s
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+y
time = 1

[command] 
name = "dodge" 
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 = "longjump"       
command = ~D, $U      
time = 5 

;-| 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 = "hold_x"
command = /x
time = 1

[command]
name = "hold_a"
command = /a
time = 1

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

[command]
name = "hold_b"
command = /B
time = 1

[command]
name = "hold_s"
command = /s
time = 1

;---------------------------------------------------------------------------
; 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 = "shinki"
triggerall = statetype = s 
triggerall = var(10) = 0
trigger1 = ctrl = 1 
trigger1 = power >= 1000
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 3100
triggerall = command = "nanmu"
triggerall = statetype = s 
triggerall = var(10) = 0
trigger1 = ctrl = 1 
trigger1 = power >= 1000
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 3200
triggerall = command = "Joker"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger1 = power >= 2000
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact
trigger2 = (stateno = 3010) || (stateno = 3120) 
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 3300
triggerall = command = "issen"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger1 = power >= 2000
trigger1 = p2life <= 500
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact
trigger2 = (stateno = 3010) || (stateno = 3120) 
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 3400
triggerall = command = "moon"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger1 = power >= 1000
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

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

[State -1, BAKU]
type = ChangeState
value = 3500
triggerall = command = "munokyouchi"
triggerall = power >= 2000
triggerall = var(10) = 0
triggerall = life <= 300
trigger1 = statetype != A
trigger1 = ctrl

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

[State -1, F]
type = ChangeState
value = 3510
triggerall = command = "shinki"
triggerall = var(10) != 0
trigger1 = statetype != A
trigger1 = ctrl

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

[State -1, F]
type = ChangeState
value = 3520
triggerall = command = "nanmu"
triggerall = var(10) != 0
trigger1 = statetype != A
trigger1 = ctrl

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

[state -1]
type = changestate
value = 1000
triggerall = command = "tomanite_a"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 1010
triggerall = command = "tomanite_b"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 1600
triggerall = command = "tomanite_a"
triggerall = statetype = a 
trigger1 = ctrl = 1 
trigger2 = (stateno = 600) || (stateno = 610) 
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 1650
triggerall = command = "tomanite_b"
triggerall = statetype = a 
trigger1 = ctrl = 1 
trigger2 = (stateno = 600) || (stateno = 610) 
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 1100
triggerall = command = "tikayorite"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 1200
triggerall = command = "dash slash"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 1300
triggerall = command = "suigetsu"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 1350
triggerall = command = "suigetsu2"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 1400
triggerall = command = "fubang"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 1500
triggerall = command = "heal"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 1700
triggerall = command = "clober"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

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

[state -1]
type = changestate
value = 1800
triggerall = command = "sasame"
triggerall = statetype = s 
trigger1 = ctrl = 1 
trigger2 = (stateno = 200) || (stateno = 215) || (stateno = 230) || (stateno = 410) || (stateno = 230) || (stateno = 400) || (stateno = 302)
trigger2 = MoveContact

;---------------------------------------------------------------------------
;run Fwd
;?ッシュ
[state -1, run Fwd]
type = changestate
value = 100
trigger1 = command = "ff"
trigger1 = statetype = s
trigger1 = ctrl

;---------------------------------------------------------------------------
;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
triggerall = command = "y"
triggerall = statetype = s
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist x < 3
trigger1 = (p2statetype = s) || (p2statetype = c)
trigger1 = p2movetype != h
trigger2 = command = "holdback"
trigger2 = p2bodydist x < 5
trigger2 = (p2statetype = s) || (p2statetype = c)
trigger2 = p2movetype != h


;===========================================================================
;---------------------------------------------------------------------------
;stand light punch
;立ち弱パン?
[state -1, stand light punch]
type = changestate
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl

;---------------------------------------------------------------------------
;stand strong punch
;立ち強パン?
[state -1, stand strong punch]
type = changestate
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl

;---------------------------------------------------------------------------
;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) && time > 7

;---------------------------------------------------------------------------
;standing strong kick
;立ち強キック
[state -1, standing strong kick]
type = changestate
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl

;---------------------------------------------------------------------------
;standing strong kick
;立ち強キック
[state -1, standing strong kick]
type = changestate
value = 250
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = s
trigger1 = ctrl

;---------------------------------------------------------------------------
;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

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

;---------------------------------------------------------------------------
;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 = 200) || (stateno = 230)
trigger2 = (time > 9) || (movecontact && time > 5)

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

;---------------------------------------------------------------------------
;jump light punch
;空中弱パン?
[state -1, jump light punch]
type = changestate
value = 600
triggerall = command = "x"
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"
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"
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"
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 = 110 
triggerall = command = "dodge" ^^ command = "z"          
trigger1 = command = "holdfwd" && statetype = s && ctrl                                                                     
trigger2 = (stateno = 150 || stateno = 152) && command != "holdback" && power >= 500 

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

[state -1] 
type = changestate 
value = 115 
triggerall = command = "dodge" ^^ command = "z"          
trigger1 = command = "holdback" && statetype = s && ctrl                                                                     
trigger2 = (stateno = 150 || stateno = 152) && command != "holdback" && power >= 500 

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

