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


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

[Command]
name = "MGH"
command = ~$F,$D,$B,$U,  x+y
time = 35
buffer.time=5
[Command]
name = "MGH"
command = ~$D,$B,$U,$F,  x+y
time = 35
buffer.time=5
[Command]
name = "MGH"
command = ~$B,$U,$F,$D,  x+y
time = 35
buffer.time=5
[Command]
name = "MGH"
command = ~$U,$F,$D,$B, x+y
time = 35
buffer.time=5
[Command]
name = "MGH"
command = ~$B,$D,$F,$U, x+y
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$D,$F,$U,$B, x+y
time = 35
buffer.time=5
[Command]
name = "MGH"
command = ~$F,$U,$B,$D, x+y
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$U,$B,$D,$F, x+y
time = 35
buffer.time=5
[Command]
name = "MGH"
command = ~$F,$D,$B,$U, y+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$D,$B,$U,$F, y+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$B,$U,$F,$D, x+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$U,$F,$D,$B, x+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$B,$D,$F,$U, x+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$D,$F,$U,$B, x+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$F,$U,$B,$D, x+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$U,$B,$D,$F, x+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$F,$D,$B,$U,  x+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$D,$B,$U,$F,  x+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$B,$U,$F,$D, y+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$U,$F,$D,$B, y+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$B,$D,$F,$U, y+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$D,$F,$U,$B, y+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$F,$U,$B,$D, y+z
time = 35
buffer.time=5

[Command]
name = "MGH"
command = ~$U,$B,$D,$F,y+z
time = 35
buffer.time=5

[Command]
name = "MHG"
command = ~$B,$U,$F,$D, a+b
time = 35
buffer.time=5

[Command]
name = "MHG"
command = ~$U,$F,$D,$B, a+b
time = 35
buffer.time=5

[Command]
name =  "MHG"
command = ~$B,$D,$F,$U, a+b
time = 35
buffer.time=5

[Command]
name =  "MHG"
command = ~$D,$F,$U,$B, a+b
time = 35
buffer.time=5

[Command]
name =  "MHG"
command = ~$F,$U,$B,$D, a+b
time = 35
buffer.time=5

[Command]
name =  "MHG"
command = ~$U,$B,$D,$F, a+b
time = 35
buffer.time=5

[Command]
name =  "MHG"
command = ~$F,$D,$B,$U,  a+b
time = 35
buffer.time=5

[Command]
name = "MHG"
command = ~$D,$B,$U,$F,  a+b
time = 35
buffer.time=5

[Command]
name = "MHG"
command = ~$B,$U,$F,$D, a+b
time = 35
buffer.time=5

[Command]
name = "MHG"
command = ~$U,$F,$D,$B, a+b
time = 35
buffer.time=5

[Command]
name = "MHG"
command = ~$B,$D,$F,$U, a+b
time = 35
buffer.time=5

[Command]
name = "MHG"
command = ~$D,$F,$U,$B, a+b
time = 35
buffer.time=5

[Command]
name =  "MHG"
command = ~$F,$U,$B,$D, a+b
time = 35
buffer.time=5
[Command]
name =  "MHG"
command = ~$U,$B,$D,$F,a+b
time = 35
buffer.time=5

[Command]
name =  "MHG"
command = ~$B,$U,$F,$D, a+c
time = 25
buffer.time=5

[Command]
name =  "MHG"
command = ~$U,$F,$D,$B, a+c
time = 25
buffer.time=5

[Command]
name =  "MHG"
command = ~$B,$D,$F,$U, a+c
time = 25
buffer.time=5

[Command]
name =  "MHG"
command = ~$D,$F,$U,$B, a+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$F,$U,$B,$D, a+c
time = 25
buffer.time=5

[Command]
name =  "MHG"
command = ~$U,$B,$D,$F, a+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$F,$D,$B,$U,  a+c
time = 25
buffer.time=5

[Command]
name =  "MHG"
command = ~$D,$B,$U,$F,  a+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$B,$U,$F,$D, a+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$U,$F,$D,$B, a+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$B,$D,$F,$U,a+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$D,$F,$U,$B, a+c
time = 25
buffer.time=5
[Command]
name = "MHG"
command = ~$F,$U,$B,$D, a+c
time = 25
buffer.time=5
[Command]
name = "MHG"
command = ~$U,$B,$D,$F,a+c
time = 25
buffer.time=5

[Command]
name =  "MHG"
command = ~$B,$U,$F,$D, b+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$U,$F,$D,$B, b+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$B,$D,$F,$U,b+c
time = 25
buffer.time=5

[Command]
name =  "MHG"
command = ~$D,$F,$U,$B,b+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$F,$U,$B,$D,b+c
time = 25
buffer.time=5

[Command]
name =  "MHG"
command = ~$U,$B,$D,$F,b+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$F,$D,$B,$U,b+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$D,$B,$U,$F,b+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$B,$U,$F,$D,b+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$U,$F,$D,$B,b+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$B,$D,$F,$U,b+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$D,$F,$U,$B,b+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$F,$U,$B,$D,b+c
time = 25
buffer.time=5

[Command]
name = "MHG"
command = ~$U,$B,$D,$F,b+c
time = 15
buffer.time=5
;------------------------------------------------------------------

[Command]
name = "MZ"   ;Same name as above
command = ~B, D, DB, a
time = 10
;------------------------------------------------------------------

[Command]
name = "MGS"   ;Same name as above
command = ~D, DB, B, b+c
time = 10

[Command]
name = "MGS"   ;Same name as above
command = ~D, DB, B, a+b
time = 10

[Command]
name = "MGS"   ;Same name as above
command = ~D, DB, B, a+c
time = 10

[Command]
name = "TGS"   ;Same name as above
command = ~D, DF, F, x+y
time = 20

[Command]
name = "TGS"   ;Same name as above
command = ~D, DF, F, y+z
time = 20

[Command]
name = "TGS"   ;Same name as above
command = ~D, DF, F, x+z
time = 20

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

[Command]
name = "ss1"
command = ~B,$D,F, a
time = 15
buffer.time=5
[Command]
name = "ss2"
command =~B,$D,F, b
time = 15
buffer.time=5
[Command]
name = "ss3"
command =~B,$D,F, c
time = 15
buffer.time=5
[Command]
name = "ss1"
command = ~B,$D,F, ~a
time = 15
buffer.time=5

[Command]
name = "ss2"
command =~B,$D,F, ~b
time = 15
buffer.time=5
[Command]
name = "ss3"
command =~B,$D,F, ~c
time = 15
buffer.time=5
[Command]
name = "Gous1"
command = ~F,D,DF, a
time = 15
buffer.time=5
[Command]
name = "Gous2"
command =~F,D,DF, b
time = 15
buffer.time=5
[Command]
name = "Gous3"
command =~F,D,DF, c
time = 15
buffer.time=5
[Command]
name = "Gous1"
command = ~F,D,DF, ~a
time = 15
buffer.time=5
[Command]
name = "Gous2"
command =~F,D,DF, ~b
time = 15
buffer.time=5
[Command]
name = "Gous3"
command =~F,D,DF, ~c
time = 15
buffer.time=5

[Command]
name = "SHx"
command = ~F,D,DF, x
time = 15
buffer.time=5
[Command]
name = "SHy"
command = ~F,D,DF, y
time = 15
buffer.time=5
[Command]
name = "SHz"
command = ~F,D,DF, z
time = 15
buffer.time=5
[Command]
name = "SHx"
command = ~F,D,DF, ~x
time = 15
buffer.time=5

[Command]
name = "SHy"
command = ~F,D,DF, ~y
time = 15
buffer.time=5
[Command]
name = "SHz"
command = ~F,D,DF, ~z
time = 15
buffer.time=5
[Command]
name = "SBx"
command = ~D,DF,F, x
time = 15
buffer.time=5
[Command]
name = "SBy"
command = ~D,DF,F, y
time = 15
buffer.time=5
[Command]
name = "SBz"
command = ~D,DF,F, z
time = 15
buffer.time=5
[Command]
name = "SBx"
command = ~D,DF,F, ~x
time = 15
buffer.time=5
[Command]
name = "SBy"
command = ~D,DF,F, ~y
time = 15
buffer.time=5

[Command]
name = "SBz"
command = ~D,DF,F, ~z
time = 15
buffer.time=5
[Command]
name = "Agou1"
command = ~D, DB, B, x
time = 15
buffer.time=5
[Command]
name = "Agou1"
command = ~D, DB, B, ~x
time = 15
buffer.time=6
[Command]
name = "gou1"
command = /B, x
time = 15
buffer.time=5
[Command]
name = "gou2"
command = /D, x
time = 15
buffer.time=5
[Command]
name = "sk1"
command = ~F,$D,$B,$U, x
time =25
buffer.time=5
[Command]
name = "sk1"
command = ~D,$B,$U,$F, x
time = 25
buffer.time=5
[Command]
name = "sk1"
command = ~B,$U,$F,$D, x
time = 25
buffer.time=5
[Command]
name = "sk1"
command = ~U,$F,$D,$B, x
time = 25
buffer.time=5
[Command]
name = "sk1"
command = ~B,$D,$F,$U, x
time = 25
buffer.time=5
[Command]
name = "sk1"
command = ~D,$F,$U,$B, x
time = 25
buffer.time=5
[Command]
name = "sk1"
command = ~F,$U,$B,$D, x
time = 25
buffer.time=5
[Command]
name = "sk1"
command = ~U,$B,$D,$F, x
time = 25
buffer.time=5
;------------------------
[Command]
name = "sk1"
command = ~F,$D,$B,$U, ~x
time =25
buffer.time=5

[Command]
name = "sk1"
command = ~D,$B,$U,$F, ~x
time = 25
buffer.time=5
[Command]
name = "sk1"
command = ~B,$U,$F,$D, ~x
time = 25
buffer.time=5
[Command]
name = "sk1"
command = ~U,$F,$D,$B, ~x
time = 25
buffer.time=5
[Command]
name = "sk1"
command = ~B,$D,$F,$U, ~x
time = 25
buffer.time=5
[Command]
name = "sk1"
command = ~D,$F,$U,$B, ~x
time = 25
buffer.time=5
[Command]
name = "sk1"
command = ~F,$U,$B,$D, ~x
time = 25
buffer.time=5
[Command]
name = "sk1"
command = ~U,$B,$D,$F, ~x
time = 25
buffer.time=5
;-------------------------
[Command]
name = "sk2"
command = ~F,$D,$B,$U, y
time = 25
buffer.time=5
[Command]
name = "sk2"
command = ~D,$B,$U,$F, y
time =25
buffer.time=5
[Command]
name = "sk2"
command = ~B,$U,$F,$D, y
time = 25
buffer.time=5
[Command]
name = "sk2"
command = ~U,$F,$D,$B, y
time = 25
buffer.time=5
[Command]
name = "sk2"
command = ~B,$D,$F,$U, y
time = 25
buffer.time=5
[Command]
name = "sk2"
command = ~D,$F,$U,$B, y
time = 25
buffer.time=5
[Command]
name = "sk2"
command = ~F,$U,$B,$D, y
time = 25
buffer.time=5
[Command]
name = "sk2"
command = ~U,$B,$D,$F, y
time = 25
buffer.time=5
;------------------------
[Command]
name = "sk2"
command = ~F,$D,$B,$U, ~y
time =25
buffer.time=5

[Command]
name = "sk2"
command = ~D,$B,$U,$F, ~y
time = 25
buffer.time=5
[Command]
name = "sk2"
command = ~B,$U,$F,$D, ~y
time = 25
buffer.time=5
[Command]
name = "sk2"
command = ~U,$F,$D,$B, ~y
time = 25
buffer.time=5
[Command]
name = "sk2"
command = ~B,$D,$F,$U, ~y
time = 25
buffer.time=5
[Command]
name = "sk2"
command = ~D,$F,$U,$B, ~y
time = 25
buffer.time=5
[Command]
name = "sk2"
command = ~F,$U,$B,$D, ~y
time = 25
buffer.time=5
[Command]
name = "sk2"
command = ~U,$B,$D,$F, ~y
time = 25
buffer.time=5
;-------------------------
[Command]
name = "sk3"
command = ~F,$D,$B,$U, z
time = 25
buffer.time=5
[Command]
name = "sk3"
command = ~D,$B,$U,$F, z
time =25
buffer.time=5
[Command]
name = "sk3"
command = ~B,$U,$F,$D, z
time = 25
buffer.time=5
[Command]
name = "sk3"
command = ~U,$F,$D,$B, z
time = 25
buffer.time=5
[Command]
name = "sk3"
command = ~B,$D,$F,$U, z
time = 25
buffer.time=5
[Command]
name = "sk3"
command = ~D,$F,$U,$B, z
time = 25
buffer.time=5
[Command]
name = "sk3"
command = ~F,$U,$B,$D, z
time = 25
buffer.time=5
[Command]
name = "sk3"
command = ~U,$B,$D,$F, z
time = 25
buffer.time=5
;------------------------
[Command]
name = "sk3"
command = ~F,$D,$B,$U, ~z
time =25
buffer.time=5

[Command]
name = "sk3"
command = ~D,$B,$U,$F, ~z
time = 25
buffer.time=5
[Command]
name = "sk3"
command = ~B,$U,$F,$D, ~z
time = 25
buffer.time=5
[Command]
name = "sk3"
command = ~U,$F,$D,$B, ~z
time = 25
buffer.time=5
[Command]
name = "sk3"
command = ~B,$D,$F,$U, ~z
time = 25
buffer.time=5
[Command]
name = "sk3"
command = ~D,$F,$U,$B, ~z
time = 25
buffer.time=3
[Command]
name = "sk3"
command = ~F,$U,$B,$D, ~z
time = 25
buffer.time=5
[Command]
name = "sk3"
command = ~U,$B,$D,$F, ~z
time = 25
buffer.time=5

;-| 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
;-| 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 = "holdstart";Required (do not remove)
command = /s
time = 1

[Command]
name = "up" ;Required (do not remove)
command = U
time = 1
[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="3p"
command=x+y+z
time=5
[Command]
name="3k"
command=a+b+c
time=5
[Command]
name = "SJ"
command = $D,$U
time = 6

[Command]
name = "sk4"
command = ~$F,$D,$B,$U
time = 15
buffer.time=5

[Command]
name = "sk4"
command = ~$D,$B,$U,$F
time = 15
buffer.time=5

[Command]
name = "sk4"
command = ~$B,$U,$F,$D
time = 15
buffer.time=5

[Command]
name = "sk4"
command = ~$U,$F,$D,$B
time = 15
buffer.time=5

[Command]
name = "sk4"
command = ~$B,$D,$F,$U
time = 15
buffer.time=5

[Command]
name = "sk4"
command = ~$D,$F,$U,$B
time = 15
buffer.time=5

[Command]
name = "sk4"
command = ~$F,$U,$B,$D
time = 15
buffer.time=5

[Command]
name = "sk4"
command = ~$U,$B,$D,$F
time = 15
buffer.time=5



;==|A.I.|=================================================================
[statedef -1]
[State -1, AIUHAB]
type = ChangeState
value = 3050
triggerall = AILevel >0 && roundstate =2 && power >=3000
triggerall = stateno != 405
triggerall = random <= 399
triggerall = statetype != A
triggerall = p2statetype != A
triggerall=power>=1000
triggerall =(ctrl||stateno=40||stateno=52||(stateno=[200,640]))
triggerall = stateno != [200,9999]
triggerall = enemy,anim!=5120
Triggerall = (RoundState = 2)
triggerall = (p2MoveType != H)
trigger1 = p2bodydist X < 42 && p2dist y <= 0
trigger2 = (p2stateno =[120,150]) &&(p2bodydist X < 42 && p2dist y <= 0)
trigger3= (stateno = [200,440]) &&!movecontact
trigger4 = (stateno= [1004,1010])  && p2movetype!=H
trigger5= p2bodydist x <40&&!movecontact&&stateno=[1005,1006]
;------------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 3100
triggerall = AILevel >0 && StateType != A  && power >=1000
triggerall = roundstate = 2
triggerall = p2bodydist x<=65
triggerall = stateno !=[800,899]
triggerall = stateno !=[1011,3999]
triggerall = p2statetype != L
triggerall = !(EnemyNear,IsHelper)
triggerall = movetype != H
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = var(58) = 1
triggerall = random < 149
triggerall = p2stateno !=[120,150]
triggerall = stateno !=9000
trigger1= ctrl
trigger2 = (stateno=[200,435])&&movehit
trigger3 = (stateno= [1004,1010]) && movehit
trigger4= (p2bodydist y < -1) && ctrl
;---------------------------------------------------------------------
[State -1, AIHAB]
type = ChangeState
value = 3000
triggerall = AILevel >0 && roundstate =2 && power >1000
triggerall = random <= 225
triggerall = statetype != A
triggerall = stateno != 405
triggerall = p2statetype != A
triggerall=power>=1000
triggerall =(ctrl||stateno=40||stateno=52||(stateno=[200,640]))
triggerall = stateno != [200,9999]
triggerall = enemy,anim!=5120
Triggerall = (RoundState = 2)
triggerall = (p2MoveType != H)
trigger1 = (p2bodydist X = [0,110]) && p2bodydist y >= -40  && enemy,vel y>=0
trigger2 = (p2stateno =[120,150]) &&(p2bodydist X = [0,110]) && p2bodydist y >= -40  && enemy,vel y>=0
trigger3 = ((stateno = [200,435]) && movecontact)
trigger4 = (stateno= [1004,1010]) && movehit
trigger5 = ((stateno = [200,435]) &&!movecontact)
trigger6 = (stateno= [1004,1010])  && p2movetype!=H
trigger7= p2bodydist x <50&&!movecontact&&stateno=[1005,1006]
;--------------------------------------------------------------------------
[State -1, Guard]
type = ChangeState
value = 120
triggerall = movetype !=H
triggerall = roundstate = 2
triggerall = stateno!=[120,155]
triggerall=AILevel>0
triggerall=  var(58)=0
triggerall = (statetype!=A)||(statetype=A && p2bodydist x >5)
triggerall =(StateNo !=[200,3999])&&(StateNo != 105)
Triggerall =  Random < (113*AILevel)
triggerall =InGuardDist || enemynear,hitdefattr=SCA,NP,SP,HP || enemynear,hitdefattr = SCA,AA
triggerall =((EnemyNear, movetype=A&& enemynear,hitdefattr!=SCA,AA)||( enemynear,hitdefattr=SCA,NP,SP,HP || enemynear,hitdefattr = SCA,AA))|| enemy,numproj >0
trigger1 = ctrl ||stateno=20
;------------------------------------------------------
[State -1, AI5]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = roundstate = 2
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,65])&&(P2BodyDist Y = 0 )
Triggerall = Random <= 400
triggerall = p2statetype != L && p2statetype !=A
triggerall = p2stateno !=[120,150]
Triggerall = stateno !=410
Triggerall = stateno !=200
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = p2statetype !=C
triggerall = stateno !=9000
trigger1 = ctrl
value = 200
;------------------------------------------------------
[State -1, AI2]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,75])&&(P2BodyDist Y = 0 )
Triggerall = Random < 600
triggerall = roundstate = 2
triggerall = p2statetype != L && p2statetype !=A
triggerall = p2stateno !=[120,150]
Triggerall = stateno !=410
Triggerall = stateno !=205
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = p2statetype !=C
triggerall = stateno !=9000
trigger1 = (ctrl && var(57)=0) || ((stateno = 200 || stateno=230 || stateno = 400 || stateno=430) && movecontact&& var(57)=1)
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger4= (stateno=400|| stateno=430) && movehit
value = 205
;------------------------------------------------------
[State -1, AI2]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,95]) && (P2BodyDist Y = 0 )
Triggerall = Random < 600
triggerall = p2statetype != L && p2statetype !=A
triggerall = p2stateno !=[120,150]
Triggerall = stateno !=410
Triggerall = stateno !=210
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = p2statetype !=C
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger4= (stateno=400|| stateno=430) && movehit

value = 210
;------------------------------------------------------
[State -1, AI9]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
trigger1 = ctrl
triggerall = stateno != [800,3999]
Triggerall = P2BodyDist X = [0,55]
Triggerall = Random < 600
triggerall = p2statetype != L || p2bodydist x < 40 && p2statetype=L
triggerall = p2stateno !=[120,150]
Triggerall = stateno !=405
Triggerall = stateno !=245
Triggerall = stateno !=215
Triggerall = stateno !=230
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = p2statetype=L && ctrl&& p2bodydist x < 40
value = 230
;------------------------------------------------------
[State -1, AI 9]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
triggerall = p2stateno !=[120,150]
triggerall = p2statetype !=C
Trigger1 = ctrl
triggerall = p2statetype != L&& p2statetype !=A
Triggerall = (P2BodyDist X = [0,70]) && (P2BodyDist Y = 0 )
Triggerall = Random < 600
Triggerall = stateno !=405
Triggerall = stateno !=235
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = stateno !=9000
trigger1 = (ctrl && var(57)=0) || ((stateno = 200 || stateno=230 || stateno = 400 || stateno=430) && movecontact&& var(57)=1)
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger4= (stateno=400|| stateno=430) && movehit
value = 235
;------------------------------------------------------
[State -1, AI8]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
trigger1 = ctrl
Triggerall = P2BodyDist X = [0,60]
Triggerall = Random < 600
triggerall = p2statetype != L && p2statetype !=A
triggerall = p2statetype !=C
triggerall = p2stateno !=[120,150]
Triggerall = stateno !=410
Triggerall = stateno !=240
Triggerall = stateno !=215
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger4= (stateno=400|| stateno=430) && movehit

value = 240
;------------------------------------------------------
[State -1, AI5]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,60])&& (P2BodyDist Y = [-60,0] )
Triggerall = Random < 600
triggerall = p2statetype != L && p2statetype !=A
Triggerall = stateno !=245
Triggerall = stateno !=215
trigger1 = (ctrl && var(57)=0) || ((stateno = 200 || stateno=230 || stateno = 400 || stateno=430) && movecontact&& var(57)=1)
trigger2 = stateno = 400 && movecontact
trigger3 = stateno = 430 && movecontact
trigger4= (stateno=200|| stateno=230) && movehit
triggerall = p2stateno !=[120,150]
triggerall = stateno !=9000
value = 405
;------------------------------------------------------
[State -1, AI2]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,70]) &&(P2BodyDist Y = 0 )
Triggerall = Random <= 600
triggerall = stateno !=240 && stateno !=210 && stateno !=215
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = p2statetype != L  && p2statetype !=A
trigger1 = ctrl
triggerall = p2stateno !=[120,150]
triggerall = stateno !=9000
value = 400
;------------------------------------------------------
[State -1, AI9]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
trigger1 = ctrl
triggerall = stateno != [800,3999]
Triggerall = P2BodyDist X = [0,55]
triggerall = (p2statetype != L|| p2bodydist x < 40) && p2statetype !=A
Triggerall = Random < 600
trigger1 = ctrl
trigger2 = p2statetype =C && (p2stateno = [120,155]) && ctrl
trigger3 = p2statetype =L &&p2bodydist x < 40 && ctrl
triggerall = p2stateno !=[120,150]
triggerall = stateno !=9000
value = 430
;------------------------------------------------------
[State -1, AI 9]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
triggerall = p2bodydist x > 30
triggerall = p2statetype != L && p2statetype !=A
Triggerall = (P2BodyDist X = [0,65]) && (P2BodyDist Y = 0 )
Triggerall = Random < 600
trigger1 = (ctrl && var(57)=0) || ((stateno = 200 || stateno=230 || stateno = 400 || stateno=430) && movecontact&& var(57)=1)
trigger2 = stateno = 400 && movecontact
trigger3 = stateno = 430 && movecontact
trigger4= (stateno=200|| stateno=230) && movehit
trigger5 = p2statetype =C  && ctrl
Triggerall = stateno !=440
triggerall = p2stateno !=[120,150]
triggerall = stateno !=9000
value = 435
;------------------------------------------------------
[State -1, AI8]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
triggerall = p2statetype != L&& p2statetype !=A
trigger1 = ctrl
Triggerall = P2BodyDist X = [0,60]
Triggerall = Random < 600
triggerall = stateno !=240 && stateno !=210
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger4= (stateno=400|| stateno=430) && movehit
trigger5 = p2statetype =S  && ctrl
triggerall = p2stateno !=[120,150]
Triggerall = stateno !=410
triggerall = stateno !=9000
value = 440
;------------------------------------------------------
[State -1, AI2]
Type = ChangeState
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = StateType !=A
triggerall = stateno != [800,3999]
Triggerall = (P2BodyDist X = [0,90])&&(P2BodyDist Y = 0 )
Triggerall = Random < 200
triggerall = p2statetype != L && p2statetype !=A
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger4= (stateno=400|| stateno=430) && movehit
Triggerall = stateno !=245
Triggerall = stateno !=215
Triggerall = stateno !=405
triggerall = p2stateno !=[120,150]
triggerall = stateno !=9000
value = 410

;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, AI9]
type = ChangeState
value = 600
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(50) =1
triggerall = vel y<0 || p2statetype=A
Triggerall = (P2BodyDist X = [0,40])
Triggerall = (P2BodyDist y = [-35,25])
Triggerall = Random <= 500
triggerall = roundstate = 2
triggerall = stateno !=9000
trigger1 = ctrl



;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, AI9]
type = ChangeState
value = 605
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,85])
Triggerall = Random <= 500
triggerall = roundstate = 2
triggerall = stateno !=9000
trigger1 = (ctrl && var(57)=0) || ((stateno = 600 || stateno=630) && movecontact&& var(57)=1)
trigger2 = stateno = 600 && movecontact
trigger3= stateno = 630 && movecontact


;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, AI9]
type = ChangeState
value = 610
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(50) =1
triggerall = vel y<0 || p2statetype=A
Triggerall = (P2BodyDist X = [0,55])
Triggerall = (P2BodyDist y = [-35,35])
Triggerall = Random <= 500
triggerall = roundstate = 2
triggerall = movecontact|| p2bodydist x>40
triggerall = stateno !=631
triggerall = roundstate = 2
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 605 && movecontact
trigger4 = stateno = 630 && movecontact
trigger5 = stateno = 635 && movecontact
;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, AI]
type = ChangeState
value = 612
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(50) =1
triggerall = vel y>0 || p2statetype=A
Triggerall = (P2BodyDist X = [-30,65])
Triggerall = (P2BodyDist y = [-35,55])
Triggerall = Random <= 500
triggerall = roundstate = 2
triggerall = movecontact|| p2bodydist x>40 ||  p2statetype!=A
triggerall = stateno !=631
triggerall = p2statetype!=A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 605 && movecontact
trigger3 = stateno = 635 && movecontact
trigger4 = stateno = 600 && movecontact
trigger5 = stateno = 630 && movecontact
;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, AI9]
type = ChangeState
value = 630
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(50) =1
triggerall = vel y<0 || p2statetype=A
Triggerall = (P2BodyDist X = [0,70])
Triggerall = (P2BodyDist y = [-35,25])
Triggerall = Random <= 500
triggerall = roundstate = 2
triggerall = stateno !=9000
trigger1 = ctrl
;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, AI]
type = ChangeState
value = 631
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(50) =1
triggerall = vel y>0
Triggerall = (P2BodyDist X = [-20,40])
Triggerall = (P2BodyDist y = [-35,25])
Triggerall = Random <= 500
triggerall = roundstate = 2
triggerall = p2statetype!=A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
;---------------------------------------------------------------------------

[State -1, AI9]
type = ChangeState
value = 635
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = var(50) =1
Triggerall = (P2BodyDist X = [0,85])
Triggerall = Random <= 500
triggerall = roundstate = 2
triggerall = stateno !=9000
trigger1 = (ctrl && var(57)=0) || ((stateno = 600 || stateno=630) && movecontact&& var(57)=1)
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 631 && movecontact
trigger4 = stateno = 630 && movecontact
;---------------------------------------------------------------------------
[State -1, AI9]
type = ChangeState
value = 640
triggerall = AILevel >0
triggerall = statetype = A
triggerall = stateno !=640
triggerall = stateno !=610
triggerall = var(50) =1
triggerall = vel y<0 || p2statetype=A
Triggerall = (P2BodyDist X = [0,80])
Triggerall = (P2BodyDist y = [-35,45])
Triggerall = Random <= 500
triggerall = roundstate = 2
triggerall = movecontact|| p2statetype!=A
triggerall = stateno !=631
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = (stateno = [600,635]) && movecontact
;------------------------------------------------------------------------------
;[State -1, AISGS]
;type = ChangeState
;value = 4004
;triggerall = AILevel >0 && StateType != A
;triggerall = roundstate = 2
;Triggerall = Random <= 79
;trigger1 = ctrl
;triggerall = var(50)=1
;triggerall =statetype != A
;triggerall = var(20) = 0

;------------------------------------------------------------------------
[State -1, AI Throw]
type = ChangeState
value = 860
triggerall = AILevel >0
triggerall = random <= 30*AILevel
triggerall = statetype != A
triggerall = p2statetype != A
triggerall = ctrl || stateno=20
triggerall = stateno != [200,9999]
Triggerall = (RoundState = 2)
triggerall = (p2MoveType != H)
trigger1 = p2bodydist X < 22 && p2dist y <= 0
trigger2 = (p2stateno =[120,150]) &&(p2bodydist X < 22 && p2dist y <= 0)
;------------------------------------------------------------------------
[State -1, AI Throw]
type = ChangeState
value = 870
triggerall = AILevel >0
triggerall = random <= 30*AILevel
triggerall = statetype != A
triggerall = p2statetype != A
triggerall = ctrl || stateno=20
triggerall = stateno != [200,9999]
Triggerall = (RoundState = 2)
triggerall = (p2MoveType != H)
trigger1 = p2bodydist X < 22 && p2dist y <= 0
trigger2 = (p2stateno =[120,150]) &&(p2bodydist X < 22 && p2dist y <= 0)
;------------------------------------------------------------------------
[State -1, AI Throw]
type = ChangeState
value = 871
triggerall = AILevel >0
triggerall = random <= 30*AILevel
triggerall = statetype = C
triggerall = p2statetype != A
triggerall = ctrl || stateno=20
triggerall = stateno != [200,9999]
Triggerall = (RoundState = 2)
triggerall = (p2MoveType != H)
trigger1 = p2bodydist X < 22 && p2dist y <= 0
trigger2 = (p2stateno =[120,150]) &&(p2bodydist X < 22 && p2dist y <= 0)
;----------------------------------------------------------------
[State -1, AI Throw]
type = ChangeState
value = ifelse(statetype=A,830,800)
triggerall = random <= 30*AILevel
triggerall = AILevel >0
triggerall = statetype != A||(p2statetype=A&&statetype=A)
triggerall= ((p2statetype != A)&&statetype!=A)||p2statetype=A
triggerall = ctrl || stateno=20
triggerall = stateno != [200,9999]
Triggerall = (RoundState = 2)
triggerall = (p2MoveType != H)
trigger1 = p2bodydist X < 23 && (p2bodydist y = [-20,20])
trigger2 = (p2stateno =[120,150]) &&(p2bodydist X < 23 && (p2bodydist y = [-20,20]))
trigger3= p2stateno=5903&& p2bodydist x <20
;---------------------------------------------------------------------
[State -1, AI5]
type = ChangeState
value =  ifelse(statetype =A,1012,1010)
triggerall = AILevel >0 && roundstate = 2
triggerall = (p2stateno !=[120,155])
triggerall = (p2bodydist x = [0,60]) ||((enemynear,hitdefattr = SCA,NP,SP,HP,NA) || (enemynear,numproj > 0))
triggerall = stateno !=[800,899]
triggerall = p2statetype !=L
Triggerall = Random <=129
triggerall = stateno !=405
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = (stateno=[200,435]) && movehit
trigger3 = (stateno=[600,435]) && movehit
;---------------------------------------------------------------------
[State -1, AI5]
type = ChangeState
value =  ifelse(statetype =A,1013,1011)
triggerall = AILevel >0 && roundstate = 2
triggerall = (p2stateno !=[120,155])
triggerall =(p2bodydist x = [0,60]) ||((enemynear,hitdefattr = SCA,NP,SP,HP,NA) || (enemynear,numproj > 0))
triggerall = stateno !=[800,899]
triggerall = p2statetype !=L
Triggerall = Random <=129
triggerall = stateno !=405
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = (stateno=[200,435]) && movehit
trigger3 = (stateno=[600,435]) && movehit
;---------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1000
triggerall = AILevel >0 && roundstate = 2 && statetype !=A
triggerall = (p2stateno!=[120,155]) && (p2statetype!=L)
triggerall = p2statetype !=L
Triggerall = Random <=79
triggerall = p2bodydist X =[0,60]
triggerall = stateno !=9000
trigger1 = ctrl

;---------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1002
triggerall = AILevel >0 && roundstate = 2 && statetype =A
triggerall = (p2stateno!=[120,155]) && (p2statetype!=L)
triggerall = p2statetype !=L
triggerall = pos y <-30
Triggerall = Random <=79
triggerall = p2bodydist X =[0,110]
triggerall = p2bodydist y  >-30
triggerall = stateno !=9000
trigger1 = ctrl
;---------------------------------------------------------------------
[State -1, AI5]
type = ChangeState
value = 1004
triggerall = AILevel >0 && roundstate = 2 && statetype!=A
triggerall = (p2stateno !=[120,155]) && (p2statetype!=L|| enemynear,stateno!=5120)
triggerall = (p2bodydist x = [0,50]) ||((enemynear,hitdefattr = SCA,NP,SP,HP,NA) || (enemynear,numproj > 0))
triggerall = stateno !=[800,899]
triggerall = p2statetype !=L
Triggerall = Random <=149
triggerall = stateno !=405
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = (stateno=[200,435]) && movehit

;---------------------------------------------------------------------
[State -1, AI5]
type = ChangeState
value = 1006
triggerall = AILevel >0 && roundstate = 2 && statetype!=A
triggerall = (p2stateno !=[120,155])
triggerall = (p2bodydist x = [0,70]) ||((enemynear,hitdefattr = SCA,NP,SP,HP,NA) || (enemynear,numproj > 0))
triggerall = stateno !=[800,899]
triggerall = p2statetype !=L
Triggerall = Random <=149
triggerall = stateno !=405
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = (stateno=[200,435]) && movehit

;------------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1062
triggerall = AILevel >0
triggerall = roundstate = 2
triggerall = (p2bodydist y = [-150,-1])
triggerall = p2bodydist x<=150
triggerall = stateno !=[800,4999]
triggerall = p2statetype != L
triggerall = statetype!=A
triggerall = !(EnemyNear,IsHelper)
triggerall = movetype != H
triggerall = stateno !=9000
trigger3 = p2statetype=A && ctrl
triggerall = random<199
trigger1= ctrl
trigger2 = stateno=240 &&movehit
triggerall = p2stateno !=[120,150]

;---------------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 1050
triggerall = AILevel >0
triggerall = roundstate = 2
triggerall = (p2bodydist y = [-150,-1])
triggerall = p2bodydist x<=70
triggerall = stateno !=[800,4999]
triggerall = p2statetype != L
triggerall = statetype!=A
triggerall = !(EnemyNear,IsHelper)
triggerall = movetype != H
triggerall = stateno !=9000
trigger3 = p2statetype=A && ctrl
triggerall = random<199
trigger1= ctrl
trigger2 = stateno=240 &&movehit
triggerall = p2stateno !=[120,150]

;---------------------------------------------------------------------
[State -1, AI96]
type = ChangeState
value = ifelse((statetype = A),1111,1107)
triggerall = random <= 129
triggerall = AILevel >0
triggerall = statetype != A||(p2statetype=A&&statetype=A)
triggerall= ((p2statetype != A)&&statetype!=A)||p2statetype=A
triggerall = ctrl || stateno=20 || (stateno=[200,440]) || (stateno=[600,640])
triggerall = stateno !=[800,899]
triggerall = stateno !=405
Triggerall = stateno !=240
triggerall = stateno !=9000
Triggerall = (RoundState = 2)
triggerall = (p2MoveType != H)
triggerall = p2bodydist X < 50 && (p2bodydist y = [-20,20])
trigger1 = (p2stateno =[120,150]) &&(p2bodydist X < 50 && (p2bodydist y = [-20,20]))
trigger2 = stateno=210 && !movecontact
trigger3 = stateno=410 && !movecontact
trigger4 = stateno=205 && !movecontact
trigger5 = stateno=235&& !movecontact
trigger6 = stateno=435 && !movecontact

;---------------------------------------------------------------------
[State -1, AI94]
type = ChangeState
value = ifelse((statetype = A),1109,1100)
triggerall = random <= 129
triggerall = AILevel >0
triggerall = statetype != A||(p2statetype=A&&statetype=A)
triggerall= ((p2statetype != A)&&statetype!=A)||p2statetype=A
triggerall = ctrl || stateno=20 || (stateno=[200,440]) || (stateno=[600,640])
triggerall = stateno !=[800,899]
triggerall = stateno !=405
Triggerall = stateno !=240
triggerall = stateno !=9000
Triggerall = (RoundState = 2)
triggerall = (p2MoveType != H)
triggerall = p2bodydist X < 50 && (p2bodydist y = [-20,20])
trigger1 = (p2stateno =[120,150]) &&(p2bodydist X < 50 && (p2bodydist y = [-20,20]))
trigger2 = stateno=210 && !movecontact
trigger3 = stateno=410 && !movecontact
trigger4 = stateno=205 && !movecontact
trigger5 = stateno=235&& !movecontact
trigger6 = stateno=435 && !movecontact

;---------------------------------------------------------------------
[State -1, AI99]
type = ChangeState
value = 1162
triggerall = AILevel >0 && roundstate =2 &&movetype!=H&& statetype !=A
triggerall = (p2stateno!=[120,155])
triggerall = p2bodydist x = [0,110]
triggerall = movetype != H
triggerall = stateno !=[800,899]
triggerall = stateno !=405
Triggerall = stateno !=240
Triggerall = stateno !=215
triggerall = stateno !=9000
triggerall = random<99
triggerall = p2statetype !=L
trigger1 = ctrl || (random <129 && var(58) = 1 && ctrl)
trigger2 = (stateno = [200,435]) && movecontact

;---------------------------------------------------------------------
[State -1, AI98]
type = ChangeState
value = 1150
triggerall = AILevel >0 && roundstate = 2 && movetype !=H&& statetype !=A
triggerall =(p2statetype!=L)
triggerall = p2bodydist x = [0,90]
triggerall = movetype != H
triggerall = stateno !=[800,899]
triggerall = stateno !=405
Triggerall = stateno !=240
Triggerall = stateno !=215
triggerall = stateno !=9000
triggerall = random<99
trigger1 =ctrl || (random <49 && var(58) = 1 && ctrl)
trigger2 = (stateno = [200,435]) && movecontact


;---------------------------------------------------------------------
[State -1, AIgh]
type = ChangeState
value = 1020
triggerall = AILevel >0 && roundstate = 2
triggerall = (p2stateno!=[120,155])
trigger1 =  ctrl
triggerall = stateno !=405
triggerall = numhelper(1021) <= 0
triggerall = (p2bodydist x>100)
triggerall = time%25 = 0
Triggerall = Random <=21
triggerall = stateno !=9000
triggerall = var(58) =1
triggerall = stateno != [800,3999]
trigger2 = ((stateno = [200,435]) && movecontact)



;---------------------------------------------------------------------
[State -1, AIgh]
type = ChangeState
value = 1024
triggerall = AILevel >0 && roundstate =2
triggerall = (p2stateno!=[120,155])
triggerall = movetype != H
trigger1 =  ctrl
triggerall = numhelper(1021) <= 0
triggerall = stateno !=405
triggerall = time%25 = 0
Triggerall = Random <=61
triggerall = stateno !=9000
triggerall = var(58) =1
triggerall = (p2bodydist x > 100)
triggerall = stateno != [800,3999]
triggerall = stateno !=9000
trigger2 = ((stateno = [200,435]) && movecontact)
;---------------------------------------------------------------------
[State -1, AI]
type = ChangeState
value = 4001
triggerall = AILevel >0 && StateType != A
triggerall = roundstate = 2
triggerall = fvar(3) = 0
triggerall = var(3) = 0
triggerall = stateno !=9000
triggerall = p2bodydist x >150
trigger1 = ctrl
triggerall = (life < 400 && var(58)=0)  || (life >=400 && var(58) = 1)
triggerall = random < 125
triggerall = power >=1000
;------------------------------------------------------------------------
[State -1, AIgp]
type = ChangeState
value = 1600
triggerall = AILevel >0
triggerall= statetype = S
triggerall = roundstate = 2
triggerall = stateno !=9000
trigger1 = stateno = 150 || stateno = 151
triggerall = p2bodydist x < 25
trigger1 = random < 499
;------------------------------------------------------------------------
[State -1, AIgp]
type = ChangeState
value = 1601
triggerall = AILevel >0
triggerall= statetype = C
triggerall = roundstate = 2
triggerall = stateno !=9000
trigger1 = stateno = 152 || stateno = 153
triggerall = p2bodydist x < 25
triggerall = random < 499
;------------------------------------------------------------------------
[State -1, AIgp]
type = ChangeState
value = 1602
triggerall = AILevel >0
triggerall= statetype = A
triggerall = roundstate = 2
triggerall = stateno !=9000
trigger1 = stateno = 153 || stateno = 154
triggerall = p2bodydist x < 25
triggerall = random < 499

;-------------------------------------------------------------------
[State -1, AISuper Jump]
type = ChangeState
value = 55
triggerall = AILevel >0
triggerall = statetype != A
triggerall = roundstate = 2
triggerall = random < 250
trigger1 = stateno = 405 && movehit && !moveguarded   && p2stateno=411
;-------------------------------------------------    && p2stateno=411
[state -1, AI jump]
type = changestate
triggerall=AILevel>0
triggerall = p2statetype !=L|| p2stateno=5120
triggerall = (p2stateno!=[5090,5119]) &&(p2stateno!=[5121,5899])
triggerall = statetype != A
triggerall = p2bodydist x >70 || p2movetype=H
triggerall = var(30)=1
trigger1 = ctrl && p2movetype=A && p2statetype=C  && random<119
trigger2 =p2statetype = C && (p2bodydist x = [50,90]) && ctrl && random<119
trigger3= enemy,hitdefattr=SC,AT  && ctrl
trigger4= p2bodydist x >60 && ctrl&& random<249 && p2movetype=A
trigger5= p2stateno =5120 && p2bodydist x <50 && ctrl && random<69
value = 40



[State -1, AI run]
type=changestate
value=100
triggerall = roundstate = 2
triggerall = AILevel >0&& statetype=S && ctrl
triggerall = p2bodydist y =[-150,0]
triggerall = stateno!=100
trigger1= (stateno!=[100,105]) && p2movetype!=A && (p2bodydist x=[150,788])&& random < 199
trigger2= var(15) && ctrl
trigger3= p2movetype=H && p2statetype=A && p2bodydist x>40&& random < 399

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


;--------------------------------------------------------------------------
[State -1, roll]
type=changestate
value=702
triggerall = backedgedist <= 100  && p2movetype!=A
triggerall = alive
triggerall = random <55
triggerall = roundstate = 2
triggerall = AILevel >0
trigger1 = stateno = 5120
;--------------------------------------------------------------------------
[State -1, roll]
type=changestate
value=703
triggerall = backedgedist >= 100 && p2movetype=A
triggerall = alive
triggerall = random < 55
triggerall = roundstate = 2
triggerall = AILevel >0
trigger1 = stateno = 5120


;===========================================================================
[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,435])
triggerall =stateno !=440 ;Except for sweep kick
triggerall = movehit
var(1) = 1
;===========================================================================

;---------------------------------------------------------------------------
[State -1,Final Atomic Buster]
type = ChangeState
value = 3000
triggerall = command = "MGH"
triggerall = AILevel =0
Triggerall = stateno !=1002
triggerall = statetype != A
triggerall = power >=1000
triggerall = stateno !=9000
trigger1 = ctrl || stateno = 40 || stateno = 52 || stateno=56
trigger2 =(stateno = [200,440])
trigger3= (stateno = [1004,1006])
trigger4= (stateno = [1010,1011])
trigger5=var(25)=1&&stateno=[1020,1024]
;---------------------------------------------------------------------------
[State -1,Ultra Final Atomic Buster\SIBERIAN BLIZZARD]
type = ChangeState
value = ifelse(var(58) =1,3100,3050)
triggerall = command = "MHG"
triggerall = AILevel =0
Triggerall = stateno !=1002
triggerall = stateno !=9000
triggerall = statetype != A
triggerall = power >=ifelse(var(58)=1,1000,3000)
trigger1 = ctrl || stateno = 40 || stateno = 52  || stateno=56
trigger2 =(stateno = [200,440])
trigger3= (stateno = [1004,1006])
trigger4= (stateno = [1010,1011])
trigger5=var(25)=1&&stateno=[1020,1024]
;---------------------------------------------------------------------------
[State -1,Atomic Bustery]
type = ChangeState
value = ifelse((statetype = A),1111,1107)
triggerall = command = "sk3"
triggerall = AILevel =0
triggerall = stateno !=9000
triggerall = var(57)=0
triggerall = pos y = 0 || pos y<-50
trigger1 = ctrl || stateno = 40 || stateno = 52 ||( stateno=55 && time<2)
trigger2 =(stateno = [200,440])
trigger3= (stateno = [600,640])
;---------------------------------------------------------------------------
[State -1,Atomic Bustery]
type = ChangeState
value = ifelse((statetype = A),1111,1107)
triggerall = command = "sk2"
triggerall = AILevel =0
triggerall = stateno !=9000
triggerall = pos y = 0 || pos y<-50
trigger1 = ctrl || stateno = 40 || stateno = 52 ||( stateno=55)
trigger2 =(stateno = [200,440])
trigger3= (stateno = [600,640])
;---------------------------------------------------------------------------
[State -1,Atomic Buster]
type = ChangeState
value = ifelse((statetype = A),1109,1100)
triggerall = command = "sk1"
triggerall = AILevel =0
triggerall = stateno !=9000
triggerall = pos y = 0 || pos y<-50
trigger1 = ctrl || stateno = 40 || stateno = 52 ||( stateno=55)
trigger2 =(stateno = [200,440])
trigger3= (stateno = [600,640])
;---------------------------------------------------------------------------
[State -1,Mechtimemofos]
type = ChangeState
value = 4001
triggerall = command = "MZ"
triggerall = AILevel =0
triggerall = var(50)=1
Triggerall = stateno !=1002
triggerall = statetype != A
triggerall = power >=1000
triggerall = stateno !=9000
trigger1 = ctrl

;-------------------------------------------------------------------------
[State -1,SpinningClothesline]
type = ChangeState
value = ifelse(statetype =A,1012,1010)
triggerall = ifelse(var(57)=0,command = "3p",command="2p")
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 =(stateno = [200,440])
trigger3= (stateno = [600,640])
;----------------------------------------------------------------------------
[State -1,SpinningLariat]
type = ChangeState
value = ifelse(statetype =A,1013,1011)
triggerall = ifelse(var(57)=0,command = "3k",command="2k")
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 =(stateno = [200,440])
trigger3= (stateno = [600,640])


;---------------------------------------------------------------------------
[State -1,Atomic Suplexb]
type = ChangeState
value = 1162
triggerall = command = "ss2" || command="ss3" &&var(57)=0
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype !=A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 =(stateno = [200,440])
;---------------------------------------------------------------------------
[State -1,Atomic Suplexa]
type = ChangeState
value = 1150
triggerall = command = "ss1"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype !=A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 =(stateno = [200,440])
;---------------------------------------------------------------------------
[State -1, Flamepunch]
type = ChangeState
value = 1006
triggerall = command = "SHz"&& var(57)=0|| command = "SHy"
triggerall = AILevel =0
triggerall = var(50)=1
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = statetype !=A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 =(stateno = [200,440])

;---------------------------------------------------------------------------
[State -1, Flamepunch]
type = ChangeState
value = 1004
triggerall = command = "SHx"
triggerall = AILevel =0
triggerall = var(50)=1
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = statetype !=A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 =(stateno = [200,440])
;---------------------------------------------------------------------------
[State -1,Shoryuukenz]
type = ChangeState
value = 1062
triggerall = command = "Gous3"&& var(57)=0 || command = "Gous2"
triggerall = AILevel =0
triggerall = var(50)=1
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = stateno !=9000
triggerall = statetype !=A
trigger1 = ctrl
trigger2 =(stateno = [200,440])
trigger3 = (stateno = [600,635]) && movecontact

;---------------------------------------------------------------------------
[State -1, Shoryuukenx]
type = ChangeState
value = 1050
triggerall = command = "Gous1"
triggerall = AILevel =0
triggerall = var(50)=1
Triggerall = stateno !=245
Triggerall = stateno !=215
triggerall = statetype !=A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 =(stateno = [200,440])
trigger3 = (stateno = [600,635]) && movecontact






;;---------------------------------------------------------------------------
[State -1, Throw up]
type = ChangeState
value = 870
triggerall = command = "Agou1"
triggerall = statetype = S
trigger1 = ctrl
triggerall = stateno != 100
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = p2bodydist X <25
triggerall = stateno !=9000
triggerall = (p2statetype = S) || (p2statetype = C)
triggerall = p2movetype != H
;---------------------------------------------------------------------------
[State -1,S.blast]
type = ChangeState
value = 1024
triggerall = command = "SBz"&&var(57)=0 ||command = "SBy"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = var(58) =1
Triggerall = stateno !=405
triggerall = statetype != A
triggerall = stateno !=9000
triggerall = numhelper(1021)<1
trigger1 = ctrl
trigger2 =(stateno = [200,440])

;---------------------------------------------------------------------------
[State -1,S.blast]
type = ChangeState
value = 1020
triggerall = command = "SBx"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = var(58) =1
Triggerall = stateno !=405
triggerall = stateno !=9000
triggerall = statetype != A
triggerall = numhelper(1021)<1
trigger1 = ctrl
trigger2 =(stateno = [200,440])

;---------------------------------------------------------------------------
[State -1,sholderdrop]
type = ChangeState
value = 1000
triggerall = command = "gou1"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype !=A
triggerall = stateno !=9000
trigger1 = ctrl
;---------------------------------------------------------------------------
[State -1,sholderdropair]
type = ChangeState
value = 1002
triggerall = command = "gou2"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype =A
triggerall = stateno !=9000
trigger1 = ctrl
;-------------------------------------------------------------------------
[State -1, guard push]
type = ChangeState
value = 1600
triggerall = command = "x" && command = "a" || command = "y" && command = "b" ||   command = "z" && command = "c"
triggerall= statetype = S
triggerall = stateno !=9000
triggerall = AILevel =0
trigger1 = stateno = 150 || stateno = 151
;-------------------------------------------------------------------------
[State -1, guard push]
type = ChangeState
value = 1601
triggerall = command = "x" && command = "a" || command = "y" && command = "b" ||   command = "z" && command = "c"
triggerall= statetype = C
triggerall = AILevel =0
triggerall = stateno !=9000
trigger1 =  stateno =  152 || stateno = 153
;-------------------------------------------------------------------------
[State -1, guard push]
type = ChangeState
value = 1602
triggerall = command = "x" && command = "a" || command = "y" && command = "b" ||   command = "z" && command = "c"
triggerall= statetype = A
triggerall = AILevel =0
triggerall = stateno !=9000
trigger1 = stateno =  154 || stateno = 155

;--------------------------------------------------------------------------
[State -1, roll]
type=changestate
value=702
triggerall = command = "holdfwd" && command = "2p"
triggerall = alive
triggerall = AILevel =0
triggerall = stateno !=9000
trigger1 = stateno = 5120
;--------------------------------------------------------------------------
[State -1, roll]
type=changestate
value=703
triggerall = command = "holdback" && command = "2p"
triggerall = alive
triggerall = AILevel =0
triggerall = stateno !=9000
trigger1 = stateno = 5120

;===========================================================================
[State -1, Super Jump]
type = ChangeState
value = 55
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=[3000,4999]
triggerall = stateno !=9000
trigger1 = command = "SJ"
trigger1 = statetype != A
trigger1 = ctrl
trigger2= stateno = 405 && command = "holdup" && movecontact   && p2stateno=411
[State -1, Jump]
type = changestate
value = 40
triggerall = AILevel =0
triggerall = statetype != A
triggerall = command = "up"
triggerall = var(50)=1
triggerall = stateno !=9000
trigger1 = ctrl


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


;;---------------------------------------------------------------------------
[State -1, Throw]
type = ChangeState
value = 800
triggerall = (command = "z" && var(57)=0) || (command="y" && var(57)=1)
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=9000
trigger1 = command = "holdfwd"  ||command = "holdback"
triggerall = p2bodydist X <15
triggerall = (p2statetype = S) || (p2statetype = C)
triggerall = p2movetype != H



;---------------------------------------------------------------------------
[State -1, Throw]
type = ChangeState
value = 830
triggerall = (command = "z" && var(57)=0) || (command="y" && var(57)=1)
triggerall = AILevel =0
triggerall = statetype = A
triggerall = var(50) =1
triggerall = stateno !=9000
triggerall = ctrl
trigger1 = command = "holdfwd"  ||command = "holdback"
triggerall = p2bodydist X < 30
triggerall = (p2statetype = A)

;---------------------------------------------------------------------------
[State -1, Throw]
type = ChangeState
value = 860
triggerall = (command = "c" && var(57)=0) || (command="b" && var(57)=1)
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=9000
trigger1 = command = "holdfwd"  ||command = "holdback"
triggerall = p2bodydist X <15
triggerall = (p2statetype = S) || (p2statetype = C)
triggerall = p2movetype != H

;---------------------------------------------------------------------------
[State -1, Throw]
type = ChangeState
value = 871
triggerall = (command = "c" && var(57)=0) || (command="b" && var(57)=1)
triggerall = statetype = C
triggerall = ctrl
triggerall = stateno != 100
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=9000
trigger1 = command = "holdfwd"  
triggerall = p2bodydist X <15
triggerall = (p2statetype = S) || (p2statetype = C)
triggerall = p2movetype != H



;===========================================================================
;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype = S
triggerall = stateno !=9000
trigger1 = ctrl
triggerall  = stateno !=410
;---------------------------------------------------------------------------
;Stand Strong Punch`
[State -1, Stand Strong Punch]
type = ChangeState
value = 205
triggerall =(var(57)=0 && command = "y") || (var(57)=1 && command = "x")
triggerall = command != "holddown"
triggerall  =stateno !=205
triggerall = var(50)=1
triggerall = AILevel =0
triggerall = statetype != A
triggerall = stateno !=9000
trigger1 = (ctrl && var(57)=0) || ((stateno = 200 || stateno=230 || stateno = 400 || stateno=430) && movecontact&& var(57)=1)
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger4= (stateno=400|| stateno=430) && movehit



;---------------------------------------------------------------------------
;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall =(var(57)=0 && command = "z") || (var(57)=1 && command = "y")
triggerall = command != "holddown"
triggerall  =stateno !=210
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype != A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger4= (stateno=400|| stateno=430) && movehit


;---------------------------------------------------------------------------
;Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype = S
triggerall = stateno !=9000
trigger1 = ctrl

;---------------------------------------------------------------------------
;Standing Strong Kick
[State -1, Standing medium Kick]
type = ChangeState
value = 235
triggerall =(var(57)=0 && command = "b") || (var(57)=1 && command = "a")
triggerall = command != "holddown"
triggerall  =stateno !=235
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype != A
triggerall = stateno !=9000
trigger1 = (ctrl && var(57)=0) || ((stateno = 200 || stateno=230 || stateno = 400 || stateno=430) && movecontact&& var(57)=1)
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger5= (stateno=400|| stateno=430) && movehit
;---------------------------------------------------------------------------
;Standing Strong Kick
;[State -1, Standing medium Kick]
;type = ChangeState
;value = 245
;triggerall = command = "b"
;triggerall = command != "holddown"
;triggerall = command = "holdfwd"
;triggerall  =stateno !=245
;triggerall = AILevel =0
;triggerall = var(50)=1
;triggerall= statetype = S
;trigger1 = ctrl
;trigger2 = stateno = 200 && movecontact
;trigger3 = stateno = 230 && movecontact
;trigger4 = stateno = 205 && movecontact
;trigger5= stateno = 235 && movecontact
;---------------------------------------------------------------------------
;Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall =(var(57)=0 && command = "c") || (var(57)=1 && command = "b")
triggerall = command != "holddown"
triggerall  =stateno !=240
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype != A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger4= (stateno=400|| stateno=430) && movehit


;---------------------------------------------------------------------------
;Taunt
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = command = "start"
triggerall =statetype = S
triggerall = AILevel =0
trigger1 = ctrl


;---------------------------------------------------------------------------
;Crouching Light Punch
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = statetype = C
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=9000
trigger1 = ctrl

;---------------------------------------------------------------------------
;Crouching Strong Punch
;しゃがみ強パンチ
[State -1, Crouching Medium Punch]
type = ChangeState
value = 405
triggerall =(var(57)=0 && command = "y") || (var(57)=1 && command = "x")
triggerall = command = "holddown"
triggerall = statetype != A
triggerall  =stateno !=405
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=9000
trigger1 = ctrl
trigger1 = (ctrl && var(57)=0) || ((stateno = 200 || stateno=230 || stateno = 400 || stateno=430) && movecontact&& var(57)=1)
trigger2 = stateno = 400 && movecontact
trigger3 = stateno = 430 && movecontact
trigger4= (stateno=200|| stateno=230) && movehit

;---------------------------------------------------------------------------
;Crouching Strong Punch
;しゃがみ強パンチ
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall =(var(57)=0 && command = "z") || (var(57)=1 && command = "y")
triggerall = command = "holddown"
triggerall = statetype != A
triggerall  =stateno !=410
triggerall = AILevel =0
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger4= (stateno=400|| stateno=430) && movehit


;---------------------------------------------------------------------------
;Crouching Light Kick
;しゃがみ弱キック
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = statetype = C
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=9000
trigger1 = ctrl
;---------------------------------------------------------------------------
;Crouching Strong Kick
;しゃがみ強キック
[State -1, Crouching medium Kick]
type = ChangeState
value = 435
triggerall =(var(57)=0 && command = "b") || (var(57)=1 && command = "a")
triggerall = command = "holddown"
triggerall = statetype != A
triggerall  =stateno !=435
triggerall = AILevel =0
triggerall = stateno !=9000
trigger1 = ctrl
trigger1 = (ctrl && var(57)=0) || ((stateno = 200 || stateno=230 || stateno = 400 || stateno=430) && movecontact&& var(57)=1)
trigger2 = stateno = 400 && movecontact
trigger3 = stateno = 430 && movecontact
trigger4= (stateno=200|| stateno=230) && movehit
;---------------------------------------------------------------------------
;Crouching Strong Kick
;しゃがみ強キック
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall =(var(57)=0 && command = "c") || (var(57)=1 && command = "b")
triggerall = command = "holddown"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype != A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 200 && movecontact
trigger3 = stateno = 230 && movecontact
trigger4= (stateno=400|| stateno=430) && movehit
triggerall = stateno !=410
triggerall = stateno !=440
triggerall = stateno !=210
triggerall = stateno !=240
triggerall = stateno !=215
triggerall = stateno !=445



;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = statetype = A
triggerall = stateno !=9000
trigger1 = ctrl
;------------------------------------------------------------------------------
[State -1, Jump medium Punch]
type = ChangeState
value = 605
triggerall =(var(57)=0 && command = "y") || (var(57)=1 && command = "x")
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = statetype = A
triggerall = stateno !=9000
trigger1 = (ctrl && var(57)=0) || ((stateno = 600 || stateno=630) && movecontact&& var(57)=1)
trigger2 = stateno = 600 && movecontact
trigger3 = stateno = 630 && movecontact
;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall =(var(57)=0 && command = "z") || (var(57)=1 && command = "y")
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=610
triggerall = stateno !=640
triggerall = statetype = A
triggerall = command != "holdfwd"
triggerall = command != "holddown"
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 605 && movecontact
trigger3 = stateno = 635 && movecontact
trigger4 = stateno = 600 && movecontact
trigger5 = stateno = 630 && movecontact

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 611
triggerall =(var(57)=0 && command = "z" && command = "holdfwd") || (var(57)=1 && command = "y" && command = "holdfwd")
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype = A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 605 && movecontact
trigger3 = stateno = 635 && movecontact
trigger4 = stateno = 600 && movecontact
trigger5 = stateno = 630 && movecontact
;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 612
triggerall =(var(57)=0 && command = "z" && command = "holddown") || (var(57)=1 && command = "y" && command = "holddown")
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = statetype = A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 605 && movecontact
trigger3 = stateno = 635 && movecontact
trigger4 = stateno = 600 && movecontact
trigger5 = stateno = 630 && movecontact
;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=[610,612]
triggerall = stateno !=640
triggerall = statetype = A
triggerall = stateno !=9000
triggerall = command != "holddown"
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact
;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 631
triggerall = command = "a" &&  command = "holddown"
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=[610,612]
triggerall = stateno !=640
triggerall = statetype = A
triggerall = stateno !=9000
trigger1 = ctrl
trigger2 = stateno = 600 && movecontact

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Medium Kick]
type = ChangeState
value = 635
triggerall =(var(57)=0 && command = "b") || (var(57)=1 && command = "a")
triggerall = AILevel =0
triggerall = var(50)=1                              ;
triggerall = stateno !=[610,612]
triggerall = stateno !=640
triggerall = statetype = A
triggerall = stateno !=9000
trigger1 = (ctrl && var(57)=0) || ((stateno = 600 || stateno=630) && movecontact && var(57)=1)
trigger2 = stateno = 630 && movecontact
trigger3 = stateno = 600 && movecontact
trigger4 = stateno = 605 && movecontact


;---------------------------------------------------------------------------
;Jump Strong Kick
;空中強キック
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall =(var(57)=0 && command = "c") || (var(57)=1 && command = "b")
triggerall = AILevel =0
triggerall = var(50)=1
triggerall = stateno !=640
triggerall = stateno !=631
triggerall = stateno !=610
triggerall = stateno !=9000
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = [600,635]) && movecontact
