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

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






command.buffer.time = 1

command.time = 30

;-| Super Motions |--------------------------------------------------------
[command]
name = "DM"
command = ~D,F,D,B,~z
time = 25

[command]
name = "DM"
command = ~D,F,D,B,~y
time = 25

[command]
name = "DM"
command = ~D,F,D,B,~x
time = 25

[command]
name = "L3"
command = ~D,DF,F,D,DF,F,~z
time = 25

[command]
name = "L3"
command = ~D,DF,F,D,DF,F,~y
time = 25

[command]
name = "L3"
command = ~D,DF,F,D,DF,F,~x
time = 25

[command]
name = "Super"
command = ~D,DB,B,D,DB,B,~c
time = 25

[command]
name = "Super"
command = ~D,DB,B,D,DB,B,~b
time = 25

[command]
name = "Super"
command = ~D,DB,B,D,DB,B,~a
time = 25

[command]
name = "Supershoulder"
command = ~D,DF,F,D,DF,F,~c
time = 25

[command]
name = "Supershoulder"
command = ~D,DF,F,D,DF,F,~b
time = 25

[command]
name = "Supershoulder"
command = ~D,DF,F,D,DF,F,~a
time = 25

[command]
name = "DM"
command = ~D,F,D,B,z
time = 25

[command]
name = "DM"
command = ~D,F,D,B,y
time = 25

[command]
name = "DM"
command = ~D,F,D,B,x
time = 25

[command]
name = "L3"
command = ~D,DF,F,D,DF,F,z
time = 25

[command]
name = "L3"
command = ~D,DF,F,D,DF,F,y
time = 25

[command]
name = "L3"
command = ~D,DF,F,D,DF,F,x
time = 25

[command]
name = "Super"
command = ~D,DB,B,D,DB,B,c
time = 25

[command]
name = "Super"
command = ~D,DB,B,D,DB,B,b
time = 25

[command]
name = "Super"
command = ~D,DB,B,D,DB,B,a
time = 25

[command]
name = "Supershoulder"
command = ~D,DF,F,D,DF,F,c
time = 25

[command]
name = "Supershoulder"
command = ~D,DF,F,D,DF,F,b
time = 25

[command]
name = "Supershoulder"
command = ~D,DF,F,D,DF,F,a
time = 25

;-| Special Motions |------------------------------------------------------
[command]
name = "airstrike"
command = ~B,D,DB,~z
time = 15

[command]
name = "airstrike2"
command = ~B,D,DB,~y
time = 15

[command]
name = "airstrike3"
command = ~B,D,DB,~x
time = 15

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

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

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

[command]
name = "strike"
command = ~D,DB,B,~z
time = 15

[command]
name = "strike2"
command = ~D,DB,B,~y
time = 15

[command]
name = "strike3"
command = ~D,DB,B,~x
time = 15

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

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

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

[command]
name = "beastchop"
command = ~D,DF,F,~c
time = 15

[command]
name = "beastpunch"
command = ~D,DF,F,~b
time = 15

[command]
name = "beastpunch2"
command = ~D,DF,F,~a
time = 15

[command]
name = "beastthrow"
command = ~F,D,B,~c
time = 15

[command]
name = "beastthrow"
command = ~F,D,B,~b
time = 15

[command]
name = "beastthrow"
command = ~F,D,B,~a
time = 15

[command]
name = "airstrike"
command = ~B,D,DB,z
time = 15

[command]
name = "airstrike2"
command = ~B,D,DB,y
time = 15

[command]
name = "airstrike3"
command = ~B,D,DB,x
time = 15

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

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

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

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

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

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

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

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

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

[command]
name = "EXstrike"
command = ~B,D,DB,z+y
time = 15

[command]
name = "EXstrike"
command = ~B,D,DB,x+z
time = 15

[command]
name = "EXstrike"
command = ~B,D,DB,x+y
time = 15

[command]
name = "strike"
command = ~D,DB,B,z
time = 15

[command]
name = "strike2"
command = ~D,DB,B,y
time = 15

[command]
name = "strike3"
command = ~D,DB,B,x
time = 15

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

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

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

[command]
name = "beastchop"
command = ~D,DF,F,c
time = 15

[command]
name = "beastpunch"
command = ~D,DF,F,b
time = 15

[command]
name = "beastpunch2"
command = ~D,DF,F,a
time = 15

[command]
name = "beastthrow"
command = ~F,D,B,c
time = 15

[command]
name = "beastthrow"
command = ~F,D,B,b
time = 15

[command]
name = "beastthrow"
command = ~F,D,B,a
time = 15

[command]
name = "toss"
command = z+c
time = 1

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB"     ;Required (do not remove)
command = B, B
time = 10

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery" ;Required (do not remove)
command = x+y
time = 1

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

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

[Command]
name = "recovery"
command = a+b
time = 1

[Command]
name = "recovery"
command = b+c
time = 1

[Command]
name = "recovery"
command = a+c
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "back_x"
command = /$B,x
time = 1

[Command]
name = "back_y"
command = /$B,y
time = 1

[Command]
name = "back_z"
command = /$B,z
time = 1

[Command]
name = "down_x"
command = /$D,x
time = 1

[Command]
name = "down_y"
command = /$D,y
time = 1

[Command]
name = "down_z"
command = /$D,z
time = 1

[Command]
name = "fwd_x"
command = /$F,x
time = 1

[Command]
name = "fwd_y"
command = /$F,y
time = 1

[Command]
name = "fwd_z"
command = /$F,z
time = 1

[Command]
name = "up_x"
command = /$U,x
time = 1

[Command]
name = "up_y"
command = /$U,y
time = 1

[Command]
name = "up_z"
command = /$U,z
time = 1

[Command]
name = "back_a"
command = /$B,a
time = 1

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

[Command]
name = "back_c"
command = /$B,c
time = 1

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

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

[Command]
name = "down_c"
command = /$D,c
time = 1

[Command]
name = "fwd_a"
command = /$F,a
time = 1

[Command]
name = "fwd_b"
command = /$F,b
time = 1

[Command]
name = "fwd_c"
command = /$F,c
time = 1

[Command]
name = "up_a"
command = /$U,a
time = 1

[Command]
name = "up_b"
command = /$U,b
time = 1

[Command]
name = "up_c"
command = /$U,c
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 = "s"
command = s
time = 1

;-| Single Dir |------------------------------------------------------------
[Command]
name = "fwd" ;Required (do not remove)
command = $F
time = 1

[Command]
name = "downfwd"
command = $DF
time = 1

[Command]
name = "down" ;Required (do not remove)
command = $D
time = 1

[Command]
name = "downback"
command = $DB
time = 1

[Command]
name = "back" ;Required (do not remove)
command = $B
time = 1

[Command]
name = "upback"
command = $UB
time = 1

[Command]
name = "up" ;Required (do not remove)
command = $U
time = 1

[Command]
name = "upfwd"
command = $UF
time = 1

;-| Hold Button |--------------------------------------------------------------
[Command]
name = "hold_x"
command = /x
time = 1

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

[Command]
name = "hold_z"
command = /z
time = 1

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

[Command]
name = "hold_b"
command = /b
time = 1

[Command]
name = "hold_c"
command = /c
time = 1

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

[Command]
name = "O_R"
command = ~z
time = 1

[Command]
name = "O_R"
command = ~y
time = 1

[Command]
name = "O_R"
command = ~x
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd" ;Required (do not remove)
command = /$F
time = 1

[Command]
name = "holddownfwd"
command = /$DF
time = 1

[Command]
name = "holddown" ;Required (do not remove)
command = /$D
time = 1

[Command]
name = "holddownback"
command = /$DB
time = 1

[Command]
name = "holdback" ;Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdupback"
command = /$UB
time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holdupfwd"
command = /$UF
time = 1

;---------------------------------------------------------------------------
; 2. State entry
; --------------
; This is where you define what commands bring you to what states.
;
; Each state entry block looks like:
;   [State -1, Label]           ;Change Label to any name you want to use to
;                               ;identify the state with.
;   type = ChangeState          ;Don't change this
;   value = new_state_number
;   trigger1 = command = command_name
;   . . .  (any additional triggers)
;
; - new_state_number is the number of the state to change to
; - command_name is the name of the command (from the section above)
; - Useful triggers to know:
;   - statetype
;       S, C or A : current state-type of player (stand, crouch, air)
;   - ctrl
;       0 or 1 : 1 if player has control. Unless "interrupting" another
;                move, you'll want ctrl = 1
;   - stateno
;       number of state player is in - useful for "move interrupts"
;   - movecontact
;       0 or 1 : 1 if player's last attack touched the opponent
;                useful for "move interrupts"
;
; Note: The order of state entry is important.
;   State entry with a certain command must come before another state
;   entry with a command that is the subset of the first.  
;   For example, command "fwd_a" must be listed before "a", and
;   "fwd_ab" should come before both of the others.
;
; For reference on triggers, see CNS documentation.
;
; Just for your information (skip if you're not interested):
; This part is an extension of the CNS. "State -1" is a special state
; that is executed once every game-tick, regardless of what other state
; you are in.


; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]


;===========================================================================
;DM
[State -1, DM]
type = ChangeState
value = 3000
triggerall = life <= 250
triggerall = var(11) = 0
triggerall =AILevel >0
triggerall = teammode != simul
Triggerall = (RoundState = 2)
Triggerall = (StateType != A)
triggerall = (stateno != [800,3999])
triggerall = enemynear,anim!=5120
Triggerall = (P2BodyDist X = [25,75])
Triggerall =  Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall =p2movetype!=H || ((stateno=[1000,1004])&&movecontact)
triggerall = p2bodydist y=[-50,0]
trigger1 = ctrl
trigger2 = stateno = 1000
trigger2 = movecontact
trigger3 = stateno = 1003
trigger3 = movecontact
trigger4 = stateno = 1004
trigger4 = movecontact
trigger5= p2movetype=A && ctrl
;------------------------------------------------------------------
;L3
[State -1, L3]
type = ChangeState
value = 993
triggerall = power >= 3000
triggerall =AILevel >0
triggerall = roundstate = 2
triggerall = (p2bodydist x=[0,166])
triggerall = stateno !=[800,899]
triggerall = enemynear,anim!=5120
triggerall = enemy,stateno !=[800,899]
triggerall = enemy,stateno !=[120,155]
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall =Random <= 35*AILevel*fvar(6)
triggerall = statetype!=A
triggerall = p2bodydist y =[-50,0]
trigger1 = ctrl
trigger2 = stateno = 200&&movehit
trigger3 = stateno = 210&&movehit
trigger4 = stateno = 222&&movehit
trigger5 = stateno = 220&&movehit
trigger6 = stateno = 230&&movehit
trigger7 = stateno = 240&&movehit
trigger8 = stateno = 250&&movehit
trigger9 = stateno = 400&&movehit
trigger10 = stateno = 410&&movehit
trigger11 = stateno = 420&&movehit
trigger12 = stateno = 430&&movehit
trigger13 = stateno = 440&movehit
trigger14 = stateno = 1050&&movehit
trigger15 = stateno = 1060&&movehit
trigger16 = stateno = 1070&&movehit
trigger17 = stateno = 1000&&movehit
trigger18 = stateno = 1003&&movehit
trigger19 = stateno = 1004&&movehit
trigger20= p2movetype=H && ctrl
trigger21= p2movetype=A && ctrl

;---------------------------------------------------------------------
;Super
[State -1, Super]
type = ChangeState
value = 2070
triggerall = power >= 2000
triggerall =AILevel >0
triggerall = roundstate = 2
triggerall = (p2bodydist x=[0,166])
triggerall = stateno !=[800,899]
triggerall = enemy,stateno !=[800,899]
triggerall = enemy,stateno !=[120,155]
triggerall = enemynear,anim!=5120
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall =Random <= 25*AILevel*fvar(6)
triggerall = statetype!=A
triggerall = p2bodydist y =0
trigger1 = ctrl
trigger2 = stateno = 200&&movehit
trigger3 = stateno = 210&&movehit
trigger4 = stateno = 222&&movehit
trigger5 = stateno = 220&&movehit
trigger6 = stateno = 230&&movehit
trigger7 = stateno = 240&&movehit
trigger8 = stateno = 250&&movehit
trigger9 = stateno = 400&&movehit
trigger10 = stateno = 410&&movehit
trigger11 = stateno = 420&&movehit
trigger12 = stateno = 430&&movehit
trigger13 = stateno = 440&movehit
trigger14 = stateno = 1000&&movehit
trigger15 = stateno = 1003&&movehit
trigger16 = stateno = 1004&&movehit
trigger17 = stateno = 1007&&movehit
trigger18= p2movetype=H && ctrl
trigger19= p2movetype=A && ctrl
;-----------------------------------------------------------------------
;Supershoulder
[State -1, Supershoulder]
type = ChangeState
value = 1080
triggerall = power >= 1000
triggerall =AILevel >0
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[0,45])&&p2statetype!=A)||(((p2bodydist x=[0,65])&&p2statetype=A)&&(p2bodydist y=[-100,-1]))
triggerall = stateno !=[800,899]
triggerall = enemy,stateno !=[800,899]
triggerall = enemynear,anim!=5120
triggerall = enemy,stateno !=[120,155]
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <= 16*AILevel*fvar(6)
triggerall = statetype!=A
trigger1 = ctrl
trigger2 = stateno = 210&&movehit
trigger3 = stateno = 222&&movehit
trigger4 = stateno = 220&&movehit
trigger5 = stateno = 240&&movehit
trigger6 = stateno = 250&&movehit
trigger7 = stateno = 410&&movehit
trigger8 = stateno = 420&&movehit
trigger9 = stateno = 440&movehit
trigger10 = stateno = 1050&&movehit
trigger11 = stateno = 1060&&movehit
trigger12 = stateno = 1070&&movehit
trigger13 = stateno = 1000&&movehit
trigger14 = stateno = 1003&&movehit
trigger15 = stateno = 1004&&movehit
trigger20= p2movetype=A && ctrl
;---------------------------------------------------------------------
[State -1, Guard]
type = ChangeState
value = 120
triggerall = movetype !=H
triggerall = roundstate = 2
triggerall = stateno!=[120,155]
triggerall = (stateno != [55,59])
triggerall= AILevel >0
triggerall =(StateNo !=[200,3999])&&(StateNo != 105)
triggerall = Random <=113*AILevel
triggerall =(EnemyNear, movetype=A)
trigger1 = ctrl ||stateno=20

;-----------------------------------------------------------------------------
[State -1,Throw]
type = ChangeState
value = 800
triggerall = AILevel >2
triggerall = random <= 30*AILevel
triggerall = statetype != A
triggerall = p2statetype != A
triggerall = p2statetype!=L
triggerall = ctrl
triggerall = stateno != [200,9999]
Triggerall = (RoundState = 2)
triggerall = enemynear,anim!=5120
triggerall = (p2MoveType != H)
trigger1 = p2bodydist X < 25 && p2dist y <= 0
trigger2 = (p2stateno =[120,150]) &&(p2bodydist X <25 && p2dist y <= 0)
;---------------------------------------------------------------------------
; Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = (stateno != [800,3999])
Triggerall = P2BodyDist X = [0,35]
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = enemynear,anim!=5120
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = (p2bodydist y=[-40,0])&&enemy,vel y >=0
triggerall = enemy, statetype != C
trigger1 = ctrl
;---------------------------------------------------------------------------
;Stand Medium Punch
[State -1, Stand Medium Punch]
type = ChangeState
value = 210
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = P2BodyDist X = [0,68]
Triggerall = Random <= 49*AILevel*fvar(6)
triggerall = enemynear,anim!=5120
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = (p2bodydist y=[-40,0])&&enemy,vel y >=0
triggerall = enemy, statetype != C
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 400
trigger4 = movecontact
trigger5 = stateno = 430
trigger5 = movecontact

;---------------------------------------------------------------------------
; Close Stand Strong Punch 2
[State -1, Close Stand Strong Punch 2]
type = ChangeState
value = 222
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = ((P2BodyDist X = [0,25])&&p2statetype!=A) || ((p2bodydist x = [0,60])&& p2statetype=A)
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = enemynear,anim!=5120
triggerall = movetype!=H
triggerall = (p2bodydist y=[-70,0])&&enemy,vel y >=0
triggerall = enemy, statetype != C
trigger1 = ctrl



;---------------------------------------------------------------------------
;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 220
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = P2BodyDist X = [0,85]
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = enemynear,anim!=5120
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = (p2bodydist y=[-60,0])&&enemy,vel y >=0
triggerall =enemy, statetype != C
trigger1 = ctrl
trigger2 = stateno = 210
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 410
trigger4 = movecontact
trigger5 = stateno = 440
trigger5 = movecontact

;---------------------------------------------------------------------------
; Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = P2BodyDist X = [0,15]
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = enemynear,anim!=5120
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = enemy, statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
; Standing Medium Kick
[State -1, Standing Medium Kick]
type = ChangeState
value = 240
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = P2BodyDist X = [0,65]
Triggerall = Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = enemynear,anim!=5120
triggerall = (p2bodydist y=[-60,0])&&enemy,vel y >=0
triggerall = enemy, statetype != C
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 400
trigger4 = movecontact
trigger5 = stateno = 430
trigger5 = movecontact

;---------------------------------------------------------------------------
; Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 250
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = P2BodyDist X = [0,65]
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = enemynear,anim!=5120
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = (p2bodydist y=[-60,0])&&enemy,vel y >=0
triggerall = enemy, statetype != C
trigger1 = ctrl
trigger2 = stateno = 210
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 410
trigger4 = movecontact
trigger5 = stateno = 440
trigger5 = movecontact

;---------------------------------------------------------------------------
; Crouching Light Punch
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
triggerall = enemynear,anim!=5120
Triggerall = P2BodyDist X = [0,28]
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = enemy, statetype != A  || (p2movetype= H && (p2bodydist y =[-25,-5]))
trigger1 = ctrl

;---------------------------------------------------------------------------
; Crouching Medium Punch
[State -1, Crouching Medium Punch]
type = ChangeState
value = 410
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
triggerall = enemynear,anim!=5120
Triggerall = P2BodyDist X = [0,50]
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = enemy, statetype != A  || (p2movetype= H && (p2bodydist y =[-25,-5]))
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 400
trigger4 = movecontact
trigger5 = stateno = 430
trigger5 = movecontact

;---------------------------------------------------------------------------
; Crouching Strong Punch
[State -1, Crouching Strong Punch]
type = ChangeState
value = 420
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
triggerall = enemynear,anim!=5120
Triggerall = P2BodyDist X = [0,45]
Triggerall =Random <= 55*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = (p2bodydist y=[-75,0])&&enemy,vel y >=0
trigger1 = ctrl
trigger2 = stateno = 210
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 410
trigger4 = movecontact
trigger5 = stateno = 440
trigger5 = movecontact

;---------------------------------------------------------------------------
; Crouching Light Kick
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
triggerall = enemynear,anim!=5120
Triggerall = P2BodyDist X = [0,45]
Triggerall = Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = enemy, statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
; Crouching Medium Kick
[State -1, Crouching Medium Kick]
type = ChangeState
value = 440
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = P2BodyDist X = [0,55]
triggerall = enemynear,anim!=5120
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = enemy, statetype != A
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 400
trigger4 = movecontact
trigger5 = stateno = 430
trigger5 = movecontact

;---------------------------------------------------------------------------
; Crouching Strong Kick
[State -1, Crouching Strong Kick]
type = ChangeState
value = 450
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
triggerall = enemynear,anim!=5120
Triggerall = P2BodyDist X = [0,75]
Triggerall = Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = enemy, statetype != A
trigger1 = ctrl
trigger2 = stateno = 210
trigger2 = movecontact
trigger3 = stateno = 240
trigger3 = movecontact
trigger4 = stateno = 410
trigger4 = movecontact
trigger5 = stateno = 440
trigger5 = movecontact
;-----------------------------------------------------
[State -1, OH]
type = ChangeState
value = 280
Triggerall = (RoundState = 2) && (AILevel >0)
Triggerall = (StateType = S)
triggerall = stateno != [800,3999]
Triggerall =Random <= 40*AILevel
triggerall = p2statetype !=L
triggerall =  p2statetype=C || p2stateno=5120
triggerall = movetype !=H
triggerall = p2bodydist x = [0,65]
trigger1 = ctrl
;---------------------------------------------------------------------------
; Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType = A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = P2BodyDist X = [0,60]
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = p2statetype=A
triggerall = p2bodydist y=[-25,45]
trigger1 = ctrl
;---------------------------------------------------------------------------
;Jump Medium Punch
[State -1, Jump Medium Punch]
type = ChangeState
value = 610
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType = A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = P2BodyDist X = [0,60]
Triggerall = Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall= p2statetype=A
triggerall = p2bodydist y=[-25,45]
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = movecontact
trigger3 = stateno = 630
trigger3 = movecontact

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 620
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType = A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = P2BodyDist X = [0,68]
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall= vel y >=0
triggerall = movetype!=H
triggerall = p2bodydist y=[-25,75]
trigger1 = ctrl
trigger2 = stateno = 610
trigger2 = movecontact
trigger3 = stateno = 640
trigger3 = movecontact
;---------------------------------------------------------------------------
; Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType = A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = (P2BodyDist X = [-15,60])
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall= vel y >=0 || p2statetype=A
triggerall = p2bodydist y=[-25,75]
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Medium Kick
[State -1, Jump Medium Kick]
type = ChangeState
value = 640
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType = A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = (P2BodyDist X = [0,60])
Triggerall = Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall= p2statetype=A
triggerall = p2bodydist y=[-25,65]
trigger1 = ctrl
trigger2 = stateno = 600
trigger2 = movecontact
trigger3 = stateno = 630
trigger3 = movecontact
;---------------------------------------------------------------------------
;Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 650
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType = A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = (P2BodyDist X = [0,70])
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall=vel y >=0
triggerall = movetype!=H
triggerall = p2bodydist y=[-25,85]
trigger1 = ctrl
trigger2 = stateno = 610
trigger2 = movecontact
trigger3 = stateno = 640
trigger3 = movecontact
;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, AI9]
type = ChangeState
value = 700
triggerall = (AILevel > 0)
Triggerall = Random <25*AILevel
triggerall = statetype = A
triggerall = (movetype !=H)
Triggerall = (P2BodyDist X = [0,40])
triggerall = roundstate = 2
trigger1 =  stateno=100||stateno=105


;---------------------------------------------------------------------------
;Jump Light Punch
;空中弱パンチ
[State -1, AI9]
type = ChangeState
value = 710
triggerall = (AILevel > 0)
Triggerall = Random <35*AILevel
triggerall = statetype = A
triggerall = (movetype !=H)
Triggerall = (P2BodyDist X = [0,45])
triggerall = roundstate = 2
trigger1 =  stateno=100||stateno=105



;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, AI9]
type = ChangeState
value = 720
triggerall = (AILevel > 0)
Triggerall = Random <45*AILevel
triggerall = statetype = A
triggerall = (movetype !=H)
Triggerall = (P2BodyDist X = [0,75])
triggerall = roundstate = 2
trigger1 =  stateno=100||stateno=105

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, AI9]
type = ChangeState
value = 730
triggerall =(AILevel > 0)
Triggerall = Random <25*AILevel
triggerall = statetype = A
triggerall = (movetype !=H)
Triggerall = (P2BodyDist X = [0,45])
triggerall = roundstate = 2
trigger1 =  stateno=100||stateno=105
;---------------------------------------------------------------------------

[State -1, AI9]
type = ChangeState
value = 740
triggerall =(AILevel > 0)
Triggerall = Random <35*AILevel
triggerall = statetype = A
triggerall = (movetype !=H)
Triggerall = (P2BodyDist X = [0,65])
triggerall = roundstate = 2
trigger1 =  stateno=100||stateno=105
;---------------------------------------------------------------------------
[State -1, AI9]
type = ChangeState
value = 750
triggerall = (AILevel > 0)
Triggerall = Random <45*AILevel
triggerall = statetype = A
triggerall = (movetype !=H)
Triggerall = (P2BodyDist X = [0,75])
triggerall = roundstate = 2
trigger1 =  stateno=100||stateno=105
;-----------------------------------------------------------
;airstrike
[State -1, airstrike]
type = ChangeState
value = 3050
triggerall =AILevel >1
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[75,190])||((p2bodydist x=[20,105])&&p2statetype=A))&&(((p2bodydist y=[-100,-15])&&p2statetype=A)||p2statetype!=A)
triggerall = stateno !=[800,899]
triggerall = enemy,stateno !=[800,899]
triggerall = enemy,stateno !=[120,155]
triggerall = p2statetype != L
triggerall = movetype != H
triggerall = enemynear,anim!=5120
Triggerall = Random <= 13*AILevel
triggerall = statetype!=A
trigger1 = ctrl
trigger2 = stateno = 210&&movecontact
trigger3 = stateno = 222&&movecontact
trigger4 = stateno = 220&&movecontact
trigger5 = stateno = 240&&movecontact
trigger6 = stateno = 250&&movecontact
trigger7 = stateno = 410&&movecontact
trigger8 = stateno = 420&&movecontact
trigger9 = stateno = 440&&movecontact
;---------------------------------------------------------
;airstrike2
[State -1, airstrike2]
type = ChangeState
value = 3053
triggerall =AILevel >1
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[65,130])||((p2bodydist x=[20,105])&&p2statetype=A))&&(((p2bodydist y=[-100,-15])&&p2statetype=A)||p2statetype!=A)
triggerall = stateno !=[800,899]
triggerall = enemy,stateno !=[800,899]
triggerall = enemy,stateno !=[120,155]
triggerall = p2statetype != L
triggerall = movetype != H
triggerall = enemynear,anim!=5120
Triggerall = Random <= 13*AILevel
triggerall = statetype!=A
trigger1 = ctrl
trigger2 = stateno = 210&&movecontact
trigger3 = stateno = 222&&movecontact
trigger4 = stateno = 220&&movecontact
trigger5 = stateno = 240&&movecontact
trigger6 = stateno = 250&&movecontact
trigger7 = stateno = 410&&movecontact
trigger8 = stateno = 420&&movecontact
trigger9 = stateno = 440&&movecontact
;-----------------------------------------------------
;airstrike3
[State -1, airstrike3]
type = ChangeState
value = 30533
triggerall =AILevel >1
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[45,100])||((p2bodydist x=[20,105])&&p2statetype=A))&&(((p2bodydist y=[-100,-15])&&p2statetype=A)||p2statetype!=A)
triggerall = stateno !=[800,899]
triggerall = enemy,stateno !=[800,899]
triggerall = enemy,stateno !=[120,155]
triggerall = p2statetype != L
triggerall = movetype != H
triggerall = enemynear,anim!=5120
Triggerall =Random <= 13*AILevel
triggerall = statetype!=A
trigger1 = ctrl
trigger2 = stateno = 210&&movecontact
trigger3 = stateno = 222&&movecontact
trigger4 = stateno = 220&&movecontact
trigger5 = stateno = 240&&movecontact
trigger6 = stateno = 250&&movecontact
trigger7 = stateno = 410&&movecontact
trigger8 = stateno = 420&&movecontact
trigger9 = stateno = 440&&movecontact
;---------------------------------------
;EXstrike
[State -1, EXstrike]
type = ChangeState
value = 3058
triggerall = power >= 500
triggerall =AILevel >2
triggerall = roundstate = 2
triggerall = (p2bodydist x=[0,60])&& (((p2bodydist y=[-100,-15])&&p2statetype=A)||p2statetype!=A)
triggerall = stateno !=[800,899]
triggerall = enemy,stateno !=[800,899]
triggerall = enemy,stateno !=[120,155]
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall = Random <= 13*AILevel
triggerall = enemynear,anim!=5120
triggerall = statetype!=A
triggerall = p2movetype!=I
trigger1=ctrl
trigger2 = stateno = 210&&movecontact
trigger3 = stateno = 222&&movecontact
trigger4 = stateno = 220&&movecontact
trigger5 = stateno = 240&&movecontact
trigger6 = stateno = 250&&movecontact
trigger7 = stateno = 410&&movecontact
trigger8 = stateno = 420&&movecontact
trigger9 = stateno = 440&&movecontact
;------------------------------------------------------------------------
;strike
[State -1, strike]
type = ChangeState
value = 4000
Triggerall = (RoundState = 2) && AILevel >1
Triggerall = (StateType != A)
triggerall = (stateno != [800,3999])
Triggerall =  (p2bodydist x>=35) || ((p2bodydist x =[35,200])&&enemy,vel x >0)
Triggerall = Random <= 17*AILevel*fvar(6)
triggerall = movetype!=H
triggerall = p2bodydist y=[-80,0]
trigger1 = ctrl
trigger2= p2statetype=L&&ctrl && p2bodydist x <90
trigger3 = enemy,vel x >0 && p2bodydist x >110&& ctrl
;----------------------------------------------------------------
[State -1, shoulder]
type = ChangeState
value = 1050
triggerall =AILevel >1
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[0,50])&&p2statetype!=A)||(((p2bodydist x=[0,75])&&p2statetype=A)&&(p2bodydist y=[-100,-1]))
triggerall = stateno !=[800,899]
triggerall = enemy,stateno !=[800,899]
triggerall = enemy,stateno !=[120,155]
triggerall = p2statetype != L
triggerall = movetype != H
triggerall = enemynear,anim!=5120
Triggerall = Random <= 13*AILevel*fvar(6)
triggerall = statetype!=A
trigger1 = ctrl
trigger2 = stateno = 210&&movecontact
trigger3 = stateno = 222&&movecontact
trigger4 = stateno = 220&&movecontact
trigger5 = stateno = 240&&movecontact
trigger6 = stateno = 250&&movecontact
trigger7 = stateno = 410&&movecontact
trigger8 = stateno = 420&&movecontact
trigger9 = stateno = 440&&movecontact
trigger10 = prevstateno = 5120  && p2movetype=A&&ctrl
;----------------------------------------------------------------
[State -1, shoulder2]
type = ChangeState
value = 1060
triggerall =AILevel >1
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[0,45])&&p2statetype!=A)||(((p2bodydist x=[0,65])&&p2statetype=A)&&(p2bodydist y=[-100,-1]))
triggerall = stateno !=[800,899]
triggerall = enemy,stateno !=[800,899]
triggerall = enemy,stateno !=[120,155]
triggerall = p2statetype != L
triggerall = enemynear,anim!=5120
triggerall = movetype != H
Triggerall = Random <= 13*AILevel*fvar(6)
triggerall = statetype!=A
trigger1 = ctrl
trigger2 = stateno = 210&&movecontact
trigger3 = stateno = 222&&movecontact
trigger4 = stateno = 220&&movecontact
trigger5 = stateno = 240&&movecontact
trigger6 = stateno = 250&&movecontact
trigger7 = stateno = 410&&movecontact
trigger8 = stateno = 420&&movecontact
trigger9 = stateno = 440&&movecontact
trigger10 = prevstateno = 5120  && p2movetype=A&&ctrl
;----------------------------------------------------------------
[State -1, shoulder3]
type = ChangeState
value = 1070
triggerall =AILevel >1
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[0,40])&&p2statetype!=A)||(((p2bodydist x=[0,60])&&p2statetype=A)&&(p2bodydist y=[-100,-1]))
triggerall = stateno !=[800,899]
triggerall = enemy,stateno !=[800,899]
triggerall = enemy,stateno !=[120,155]
triggerall = p2statetype != L
triggerall = enemynear,anim!=5120
triggerall = movetype != H
Triggerall = Random <= 13*AILevel*fvar(6)
triggerall = statetype!=A
trigger1 = ctrl
trigger2 = stateno = 210&&movecontact
trigger3 = stateno = 222&&movecontact
trigger4 = stateno = 220&&movecontact
trigger5 = stateno = 240&&movecontact
trigger6 = stateno = 250&&movecontact
trigger7 = stateno = 410&&movecontact
trigger8 = stateno = 420&&movecontact
trigger9 = stateno = 440&&movecontact
trigger10 = prevstateno = 5120  && p2movetype=A&&ctrl

;-----------------------------------------------------------------
[State -1, beastthrow]
type = ChangeState
value = 30000
Triggerall = (RoundState = 2) && AILevel >1
Triggerall = (StateType != A)
triggerall = (stateno != [800,3999])
Triggerall = (P2BodyDist X = [45,85])
Triggerall = Random <= 13*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = enemynear,anim!=5120
triggerall = movetype!=H
triggerall = p2bodydist y=[-85,0]
trigger1 = ctrl
;------------------------------------------------------------------------
;beastpunch2
[State -1, beastchop]
type = ChangeState
value = 2010
Triggerall = (RoundState = 2) && AILevel >1
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = (P2BodyDist X = [55,85])
Triggerall = Random <= 13*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = enemynear,anim!=5120
triggerall = p2bodydist y=[-105,0]
trigger1 = ctrl
;------------------------------------------------------------------------
;beastpunch2
[State -1, beastpunch2]
type = ChangeState
value = 2020
Triggerall = (RoundState = 2) && AILevel >1
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = (P2BodyDist X = [65,105])
Triggerall = Random <= 13*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = p2movetype=A && p2statetype=A
triggerall = p2bodydist y=[-105,-1]
trigger1 = ctrl

;------------------------------------------------------------------------
;beastpunch2
[State -1, beastpunch]
type = ChangeState
value = 2030
Triggerall = (RoundState = 2) && AILevel >1
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = (P2BodyDist X = [55,105])
Triggerall = Random <= 13*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = p2statetype!=A
trigger1 = ctrl
;------------------------------------------------
;EXshoulder
[State -1, EXshoulder]
type = ChangeState
value = 1090
triggerall =AILevel >2
triggerall = roundstate = 2
triggerall = ((p2bodydist x=[0,40])&&p2statetype!=A)||(((p2bodydist x=[0,70])&&p2statetype=A)&&(p2bodydist y=[-100,-1]))
triggerall = stateno !=[800,899]
triggerall = enemy,stateno !=[800,899]
triggerall = enemy,stateno !=[120,155]
triggerall = p2statetype != L
triggerall = movetype != H
Triggerall =Random <= 8*AILevel*fvar(6)
triggerall = statetype!=A
triggerall = p2movetype!=I
trigger1 = ctrl
trigger2 = stateno = 210&&movecontact
trigger3 = stateno = 222&&movecontact
trigger4 = stateno = 220&&movecontact
trigger5 = stateno = 240&&movecontact
trigger6 = stateno = 250&&movecontact
trigger7 = stateno = 410&&movecontact
trigger8 = stateno = 420&&movecontact
trigger9 = stateno = 440&&movecontact
trigger10 = prevstateno = 5120  && p2movetype=A&&ctrl
;---------------------------------------------------------------------------
;Dash
[State -1, DashBack]
type = ChangeState
value = 1008
triggerall = AILevel >0
Triggerall = (P2BodyDist X = [0,100])
triggerall = p2bodydist y=[-85,0]
triggerall = stateno != 1006
triggerall = stateno != 1005
trigger1 = (stateno = 1006) && time=0&&(p2stateno=[120,155])
trigger2 = (stateno = 1000) && time >= 15 &&p2movetype=A
trigger3 = (stateno = 1003) && time >= 13&&p2movetype=A
trigger4 = (stateno = 1004) && time >= 11&&p2movetype=A
;---------------------------------------------------------------------------
;Dash
[State -1, Dash3]
type = ChangeState
value = 1000
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = (P2BodyDist X = [0,185])
Triggerall = Random <= 13*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = p2bodydist y=[-55,0]
trigger1 = ctrl
trigger2 = stateno = 210&&movecontact
trigger3 = stateno = 222&&movecontact
trigger4 = stateno = 220&&movecontact
trigger5 = stateno = 240&&movecontact
trigger6 = stateno = 250&&movecontact
trigger7 = stateno = 410&&movecontact
trigger8 = stateno = 420&&movecontact
trigger9 = stateno = 440&&movecontact

;---------------------------------------------------------------------------
;Dash
[State -1, Dash2]
type = ChangeState
value = 1003
Triggerall = (RoundState = 2) && AILevel >0
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = (P2BodyDist X = [0,175])
Triggerall = Random <= 13*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = p2bodydist y=[-55,0]
trigger1 = ctrl
trigger2 = stateno = 210&&movecontact
trigger3 = stateno = 222&&movecontact
trigger4 = stateno = 220&&movecontact
trigger5 = stateno = 240&&movecontact
trigger6 = stateno = 250&&movecontact
trigger7 = stateno = 410&&movecontact
trigger8 = stateno = 420&&movecontact
trigger9 = stateno = 440&&movecontact
;---------------------------------------------------------------------------
;Dash
[State -1, Dash]
type = ChangeState
value = 1004
Triggerall = (RoundState = 2) && AILevel >1
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = (P2BodyDist X = [0,155])
triggerall = p2bodydist y=[-55,0]
Triggerall =Random <= 49*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
trigger1 = ctrl
trigger2 = stateno = 210&&movecontact
trigger3 = stateno = 222&&movecontact
trigger4 = stateno = 220&&movecontact
trigger5 = stateno = 240&&movecontact
trigger6 = stateno = 250&&movecontact
trigger7 = stateno = 410&&movecontact
trigger8 = stateno = 420&&movecontact
trigger9 = stateno = 440&&movecontact


;---------------------------------------------------------------------------
;Dash
[State -1, Dashkick]
type = ChangeState
value = 1010
triggerall = AILevel >0
triggerall = Random <= 60*AILevel
Triggerall = (P2BodyDist X = [56,95])
triggerall = p2bodydist y=[-75,0]
triggerall = stateno != 1006
triggerall =p2stateno!=[120,155]
triggerall = stateno != 1005
trigger1 = (stateno = 1000) && movehit
trigger2 = (stateno = 1000) && time >= 15
trigger3 = (stateno = 1003) && movehit
trigger4 = (stateno = 1003) && time >= 13
trigger5 = (stateno = 1004) && movehit
trigger6 = (stateno = 1004) && time >= 11
;--------------------------------------------------------------
;elbowstrike
[State -1, elbowstrike]
type = ChangeState
value = 3056
triggerall = AILevel >0
triggerall =Random <= 60*AILevel
triggerall = stateno != 1006
triggerall =p2stateno!=[120,155]
triggerall = stateno != 1005
Triggerall = (P2BodyDist X = [0,55])
triggerall = p2bodydist y=0
triggerall = p2statetype=C
trigger1 = (stateno = 1000) && movehit
trigger2 = (stateno = 1000) && time >= 15
trigger3 = (stateno = 1003) && movehit
trigger4 = (stateno = 1003) && time >= 13
trigger5 = (stateno = 1004) && movehit
trigger6 = (stateno = 1004) && time >= 11
;---------------------------------------------------------------------------
;Dash
[State -1, DashPunch]
type = ChangeState
value = 1007
triggerall = AILevel >0
triggerall = Random <= 60*AILevel
triggerall = stateno != 1006
triggerall =p2stateno!=[120,155]
triggerall = stateno != 1005
Triggerall = (P2BodyDist X = [0,55])
triggerall = p2bodydist y=[-75,0]
trigger1 = (stateno = 1000) && movehit
trigger2 = (stateno = 1000) && time >= 15
trigger3 = (stateno = 1003) && movehit
trigger4 = (stateno = 1003) && time >= 13
trigger5 = (stateno = 1004) && movehit
trigger6 = (stateno = 1004) && time >= 11
;-----------------------------------------
;EXDash
[State -1, EXDash]
type = ChangeState
value = 1012
triggerall = power >= 500
Triggerall = (RoundState = 2) && AILevel >2
Triggerall = (StateType != A)
triggerall = p2stateno!=[120,159]
triggerall = (stateno != [800,3999])
Triggerall = (P2BodyDist X = [0,155])
triggerall = ((p2bodydist y=[-55,-15])&&p2statetype=A)||(p2statetype!=A)
Triggerall = Random <= 12*AILevel*fvar(6)
triggerall = p2statetype !=L
triggerall = movetype!=H
triggerall = p2movetype=H
trigger1 = ctrl
trigger2 = stateno = 210&&movecontact
trigger3 = stateno = 222&&movecontact
trigger4 = stateno = 220&&movecontact
trigger5 = stateno = 240&&movecontact
trigger6 = stateno = 250&&movecontact
trigger7 = stateno = 410&&movecontact
trigger8 = stateno = 420&&movecontact
trigger9 = stateno = 440&&movecontact

;-------------------------------------------------
[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 = var(30)=1
triggerall = random< 25*AILevel || (ctrl && p2movetype=A && p2statetype=C && random<43*AILevel)||(enemy,hitdefattr=SC,AT  && (ctrl||(stateno=130||stateno=120))  && random<35*AILevel)
trigger1 = ctrl && p2movetype=A && p2statetype=C && random<43*AILevel
trigger2 =p2statetype = C && (p2bodydist x = [50,90]) && ctrl&& random<25*AILevel
trigger3= enemy,hitdefattr=SC,AT  && (ctrl||(stateno=130||stateno=120))  && random<35*AILevel
trigger4= p2bodydist x >60 && ctrl&& random<79 && (p2movetype!=A|| enemynear,hitdefattr= SC,AA)
trigger5 = p2statetype=L && ctrl && random <49 && AILevel >=4
value = 40

[State -1, jump2]
Type = changestate
value = 40000
triggerall = (AILevel >0)
triggerall = statetype !=A
trigger1 = (StateNo = 420) && ((movehit&& AILevel <4)||(movehit&&AIlevel >=4))

[State -1, AI run]
type=changestate
value=100
triggerall = roundstate = 2
triggerall=AILevel >4 && statetype=S && ctrl && random < 25*AILevel
triggerall = p2bodydist y =[-240,0]
trigger1= (stateno!=[100,105]) && p2movetype!=A &&  ((p2bodydist x=[90,788])|| numproj >0||numhelper(1500)>0||numhelper(1501)>0)
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = AILevel >0
triggerall = roundstate=2||winko
triggerall = random<299
triggerall = gametime%30=0
triggerall = enemy,life < (enemy,lifemax/2.25) ||winko
triggerall = life >700 ||winko
triggerall = p2statetype = L
triggerall = p2bodydist x >120
triggerall = statetype != A
trigger1 = ctrl
[State -1, AI run]
type=changestate
value=20
triggerall = roundstate = 2
triggerall=AILevel >0 && statetype=S && ctrl &&random < 25*AILevel
trigger1= (stateno!=[20,105]) && p2movetype!=A && (p2bodydist x=[20,90])

[State -1, AIRun Back]
type = ChangeState
value = 105
triggerall = AILevel >0
triggerall = stateno !=105
triggerall = statetype != A
triggerall = random <  19*AILevel
triggerall = roundstate = 2
triggerall = ctrl
trigger1 = (p2statetype =L || p2movetype = A) && (p2bodydist x=[-99,15])
;===========================================================================
;DM
[State -1, DM]
type = ChangeState
value = 3000
triggerall = command = "DM"
triggerall = life <= 250
triggerall = AILevel <=0
triggerall = var(11) = 0
triggerall = statetype!=A
triggerall = teammode != simul
trigger1=ctrl
trigger2 = stateno = 1000
trigger2 = movecontact
trigger3 = stateno = 1003
trigger3 = movecontact
trigger4 = stateno = 1004
trigger4 = movecontact

;L3
[State -1, L3]
type = ChangeState
value = 993
triggerall = command = "L3"
triggerall =  AILevel <=0
triggerall = power >= 3000
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact
trigger14 = stateno = 1050&&movecontact
trigger15 = stateno = 1060&&movecontact
trigger16 = stateno = 1070&&movecontact
trigger17 = stateno = 1000&&movecontact
trigger18 = stateno = 1003&&movecontact
trigger19 = stateno = 1004&&movecontact

;Supershoulder
[State -1, Supershoulder]
type = ChangeState
value = 1080
triggerall =  AILevel <=0
triggerall = command = "Supershoulder"
triggerall = power >= 1000
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact
trigger14 = stateno = 1050&&movecontact
trigger15 = stateno = 1060&&movecontact
trigger16 = stateno = 1070&&movecontact
trigger17 = stateno = 1000&&movecontact
trigger18 = stateno = 1003&&movecontact
trigger19 = stateno = 1004&&movecontact

;Super
[State -1, Super]
type = ChangeState
value = 2070
triggerall =  AILevel <=0
triggerall = command = "Super"
triggerall = power >= 2000
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact
trigger14 = stateno = 1000&&movecontact
trigger15 = stateno = 1003&&movecontact
trigger16 = stateno = 1004&&movecontact
trigger17 = stateno = 1007&&movecontact

;EXstrike
[State -1, EXstrike]
type = ChangeState
value = 3058
triggerall =  AILevel <=2
triggerall = command = "EXstrike"
triggerall = power >= 500
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;airstrike
[State -1, airstrike]
type = ChangeState
value = 3050
triggerall = AILevel <=1
triggerall = command = "airstrike"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;airstrike2
[State -1, airstrike2]
type = ChangeState
value = 3053
triggerall = AILevel <=1
triggerall = command = "airstrike2"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;airstrike3
[State -1, airstrike3]
type = ChangeState
value = 30533
triggerall =  AILevel <=1
triggerall = command = "airstrike3"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;EXshoulder
[State -1, EXshoulder]
type = ChangeState
value = 1090
triggerall =  AILevel <=2
triggerall = command = "EXshoulder"
triggerall = power >= 500
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;EXDash
[State -1, EXDash]
type = ChangeState
value = 1012
triggerall =  AILevel <=2
triggerall = command = "EXdash"
triggerall = power >= 500
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;shoulder
[State -1, shoulder]
type = ChangeState
value = 1050
triggerall =  AILevel <=1
triggerall = command = "shoulder"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;shoulder2
[State -1, shoulder2]
type = ChangeState
value = 1060
triggerall = AILevel <=1
triggerall = command = "shoulder2"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;shoulder3
[State -1, shoulder3]
type = ChangeState
value = 1070
triggerall =  AILevel <=1
triggerall = command = "shoulder3"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;beastthrow
[State -1, beastthrow]
type = ChangeState
value = 30000
triggerall = AILevel <=1
triggerall = command = "beastthrow"
triggerall = statetype!=A
trigger1=ctrl

;elbowstrike
[State -1, elbowstrike]
type = ChangeState
value = 3056
triggerall =  AILevel <=1
triggerall = command = "holdup"
triggerall = command = "z" || command = "y"|| command = "x"
triggerall = stateno != 1006
triggerall = stateno != 1005
trigger1 = (stateno = 1000) && movehit
trigger2 = (stateno = 1000) && time >= 15
trigger3 = (stateno = 1003) && movehit
trigger4 = (stateno = 1003) && time >= 13
trigger5 = (stateno = 1004) && movehit
trigger6 = (stateno = 1004) && time >= 11

;strike
[State -1, strike]
type = ChangeState
value = 4000
triggerall =  AILevel <=1
triggerall = command = "strike"|| command = "strike2"||command = "strike3"
triggerall = statetype!=A
trigger1=ctrl

;beastpunch2
[State -1, beastpunch2]
type = ChangeState
value = 2030
triggerall = AILevel <=1
triggerall = command = "beastpunch2"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;beastpunch
[State -1, beastpunch]
type = ChangeState
value = 2020
triggerall =  AILevel <=1
triggerall = command = "beastpunch"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;beastchop
[State -1, beastchop]
type = ChangeState
value = 2010
triggerall =  AILevel <=1
triggerall = command = "beastchop"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;Dash
[State -1, Dash]
type = ChangeState
value = 1000
triggerall =  AILevel <=1
triggerall = command = "dash"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;Dash2
[State -1, Dash2]
type = ChangeState
value = 1003
triggerall = AILevel <=1
triggerall = command = "dash2"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;Dash3
[State -1, Dash3]
type = ChangeState
value = 1004
triggerall = AILevel <=1
triggerall = command = "dash3"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200&&movecontact
trigger3 = stateno = 210&&movecontact
trigger4 = stateno = 222&&movecontact
trigger5 = stateno = 220&&movecontact
trigger6 = stateno = 230&&movecontact
trigger7 = stateno = 240&&movecontact
trigger8 = stateno = 250&&movecontact
trigger9 = stateno = 400&&movecontact
trigger10 = stateno = 410&&movecontact
trigger11 = stateno = 420&&movecontact
trigger12 = stateno = 430&&movecontact
trigger13 = stateno = 440&&movecontact

;DashBack
[State -1, DashBack]
type = ChangeState
value = 1008
triggerall =  AILevel <=1
triggerall = command = "holdback"
triggerall = command = "c" || command = "b"|| command = "a"
triggerall = stateno != 1006
triggerall = stateno != 1005
trigger1 = (stateno = 1000) && movehit
trigger2 = (stateno = 1000) && time >= 15
trigger3 = (stateno = 1003) && movehit
trigger4 = (stateno = 1003) && time >= 13
trigger5 = (stateno = 1004) && movehit
trigger6 = (stateno = 1004) && time >= 11

;Dashkick
[State -1, Dashkick]
type = ChangeState
value = 1010
triggerall =  AILevel <=1
triggerall = command = "c" || command = "b"|| command = "a"
triggerall = stateno != 1006
triggerall = stateno != 1005
trigger1 = (stateno = 1000) && movehit
trigger2 = (stateno = 1000) && time >= 15
trigger3 = (stateno = 1003) && movehit
trigger4 = (stateno = 1003) && time >= 13
trigger5 = (stateno = 1004) && movehit
trigger6 = (stateno = 1004) && time >= 11

;DashPunch
[State -1, DashPunch]
type = ChangeState
value = 1007
triggerall =  AILevel <=1
triggerall = command = "z" || command = "y"|| command = "x"
triggerall = stateno != 1006
triggerall = stateno != 1005
trigger1 = (stateno = 1000) && movehit
trigger2 = (stateno = 1000) && time >= 15
trigger3 = (stateno = 1003) && movehit
trigger4 = (stateno = 1003) && time >= 13
trigger5 = (stateno = 1004) && movehit
trigger6 = (stateno = 1004) && time >= 11

;OH
[State -1, OH]
type = ChangeState
value = 280
triggerall = AILevel <=1
triggerall = command = "y" && command = "b"
triggerall = statetype!=A
trigger1=ctrl

;===========================================================================
;---------------------------------------------------------------------------
;launch
[State -1, upfwd]
Type = changestate
value = 40000
triggerall = AILevel =0
triggerall = command = "upfwd"
trigger1 = (StateNo = 420)
trigger1 = movehit
;===========================================================================
;---------------------------------------------------------------------------
; Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = AILevel =0
trigger1 = command = "FF"
triggerall = statetype!=A
trigger1=ctrl

;---------------------------------------------------------------------------
; Run Back
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = AILevel =0
trigger1 = command = "BB"
triggerall = statetype!=A
trigger1=ctrl

;---------------------------------------------------------------------------
; Throw
[State -1, Throw]
type = ChangeState
value = 800
triggerall =  AILevel <=2
triggerall = command = "toss"
triggerall = statetype!=A
trigger1=ctrl
;===========================================================================
;---------------------------------------------------------------------------
; Taunt
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = AILevel =0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
triggerall = command = "s"
trigger1 = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
; Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = AILevel =0
triggerall = command = "x"
triggerall = command != "holddown"
triggerall = statetype!=A
trigger1=ctrl

;---------------------------------------------------------------------------
;Stand Medium Punch
[State -1, Stand Medium Punch]
type = ChangeState
value = 210
triggerall = AILevel =0
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 400
trigger4 = movecontact
trigger5 = stateno = 430
trigger5 = movecontact

;---------------------------------------------------------------------------
; Close Stand Strong Punch 2
[State -1, Close Stand Strong Punch 2]
type = ChangeState
value = 222
triggerall = AILevel =0
triggerall = command = "z"
triggerall = command = "holdback"
triggerall = command != "holddown"
triggerall = statetype!=A
trigger1=ctrl

;---------------------------------------------------------------------------
; Close Stand Strong Punch
[State -1, Close Stand Strong Punch]
type = ChangeState
value = 222
triggerall = AILevel =0
triggerall = command = "z"
triggerall = p2bodydist x <= 10
triggerall = command != "holddown"
triggerall = statetype!=A
trigger1=ctrl

;---------------------------------------------------------------------------
;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 220
triggerall = AILevel =0
triggerall = command = "z"
triggerall = command != "holddown"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 210 && movecontact
trigger3 = stateno = 240 && movecontact
trigger4 = stateno = 410 && movecontact
trigger5 = stateno = 440 && movecontact
trigger6 = stateno = 200 && movecontact
trigger7 = stateno = 230 && movecontact
trigger8 = stateno = 400 && movecontact
trigger9 = stateno = 430 && movecontact

;---------------------------------------------------------------------------
; Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = AILevel =0
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = statetype!=A
trigger1=ctrl
;---------------------------------------------------------------------------
; Standing Medium Kick
[State -1, Standing Medium Kick]
type = ChangeState
value = 240
triggerall = AILevel =0
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 400
trigger4 = movecontact
trigger5 = stateno = 430
trigger5 = movecontact

;---------------------------------------------------------------------------
; Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 250
triggerall = AILevel =0
triggerall = command = "c"
triggerall = command != "holddown"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 210 && movecontact
trigger3 = stateno = 240 && movecontact
trigger4 = stateno = 410 && movecontact
trigger5 = stateno = 440 && movecontact
trigger6 = stateno = 200 && movecontact
trigger7 = stateno = 230 && movecontact
trigger8 = stateno = 400 && movecontact
trigger9 = stateno = 430 && movecontact

;---------------------------------------------------------------------------
; Crouching Light Punch
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = AILevel =0
triggerall = command = "x"
triggerall = command = "holddown"
triggerall = statetype!=A
trigger1=ctrl

;---------------------------------------------------------------------------
; Crouching Medium Punch
[State -1, Crouching Medium Punch]
type = ChangeState
value = 410
triggerall = AILevel =0
triggerall = command = "y"
triggerall = command = "holddown"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 400
trigger4 = movecontact
trigger5 = stateno = 430
trigger5 = movecontact

;---------------------------------------------------------------------------
; Crouching Strong Punch
[State -1, Crouching Strong Punch]
type = ChangeState
value = 420
triggerall = AILevel =0
triggerall = command = "z"
triggerall = command = "holddown"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 210 && movecontact
trigger3 = stateno = 240 && movecontact
trigger4 = stateno = 410 && movecontact
trigger5 = stateno = 440 && movecontact
trigger6 = stateno = 200 && movecontact
trigger7 = stateno = 230 && movecontact
trigger8 = stateno = 400 && movecontact
trigger9 = stateno = 430 && movecontact

;---------------------------------------------------------------------------
; Crouching Light Kick
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = AILevel =0
triggerall = command = "a"
triggerall = command = "holddown"
triggerall = statetype!=A
trigger1=ctrl

;---------------------------------------------------------------------------
; Crouching Medium Kick
[State -1, Crouching Medium Kick]
type = ChangeState
value = 440
triggerall = AILevel =0
triggerall = command = "b"
triggerall = command = "holddown"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 200
trigger2 = movecontact
trigger3 = stateno = 230
trigger3 = movecontact
trigger4 = stateno = 400
trigger4 = movecontact
trigger5 = stateno = 430
trigger5 = movecontact

;---------------------------------------------------------------------------
; Crouching Strong Kick
[State -1, Crouching Strong Kick]
type = ChangeState
value = 450
triggerall = AILevel =0
triggerall = command = "c"
triggerall = command = "holddown"
triggerall = statetype!=A
trigger1=ctrl
trigger2 = stateno = 210 && movecontact
trigger3 = stateno = 240 && movecontact
trigger4 = stateno = 410 && movecontact
trigger5 = stateno = 440 && movecontact
trigger6 = stateno = 200 && movecontact
trigger7 = stateno = 230 && movecontact
trigger8 = stateno = 400 && movecontact
trigger9 = stateno = 430 && movecontact

;---------------------------------------------------------------------------
; Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = AILevel =0
triggerall = command = "x"
triggerall = statetype=A
trigger1=ctrl
;---------------------------------------------------------------------------
;Jump Medium Punch
[State -1, Jump Medium Punch]
type = ChangeState
value = 610
triggerall = AILevel =0
triggerall = command = "y"
triggerall = statetype=A
trigger1=ctrl
trigger2 = stateno = 600
trigger2 = movecontact
trigger3 = stateno = 630
trigger3 = movecontact

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 620
triggerall = AILevel =0
triggerall = command = "z"
triggerall = statetype=A
trigger1=ctrl
trigger2 = stateno = 610
trigger2 = movecontact
trigger3 = stateno = 640
trigger3 = movecontact
trigger4 = stateno = 600
trigger4 = movecontact
trigger5 = stateno = 630
trigger5 = movecontact

;---------------------------------------------------------------------------
; Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = AILevel =0
triggerall = command = "a"
triggerall = statetype=A
trigger1=ctrl

;---------------------------------------------------------------------------
;Jump Medium Kick
[State -1, Jump Medium Kick]
type = ChangeState
value = 640
triggerall = AILevel =0
triggerall = command = "b"
triggerall = statetype=A
trigger1=ctrl
trigger2 = stateno = 600
trigger2 = movecontact
trigger3 = stateno = 630
trigger3 = movecontact

;---------------------------------------------------------------------------
;Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 650
triggerall = AILevel =0
triggerall = command = "c"
triggerall = statetype=A
trigger1=ctrl
trigger2 = stateno = 610
trigger2 = movecontact
trigger3 = stateno = 640
trigger3 = movecontact
trigger4 = stateno = 600
trigger4 = movecontact
trigger5 = stateno = 630
trigger5 = movecontact

;---------------------------------------------------------------------------
;Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 700
triggerall = (AILevel =0)
triggerall = command = "x"
triggerall = statetype = A
trigger1 = stateno = 100
trigger2 = stateno = 105

;---------------------------------------------------------------------------
;Jump Medium Punch
[State -1, Jump Medium Punch]
type = ChangeState
value = 710
triggerall = (AILevel =0)
triggerall = command = "y"
triggerall = statetype = A
trigger1 = stateno = 100
trigger2 = stateno = 105

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 720
triggerall = (AILevel =0)
triggerall = command = "z"
triggerall = statetype = A
trigger1 = stateno = 100
trigger2 = stateno = 105

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 730
triggerall = (AILevel =0)
triggerall = command = "a"
triggerall = statetype = A
trigger1 = stateno = 100
trigger2 = stateno = 105

;---------------------------------------------------------------------------
;Jump Medium Kick
[State -1, Jump Medium Kick]
type = ChangeState
value = 740
triggerall = (AILevel =0)
triggerall = command = "b"
triggerall = statetype = A
trigger1 = stateno = 100
trigger2 = stateno = 105

;---------------------------------------------------------------------------
;Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 750
triggerall = (AILevel =0)
triggerall = command = "c"
triggerall = statetype = A
trigger1 = stateno = 100
trigger2 = stateno = 105

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

