;-| Button Remapping |-----------------------------------------------------
; This section lets you remap the player's buttons (to easily change the
; button configuration). The format is:
;   old_button = new_button
; If new_button is left blank, the button cannot be pressed.

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

;-| Default Values |-------------------------------------------------------
[Defaults]
; Default value for the "time" parameter of a Command. Minimum 1.
command.time = 15

; Default value for the "buffer.time" parameter of a Command. Minimum 1,
; maximum 30.
command.buffer.time = 1

;------------------------------------------------------------------------------
;AI用コマンド

[Command]
name = "CPU1"
command = U, D, F
time = 1

[Command]
name = "CPU2"
command = U, B, F
time = 1

[Command]
name = "CPU3"
command = U, D, D
time = 1

[Command]
name = "CPU4"
command = F, B, U
time = 1

[Command]
name = "CPU5"
command = U, F, U, B
time = 1

[Command]
name = "CPU6"
command = U, D, B
time = 1

[Command]
name = "CPU7"
command = F, F, B
time = 1

[Command]
name = "CPU8"
command = U, D, U
time = 1

[Command]
name = "CPU9"
command = F, B, B
time = 1

[Command]
name = "CPU10"
command = F, F, B, B
time = 1

[Command]
name = "CPU11"
command = U, U, F
time = 1

[Command]
name = "CPU12"
command = U, B, B
time = 1

[Command]
name = "CPU13"
command = U, B, F, F
time = 1

[Command]
name = "CPU14"
command = U, F, B, U
time = 1

[Command]
name = "CPU15"
command = U, B, F, U
time = 1

[Command]
name = "CPU16"
command = U, B, B, B
time = 1

[Command]
name = "CPU17"
command = U, D, B, F
time = 1

[Command]
name = "CPU18"
command = U, D, B, D
time = 1

[Command]
name = "CPU19"
command = U, D, F, U
time = 1

[Command]
name = "CPU20"
command = U, D, U, B
time = 1

[Command]
name = "CPU21"
command = U, D, F, F
time = 1

[Command]
name = "CPU22"
command = F, F, F, F
time = 1

[Command]
name = "CPU23"
command = U, U, U, D
time = 1

[Command]
name = "CPU24"
command = B, B, B
time = 1

[Command]
name = "CPU25"
command = D, D, D, D
time = 1

[Command]
name = "CPU26"
command = D, D, D
time = 1

[Command]
name = "CPU27"
command = F, F, F
time = 1

[Command]
name = "CPU28"
command = U, U, U
time = 1

[Command]
name = "CPU29"
command = U, U, B, B
time = 1

[Command]
name = "CPU30"
command = D, D, F, F
time = 1

[Command]
name = "CPU31"
command = U, D, F, U, D
time = 1

[Command]
name = "CPU32"
command = U, B, F, U, D
time = 1

[Command]
name = "CPU33"
command = U, D, D, U, D
time = 1

[Command]
name = "CPU34"
command = F, B, U, U, D
time = 1

[Command]
name = "CPU35"
command = U, F, U, B, U, D
time = 1

[Command]
name = "CPU36"
command = U, D, B, U, D
time = 1

[Command]
name = "CPU37"
command = F, F, B, U, D
time = 1

[Command]
name = "CPU38"
command = U, D, U, U, D
time = 1

[Command]
name = "CPU39"
command = F, B, B, U, D
time = 1

[Command]
name = "CPU40"
command = F, F, B, B, U, D
time = 1

[Command]
name = "CPU41"
command = U, U, F, U, D
time = 1

[Command]
name = "CPU42"
command = U, B, B, U, D
time = 1

[Command]
name = "CPU43"
command = U, B, F, F, U, D
time = 1

[Command]
name = "CPU44"
command = U, F, B, U, U, D
time = 1

[Command]
name = "CPU45"
command = U, B, F, U, U, D
time = 1

[Command]
name = "CPU46"
command = U, B, B, B, U, D
time = 1

[Command]
name = "CPU47"
command = U, D, B, F, U, D
time = 1

[Command]
name = "CPU48"
command = U, D, B, D, U, D
time = 1

[Command]
name = "CPU49"
command = U, D, F, U, U, D
time = 1

[Command]
name = "CPU50"
command = U, D, U, B, U, D
time = 1


;-| Super Motions |--------------------------------------------------------

[Command]
name = "NEO MAX"
command = ~D, DB, B, x+y+z
time = 20
;[Command]
;name = "NEO MAX"
;command = x+b
;time = 20
;+++++++++++++++++++++++++

;[Command]
;name = "ChoninhachiEX"
;command = y+c
;time = 20
[Command]
name = "ChoninhachiEX"
command = ~D, DB, B, D, F, a+b
time = 20
[Command]
name = "ChoninhachiEX"
command = ~D, DB, B, D, F, c+b
time = 20
[Command]
name = "ChoninhachiEX"
command = ~D, DB, B, D, F, a+c
time = 20
;+++++++++++++++++++++++++
 
[Command]
name = "Choninhachi"
command = ~D, DB, B, D, F, a
time = 20
[Command]
name = "Choninhachi"
command = ~D, DB, B, D, F, b
time = 20
[Command]
name = "Choninhachi"
command = ~D, DB, B, D, F, c
time = 20
[Command]
name = "Choninhachi"
command = ~D, DB, B, c
time = 20

;-| EX Special Motions |------------------------------------------------------
;+++++++++++++++++++++++++


[Command] ;"buttbounce"
name = "ShinobuhachiEX"
command = ~B, D, F, a+b
[Command] ;"buttbounce"
name = "ShinobuhachiEX"
command = ~B, D, F, c+b
[Command] ;"buttbounce"
name = "ShinobuhachiEX"
command = ~B, D, F, a+c
;+++++++++++++++++++++++++
 
[Command]
name = "RyuMaiEX"
command = ~D, DB, B, x+y
[Command]
name = "RyuMaiEX"
command = ~D, DB, B, z+y
[Command]
name = "RyuMaiEX"
command = ~D, DB, B, x+z
;+++++++++++++++++++++++++
 
[Command]
name = "HanachoogiEX"
command = ~D, DF, F, x+y
[Command]
name = "HanachoogiEX"
command = ~D, DF, F, z+y
[Command]
name = "HanachoogiEX"
command = ~D, DF, F, x+z

;-| Special Motions |------------------------------------------------------

;+++++++++++++++++++++++++
 
[Command]
name = "Flyingsquirrel"
command = $U, x
[Command]
name = "Flyingsquirrel"
command = $U, y
[Command]
name = "Flyingsquirrel"
command = $U, z
[Command]
name = "Flyingsquirrel"
command = $UB, x
;command = ~20$D,$UB, x
[Command]
name = "Flyingsquirrel"
command = $UB, y
[Command]
name = "Flyingsquirrel"
command = $UB, z
[Command]
name = "Flyingsquirrel"
command = $UF, x
[Command]
name = "Flyingsquirrel"
command = $UF, y
[Command]
name = "Flyingsquirrel"
command = $UF, z
 
;+++++++++++++++++++++++++

[Command]
name = "Shinobuhachi"
command = ~B, D, F, a
[Command]
name = "Shinobuhachi"
command = ~B, D, F, b
[Command]
name = "Shinobuhachi"
command = ~B, D, F, c

;+++++++++++++++++++++++++

[Command]
name = "RyuMaiX"
command = ~D, DB, B, x
[Command]
name = "RyuMaiY"
command = ~D, DB, B, y
[Command]
name = "RyuMaiZ"
command = ~D, DB, B, z

;+++++++++++++++++++++++++

[Command]
name = "Hanachoogi"
command = ~D, DF, F, x
[Command]
name = "Hanachoogi"
command = ~D, DF, F, y
[Command]
name = "Hanachoogi"
command = ~D, DF, F, z


;+++++++++++++++++++++++++
[Command]
name = "abc"
command = b+a ;c
time = 1

;+++++++++++++++++++++++++
[Command]
name = "Dodge"
command = x+a
time = 1
 
[Command]
name = "DodgeBack"
command = /$B,x+a
time = 1
 
;-| 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 = "Futtobashi"
command = y+b
time = 1

[Command]
name = "MAX"
command = y+a
time = 1

[Command]
name = "Holdx"
command = /$x
time = 1

[Command]
name = "Holdy"
command = /$y
time = 1

[Command]
name = "Holda"
command = /$a
time = 1

[Command]
name = "Holdb"
command = /$b
time = 1

[Command]
name = "Holdz"
command = /$z
time = 1

[Command]
name = "Holdc"
command = /$c
time = 1

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

[Command]
name = "down_b"
command = /$D,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

;[Command]
;name = "up"  
;command = U
;time = 1
[Command]
name = "up"  
command = UF
time = 1
;[Command]
;name = "up"  
;command = UB
;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


;-| Releese Button |---------------------------------------------------------
[Command]
name = "~a"
command = ~a
time = 1

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


; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]
 
;===========================================================================
;---------------------------------------------------------------------------
;DodgeBack
[State -1, Taunt]
type = ChangeState
value = 701
triggerall = var(59) <= 0
triggerall = command = "DodgeBack"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [150,151]) && power >= 1000 ;ガードキャンセルDodgeBack
;--------------------------------------------------------------------------- 
;---------------------------------------------------------------------------
;Dodge
[State -1, Taunt]
type = ChangeState
value = 700
triggerall = var(59) <= 0
triggerall = command = "Dodge"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [150,151]) && power >= 1000 ;ガードキャンセルDodge
;--------------------------------------------------------------------------- 
;---------------------------------------------------------------------------
;ダウン回避
[State -1, Taunt]
type = ChangeState
value = 702
triggerall = var(59) <= 0
triggerall = command = "Dodge"
triggerall = alive && canrecover
trigger1 = stateno = 5050
trigger1 = pos y >=0
trigger1 = vel y > 0
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
; Mai Shiranui flow-Kunoichi
[State NeoMax]
type = ChangeState
value = 3500
triggerall = var(59) <= 0 && power >= 2000
triggerall = command = "NEO MAX" || fvar(6) = 3500
triggerall = power >= 3000 || (var(29) >= 1) 
trigger1 = ctrl
trigger2 = (stateno = [200,295]) && (movecontact) 
trigger3 = (stateno = [400,495]) && (movecontact)
trigger4 = (stateno = [600,695]) && (movecontact)    
 
trigger5= (animelem = 8,>=2 && animelem = 11,<0) && (stateno = 1000 || stateno = 2000)
trigger6= (movecontact) && (stateno = 1100 || stateno = 2100)
trigger7= (movecontact) && (stateno = 1200 || stateno = 2200)
trigger8= (movecontact) && (stateno = 1300 || stateno = 2300) 

trigger9= stateno = 3000 && ((movecontact))  
trigger10= stateno = 3050 && ((movecontact))  
trigger11= stateno = 3100 && ((movecontact))  
trigger12= stateno = 3150 && ((movecontact))    

;---------------------------------------------------------------------------
;EX空中超必殺Shinobuhachi・スーパーキャンセル
[State 3150]
type = ChangeState
value = 3150
triggerall = var(59) <= 0 && power >= 2000
triggerall = command = "ChoninhachiEX" || fvar(6) = 3050
triggerall = statetype = A 
triggerall = (movecontact) || ctrl
trigger1 = (stateno = 1300) || (stateno = 1200) || (stateno = 2300) || (stateno = 2200)  
trigger2 = (stateno = [600,695]) 
trigger3 = ctrl

;---------------------------------------------------------------------------
;EX超必殺Shinobuhachi・スーパーキャンセル
[State 3050]
type = ChangeState
value = 3050
triggerall = var(59) <= 0 && power >= 2000
triggerall = command = "ChoninhachiEX" || fvar(6) = 3050
triggerall = statetype != A 
trigger1 = ctrl
trigger2 = (stateno = [200,295]) && (movecontact) 
trigger3 = (stateno = [400,495]) && (movecontact) 
trigger4 = (animelem = 8,>=2 && animelem = 11,<0)
trigger4 = (stateno = 1000) || (stateno = 2000)  
trigger5 = (movecontact)
trigger5 = (stateno = 1100) || (stateno = 1200) || (stateno = 2100) || (stateno = 2200) 

 
;---------------------------------------------------------------------------
;超必殺Shinobuhachi
[State 3000]
type = ChangeState
value = 3000
triggerall = var(59) <= 0 && power >= 1000
triggerall = command = "Choninhachi" || fvar(6) = 3000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,295]) && (movecontact) 
trigger3 = (stateno = [400,495]) && (movecontact) 
trigger4 = (animelem = 8,>=2 && animelem = 11,<0)
trigger4 = (stateno = 1000) || (stateno = 2000)  
trigger5 = (movecontact)
trigger5 = (stateno = 1100) || (stateno = 1200) || (stateno = 2100) || (stateno = 2200) 
 
;---------------------------------------------------------------------------
;空中超必殺Shinobuhachi・スーパーキャンセル
[State 3100]
type = ChangeState
value = 3100
triggerall = var(59) <= 0 && power >= 1000
triggerall = command = "Choninhachi" || fvar(6) = 3000
triggerall = statetype = A
triggerall = (movecontact) || ctrl
trigger1 = (stateno = 1300) || (stateno = 1200) || (stateno = 2300) || (stateno = 2200)  
trigger2 = (stateno = [600,695]) 
trigger3 = ctrl



;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;Flyingsquirrelの舞(地上版)
[State 1400]
type = ChangeState
value = 1400
triggerall = var(59) <= 0
triggerall = var(33) >= 40  ;hold down for over 40 tics
triggerall = command = "abc" || fvar(6) = 1400
triggerall = statetype != A
trigger1 = ctrl || stateno = 40
trigger2 = (stateno = [200,295]) && (movecontact) 
trigger3 = (stateno = [400,495]) && (movecontact)  

;---------------------------------------------------------------------------
;EXFlyingsquirrelの舞・ドライブキャンセル
[State 2300]
type = ChangeState
value = 2300
triggerall = var(59) <= 0
triggerall = power >= 500
triggerall = command = "RyuMaiEX" || fvar(6) = 2100 
triggerall = statetype = A
trigger1 = stateno = 1200
trigger1 = (movehit = [1,5])   
trigger2 = stateno = 2200
trigger2 = (movehit = [1,5])   
trigger3 = stateno = 1300
trigger3 = (movehit = [1,5])   

;---------------------------------------------------------------------------
;EXFlyingsquirrelの舞
[State 2300]
type = ChangeState
value = 2300
triggerall = var(59) <= 0
triggerall = power >= 500
triggerall = command = "RyuMaiEX" || fvar(6) = 2100
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = [600,695]) && (movecontact) 


;---------------------------------------------------------------------------
;EX必殺Shinobuhachi・ドライブキャンセル
[State 2200]
type = ChangeState
value = 2200
triggerall = var(59) <= 0
triggerall = power >= 500
triggerall = command = "ShinobuhachiEX" || fvar(6) = 2200
triggerall = statetype != A 
trigger1 = stateno = 1100
trigger1 = (movehit = [1,5])   
trigger2 = stateno = 2100
trigger2 = (movehit = [1,5])   

trigger3 = stateno = 1200
trigger3 = (movehit = [1,5])   

;---------------------------------------------------------------------------
;EXShinobuhachi
[State 2200]
type = ChangeState
value = 2200
triggerall = var(59) <= 0
triggerall = power >= 500
triggerall = command = "ShinobuhachiEX" || fvar(6) = 2200
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,295]) && (movecontact) 
trigger3 = (stateno = [400,495]) && (movecontact) 


;---------------------------------------------------------------------------
;EXRyuMai・ドライブキャンセル
[State 2100]
type = ChangeState
value = 2100
triggerall = var(59) <= 0 
triggerall = command = "RyuMaiEX" || fvar(6) = 2100
triggerall = statetype != A
triggerall = power>= 500
trigger1 = (movehit = [1,5])
trigger1 = (stateno = 1100) || (stateno = 1200) || (stateno = 2200)     

;---------------------------------------------------------------------------
;EXRyuMai
[State 2100]
type = ChangeState
value = 2100
triggerall = var(59) <= 0
triggerall = power >= 500
triggerall = command = "RyuMaiEX" || fvar(6) = 2100
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,295]) && (movecontact) 
trigger3 = (stateno = [400,495]) && (movecontact) 

;---------------------------------------------------------------------------
;EXHanachoogi・ドライブキャンセル
[State 2000]
type = ChangeState
value = 2000
triggerall = var(59) <= 0 
triggerall = numprojID(1010) = 0 && numprojID(2011) = 0
triggerall = command = "HanachoogiEX" || fvar(6) = 2000
triggerall = statetype != A
triggerall = power>= 500
trigger1 = stateno = 1100
trigger1 = (movehit = [1,5])   
trigger2 = stateno = 1200
trigger2 = (movehit = [1,5])   
trigger3 = stateno = 2100
trigger3 = (movehit = [1,5])   
trigger4 = stateno = 2200
trigger4 = (movehit = [1,5])   

;---------------------------------------------------------------------------
;EXHanachoogi
[State 2000]
type = ChangeState
value = 2000
triggerall = var(59) <= 0
triggerall = power >= 500
triggerall = numprojID(1010) = 0 && numprojID(2011) = 0
triggerall = command = "HanachoogiEX" || fvar(6) = 2000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,250]) && (movecontact) 
trigger3 = (stateno = [400,450]) && (movecontact) 
trigger4 = stateno = 290 && (movecontact)
trigger5 = stateno = 290 && (animelem = 9,> 0 && animelem = 12,<0) 
;---------------------------------------------------------------------------
;Air EXHanachoogi
[State 2000]
type = ChangeState
value = 2050
triggerall = var(59) <= 0
triggerall = power >= 500
triggerall = numprojID(1010) = 0 && numprojID(2011) = 0
triggerall = command = "HanachoogiEX" || fvar(6) = 2000
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = [200,250]) && (movecontact) 
trigger3 = (stateno = [400,450]) && (movecontact) 
trigger4 = stateno = 290 && (movecontact)
trigger5 = stateno = 290 && (animelem = 9,> 0 && animelem = 12,<0) 


;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;Flyingsquirrel Mai drive cancellation
[State 1300]
type = ChangeState
value = 1300
triggerall = var(59) <= 0
triggerall = command = "RyuMaiX" ||  command = "RyuMaiY" || command = "RyuMaiZ" || fvar(6) = 1100
triggerall = statetype = A 
trigger1 = stateno = 1200
trigger1 = (movehit = [1,5])   
trigger2 = stateno = 2200
trigger2 = (movehit = [1,5])   
;---------------------------------------------------------------------------
;Flyingsquirrel Mai
[State 1300]
type = ChangeState
value = 1300
triggerall = var(59) <= 0
triggerall = command = "RyuMaiX" ||  command = "RyuMaiY" || command = "RyuMaiZ" || fvar(6) = 1100
triggerall = statetype = A
trigger1 = ctrl
trigger2 = (stateno = [600,695]) && (movecontact) 
;--------------------------------------------------------------------------- 

;---------------------------------------------------------------------------
;必殺Shinobuhachi・ドライブキャンセル
[State 1200]
type = ChangeState
value = 1200
triggerall = var(59) <= 0
triggerall = command = "Shinobuhachi" || fvar(6) = 1200
triggerall = statetype != A
triggerall = power>= 500
trigger1 = stateno = 1100
trigger1 = (movehit = [1,5])   
trigger2 = stateno = 2100
trigger2 = (movehit = [1,5])   
;---------------------------------------------------------------------------
;必殺Shinobuhachi
[State 1200]
type = ChangeState
value = 1200
triggerall = var(59) <= 0
triggerall = command = "Shinobuhachi" || fvar(6) = 1200
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,295]) && (movecontact) 
trigger3 = (stateno = [400,495]) && (movecontact) 
 
 

;---------------------------------------------------------------------------
;RyuMai 
[State 1100, Know]
type = ChangeState
value = 1100
triggerall = (var(59) <= 0) && (statetype != A)
triggerall = command = "RyuMaiX" || fvar(6) = 1100 
trigger1 = ctrl
trigger2 = (stateno = [200,295]) && (movecontact) 
trigger3 = (stateno = [400,495]) && (movecontact) 
trigger4 = (power >= 500) && (movehit = [1,5])
trigger4 = (stateno = 1200) || (stateno = 2200)    
;---------------------------------------------------------------------------
;RyuMai・ドライブキャンセル
[State 1101]
type = ChangeState
value = 1101
triggerall = var(59) <= 0
triggerall = command = "RyuMaiY"  
triggerall = statetype != A 
trigger1 = ctrl 
trigger2 = (stateno = [200,250]) && (movecontact) 
trigger3 = (stateno = [400,450]) && (movecontact) 
trigger4 = stateno = 290 && (movecontact)
trigger5 = stateno = 290 && (animelem = 9,> 0 && animelem = 12,<0) 
;---------------------------------------------------------------------------
;RyuMai・ドライブキャンセル
[State 1102]
type = ChangeState
value = 1102
triggerall = var(59) <= 0
triggerall = command = "RyuMaiZ"  
triggerall = statetype != A 
trigger1 = ctrl  
trigger2 = (stateno = [200,250]) && (movecontact) 
trigger3 = (stateno = [400,450]) && (movecontact) 
trigger4 = stateno = 290 && (movecontact)
trigger5 = stateno = 290 && (animelem = 9,> 0 && animelem = 12,<0) 


;---------------------------------------------------------------------------
;Hanachoogi・air
[State 1050]
type = ChangeState
value = 1050
triggerall = var(59) <= 0
triggerall = ((numprojID(1050) = 0) || (var(15) >= 1))
triggerall = command = "Hanachoogi"  
triggerall = statetype = A 
trigger1 = ctrl
trigger2 = (stateno = [600,650]) && (movecontact)  

;---------------------------------------------------------------------------
;Hanachoogi・ 
[State 1000]
type = ChangeState
value = 1000
triggerall = var(59) <= 0
triggerall = numprojID(1010) = 0 && numprojID(2011) = 0
triggerall = command = "Hanachoogi" || fvar(6) = 1000
triggerall = statetype != A 
triggerall = (movehit = [1,5])   
trigger1 = stateno = 1100
trigger2 = stateno = 1200 
trigger3 = stateno = 2100 
trigger4 = stateno = 2200 
;---------------------------------------------------------------------------
;Hanachoogi
[State 1000]
type = ChangeState
value = 1000
triggerall = var(59) <= 0
triggerall = numprojID(1010) = 0 && numprojID(2011) = 0
triggerall = command = "Hanachoogi" || fvar(6) = 1000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,250]) && (movecontact) 
trigger3 = (stateno = [400,450]) && (movecontact) 
trigger4 = stateno = 290 && movecontact; = [1,5]
trigger5 = stateno = 290 && (animelem = 9,> 0 && animelem = 12,<0) 

;===========================================================================
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;ガードキャンセルFuttobashi攻撃
[State 290]
type = ChangeState
value = 295
triggerall = var(59) <= 0
triggerall = command = "Futtobashi"
triggerall = power >= 1000
trigger1 = stateno = 150
trigger2 = stateno = 151

;---------------------------------------------------------------------------
;Futtobashi攻撃
[State 290]
type = ChangeState
value = 290
triggerall = var(59) <= 0
triggerall = command = "Futtobashi"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,250]) && (movecontact) 
trigger3 = (stateno = [400,450]) && (movecontact)  
 
;---------------------------------------------------------------------------
;Dodge
[State -1, Taunt]
type = ChangeState
value = 705
triggerall = var(59) <= 0 && var(32) = 100
triggerall = command = "c"
trigger1 = stateno = 700 && (animelemtime(6) >= 0)&& (animelemtime(9) <= 0)
;--------------------------------------------------------------------------- 

;---------------------------------------------------------------------------
;Guard Push
[State -1, PUSH BLOCK S]
type = ChangeState
value = 4000
triggerall = command = "recovery"
triggerall = statetype = S
trigger1 = stateno = [150,153]

[State -1, PUSH BLOCK C]
type = ChangeState
value = 4001
triggerall = command = "recovery"
triggerall = statetype = C
trigger1 = stateno = [150,153]

[State -1, PUSH BLOCK A]
type = ChangeState
value = 4002
triggerall = command = "recovery"
triggerall = statetype = A
trigger1 = stateno = [154,155]

;Run Fwd
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(59) <= 0
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Run Back
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = var(59) <= 0
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;風車崩し
[State -1, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = var(59) <= 0
triggerall = command = "z"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = command != "holddown"
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != 100
trigger1 = ((P2bodydist X = [-5,15])&&(P2dist X = [-2,320])) 
trigger1 = p2statetype != A
trigger1 = p2movetype != H

;---------------------------------------------------------------------------
;風車崩し
[State -1, Kung Fu Throw]
type = ChangeState
value = 820
triggerall = var(59) <= 0
triggerall = command = "c"
triggerall = command = "holdfwd" || command = "holdback"
triggerall = command != "holddown"
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != 100
trigger1 = ((P2bodydist X = [-5,15]) && (P2dist X = [-2,320])) 
trigger1 = p2statetype != A
trigger1 = p2movetype != H

;---------------------------------------------------------------------------
;夢桜
[State -1, Kung Fu Throw]
type = ChangeState
value = 850
triggerall = var(59) <= 0
triggerall = command = "y" ;|| fvar(6) = 850
triggerall = command = "holdfwd" || command = "holdback"
triggerall = statetype = A
triggerall = ctrl
trigger1 = p2bodydist X < 5
trigger1 = p2statetype = A

;===========================================================================
;---------------------------------------------------------------------------
;Stand Light Punch
[State 200]
type = ChangeState
value = 200
triggerall = var(59) <= 0
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact  
;trigger4 = stateno = 400 && (animelem=3,>0 && animelem=6,<0)
;trigger5 = stateno = 430 && (animelem=3,>0 && animelem=6,<0)


;---------------------------------------------------------------------------
 
[State 210 Stand Strong Punch]
type = ChangeState
value = 210
triggerall = var(59) <= 0
triggerall = command = "y"
triggerall = command != "holddown" 
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && (movecontact)
trigger3 = stateno = 230 && (movecontact)
trigger4 = stateno = 400 && (movecontact)
trigger5 = stateno = 430 && (movecontact)

;---------------------------------------------------------------------------
 
[State 220 Stand Fierce Punch]
type = ChangeState
value = 220
triggerall = var(59) <= 0
triggerall = command = "z"
triggerall = command != "holddown" 
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,210]) && (movecontact)
trigger3 = (stateno = [230,240]) && (movecontact)
trigger4 = (stateno = [400,410]) && (movecontact)
trigger5 = (stateno = [430,440]) && (movecontact)

;---------------------------------------------------------------------------
 
[State 230 Stand Light Kick]
type = ChangeState
value = 230
triggerall = var(59) <= 0
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && (movecontact) 
trigger3 = stateno = 400 && (movecontact) 

;---------------------------------------------------------------------------
 
[State 240 Standing Strong Kick1]
type = ChangeState
value = 240
triggerall = var(59) <= 0
triggerall = command = "b"
triggerall = command != "holddown" 
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,210]) && (movecontact)
trigger3 = stateno = 230 && (movecontact)
trigger4 = (stateno = [400,410]) && (movecontact)
trigger5 = stateno = 430 && (movecontact)

;---------------------------------------------------------------------------
 
[State 250 Standing Fierce Kick]
type = ChangeState
value = 250
triggerall = var(59) <= 0
triggerall = command = "c"
triggerall = command != "holddown" 
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,240]) && (movecontact) 
trigger3 = (stateno = [400,440]) && (movecontact) 
 
;---------------------------------------------------------------------------
 
[State 199 Taunt]
type = ChangeState
value = 199
triggerall = var(59) <= 0
triggerall = command = "start"
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
 
[State 400, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = var(59) <= 0
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && (movecontact) 
trigger3 = stateno = 400 && (movecontact)  
trigger4 = stateno = 1305 && (animelemtime(6) >= 0) ;<<LANDED & RECOVERING

;---------------------------------------------------------------------------
 
[State 410 Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = var(59) <= 0
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && (movecontact)
trigger3 = stateno = 230 && (movecontact)
trigger4 = stateno = 400 && (movecontact)
trigger5 = stateno = 430 && (movecontact)
trigger6 = stateno = 1305 && (animelemtime(6) >= 0);<<LANDED & RECOVERING

;---------------------------------------------------------------------------
 
[State 420 Crouching Fierce Punch]
type = ChangeState
value = 420
triggerall = var(59) <= 0
triggerall = command = "z"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,210]) && (movecontact)
trigger3 = (stateno = [230,240]) && (movecontact)
trigger4 = (stateno = [400,410]) && (movecontact)
trigger5 = (stateno = [430,440]) && (movecontact)
trigger6 = stateno = 1305 && (animelemtime(6) >= 0);<<LANDED & RECOVERING

;---------------------------------------------------------------------------
 
[State 430 Crouching Light Kick]
type = ChangeState
value = 430
triggerall = var(59) <= 0
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 && (movecontact) 
trigger3 = stateno = 400 && (movecontact) 
trigger4 = stateno = 1305 && (animelemtime(6) >= 0);<<LANDED & RECOVERING

;---------------------------------------------------------------------------
 
[State 440 Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = var(59) <= 0
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,210]) && (movecontact)
trigger3 = stateno = 230 && (movecontact)
trigger4 = (stateno = [400,410]) && (movecontact)
trigger5 = stateno = 430 && (movecontact)
trigger6 = stateno = 1305 && (animelemtime(6) >= 0);<<LANDED & RECOVERING

;---------------------------------------------------------------------------
 
[State 450 Crouching Fierce Kick]
type = ChangeState
value = 450
triggerall = var(59) <= 0
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,240]) && (movecontact) 
trigger3 = (stateno = [400,440]) && (movecontact) 
trigger4 = stateno = 1305 && (animelemtime(6) >= 0);<<LANDED & RECOVERING


;---------------------------------------------------------------------------
 
[State 600 Jump Light Punch]
type = ChangeState
value = 600
triggerall = var(59) <= 0
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
[State 610 Jump Strong Punch]
type = ChangeState
value = 610
triggerall = var(59) <= 0
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact) 
trigger3 = (stateno = 630) && (movecontact) 
;---------------------------------------------------------------------------
 
[State 620 Jump Fierce Punch]
type = ChangeState
value = 620
triggerall = var(59) <= 0
triggerall = command = "z";"Futtobashi"
trigger1 = statetype = A
trigger1 = stateno != 106
trigger1 = ctrl
trigger2 = (stateno = [600,610]) && (movecontact) 
trigger3 = (stateno = [630,640]) && (movecontact) 


;---------------------------------------------------------------------------
[State 630 Jump Light Kick]
type = ChangeState
value = 630
triggerall = var(59) <= 0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact) 
;---------------------------------------------------------------------------
 
[State 640 Jump Strong Kick]
type = ChangeState
value = 640
triggerall = var(59) <= 0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = [600,610]) && (movecontact) 
trigger3 = (stateno = 630) && (movecontact) 

;---------------------------------------------------------------------------
 
[State 650 Jump Fierce Kick]
type = ChangeState
value = 650
triggerall = var(59) <= 0
triggerall = (command = "c") || fvar(6) = 650
triggerall = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1400 && (time >= 30 || Vel Y >= 0 && time > 10)
trigger3 = (stateno = [600,610]) && (movecontact) 
trigger4 = (stateno = [630,640]) && (movecontact) 
trigger5 = stateno = 620 && (movecontact)

;---------------------------------------------------------------------------
 
[State 45 Wall Grab]
type = ChangeState
value = 45
triggerall = var(59) <= 0
triggerall = command = "holdup"
triggerall = (command = "holdfwd" && BackEdgeBodyDist <= 0) || (command = "holdback" && FrontEdgeBodyDist <= 10)
triggerall = statetype = A
trigger1 = ctrl && time >= 10 && stateno != [45,46]
trigger2 = stateno = 600 && animelem = 6, > 0 && var(29) = 0
trigger3 = stateno = 610 && animelem = 6, > 0 && var(29) = 0
trigger4 = stateno = 630 && animelem = 7, > 0 && var(29) = 0
trigger5 = stateno = 640 && animelem = 6, > 0 && var(29) = 0
