[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]
name = "cbz"
command = F,B,DB,D,DF,F,z
time = 25

command.time = 15

; Default value for the "buffer.time" parameter of a Command. Minimum 1,
[command]
name = "CPU1"
command = D,D,D
time = 0

[Command]
name = "CPU2"
command = U,U,D
time = 0

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

[Command]
name = "CPU4"
command = U,U,D
time = 0

[Command]
name = "CPU5"
command = U,U,D
time = 0

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

[Command]
name = "CPU7"
command = U,U,D,D,B
time = 0

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

[Command]
name = "CPU9"
command = U,U,D,D,B
time = 0

[Command]
name = "CPU10"
command = U,U,D,D,B
time = 0

[Command]
name = "CPU11"
command = U,U,D,D,B
time = 0

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

[Command]
name = "CPU13"
command = U,U,D,D,B
time = 0

[Command]
name = "CPU14"
command = U,U,D,D,B
time = 0

[Command]
name = "CPU15"
command = U,U,D,D,B
time = 0

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

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

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

[Command]
name = "CPU19"
command = U,U,D,D,B
time = 0

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

[Command]
name = "CPU21"
command = U,U,D,D,B
time = 0

[Command]
name = "CPU22"
command = U,U,D,D,B
time = 0

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

[Command]
name = "CPU24"
command = U,U,D,D,B
time = 0

[Command]
name = "CPU25"
command = U,U,D,D,B
time = 0

[Command]
name = "CPU26"
command = U,U,D,D
time = 0

[Command]
name = "CPU27"
command = U,U,D,D
time = 0

[Command]
name = "CPU28"
command = U,U,D,D
time = 0

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

[Command]
name = "CPU30"
command = U,U,D,D,B
time = 0

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

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

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

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

[Command]
name = "CPU35"
command = a,U,D,D,B
time = 0

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

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

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

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

[Command]
name = "CPU40"
command = U,D,D
time = 0

[Command]
name = "CPU41"
command = U,U,D,B
time = 0

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

command.buffer.time = 1
;--|hypers|--------------------------------------------------

[Command]
name = "thk"
command=~$D,F,$D,F,x
time = 25
buffer.time = 2

[Command]
name = "thk"
command=~$D,F,$D,F,y
time = 25
buffer.time =2

[Command]
name = "thk"
command=~$D,F,$D,F,z
time = 25
buffer.time = 2


[Command]
name = "gp"
command=~$D,F,$D,B,x
time = 25
buffer.time = 2

[Command]
name = "gp"
command=~$D,F,$D,B,y
time = 25
buffer.time =2

[Command]
name = "gp"
command=~$D,F,$D,B,z
time = 25
buffer.time = 2

[Command]
name = "cbx"
command=~F,B,$D,F,x
time = 25
buffer.time = 2

[Command]
name = "cby"
command=~F,B,$D,F,y
time = 25
buffer.time = 2

[Command]
name = "cbz"
command=~F,B,$D,F,z
time =25
buffer.time = 2



[Command]
name = "crr"
command=~$D,F,$D,F,a+c
time = 25
buffer.time = 2

[Command]
name = "crr"
command=~$D,F,$D,F,a+b
time = 25
buffer.time = 2

[Command]
name = "crr"
command=~$D,F,$D,F,b+c
time =25
buffer.time = 2


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

[Command]
name = "mrsa"
command=~$D,F,a
time = 10

[Command]
name = "mrsb"
command=~$D,F,b
time = 10

[Command]
name = "mrsc"
command=~$D,F,c
time = 10
;----------------------------------------------------------------------------------

[Command]
name = "mrsex"
command=~$D,F,a+b
time = 12

[Command]
name = "mrsex"
command=~$D,F,b+c
time = 12

[Command]
name = "mrsex"
command=~$D,F,a+c
time = 12
;-------------------------------------------------
[Command]
name = "rbkx"
command=~F,$D,B,x
time = 10

[Command]
name = "rbky"
command=~F,$D,B,y
time = 10

[Command]
name = "rbkz"
command=~F,$D,B,z
time = 10
;---------------------------------------------------
[Command]
name = "rbkex"
command=~F,$D,B,y+z
time = 10

[Command]
name = "rbkex"
command=~F,$D,B,a+z
time = 10

[Command]
name = "rbkex"
command=~F,$D,B,a+y
time = 10
;----------------------------------------------------
[Command]
name = "hska"
command=~F,$D,B,a

[Command]
name = "hskb"
command=~F,$D,B,b
time = 10

[Command]
name = "hskc"
command=~F,$D,B,c
time = 10
;-------------------------------------------------
[Command]
name = "hskex"
command=~F,$D,B,a+c
time = 10
[Command]
name = "hskex"
command=~F,$D,B,a+b
time = 10
[Command]
name = "hskex"
command=~F,$D,B,b+c
time = 10
;-------------------------------------------------
[Command]
name = "hkx"
command = ~$D,F,x
time = 10

[Command]
name = "hky"
command =~$D,F,y
time = 10

[Command]
name = "hkz"
command = ~$D,F,z
time = 10

;-------------------------------------------------
[Command]
name = "hkex"
command = ~$D,F,x+y
time = 10

[Command]
name = "hkex"
command =~$D,F,y+z
time = 10

[Command]
name = "hkex"
command = ~$D,F,x+z
time = 10

;-----------------------------------
[Command]
name = "Zx"
command = ~F,B,F, x
time = 13

[Command]
name = "Zy"
command = ~F,B,F, y
time = 13

[Command]
name = "Zz"
command = ~F,B,F, z
time = 13


[Command]
name = "Kx"
command = ~F,D,DF, x
time = 15


[Command]
name = "Ky"
command = ~F,D,DF, y
time = 15

[Command]
name = "Kz"
command = ~F,D,DF, z
time = 15

[Command]
name = "Kex"
command = ~F,D,DF,x+y
time = 15
[Command]
name = "Kex"
command = ~F,D,DF,y+z
time = 15
[Command]
name = "Kex"
command = ~F,D,DF,x+z
time = 15

;-| 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="3p"
command=x+y+z
time=1

[Command]
name="recovery"
command=x+y
time=1
[Command]
name="recovery"
command=x+z
time=1
[Command]
name="recovery"
command=y+z
time=1

[Command]
name="charge1"
command= /z

[Command]
name="charge2"
command=/c


[Command]
name="2p"
command=x+y
time=5
[Command]
name="2p"
command=x+z
time=5
[Command]
name="2p"
command=y+z
time=5

[Command]
name="2k"
command=a+b
time=5
[Command]
name="2k"
command=a+c
time=5
[Command]
name="2k"
command=b+c
time=5

[Command]
name = "SJ"
command = D,U
time = 10

[Command]
name = "SJ"
command = D,UF
time = 10

[Command]
name = "SJ"
command = D,UB
time = 10


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

;-| 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="fwd"
command=F
time=1
[command]
name="back"
command=B
time=1
[command]
name="up"
command=U
time=1
[command]
name="down"
command=D
time=1
[command]
name="downf"
command=DF
time=1

;---------------------------------------------------------------------------
[Command]
name="holda"
command=/a
time=1
[Command]
name="holdb"
command=/b
time=1
[Command]
name="holdc"
command=/c
time=1
[Command]
name="holdx"
command=/x
time=1
[Command]
name="holdy"
command=/y
time=1
[Command]
name="holdz"
command=/z
time=1
[Command]
name="holdstart"
command=/s
time=1
;------------------------------------------------------------------------------
[Statedef -1]

[State -1]
type = VarSet
trigger1 = command = "CPU1"
trigger2 = command = "CPU2"
trigger3 = command = "CPU3"
trigger4 = command = "CPU4"
trigger5 = command = "CPU5"
trigger6 = command = "CPU6"
trigger7 = command = "CPU7"
v = 59
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU8"
trigger2 = command = "CPU9"
trigger3 = command = "CPU10"
trigger4 = command = "CPU11"
trigger5 = command = "CPU12"
trigger6 = command = "CPU13"
trigger7 = command = "CPU14"
trigger8 = command = "CPU15"
v = 59
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU16"
trigger2 = command = "CPU17"
trigger3 = command = "CPU18"
trigger4 = command = "CPU19"
trigger5 = command = "CPU20"
trigger6 = command = "CPU21"
trigger7 = command = "CPU22"
trigger8 = command = "CPU23"
v = 59
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU24"
trigger2 = command = "CPU25"
trigger3 = command = "CPU26"
trigger4 = command = "CPU27"
trigger5 = command = "CPU28"
trigger6 = command = "CPU29"
trigger7 = command = "CPU30"
trigger8 = command = "CPU31"
v = 59
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU1"
trigger2 = command = "CPU2"
trigger3 = command = "CPU3"
trigger4 = command = "CPU4"
trigger5 = command = "CPU5"
trigger6 = command = "CPU6"
trigger7 = command = "CPU7"
v = 59
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU8"
trigger2 = command = "CPU9"
trigger3 = command = "CPU10"
trigger4 = command = "CPU11"
trigger5 = command = "CPU12"
trigger6 = command = "CPU13"
trigger7 = command = "CPU14"
trigger8 = command = "CPU15"
v = 59
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU16"
trigger2 = command = "CPU17"
trigger3 = command = "CPU18"
trigger4 = command = "CPU19"
trigger5 = command = "CPU20"
trigger6 = command = "CPU21"
trigger7 = command = "CPU22"
trigger8 = command = "CPU23"
v = 59
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU24"
trigger2 = command = "CPU25"
trigger3 = command = "CPU26"
trigger4 = command = "CPU27"
trigger5 = command = "CPU28"
trigger6 = command = "CPU29"
trigger7 = command = "CPU30"
trigger8 = command = "CPU31"
v = 59
value = 1

[State -1]
type = VarSet
trigger1 = command = "CPU32"
trigger2 = command = "CPU33"
trigger3 = command = "CPU34"
trigger4 = command = "CPU35"
trigger5 = command = "CPU36"
trigger6 = command = "CPU37"
trigger7 = command = "CPU38"
trigger8 = command = "CPU39"
trigger9 = command = "CPU40"
trigger10 = command = "CPU41"
trigger11 = command = "CPU42"
v = 59
value = 1



;===========================================================================
;---------------------------------------------------------------
[State -1, AI]
type = ChangeState
value =  3054
triggerall = var(59) >= 1 && StateType != A && Power >= 3000
triggerall = roundstate = 2
triggerall = p2statetype != L
triggerall = random < 399
triggerall = p2statetype != A
triggerall = stateno !=[3000,3999]
triggerall = life <= lifemax/3
triggerall = var(58)=1
trigger1 = ctrl
triggerall = movetype != H
trigger2 = (stateno=[200,435])&&movehit
triggerall = p2bodydist x=[0,60]
;---------------------------------------------------------------
[State -1, AI]
type = ChangeState
value =  ifelse(var(58) = 1,3065,3060)
triggerall = var(59) >= 1 && StateType != A && Power >= 2000
triggerall = roundstate = 2
triggerall = p2statetype != L
triggerall = random < 99
triggerall = p2statetype != A
triggerall = stateno !=[3000,4999]
trigger1 = ctrl
triggerall = movetype != H
trigger2 = (stateno=[200,435])&&movehit
triggerall = p2bodydist x=[0,60]
;---------------------------------------------------------------
[State -1, AI]
type = ChangeState
value =  ifelse(var(58) = 1,3058,3050)
triggerall = var(59) >= 1 && StateType != A && Power >= 1000
triggerall = roundstate = 2
triggerall = p2statetype != L
triggerall = random < 99
triggerall = p2statetype != A
triggerall = stateno !=[3000,4999]
triggerall = p2bodydist x=[0,90]
triggerall = movetype != H
trigger1 = ctrl

trigger2 = (stateno=[200,435])&&movehit

;---------------------------------------------------------------
[State -1, AI]
type = ChangeState
value =   ifelse(var(58) = 1,3010,3000)
triggerall = var(59) >= 1 && StateType != A && Power >= 1000
triggerall = roundstate = 2
triggerall = p2statetype != L
triggerall = random < 99
triggerall = p2statetype != A
triggerall = stateno !=[3000,4999]
triggerall = p2bodydist x =[15,400]
triggerall = movetype != H
trigger1 = ctrl

trigger2 = (stateno=[200,435])&&movehit

trigger3 = (enemy,gethitvar(hitcount) > 2)  && movecontact && var(3)

;---------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 3079
triggerall = var(59) >= 1 && Power >= 1000
triggerall = statetype = S
triggerall = p2statetype = S || p2statetype = C
triggerall = var(3) = 0
triggerall = fvar(3) = 0
triggerall = stateno !=[3000,4999]
triggerall = roundstate = 2
triggerall = stateno !=[2500,2509]
trigger1 =  stateno = 151
triggerall = random < 499
triggerall = p2bodydist x < 30
;---------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 3081
triggerall = var(59) >= 1 && Power >= 1000
triggerall = statetype = C
triggerall = roundstate = 2
triggerall = var(3) = 0
triggerall = stateno !=[3000,4999]
triggerall = fvar(3) = 0
triggerall = stateno !=[2500,2509]
trigger1 =  stateno = 153
triggerall = random < 499
triggerall = p2bodydist x < 30
;---------------------------------------------------------------------------
;Stand Light Punch
;立ち弱パンチ
[State -1, Stand Light Punch]
type = ChangeState
value = ifelse(p2bodydist x<15,200,201)
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = (StateType = S)
triggerall = stateno != [800,4999]
Triggerall = P2BodyDist X = [0,15]
Triggerall = Random < 500
triggerall = p2statetype !=L
triggerall = enemy, statetype != A
triggerall = enemy, statetype != C
triggerall = p2bodydist x = [0,25]
triggerall = var(50) = 1
trigger1 = ctrl


;---------------------------------------------------------------------------
;Stand Strong Punch
;立ち強パンチ
[State -1, Stand strong Punch]
type = ChangeState
value = ifelse(p2bodydist x <15,205,210)
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = (StateType = S)
triggerall = stateno != [800,4999]
Triggerall = Random < 800
triggerall = p2statetype !=L
triggerall = enemy, statetype != A
triggerall = p2bodydist x = [0,40]
triggerall = enemy, statetype != C
triggerall = var(50) = 1
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [230,231]) && movecontact
trigger4 = (stateno = [235,236]) && movecontact
trigger5 = stateno = 400 && movecontact
trigger6= stateno = 405 && movecontact
trigger7 = stateno = 430 && movecontact
trigger8 = stateno = 435 && movecontact

;---------------------------------------------------------------------------
;Stand Strong Punch  2
[State -1, Stand strong Punch2]
type = ChangeState
value = 220
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = (StateType = S)
triggerall = stateno != [800,4999]
Triggerall = Random < 800
triggerall = p2statetype !=L
triggerall = enemy, statetype != A
triggerall = enemy, statetype != C
triggerall = p2bodydist x = [0,35]
triggerall = var(50) = 1
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [205,210]) && movecontact
trigger4 = (stateno = [230,231]) && movecontact
trigger5 = (stateno = [235,236]) && movecontact
trigger6 = stateno = 240 && movecontact
trigger8 = stateno = 400 && movecontact
trigger9= stateno = 405 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 435 && movecontact

;---------------------------------------------------------------------------
[State -1, Stand medium Punch]
type = ChangeState
value = 220
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = (StateType = S)
triggerall = stateno != [800,3999]
Triggerall = Random < 800
triggerall = p2statetype !=L
triggerall = enemy, statetype != A
triggerall = p2bodydist x = [0,40]
triggerall = var(50) = 1
triggerall = enemy, statetype != C
trigger1 = ctrl
trigger2 = stateno = 205 && movecontact  && var(58) =1
trigger3 = stateno = 210 && movecontact  && var(58) =1
trigger4 = var(3) && movecontact

;---------------------------------------------------------------------------
;Stand Light Kick
;立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = ifelse(p2bodydist x<15,230,231)
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = (StateType = S)
triggerall = stateno != [800,3999]
Triggerall = Random < 800
triggerall = p2statetype !=L
triggerall = enemy, statetype != A
triggerall = p2bodydist x = [0,30]
triggerall = var(50) = 1
triggerall = enemy, statetype != C
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = stateno = 400 && movecontact

;---------------------------------------------------------------------------
;Standing medium Kick
;立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = ifelse(p2bodydist x<15,235,236)
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = (StateType = S)
triggerall = stateno != [800,3999]
Triggerall = Random < 800
triggerall = p2statetype !=L
triggerall = enemy, statetype != A
triggerall = p2bodydist x = [0,40]
triggerall = var(50) = 1
triggerall = enemy, statetype != C
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [205,210]) && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = (stateno = [230,231]) && movecontact
trigger6 = stateno = 240 && movecontact
trigger8 = stateno = 400 && movecontact
trigger9= stateno = 405 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 435 && movecontact

;--------------------------------------------------------
;Stand hard Kick
;立ち弱キック
[State -1, Stand hard Kick]
type = ChangeState
value = 240
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = (StateType = S)
triggerall = stateno != [800,3999]
Triggerall = Random < 800
triggerall = p2statetype !=L
triggerall = enemy, statetype != A
triggerall = p2bodydist x = [0,40]
triggerall = var(50) = 1
triggerall = enemy, statetype != C
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [205,210]) && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = (stateno = [235,236]) && movecontact
trigger6 = (stateno = [230,231]) && movecontact
trigger8 = stateno = 400 && movecontact
trigger9= stateno = 405 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 435 && movecontact

;------------------------------------------------------
[State -1, AI5]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = (StateType != A)
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,30])&&(P2BodyDist Y = 0 )
Triggerall = Random < 800
triggerall = (p2statetype !=L)
triggerall = (movetype !=H)
trigger1 = ctrl
value = 400
;------------------------------------------------------
[State -1, AI2]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType != A
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,35])&&(P2BodyDist Y = 0 )
Triggerall = Random < 800
triggerall = p2statetype !=L
triggerall = (movetype !=H)
triggerall = p2statetype != L
triggerall = enemy, statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [230,231]) && movecontact
trigger4 = (stateno = [235,236]) && movecontact
trigger5 = stateno = 400 && movecontact
trigger6 = stateno = 430 && movecontact
trigger7 = stateno = 435 && movecontact
value = 405
;------------------------------------------------------
[State -1, AI2]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall =  (StateType != A)
triggerall = p2bodydist x = [0,30]
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,35]) && (P2BodyDist Y = 0)
Triggerall = enemy, statetype != A
Triggerall = Random < 800
triggerall = p2statetype != L
triggerall = p2statetype !=L
triggerall = (movetype !=H)
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [230,231]) && movecontact
trigger4 = (stateno = [235,236]) && movecontact
trigger5 = stateno = 400 && movecontact
trigger6 = stateno = 405 && movecontact
trigger7 = stateno = 430 && movecontact
trigger8 = stateno = 435 && movecontact
value = 410
;------------------------------------------------------
[State -1, AI9]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType != A
triggerall = stateno != [800,3999]
Triggerall = P2BodyDist X = [0,30]
triggerall = (movetype !=H)
triggerall = p2statetype != L
Triggerall = ( Random < 800) && (enemy, statetype != A && enemy,statetype !=L)
trigger1 = ctrl
trigger2 = stateno = 400 && movecontact
value = 430
;------------------------------------------------------
[State -1, AI 9]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType != A
triggerall = stateno != [800,3999]
triggerall = (movetype !=H)
triggerall = p2statetype != L
Triggerall = (P2BodyDist X = [0,35]) && (P2BodyDist Y = 0 )
Triggerall = ( Random < 800) && (enemy, statetype != A && enemy,statetype !=L)
Triggerall = stateno !=435
Trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [230,231]) && movecontact
trigger4 = (stateno = [235,236]) && movecontact
trigger5 = stateno = 400 && movecontact
trigger6 = stateno = 405 && movecontact
trigger7 = stateno = 430 && movecontact
value = 435
;------------------------------------------------------
[State -1, AI8]
Type = ChangeState
Triggerall = (RoundState = 2) && (var(59) =1)
Triggerall = StateType != A
triggerall = stateno != [800,3999]
trigger1 = ctrl
Triggerall = P2BodyDist X = [0,35]
triggerall = (movetype !=H)
triggerall = p2statetype != L
Triggerall = ( Random < 800) && (enemy, statetype != A && enemy,statetype !=L)
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [230,231]) && movecontact
trigger4 = (stateno = [235,236]) && movecontact
trigger5 = stateno = 400 && movecontact
trigger6 = stateno = 405 && movecontact
trigger7 = stateno = 430 && movecontact
trigger8 = stateno = 435 && movecontact
value = 440
----------------------------------------
[State -1, AI]
type = ChangeState
value = 1200
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = (p2bodydist x=[0,40]) && (p2bodydist y=[-20,0])
triggerall = stateno !=[800,4999]
triggerall = !(EnemyNear,IsHelper)
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=99
triggerall = stateno !=[800,899]
trigger1 = ctrl
trigger2 = (stateno= [200,435]) && movehit
trigger3 = stateno =20
;---------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1150
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = p2bodydist x<=40 && (p2bodydist y =[-20,0])
triggerall = stateno !=[800,4999]
triggerall = !(EnemyNear,IsHelper)
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=99
triggerall = stateno !=[800,899]
trigger1 = ctrl
trigger2 = (stateno= [200,435]) && movehit
trigger3 = stateno =20
triggerall = p2stateno !=[120,150]
;---------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1250
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = p2bodydist x<=150
triggerall = stateno !=[800,4999]
triggerall = !(EnemyNear,IsHelper)
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=79
triggerall = stateno !=[800,899]
trigger1 = ctrl
trigger2 = (stateno= [200,435]) && movehit
trigger3 = stateno =20
trigger4 = p2statetype = C && ctrl
triggerall = p2stateno !=[120,150]
;-----------------------------------
;---------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1000
triggerall = var(59)=1 && roundstate = 2 && statetype !=A
triggerall = (p2stateno!=[120,155]) && (p2statetype!=L)
triggerall = (p2bodydist y=[-20,0])
triggerall = numhelper(1001) <= 0
triggerall = ctrl
triggerall = p2statetype !=L
triggerall = time%30 = 0 || var(2)=4
Triggerall = Random <=49 || ((var(58)=1||var(2)=4) && random <=99 && (p2bodydist x=[0,80]))
trigger1 = ctrl
trigger2 = (stateno= [200,435]) && movehit
trigger3 = stateno =20
;---------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1050
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = p2bodydist x<=40
triggerall = stateno !=[800,4999]
triggerall = !(EnemyNear,IsHelper)
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=99
triggerall = p2stateno !=[5100,5199]
trigger1 = ctrl
trigger2 = (stateno= [200,435]) && movehit
trigger3 = stateno =20
trigger4 = (p2bodydist y < -1)&&  (random = [12,22])
triggerall = p2stateno !=[120,150]
;---------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1100
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = (p2bodydist x=[0,79])
triggerall = stateno !=[800,4999]
triggerall = !(EnemyNear,IsHelper)
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=79
triggerall = stateno !=[800,899]
trigger1 = ctrl
trigger2 = (stateno= [200,435]) && movehit
trigger3 = stateno =20
triggerall = p2stateno !=[120,150]

;---------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1260
triggerall = var(59) >= 1 && StateType != A
triggerall = roundstate = 2
triggerall = (p2bodydist x=[80,200])&& (p2bodydist y =[-20,0])
triggerall = stateno !=[800,4999]
triggerall = !(EnemyNear,IsHelper)
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <=39 ||(roundno >1 &&random<249)
triggerall = stateno !=[800,899]
trigger1 = ctrl
trigger2 = (stateno= [200,435]) && movehit
trigger3 = stateno =20
triggerall = p2stateno !=[120,150]

;---------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1005
triggerall = var(59)=1 && roundstate = 2 && statetype =A
triggerall = (p2stateno!=[120,155]) && (p2statetype!=L)
triggerall = (enemy,vel y>-1)
triggerall = numhelper(1001) <= 0
triggerall = ctrl
triggerall = p2statetype !=L
triggerall = time%30 = 0 || var(2)=4
Triggerall = Random <=49
trigger1 = ctrl
trigger2 = (stateno= [600,640]) && movehit


;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = var(50) =1
triggerall = (movetype !=H)
Triggerall = (P2BodyDist X = [0,30])
Triggerall = Random <= 600
triggerall = roundstate = 2
trigger1 = ctrl


;---------------------------------------------------------------------------
[State -1, Jump medium Punch]
type = ChangeState
value = 605
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,30])
Triggerall = Random <= 600
triggerall = roundstate = 2
triggerall = (movetype !=H)
trigger1 = ctrl

;---------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,30])
Triggerall = Random <=600
triggerall = roundstate = 2
triggerall = (movetype !=H)
trigger1 = ctrl
;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,30])
Triggerall = Random <= 600
triggerall = roundstate = 2
triggerall = (movetype !=H)
trigger1 = ctrl
;---------------------------------------------------------------------------
;Jump medium Kick
[State -1, Jump medium Kick]
type = ChangeState
value = 635
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,30])
Triggerall = Random <= 600
triggerall = roundstate = 2
triggerall = (movetype !=H)
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Strong Kick
;空中強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = var(59) = 1
triggerall = statetype = A
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,30])
Triggerall = Random <=600
triggerall = roundstate = 2
triggerall = (movetype !=H)
trigger1 = ctrl

;-------------------------------------------------------------------
[State -1, AI]
type=changestate
value=900
Triggerall = (var(59) =1)
triggerall = power != 3000
triggerall = statetype = S
triggerall = roundstate = 2
triggerall= random < 100
triggerall = p2bodydist x > 160
triggerall = numhelper(6001)<1
trigger1=ctrl
;------------------------------------------------------------------------
[State -1, AI Throw]
type = ChangeState
value = 800
triggerall = Var(59) = 1
triggerall = random <= 100
triggerall = statetype = S
triggerall = p2statetype = S|| p2statetype = C
triggerall = ctrl
triggerall = stateno != [200,9999]
Triggerall = (RoundState = 2)
triggerall = (p2MoveType != H)
trigger1 = p2bodydist X < 15 && p2dist y <= 0

;-------------------------------------------------
[state -1, AI jump]
type = changestate
triggerall = var(59) = 1
triggerall = p2statetype !=L
triggerall = statetype != A
triggerall = var(30)
trigger1 = ctrl && p2bodydist x = [50,90]
trigger2 =p2statetype = C && (p2bodydist x = [50,90]) && ctrl
value = 40

;------------------------------------------------------
[State -1, AI]
type=changestate
value=108
triggerall = var(59) >= 1 && StateType != A
triggerall = statetype = S
triggerall = roundstate = 2
triggerall = stateno !=108
triggerall = stateno !=[3000,9999]
triggerall = ((p2bodydist x = [30,755])) && random < 22
trigger2 =(EnemyNear, HitDefAttr = SCA,AA,AP)
triggerall=ctrl
trigger1 = ctrl ||  backedgedist <= 40
trigger3 = enemy,numproj >= 1

[State -1, AI run]
type=changestate
value=100
triggerall = roundstate = 2
triggerall=var(59) >= 1 && statetype=S && ctrl && random < 199
trigger1= (stateno!=[100,105]) && p2movetype!=A && (p2bodydist x=[70,788])

[State -1, AI run]
type=changestate
value=20
triggerall = roundstate = 2
triggerall=var(59) >= 1 && statetype=S && ctrl && random < 249
trigger1= (stateno!=[20,105]) && p2movetype!=A && (p2bodydist x=[0,69])

[State -1, AIRun Back]
type = ChangeState
value = 105
triggerall = var(59) = 1
triggerall = stateno !=105
triggerall = statetype = S
triggerall = random < 99
triggerall = roundstate = 2
triggerall = ctrl
trigger1 = (p2statetype =L || p2movetype = A) &&(p2bodydist x=[-99,10])
[State -1, Guard]
type = ChangeState
value = 120
triggerall = movetype !=H
triggerall = roundstate = 2
triggerall = stateno!=[120,155]
triggerall=var(59) >= 1
trigger1 =(StateNo !=[800,998])&&(StateNo != 105)
triggerall = Random < 900
triggerall=(EnemyNear, movetype=A)
triggerall=ctrl
trigger2 = enemy,numproj >= 1
persistent = 0
;------------------------------------------------------------------------------
[State -1, Gigaton Punch]
type = ChangeState
value = ifelse(var(58)=1,3058,3050)
triggerall = command = "gp"
triggerall = power>= 1000
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
triggerall = stateno !=3050
triggerall = stateno !=3000
triggerall = !winko
trigger1 = ctrl
trigger2 = var(1)
trigger3 = var(17)
;---------------------------------------------------------------------
[State -1, Zanretsu Ken]
type = ChangeState
value = 1150
triggerall =command ="Zx"|| command ="Zy"||command ="Zz"
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
;triggerall = numhelper(1001) <= 0 || var(3)
trigger1 = ctrl
trigger2 = var(1)
;------------------------------------------------------------------------------
[State -1, Haoh Shikouken]
type = ChangeState
value = ifelse(var(58)=1,3010,3000)
triggerall = (command = "cbx" || command = "cby" || command = "cbz")
triggerall = power>= 1000
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
triggerall = stateno !=3000
triggerall = stateno !=3050
triggerall = !winko
trigger1 = ctrl
trigger2 = var(1)
trigger3 = var(17)

;------------------------------------------------------------------------------
[State -1, Chou Ryuuko Ranbu]
type = ChangeState
value = 3054
triggerall = command = "crr"
triggerall = power>= 3000
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(58) = 1
triggerall = var(50) = 1
triggerall = stateno !=3054
triggerall = stateno !=3065
triggerall = life <= lifemax/3
triggerall = !winko
trigger1 = ctrl
trigger2 = var(1)
trigger3 = var(17)

;------------------------------------------------------------------------------
[State -1, Tenchi Haou Ken]
type = ChangeState
value = ifelse(var(58)=1,3065,3060)
triggerall = command = "thk"
triggerall = power>= 2000
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
triggerall = stateno !=3050
triggerall = stateno !=3060
triggerall = stateno !=3000
triggerall = !winko
trigger1 = ctrl
trigger2 = var(1)
trigger3 = var(17)

 ;-------------------------------------------------------------------------
[State -1, Counter]
type = ChangeState
value = 3079
triggerall = command = "b" && command = "y"
triggerall= statetype = S
triggerall = power >= 1000
triggerall = var(3) = 0
triggerall = fvar(3) = 0
triggerall = var(59) = 0
triggerall = var(50) = 1
trigger1 = stateno = 140 || stateno = 150
;-------------------------------------------------------------------------
[State -1, Counterlow]
type = ChangeState
value = 3081
triggerall =command = "b" && command = "y"
triggerall= statetype = C
triggerall = power >= 1000
triggerall = var(59) = 0
triggerall = var(3) = 0
triggerall = fvar(3) = 0
triggerall = var(50) = 1
trigger1 = stateno = 151 || stateno =  152 || stateno = 153


;===========================================================================
;This is not a move, but it sets up var(1) to be 1 if conditions are right
;for a combo into a special move (used below).
;Since a lot of special moves rely on the same conditions, this reduces
;redundant logic.
[State -1, Combo condition Reset]
type = VarSet
trigger1 = 1
var(1) = 0

[State -1, Combo condition Check]
type = VarSet
triggerall = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact
var(1) = 1


;---------------------------------------------------------------------
[State -1, Kyokugen-ryuu Ren Bu Ken]
type = ChangeState
value = 1200
triggerall =command ="rbkx"|| command ="rbky"||command ="rbkz"
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
;triggerall = numhelper(1001) <= 0 || var(3)
trigger1 = ctrl
trigger2 = var(1)
;---------------------------------------------------------------------
[State -1, Kohou]
type = ChangeState
value = 1050
triggerall =command ="Kx"|| command ="Ky"||command ="Kz"||command = "Kex"
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
;triggerall = numhelper(1001) <= 0 || var(3)
trigger1 = ctrl
trigger2 = var(1)
trigger3 = stateno = 1200 && movehit && var(8)=4
;---------------------------------------------------------------------
[State -1, Hien Shippuu Kyaku]
type = ChangeState
value = 1100
triggerall =command ="hska"|| command ="hskb"||command ="hskc"
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
;triggerall = numhelper(1001) <= 0 || var(3)
trigger1 = ctrl
trigger2 = var(1)


;---------------------------------------------------------------------
[State -1, Mouko Rajin Setsu]
type = ChangeState
value = 1250
triggerall =command ="mrsa"|| command ="mrsb"||command ="mrsc"
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
;triggerall = numhelper(1001) <= 0 || var(3)
trigger1 = ctrl
trigger2 = var(1)
;---------------------------------------------------------------------
[State -1, Kou' Ou Ken]
type = ChangeState
value = ifelse(statetype = A,1005,1000)
triggerall = command = "hkx"||command = "hky"||command = "hkz"||command = "hkex"
triggerall = var(59) = 0
triggerall = var(50) = 1
triggerall = numhelper(1001) <= 0 && numhelper(1003) <= 0
trigger1 = ctrl
trigger2 = var(1)
trigger3 = var(3) && movecontact
trigger4 = (stateno = [600,640]) && movecontact

;--------------------------------------------------------------------------
[State -1, dash]
type=changestate
value=108
triggerall = command = "holdfwd" && command = "a" && command = "x"
triggerall = statetype = S
triggerall = var(3)=0
triggerall = var(59) = 0
triggerall = var(50) = 1
trigger1=ctrl

;---------------------------------------------------------------------
;[State -1, rage]
;type = ChangeState
;value = 4005
;triggerall = command = "b" && command = "y"
;triggerall = statetype = S
;trigger1 =ctrl
;triggerall = var(50) = 1
;triggerall = var(3) = 0
;triggerall = fvar(3) = 0
;triggerall = var(58) = 1
;triggerall = power >= 1000

;---------------------------------------------------------------------
[State -1, ccombo]
type = ChangeState
value = 4002
triggerall = command = "z"  && command = "c"
triggerall = statetype = A
triggerall = power =3000
triggerall = var(3) = 0
triggerall = fvar(3) = 0
triggerall = var(50) = 1
trigger1 = ctrl
;--------------------------------------------------------------------------
[State -1, charge]
type=changestate
value=900
triggerall = command = "charge1" && command = "charge2"
triggerall = power != 3000
triggerall = statetype = S
triggerall = var(3) = 0
triggerall = var(59) = 0
triggerall = var(50) = 1
trigger1=ctrl

;===========================================================================
;---------------------------------------------------------------------------
;Run Fwd
;ダッシュ
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(59) = 0
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl
;---------------------------------------------------------------------------
;Run Fwd
;ダッシュ
[State -1, Jump]
type = changestate
value = 40
triggerall = Var(59) = 0
triggerall = statetype != A
triggerall = command = "up"
trigger1 = ctrl

;---------------------------------------------------------------------------
;Run Back
;後退ダッシュ
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Throw
;投げ
[State -1, Throw]
type = ChangeState
value = 800
triggerall = command = "z"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
triggerall = Var(59) = 0
triggerall = var(50) = 1
trigger1 = command = "holdfwd" || command = "holdback"
trigger1 = p2bodydist X < 13
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H

;===========================================================================
;---------------------------------------------------------------------------
;Stand Light Punch
;立ち弱パンチ
[State -1, Stand Light Punch]
type = ChangeState
value = ifelse(p2bodydist x<15,200,201)
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = stateno != [800,3999]
triggerall = statetype = S
triggerall = var(59) = 0
triggerall = var(50) = 1
trigger1 = ctrl
;trigger2 = var(3) && movecontact

;---------------------------------------------------------------------------
;Stand Strong Punch
;立ち強パンチ
[State -1, Stand strong Punch]
type = ChangeState
value = ifelse(p2bodydist x <15,205,210)
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = statetype != A
triggerall = stateno != [800,3999]
triggerall = var(59) = 0
triggerall = var(50) = 1
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [230,231]) && movecontact
trigger4 = (stateno = [235,236]) && movecontact
trigger5 = stateno = 400 && movecontact
trigger6= stateno = 405 && movecontact
trigger7 = stateno = 430 && movecontact
trigger8 = stateno = 435 && movecontact
;trigger2 = stateno = 200 && movecontact && var(58) =1
;trigger3 = var(3) && movecontact


;---------------------------------------------------------------------------
;Stand Strong Punch  2
[State -1, Stand strong Punch2]
type = ChangeState
value = 220
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = stateno != [800,3999]
triggerall = var(59) = 0
triggerall = statetype != A
triggerall = var(50) = 1
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [205,210]) && movecontact
trigger4 = (stateno = [230,231]) && movecontact
trigger5 = (stateno = [235,236]) && movecontact
trigger6 = stateno = 240 && movecontact
trigger8 = stateno = 400 && movecontact
trigger9= stateno = 405 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 435 && movecontact
;trigger2 = stateno = 205 && movecontact  && var(58) =1
;trigger3 = stateno = 210 && movecontact  && var(58) =1
;trigger4 = var(3) && movecontact




;---------------------------------------------------------------------------
;Stand Light Kick
;立ち弱キック
[State -1, Stand Light Kick]
type = ChangeState
value = ifelse(p2bodydist x<15,230,231)
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = stateno != [800,3999]
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
triggerall = stateno !=[800,899]
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = stateno = 400 && movecontact
;trigger2 = stateno = 200 && movecontact  && var(58) =1
;trigger4 = var(3) && movecontact

;---------------------------------------------------------------------------
;Standing medium Kick
;立ち強キック
[State -1, Standing Strong Kick]
type = ChangeState
value = ifelse(p2bodydist x<15,235,236)
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = stateno != [800,3999]
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [205,210]) && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = (stateno = [230,231]) && movecontact
trigger6 = stateno = 240 && movecontact
trigger8 = stateno = 400 && movecontact
trigger9= stateno = 405 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 435 && movecontact
;trigger2 = stateno = 205 && movecontact  && var(58) =1
;trigger3 = stateno = 210 && movecontact  && var(58) =1
;trigger4 = stateno = 200 && movecontact  && var(58) =1
;trigger5 = stateno = 230 && movecontact   && var(58) =1
;trigger6 = var(3) && movecontact

;--------------------------------------------------------
;Stand hard Kick
;立ち弱キック
[State -1, Stand hard Kick]
type = ChangeState
value = 240
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = stateno != [800,3999]
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [205,210]) && movecontact
trigger4 = stateno = 220 && movecontact
trigger5 = (stateno = [235,236]) && movecontact
trigger6 = (stateno = [230,231]) && movecontact
trigger8 = stateno = 400 && movecontact
trigger9= stateno = 405 && movecontact
trigger10 = stateno = 410 && movecontact
trigger11 = stateno = 430 && movecontact
trigger12 = stateno = 435 && movecontact
;trigger2 = stateno = 205 && movecontact  && var(58) =1
;trigger3 = stateno = 210 && movecontact  && var(58) =1
;trigger4 = stateno = 220 && movecontact  && var(58) =1
;trigger5 = stateno = 215 && movecontact  && var(58) =1
;trigger6 = stateno = 235 && movecontact  && var(58) =1
;trigger7 = stateno = 236 && movecontact  && var(58) =1
;trigger13 = var(3) && movecontact

;---------------------------------------------------------------------------
;Taunt
;挑発
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = command = "start"
triggerall= var(59) = 0
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Crouching Light Punch
;しゃがみ弱パンチ
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = stateno != [800,3999]
triggerall = statetype != A
triggerall = var(50) = 1
triggerall = var(59) = 0
trigger1 = ctrl
;trigger2 = var(3) && movecontact
;trigger3 = stateno = 200 && movecontact && var(58) = 0

;---------------------------------------------------------------------------
;Crouching Strong Punch
;しゃがみ強パンチ
[State -1, Crouching strong Punch]
type = ChangeState
value = 405
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = stateno != [800,3999]
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [230,231]) && movecontact
trigger4 = (stateno = [235,236]) && movecontact
trigger5 = stateno = 400 && movecontact
trigger6 = stateno = 430 && movecontact
trigger7 = stateno = 435 && movecontact
;trigger2= stateno = 400 && movecontact && var(58) =1
;trigger3= var(3) && movecontact

;-------------------------------------------------------------------------------
;Crouching Strong Punch
;しゃがみ強パンチ
[State -1, Crouching medium Punch]
type = ChangeState
value = 410
triggerall = command = "z"
triggerall = command = "holddown"
triggerall = stateno != [800,3999]
triggerall = statetype != A
triggerall = var(59) = 0
triggerall = var(50) = 1
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [230,231]) && movecontact
trigger4 = (stateno = [235,236]) && movecontact
trigger5 = stateno = 400 && movecontact
trigger6 = stateno = 405 && movecontact
trigger7 = stateno = 430 && movecontact
trigger8 = stateno = 435 && movecontact
;trigger2 = stateno = 405&& movecontact  && var(58) =1
;trigger3 = var(3) && movecontact


;---------------------------------------------------------------------------
;Crouching Light Kick
;しゃがみ弱キック
[State -1, Crouching light Kick]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = stateno != [800,3999]
triggerall = var(59) = 0
triggerall = statetype != A
triggerall = var(50) = 1
trigger1 = ctrl
trigger2 = stateno = 400 && movecontact
;trigger2 = var(3) && movecontact
;trigger3 = stateno = 400 && movecontact  && var(58) =1
;------------------------------------------------------------------------
[State -1, Crouching medium Kick]
type = ChangeState
value = 435
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = stateno != [800,3999]
triggerall = var(59) = 0
triggerall = statetype != A
triggerall = var(50) = 1
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [230,231]) && movecontact
trigger4 = (stateno = [235,236]) && movecontact
trigger5 = stateno = 400 && movecontact
trigger6 = stateno = 405 && movecontact
trigger7 = stateno = 430 && movecontact
;trigger2= stateno = 400 && movecontact  && var(58) =1
;trigger3 = stateno = 430 && movecontact  && var(58) =1
;trigger4 = stateno = 410&& movecontact  && var(58) =1
;trigger5 = var(3) && movecontact

;---------------------------------------------------------------------------
;Crouching Strong Kick
;しゃがみ強キック
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = stateno != [800,3999]
triggerall = var(59) = 0
triggerall = var(50) = 1
triggerall = statetype = C
trigger1 = ctrl
trigger2 = (stateno = [200,201]) && movecontact
trigger3 = (stateno = [230,231]) && movecontact
trigger4 = (stateno = [235,236]) && movecontact
trigger5 = stateno = 400 && movecontact
trigger6 = stateno = 405 && movecontact
trigger7 = stateno = 430 && movecontact
trigger8 = stateno = 435 && movecontact
;trigger2 = stateno = 435&& movecontact && var(58) =1
;trigger3 = stateno = 410&& movecontact  && var(58) =1
;trigger4 = stateno = 415&& movecontact  && var(58) =1
;trigger5 = var(3) && movecontact

;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
triggerall = statetype = A
triggerall = var(50) = 1
triggerall = stateno !=105
triggerall = var(59) = 0
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1, Jump medium Punch]
type = ChangeState
value = 605
triggerall = command = "y"
triggerall = statetype = A
triggerall = var(50) = 1
triggerall = stateno !=105
triggerall = var(59) = 0
trigger1 = ctrl


;---------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "z"
triggerall= statetype = A
triggerall = var(50) = 1
triggerall = stateno !=105
triggerall = var(59) = 0
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
triggerall = statetype = A
triggerall = var(50) = 1
triggerall = stateno !=105
triggerall = var(59) = 0
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump medium Kick
[State -1, Jump medium Kick]
type = ChangeState
value = 635
triggerall = command = "b"
triggerall = var(50) = 1
triggerall = statetype = A
triggerall = stateno !=105
triggerall = var(59) = 0
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Strong Kick
;空中強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = command = "c"
triggerall = statetype = A
triggerall = var(50) = 1
triggerall = stateno !=105
triggerall = var(59) = 0
trigger1 = ctrl


