;-| KEZ |------------------------------------------------------
;HHHHHHH
[Command]
name = "x+y"
command = x+y
time = 20

;C_[LbN
[Command]
name = "DFDF_a"
command = ~D, F, D, F, a
time = 30

;C_[p`
[Command]
name = "DBDF_a"
command = ~D, B, D, F, a
time = 30

;
[Command]
name = "DBDB_a"
command = ~D, B, D, B, a
time = 30

;ZCo[XbV
[Command]
name = "DFDF_b"
command = ~D, F, D, F, b
time = 30

;
[Command]
name = "DBDB_b"
command = ~D, B, D, B, b
time = 30

;no[hXs
[Command]
name = "DFDF_c"
command = ~D, F, D, F, c
time = 30

;
[Command]
name = "DBDB_c"
command = ~D, B, D, B, c
time = 30

;C_[V[g
[Command]
name = "DFDF_x"
command = ~D, F, D, F, x
time = 30

;t@C[Xg[A^bN
[Command]
name = "DBDB_x"
command = ~D, B, D, B, x
time = 30

;o[jOp`
[Command]
name = "DFDF_y"
command = ~D, F, D, F, y
time = 30

;o[jO{o[
[Command]
name = "DBDB_y"
command = ~D, B, D, B, y
time = 30

;VCjOC_[LbN
[Command]
name = "DFDF_z"
command = ~D, F, D, F, z
time = 30

;VCjONbV
[Command]
name = "DBDB_z"
command = ~D, B, D, B, z
time = 30

;}VglC_[
[command]
name = "BDF_z"
command = ~B, D, F, z
time = 30

;C_[LbN
[command]
name = "DF_z"
command = ~D, F, z
time = 30

;I[o[wbhC_[LbN
[Command]
name = "DF_z_F_z"
command = F, z
time = 30

;ZCo[XbV
[Command]
name = "DU_z"
command = ~D, D , z
time = 20

;no[hXs
[Command]
name = "DB_z"
command = ~D, B, z
time = 30

;-| KEZ |------------------------------------------------------
;t@CA[Xg[A^bN()
[Command]
name = "FDB_a"
command = ~F, D, B , a
time = 30

;t@CA[Xg[A^bN()
[Command]
name = "FDB_b"
command = ~F, D, B , b
time = 30

;t@CA[Xg[A^bN()
[Command]
name = "FDB_c"
command = ~F, D, B , c
time = 30

;CYC_[p`()
[Command]
name = "FDDF_a"
command = ~F, D, DF, a
time = 30

;C_[LbN()
[Command]
name = "DF_b2"
command = ~D, DF, F, a
time = 20

;C_[LbN()
[Command]
name = "DF_b"
command = ~D, DF, F, b
time = 20

;C_[LbN()
[Command]
name = "DF_c"
command = ~D, DF, F, c
time = 20

;Xg[V[g()
[Command]
name = "BF_a"
command = ~30$B, F, a
time = 20

;Xg[V[g()
[Command]
name = "BF_b"
command = ~30$B, F, b
time = 20

;Xg[V[g()
[Command]
name = "BF_c"
command = ~30$B, F, c
time = 20

;Xg[V[g()
[Command]
name = "BF_a"
command = ~D, B, a
time = 20

;Xg[V[g()
[Command]
name = "BF_b"
command = ~D, B, b
time = 20

;Xg[V[g()
[Command]
name = "BF_c"
command = ~D, B, c
time = 20

;ZCo[XbV()
[Command]
name = "DU_a"
command = ~D, D , a
time = 20

;ZCo[XbV()
[Command]
name = "DU_b"
command = ~D, D , b
time = 20

;ZCo[XbV()
[Command]
name = "DU_c"
command = ~D, D , c
time = 20

;΋R
[Command]
name = "F_b"
command = /$F, b
time = 20

;-| Q񉟂Z |-----------------------------------------------------------
[Command]
name = "FF"     
command = F, F
time = 10

[Command]
name = "BB"     
command = B, B
time = 10

;-| QER̓Z |-----------------------------------------------
[Command]
name = "recovery"
command = a+b
time = 1

;-| ƃ{^ŏoZ |---------------------------------------------------------

[Command]
name	= "Copy"
command	= /$B, b
time = 1


[Command]
name = "down_a"
command = /$D,a
time = 1

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

;-| {^ݒiȂj|---------------------------------------------------------
[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

;-| ςȂݒiȂj-------------------------------------------------------
[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

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


; ̋Lq͐΂ɏȂłB
[Statedef -1]

;===========================================================================
;---------------------------------------------------------------------------
;HHHHHHHiQ[Wx?j
[State -1, ???????]
type = ChangeState
value = 3999
triggerall = command = "x+y"
triggerall = power >= 7000
triggarall = life < 0
triggerall = var(40) >= 8
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact

;---------------------------------------------------------------------------
;VCjOC_[LbNiQ[Wx4j
;VCjOC_[LbNiQ[Wx5j
[State -1, Shining Kick]
type = ChangeState
value = IfElse(power>=5000,IfElse(random<701-life+(power-5000)*3/10,3240,3200),3200)
triggerall = command = "DFDF_z"
triggerall = power >= 4000
triggerall = var(40) >= 6
triggerall = ((var(50) = 0)||(var(50) = 2)||(var(50) = 4))
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact

;---------------------------------------------------------------------------
;VCjONbViQ[Wx4j
[State -1, Shining Clash]
type = ChangeState
value = 3600
triggerall = command = "DBDB_z"
triggerall = power >= 4000
triggerall = var(40) >= 6
triggerall = ((var(50) = 0)||(var(50) = 1)||(var(50) = 4))
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact

;---------------------------------------------------------------------------
;o[jO{o[iQ[Wx3j
[State -1, Burning Bomber]
type = ChangeState
value = 3500
triggerall = command = "DBDB_y"
triggerall = power >= 3000
triggerall = var(40) >= 5
triggerall = ((var(49) = 0)||(var(49) = 1)||(var(49) = 4))
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact

;---------------------------------------------------------------------------
;o[jOp`iQ[Wx3j
[State -1, Burning Punch]
type = ChangeState
value = 3100
triggerall = command = "DFDF_y"
triggerall = power >= 3000
triggerall = var(40) >= 5
triggerall = ((var(49) = 0)||(var(49) = 2)||(var(49) = 4))
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact

;---------------------------------------------------------------------------
;t@C[Xg[A^bNiQ[Wx2j
[State -1, Fire Storm Attack]
type = ChangeState
value = 3300
triggerall = command = "DBDB_x"
triggerall = power >= 2000
triggerall = ((var(40) = 3)||(var(40) >= 6))
triggerall = ((var(48) = 0)||(var(48) = 1)||(var(48) = 4))
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact



;---------------------------------------------------------------------------
;C_[V[giQ[Wx2j
[State -1, Rider Shoot]
type = ChangeState
value = 3000
triggerall = command = "DFDF_x"
triggerall = power >= 2000
triggerall = ((var(40) = 3)||(var(40) >= 6))
triggerall = ((var(48) = 0)||(var(48) = 2)||(var(48) = 4))
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact

;---------------------------------------------------------------------------
;}VglC_[iQ[Wx1j
[State -1, Baik]
type = ChangeState
value = 3440
triggerall = command = "BDF_z"
triggerall = power >= 1000
triggerall = ((var(45) = 0)||(var(45) = 1)||(var(45) = 4))
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact
;---------------------------------------------------------------------------
;C_[LbNiQ[Wx1j
[State -1, X-hone Rider Kick]
type = ChangeState
value = IfElse(P2Life>210,3415,3400);3400
triggerall = command = "DFDF_a"
triggerall = power >= 1000;500
triggerall = ((var(45) = 0)||(var(45) = 2)||(var(45) = 4))
triggerall = stateno != [1100,1199]
triggerall = stateno != [3800,3849]
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact
;---------------------------------------------------------------------------
;I[o[wbhC_[LbNiQ[Wx1j
[State -1, Over Head Rider Kick]
type = ChangeState
value = 3420
triggerall = command = "DF_z_F_z"
triggerall = power >= 1000;500
triggerall = var(40) >= 4
trigger1 = stateno = 3400
trigger1 = time = [420,617];ނĂWv܂
trigger2 = stateno = 3415
trigger2 = time = [260,330];͂z܂ĂWv܂
;trigger2 = movecontact
;trigger2 = time <= 407
;---------------------------------------------------------------------------
;C_[p`iQ[Wx1j
[State -1, Rider Punch]
type = ChangeState
value = 3430
triggerall = command = "DBDF_a"
triggerall = power >= 1000;500
triggerall = var(40) >= var(41)
triggerall = ((var(45) = 0)||(var(45) = 2)||(var(45) = 4))
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = statetype != A
trigger2 = hitdefattr = SC, NA, SA
trigger2 = movecontact
;---------------------------------------------------------------------------
;ZCo[XbViQ[Wx1j
[State -1, SSEx]
type = ChangeState
value = 3700
triggerall = command = "DFDF_b"
triggerall = power >= 1000
triggerall = ((var(46) = 0)||(var(46) = 2)||(var(46) = 4))
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) ;Cancel ground moves
;trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact
;---------------------------------------------------------------------------
;no[hXs(Q[Wx1)
[State -1, Light SS]
type = ChangeState
value = 3800
triggerall = command = "DFDF_c"
triggerall = power >= 1000
triggerall = ((var(47) = 0)||(var(47) = 2)||(var(47) = 4))
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact
;---------------------------------------------------------------------------
;}~C_[LbNiQ[Wx1j
[State -1, X-hone Rider Kick]
type = ChangeState
value = 3850
triggerall = command = "DF_z"
triggerall = power >= 1000
triggerall = var(40) >= 4
triggerall = var(45) != 3
triggerall = var(47) != 3
trigger1 = (stateno = [1100,1199]) || (stateno = [3800,3849])
trigger2 = stateno = [5000,5999]
trigger2 = power >= 2000
;---------------------------------------------------------------------------


;---------------------------------------------------------------------------
;t@CA[Xg[A^bN()
[State -1, Light Fire Storm Attack]
type = ChangeState
value = 1300
triggerall = command = "FDB_a"
triggerall = var(40) >= 6
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact
;---------------------------------------------------------------------------
;t@CA[Xg[A^bN()
[State -1, Middle Fire Storm Attack]
type = ChangeState
value = 1310
triggerall = command = "FDB_b"
triggerall = var(40) >= 6
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact
;---------------------------------------------------------------------------
;t@CA[Xg[A^bN()
[State -1, Strong Fire Storm Attack]
type = ChangeState
value = 1320
triggerall = command = "FDB_c"
triggerall = var(40) >= 6
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;CYC_[p`
[State -1,Rise Rider Punch]
type = ChangeState
value = 1070
triggerall = command = "FDDF_a"
triggerall = ((var(40) = 3)||(var(40) >= 5))
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) ;Cancel ground moves
;trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;C_[LbN()
[State -1, Light Rider Kick]
type = ChangeState
value = 1000
triggerall = command = "DF_b" || command = "DF_b2"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;C_[LbN()
[State -1, Strong Rider Kick]
type = ChangeState
value = 1010
triggerall = command = "DF_c"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) ;Cancel ground moves
;trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;Xg[V[g()
[State -1, Light SS]
type = ChangeState
value = 1100
triggerall = command = "BF_a"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;Xg[V[g()
[State -1, Middle SS]
type = ChangeState
value = 1110
triggerall = command = "BF_b"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) ;Cancel ground moves
;trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;Xg[V[g()
[State -1, Strong SS]
type = ChangeState
value = 1120
triggerall = command = "BF_c"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) ;Cancel ground moves
;trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;ZCo[XbV()
[State -1, Light SS]
type = ChangeState
value = 1200
triggerall = command = "DU_a"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;ZCo[XbV()
[State -1, Middle SS]
type = ChangeState
value = 1210
triggerall = command = "DU_b"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) ;Cancel ground moves
;trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;ZCo[XbV()
[State -1, Strong SS]
type = ChangeState
value = 1220
triggerall = command = "DU_c"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) ;Cancel ground moves
;trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;---------------------------------------------------------------------------
;΋R
[State -1,Strong SS]
type = ChangeState
value = 1080
triggerall = command = "F_b"
triggerall = ((var(40) = 3)||(var(40) >= 5))
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) ;Cancel ground moves
;trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact

;===========================================================================
;---------------------------------------------------------------------------
;_bV
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;ރ_bV
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;
[State -1, Kung Fu Throw]
type = ChangeState
value = 800
triggerall = command = "c"
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


;===========================================================================
;---------------------------------------------------------------------------
;U
[State -1, Stand Light Attack]
type = ChangeState
value = 200
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (Stateno = 400) && movecontact = 1

;---------------------------------------------------------------------------
;U
[State -1, Stand Strong Attack]
type = ChangeState
value = 210
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (Stateno = 200) && movecontact = 1
trigger3 = (Stateno = 400) && movecontact = 1
trigger4 = (Stateno = 410) && movecontact = 1

;---------------------------------------------------------------------------
;U
[State -1, Standing Strong Attack]
type = ChangeState
value = 220
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (Stateno = 200) && movecontact = 1
trigger3 = (Stateno = 210) && movecontact = 1
trigger4 = (Stateno = 400) && movecontact = 1
trigger5 = (Stateno = 410) && movecontact = 1

;---------------------------------------------------------------------------
;Q[W
[State -1, Gage Charge]
type = ChangeState
value = 700
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = power < 1000+ifelse(var(40)>2,2,var(40))*500+ifelse(var(40)>2,var(40)-2,0)*1000
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;ႪݎU
[State -1, Crouching Light Attack]
type = ChangeState
value = 400
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (Stateno = 200) && movecontact = 1

;---------------------------------------------------------------------------
;ႪݒU
[State -1, Crouching Strong Attack]
type = ChangeState
value = 410
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (Stateno = 200) && movecontact = 1
trigger3 = (Stateno = 210) && movecontact = 1
trigger4 = (Stateno = 400) && movecontact = 1

;---------------------------------------------------------------------------
;Ⴊ݋U
[State -1, Crouching Strong Attack]
type = ChangeState
value = 420
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (Stateno = 200) && movecontact = 1
trigger3 = (Stateno = 210) && movecontact = 1
trigger4 = (Stateno = 220) && movecontact = 1
trigger5 = (Stateno = 400) && movecontact = 1
trigger6 = (Stateno = 410) && movecontact = 1



;---------------------------------------------------------------------------
;S܂Rs[
[State -1, Jump Strong Kick]
type	= ChangeState
value	= 611
triggerAll = Command = "Copy"
trigger1= Statetype = A
trigger1= Ctrl
trigger2=(Stateno = 600) && MoveContact



;---------------------------------------------------------------------------
;󒆎U
[State -1, Jump Light Kick]
type = ChangeState
value = 600
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;󒆒U
[State -1, Jump Strong Kick]
type = ChangeState
value = 610
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (Stateno = 600) && movecontact = 1

;---------------------------------------------------------------------------
;󒆋U
[State -1, Jump Strong Punch]
type = ChangeState
value = 620
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (Stateno = 600) && movecontact = 1
trigger3 = (Stateno = 610) && movecontact = 1







;===========================================================================
; 
[State -1, Stand Light Attack]
type	= ChangeState
value	= 195
triggerAll = command = "start"
triggerAll = command != "holddown"
trigger1= Statetype != A
trigger1= Ctrl







