; The CMD file.
;
; Two parts: 1. Command definition and  2. State entry
; (state entry is after the commands def section)
;
; 1. Command definition
; ---------------------
; Note: The commands are CASE-SENSITIVE, and so are the command names.
; The eight directions are:
;   B, DB, D, DF, F, UF, U, UB     (all CAPS)
;   corresponding to back, down-back, down, downforward, etc.
; The six buttons are:
;   a, b, c, x, y, z               (all lower case)
;   In default key config, abc are are the bottom, and xyz are on the
;   top row. For 2 button characters, we recommend you use a and b.
;   For 6 button characters, use abc for kicks and xyz for punches.
;
; Each [Command] section defines a command that you can use for
; state entry, as well as in the CNS file.
; The command section should look like:
;
;   [Command]
;   name = some_name
;   command = the_command
;   time = time (optional -- defaults to 15 if omitted)
;
; - some_name
;   A name to give that command. You'll use this name to refer to
;   that command in the state entry, as well as the CNS. It is case-
;   sensitive (QCB_a is NOT the same as Qcb_a or QCB_A).
;
; - command
;   list of buttons or directions, separated by commas.
;   Directions and buttons can be preceded by special characters:
;   slash (/) - means the key must be held down
;          egs. command = /D       ;hold the down direction
;               command = /DB, a   ;hold down-back while you press a
;   tilde (~) - to detect key releases
;          egs. command = ~a       ;release the a button
;               command = ~D, F, a ;release down, press fwd, then a
;          If you want to detect "charge moves", you can specify
;          the time the key must be held down for (in game-ticks)
;          egs. command = ~30a     ;hold a for at least 30 ticks, then release
;   dollar ($) - Direction-only: detect as 4-way
;          egs. command = $D       ;will detect if D, DB or DF is held
;               command = $B       ;will detect if B, DB or UB is held
;   plus (+) - Buttons only: simultaneous press
;          egs. command = a+b      ;press a and b at the same time
;               command = x+y+z    ;press x, y and z at the same time
;   You can combine them:
;     eg. command = ~30$D, a+b     ;hold D, DB or DF for 30 ticks, release,
;                                  ;then press a and b together
;   It's recommended that for most "motion" commads, eg. quarter-circle-fwd,
;   you start off with a "release direction". This matches the way most
;   popular fighting games implement their command detection.
;
; - time (optional)
;   Time allowed to do the command, given in game-ticks. Defaults to 15
;   if omitted
;
; If you have two or more commands with the same name, all of them will
; work. You can use it to allow multiple motions for the same move.
;
; Some common commands examples are given below.
;
; [Command] ;Quarter circle forward + x
; name = "QCF_x"
; command = ~D, DF, F, x
;
; [Command] ;Half circle back + a
; name = "HCB_a"
; command = ~F, DF, D, DB, B, a
;
; [Command] ;Two quarter circles forward + y
; name = "2QCF_y"
; command = ~D, DF, F, D, DF, F, y
;
; [Command] ;Tap b rapidly
; name = "5b"
; command = b, b, b, b, b
; time = 30
;
; [Command] ;Charge back, then forward + z
; name = "charge_B_F_z"
; command = ~60$B, F, z
; time = 10
; 
; [Command] ;Charge down, then up + c
; name = "charge_D_U_c"
; command = ~60$D, U, c
; time = 10
; 
               -
;-| 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
;-| A I |------------------------------------------------------------------
[Command]
name = "cpu1"
command = U, U, U, U,s
time = 1
[Command]
name = "cpu2"
command = U, U, U, D,s
time = 1
[Command]
name = "cpu3"
command = U, U, D, D,s
time = 1
[Command]
name = "cpu4"
command = U, D, D, D,s
time = 1
[Command]
name = "cpu5"
command = D, D, D, D,s
time = 1
[Command]
name = "cpu6"
command = D, D, D, U,s
time = 1
[Command]
name = "cpu7"
command = D, D, U, U,s
time = 1
[Command]
name = "cpu8"
command = D, U, U, U,s
time = 1
[Command]
name = "cpu9"
command = U, D, U, U,s
time = 1
[Command]
name = "cpu10"
command = U, U, D, U,s
time = 1
[Command]
name = "cpu11"
command = D, U, U, D,s
time = 1
[Command]
name = "cpu12"
command = U, D, D, U,s
time = 1
[Command]
name = "cpu13"
command = D, U, D, U,s
time = 1
[Command]
name = "cpu14"
command = U, D, U, D,s
time = 1
[Command]
name = "cpu15"
command = F, F, F, F,s
time = 1
[Command]
name = "cpu16"
command = B, B, B, B,s
time = 1
[Command]
name = "cpu17"
command = F, B, F, F,s
time = 1
[Command]
name = "cpu18"
command = F, F, B, F,s
time = 1
[Command]
name = "cpu19"
command = B, F, F, F,s
time = 1
[Command]
name = "cpu20"
command = F, F, F, B,s
time = 1
[Command]
name = "cpu21"
command = F, B, B, F,s
time = 1
[Command]
name = "cpu22"
command = B, F, F, B,s
time = 1
[Command]
name = "cpu23"
command = F, B, F, B,s
time = 1
[Command]
name = "cpu24"
command = B, F, B, F,s
time = 1
[Command]
name = "cpu25"
command = D, F, D, F,s
time = 1
[Command]
name = "cpu26"
command = D, F, D, F,s,a
time = 1
[Command]
name = "cpu27"
command = D, F, D, F,s,x
time = 1
[Command]
name = "cpu28"
command = D, F, D, F,s,c
time = 1
[Command]
name = "cpu29"
command = D, F, D, F,s,b
time = 1
[Command]
name = "cpu30"
command = D, F, D, F,s,y
time = 1

[Command]
name = "cpu31"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu32"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu33"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu34"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu35"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu36"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu37"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu38"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu39"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu40"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu41"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu42"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu43"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu44"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu45"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu46"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu47"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu48"
command = s,D, F, D, F,s,y
time = 1
[Command]
name = "cpu49"
command = s,D, F, D, F,s,y
time = 1
;[Command]
;name = "cpu50"
;command = s,D, F, D, F,s,y
;time = 1
;[Command]
;name = "cpu51"
;command = s,D, F, D, F,s,y
;time = 1
;[Command]
;name = "cpu52"
;command = s,D, F, D, F,s,y
;time = 1

;-| Super Motions |--------------------------------------------------------
[command]
name = "hyper31"
command = ~D,F,D,F,x
time = 20

[command]
name = "hyper32"
command = ~D,F,D,F,y
time = 20

[command]
name = "gunflame1"
command = ~D,F,D,F,a
time = 20

[command]
name = "gunflame2"
command = ~D,F,D,F,c
time = 20

[command]
name = "hyperexplod"
command = ~D,B,D,B,x
time = 20

[command]
name = "order"
command = ~D,B,D,B,z
time = 20

[command]
name = "hypercombof"
command = ~D,F,D,B,x
time = 20

[command]
name = "hypercombom"
command = ~D,F,D,B,y
time = 20

[command]
name = "hypercombo"
command = ~D,F,D,B,z
time = 20

[Command]
name="tim"
command=x,x,F,a,z
time=48
[Command]
name="tim"
command=x,x,F,a+z
time=40
[Command]
name="tim"
command=x,x,F+a+z
time=32

;-| Special Motions |------------------------------------------------------
[command]
name = "shorknfraco"
command = ~F,D,DF,x
time = 12

[command]
name = "shorknmedio"
command = ~F,D,DF,y
time = 12

[command]
name = "shorknforte"
command = ~F,D,DF,z
time = 12

[command]
name = "fireflamex"
command = ~D,DF,F,x
time = 12

[command]
name = "fireflamey"
command = ~D,DF,F,y
time = 12

[command]
name = "fireflamez"
command = ~D,DF,F,z
time = 12

[command]
name = "avançoretox"
command = ~D,DB,B,x
time = 12

[command]
name = "avançoretoy"
command = ~D,DB,B,y
time = 12

[command]
name = "avançoretoz"
command = ~D,DB,B,z
time = 12

[command]
name = "avançobaixoa"
command = ~D,DB,B,a
time = 12

[command]
name = "avançobaixob"
command = ~D,DB,B,b
time = 12

[command]
name = "avançobaixoc"
command = ~D,DB,B,c
time = 12

[command]
name = "diporvaa"
command = ~D,DF,F,a
time = 12

[command]
name = "diporvab"
command = ~D,DF,F,b
time = 12

[command]
name = "diporvac"
command = ~D,DF,F,c
time = 12

;-| 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 = "deflect"
command = x+a
time = 1

[command]
name = "carregar"
command = b+y
time = 1

[Command]
name = "esquiva"
command = z+c
time = 1

[Command]
name = "recovery" ;Required (do not remove)
command = x+y
time = 1

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

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

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

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

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

;-| Dir + Button |---------------------------------------------------------
[command]
name = "bfsocomedio"
command = B,F,y
time = 12

[command]
name = "bfsocoforte"
command = B,F,z
time = 12

[command]
name = "bfchutemedio"
command = B,F,b
time = 12

[command]
name = "bfchuteforte"
command = B,F,c
time = 12

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

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

;A.I.
[State -1, A.I.]
type = VarSet
v = 7
value = 1
trigger1 = command = "cpu1"
trigger2 = command = "cpu2"
trigger3 = command = "cpu3"
trigger4 = command = "cpu4"
trigger5 = command = "cpu5"
trigger6 = command = "cpu6"
trigger7 = command = "cpu7"
trigger8 = command = "cpu8"
trigger9 = command = "cpu9"
trigger10 = command = "cpu10"
trigger11 = command = "cpu11"
trigger12 = command = "cpu12"
trigger13 = command = "cpu13"
trigger14 = command = "cpu14"
trigger15 = command = "cpu15"
trigger16 = command = "cpu16"
trigger17 = command = "cpu17"
trigger18 = command = "cpu18"
trigger19 = command = "cpu19"
trigger20 = command = "cpu20"
trigger21 = command = "cpu21"
trigger22 = command = "cpu22"
trigger23 = command = "cpu23"
trigger24 = command = "cpu24"
trigger25 = command = "cpu25"
trigger26 = command = "cpu26"
trigger27 = command = "cpu27"
trigger28 = command = "cpu28"
trigger29 = command = "cpu29"
trigger30 = command = "cpu30"

;A.I. 2
[State -1, A.I. 2]
type = VarSet
v = 7
value = 1
trigger1 = command = "cpu31"
trigger2 = command = "cpu32"
trigger3 = command = "cpu33"
trigger4 = command = "cpu34"
trigger5 = command = "cpu35"
trigger6 = command = "cpu36"
trigger7 = command = "cpu37"
trigger8 = command = "cpu38"
trigger9 = command = "cpu39"
trigger10 = command = "cpu40"
trigger11 = command = "cpu41"
trigger12 = command = "cpu42"
trigger13 = command = "cpu43"
trigger14 = command = "cpu44"
trigger15 = command = "cpu45"
trigger16 = command = "cpu46"
trigger17 = command = "cpu47"
trigger18 = command = "cpu48"
trigger19 = command = "cpu49"
;trigger20 = command = "cpu50"
;trigger21 = command = "cpu51"
;trigger22 = command = "cpu52"

[State -1, ficar quieto]
type = ChangeState
value = 0
triggerall = (Var(7)=1)&&(Win=1)
trigger1 = (statetype!=A)&&(ctrl)

;===========================================================================
[State -1, tim AI]
type = ChangeState
value = 1042
triggerall = (var(7)=1)&&(statetype!=A)&&(power>=1000)&&(p2dist x =[10,100])
triggerall = (pos y=0)&&(p2dist y=0)&&(p2movetype!=A)&&(p2statetype!=A)&&(random<=80)
trigger1 = (moveguarded)&&(p2movetype=H)

[State -1, tim]
type = ChangeState
value = 1042
triggerall = (var(7)!=1)&&(command="tim")&&(statetype=S)&&(power>=1000)
trigger1 = ctrl
trigger2 = (stateno=200)&&(movecontact);soco fraco
trigger3 = (stateno=210)&&(movecontact);soco medio
trigger4 = (stateno=220)&&(movecontact);soco forte
trigger5 = (stateno=230)&&(movecontact);chute fraco
trigger6 = (stateno=240)&&(movecontact);chute medio
trigger7 = (stateno=250)&&(movecontact);chute forte
trigger8 = (stateno=202)&&(movecontact);frente soco fraco
trigger9 = (stateno=214)&&(movecontact);frente soco medio
trigger10 = (stateno=222)&&(movecontact);frente soco forte
trigger11 = (stateno=232)&&(movecontact);frente chute fraco
trigger12 = (stateno=244)&&(movecontact);frente chute medio
trigger13 = (stateno=252)&&(movecontact);frente chute forte
trigger14 = (stateno=[400,450])&&(movecontact);golpes agachados
trigger15 = (stateno=930)&&(movecontact);hiper 3 ataque 1
trigger16 = (stateno=941)&&(movecontact);hiper 3 ataque 2
trigger17 = (stateno=944)&&(movecontact); hiper 3 ataque 3
trigger18 = (stateno=[1049,1050])&&(movecontact)&&(pos y>=0); hiper gunflame 1 e 2
trigger19 = (stateno=[963,965])&&(time>=15);fireflame
trigger20 = (stateno=[997,1001])&&(stateno!=999)&&(movecontact);avanço reto
trigger21 = (stateno=[1003,1006])&&(movecontact)&&(pos y>=0);avanço baixo
trigger22 = (stateno=1023)&&(movecontact)&&(time<200); hyper combo
trigger23 = (stateno=1029)&&(movecontact); hyper combo fraco
trigger24 =(stateno=1055)&&(movecontact); air hyper combo

;---------------------------------------------------------------------------
[State -1, fatal soco fraco AI]
type = ChangeState
value = 7007
triggerall = (var(7)=1)&&(p2stateno=7001)&&(statetype=s)&&(ctrl)
trigger1 = random = [0,200]

[State -1, fatal soco fraco]
type = ChangeState
value = 7007
triggerall = (var(7)!=1)&&(p2stateno=7001)&&(statetype=s)&&(ctrl)
trigger1 = command = "x"

;---------------------------------------------------------------------------
[State -1, fatal soco medio AI]
type = ChangeState
value = 7011
triggerall = (var(7)=1)&&(p2stateno=7001)&&(statetype=s)&&(ctrl)
trigger1 = random = [201,400]

[State -1, fatal soco medio]
type = ChangeState
value = 7011
triggerall = (var(7)!=1)&&(p2stateno=7001)&&(statetype=s)&&(ctrl)
trigger1 = command = "y"

;---------------------------------------------------------------------------
[State -1, fatal soco forte AI]
type = ChangeState
value = 7003
triggerall = (var(7)=1)&&(p2stateno=7001)&&(statetype=s)&&(ctrl)
trigger1 = random = [401,600]

[State -1, fatal soco forte]
type = ChangeState
value = 7003
triggerall = (var(7)!=1)&&(p2stateno=7001)&&(statetype=s)&&(ctrl)
trigger1 = command = "z"

;---------------------------------------------------------------------------
[State -1, fatal chute fraco AI]
type = ChangeState
value = 7013
triggerall = (var(7)=1)&&(p2stateno=7001)&&(statetype=s)&&(ctrl)
trigger1 = random = [601,800]

[State -1, fatal chute fraco]
type = ChangeState
value = 7013
triggerall = (var(7)!=1)&&(p2stateno=7001)&&(statetype=s)&&(ctrl)
trigger1 = command = "a"

;---------------------------------------------------------------------------
[State -1, fatal chute medio AI]
type = ChangeState
value = 7015
triggerall = (var(7)=1)&&(p2stateno=7001)&&(statetype=s)&&(ctrl)
trigger1 = random = [801,999]

[State -1, fatal chute medio]
type = ChangeState
value = 7015
triggerall = (var(7)!=1)&&(p2stateno=7001)&&(statetype=s)&&(ctrl)
trigger1 = command = "b"

;---------------------------------------------------------------------------
[State -1, order AI]
type = ChangeState
value = 900
triggerall = (var(7)=1)&&(var(1)!=1)&&(power>=1000)
triggerall = (statetype = s) && ctrl
trigger1 = (p2dist x =[-50,50])&&(p2dist y =[-80,0])&&(p2movetype=A)
trigger1 = random = [0,250]

[State -1, order]
type = ChangeState
value = 900
triggerall = (var(7)!=1)&&(var(1)!=1)&&(command="order")&&(power>=1000)
trigger1 = (statetype = s) && ctrl
trigger2 = (stateno=200)&&(movecontact);soco fraco
trigger3 = (stateno=210)&&(movecontact);soco medio
trigger4 = (stateno=220)&&(movecontact);soco forte
trigger5 = (stateno=230)&&(movecontact);chute fraco
trigger6 = (stateno=240)&&(movecontact);chute medio
trigger7 = (stateno=250)&&(movecontact);chute forte
trigger8 = (stateno=202)&&(movecontact);frente soco fraco
trigger9 = (stateno=214)&&(movecontact);frente soco medio
trigger10 = (stateno=222)&&(movecontact);frente soco forte
trigger11 = (stateno=232)&&(movecontact);frente chute fraco
trigger12 = (stateno=244)&&(movecontact);frente chute medio
trigger13 = (stateno=252)&&(movecontact);frente chute forte
trigger14 = (stateno=[400,450])&&(movecontact);golpes agachados
trigger15 = (stateno=930)&&(movecontact);hiper 3 ataque 1
trigger16 = (stateno=941)&&(movecontact);hiper 3 ataque 2
trigger17 = (stateno=944)&&(movecontact); hiper 3 ataque 3
trigger18 = (stateno=[1049,1050])&&(movecontact)&&(pos y>=0); hiper gunflame 1 e 2
trigger19 = (stateno=[963,965])&&(time>=15);fireflame
trigger20 = (stateno=[997,1001])&&(stateno!=999)&&(movecontact);avanço reto
trigger21 = (stateno=[1003,1006])&&(movecontact)&&(pos y >=0);avanço baixo
trigger22 = (stateno=1023)&&(movecontact)&&(time<200); hyper combo
trigger23 = (stateno=1029)&&(movecontact); hyper combo fraco
trigger24 = (stateno=1043)&&(movecontact); TIM
trigger25 =(stateno=1055)&&(movecontact); air hyper combo

;===========================================================================
;---------------------------------------------------------------------------
[State -1, Run Fwd AI]
type = ChangeState
value = 100
triggerall = var (7) = 1
triggerall = stateno != 100
triggerall = (statetype = s) && ctrl
triggerall = p2dist X > 50
;triggerall = p2stateno != 49999
trigger1 = (alive) && (random <= 100)
trigger2 = (p2statetype = A) && (p2dist y <= -70)
;trigger3 = ProjGuardedTime(0) != -1 && ProjGuardedTime(0) < 30; && random <= 50
;trigger4 = prevstateno = 933; && random <= 50
;trigger5 = enemy, Numproj >= 1
;trigger6 = prevstateno = 903; && random <= 50

; Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
triggerall = var(7) != 1
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1, pos run AI]
type = ChangeState
value = 101
triggerall = var (7) = 1
triggerall = stateno = 100
triggerall = (statetype = s) && ctrl
triggerall = p2dist X <= 90
triggerall = p2movetype = A
;triggerall = p2stateno != 49999
trigger1 = (alive) && (random <= 150)
;trigger2 = (p2statetype = A) && (p2dist y <= -70)
;trigger3 = ProjGuardedTime(0) != -1 && ProjGuardedTime(0) < 30; && random <= 50
;trigger4 = prevstateno = 933; && random <= 50
;trigger5 = enemy, Numproj >= 1
;trigger6 = prevstateno = 903; && random <= 50

;---------------------------------------------------------------------------
[State -1, Run Back AI]
type = ChangeState
value = 105
triggerall = var (7) = 1
triggerall = p2dist X <= 100;50
triggerall = stateno != 105
triggerall = statetype = S
triggerall = ctrl
trigger1 = random <= 20
trigger2 = p2stateno = 5120;Get up from LieDown

; Run Back
[State -1, Run Back]
type = ChangeState
value = 105
triggerall = var(7) != 1
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1, Faultless defense]
type = ChangeState
value = ifelse(statetype=A,132,ifelse(statetype=C,131,130))
triggerall = (var(7)!=1)&&(command="holdback")&&(command="hold_x")&&(command="hold_z")
trigger1 = (ctrl)&&(power>0)

;---------------------------------------------------------------------------
[State -1, Throw AI]
type = ChangeState
value = 800
triggerall = var (7) = 1
triggerall = stateno != 800
triggerall = (p2statetype = S) || (p2statetype = C)
triggerall = (statetype = s) && ctrl
triggerall = p2movetype != H
triggerall = stateno != 100
trigger1 = p2bodydist X <= 10
trigger1 = p2bodydist y = 0
trigger1 = random <= 50
trigger2 = p2bodydist X <= 10
trigger2 = p2bodydist y = 0
trigger2 = random <= 200
trigger2 = P2movetype != A

; Throw
[State -1, Throw]
type = ChangeState
value = ifelse(var(1)=1,801,800)
triggerall = (var(7)!=1)&&(statetype=S)&&(command = "throw1")
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1, Throw 2 AI]
type = ChangeState
value = 801
triggerall = var (7) = 1
triggerall = stateno != 801
;triggerall = p2stateno != 49999
triggerall = (p2statetype = S) || (p2statetype = C)
triggerall = (statetype = s) && ctrl
triggerall = p2movetype != H
triggerall = stateno != 100
trigger1 = p2bodydist X <= 10
trigger1 = p2bodydist y = 0
trigger1 = random <= 50
trigger2 = p2bodydist X <= 10
trigger2 = p2bodydist y = 0
trigger2 = P2movetype != A
trigger2 = random <= 200

; Throw 2
[State -1, Throw2]
type = ChangeState
value = ifelse(var(1)=1,800,801)
triggerall = (var(7)!=1)&&(statetype=S)&&(command = "throw2")
trigger1 = ctrl

;---------------------------------------------------------------------------
[State -1, Air Throw AI]
type = ChangeState
value = 802
triggerall = (var(7)=1)&&(statetype=A)&&(p2statetype=A)&&(p2dist x =[0,25])
triggerall = (p2dist y =[-40,30])&&(p2movetype!=A)
trigger1 = (ctrl)&&(random < 500)

; Air Throw
[State -1, Air Throw]
type = ChangeState
value = 802
triggerall = (var(7)!=1)&&(statetype=A)&&(command = "throw1")
trigger1 = ctrl
trigger2 = (stateno=[600,652])&&(movecontact); golpes comuns do ar

;---------------------------------------------------------------------------
[State -1, Air Throw2 AI]
type = ChangeState
value = 803
triggerall = (var(7)=1)&&(statetype=A)&&(p2statetype=A)&&(p2dist x =[0,25])
triggerall = (p2dist y =[-40,30])&&(p2movetype!=A)
trigger1 = (ctrl)&&(random >= 500)

; Air Throw 2
[State -1, Air Throw2]
type = ChangeState
value = 803
triggerall = (var(7)!=1)&&(statetype=A)&&(command = "throw2")
trigger1 = ctrl
trigger2 = (stateno=[600,652])&&(movecontact); golpes comuns do ar

;===========================================================================
;---------------------------------------------------------------------------
; Taunt
[State -1, Taunt]
type = ChangeState
value = 195
triggerall = var(7) != 1
triggerall = command = "s"
trigger1 = statetype != A
trigger1 = ctrl

[State -1, Air dash AI]
type = ChangeState
value = 110
triggerall = var(7) = 1
triggerall = var(3) = 1
triggerall = statetype = A
triggerall = ctrl
triggerall = p2movetype != A
triggerall = p2dist X >= 100
triggerall = random <= 150
trigger1 = stateno = 50
trigger1 = time >= 5
trigger2 = stateno = 105
trigger2 = animelem >= 3

[State -1, Back air dash AI]
type = ChangeState
value = 115
triggerall = var(7) = 1
triggerall = var(3) = 1
triggerall = statetype = A
triggerall = ctrl
triggerall = p2movetype = A
triggerall = p2dist X <= 100
triggerall = random <= 150
trigger1 = stateno = 50
trigger1 = time >= 5
trigger2 = stateno = 105
trigger2 = animelem >= 3

;---------------------------------------------------------------------------
[State -1, hyper 3 ataque 1]
type = ChangeState
value = 930
triggerall = (var(7)!=1)&&(power>=1000)
triggerall = command = "hyper31"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno=[400,450])&&(movecontact);golpes agachados
trigger15 = (stateno = 941) && (movecontact);hiper 3 ataque 2
trigger16 = (stateno=944)&&(movecontact); hiper 3 ataque 3
trigger17 = (stateno=[1049,1050])&&(movecontact)&&(pos y>=0); hiper gunflame 1 e 2
trigger18 = (stateno = [963,965]) && (time>=15);fireflame
trigger19 = (stateno = [997,1001]) && (movecontact);avanço reto
trigger20 = (stateno = [1003,1006]) && (movecontact);avanço baixo
trigger21 = (stateno=1023)&&(movecontact)&&(time<200); hyper combo
trigger22 = (stateno=1029)&&(movecontact); hyper combo fraco
trigger23 = (stateno=1043)&&(movecontact); TIM
trigger24 =(stateno=1055)&&(movecontact); air hyper combo

;---------------------------------------------------------------------------
[State -1, hyper 3 ataque 2]
type = ChangeState
value = 941
triggerall = (var(7)!=1)&&(power>=1000)
triggerall = command = "hyper32"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno=[400,450])&&(movecontact);golpes agachados
trigger15 = (stateno=944)&&(movecontact); hiper 3 ataque 3
trigger16 = (stateno=[1049,1050])&&(movecontact)&&(pos y>=0); hiper gunflame 1 e 2
trigger17 = (stateno = [963,965]) && (time>=15);fireflame
trigger18 = (stateno = [997,1001]) && (movecontact);avanço reto
trigger19 = (stateno = [1003,1006]) && (movecontact);avanço baixo
trigger20 = (stateno=1023)&&(movecontact)&&(time<200); hyper combo
trigger21 = (stateno=1029)&&(movecontact); hyper combo fraco
trigger22 = (stateno=1043)&&(movecontact); TIM
trigger23 =(stateno=1055)&&(movecontact); air hyper combo

;---------------------------------------------------------------------------
[State -1, hyper gunflame AI]
type=ChangeState
value=ifelse(power>=2000,1050,1049)
triggerall = (var(7)=1)&&(power>=1000)&&(p2movetype=A)&&(p2statetype=A)
triggerall = (statetype=S)&&(ctrl)&&(p2dist x=[70,120])&&(p2dist y=[-130,-60])
trigger1 = random = [0,250]

[State -1, hyper gunflame 1]
type=ChangeState
value=1049
triggerall=(var(7)!=1)&&(power>=1000)&&(command="gunflame1")&&(statetype=S)
trigger1=ctrl
trigger2 = (stateno=200)&&(movecontact); soco fraco
trigger3 = (stateno=210)&&(movecontact); soco medio
trigger4 = (stateno=220)&&(movecontact); soco forte
trigger5 = (stateno=230)&&(movecontact); chute fraco
trigger6 = (stateno=240)&&(movecontact); chute medio
trigger7 = (stateno=250)&&(movecontact); chute forte
trigger8 = (stateno=202)&&(movecontact); frente soco fraco
trigger9 = (stateno=214)&&(movecontact); frente soco medio
trigger10 = (stateno=222)&&(movecontact); frente soco forte
trigger11 = (stateno=232)&&(movecontact); frente chute fraco
trigger12 = (stateno=244)&&(movecontact); frente chute medio
trigger13 = (stateno=252)&&(movecontact); frente chute forte
trigger14 = (stateno=[400,450])&&(movecontact); golpes agachados
trigger15 = (stateno=930)&&(movecontact); hiper 3
trigger16 = (stateno=941)&&(movecontact); hiper 3 ataque 2
trigger17 = (stateno=944)&&(movecontact); hiper 3 ataque 3
trigger18 = (stateno=1023)&&(movecontact)&&(time<200); hyper combo
trigger19 = (stateno=[963,965])&&(time>=15); fireflames
trigger20 = (stateno=[997,1001])&&(movecontact); avanço reto
trigger21 = (stateno=[1003,1006])&&(movecontact); avanço baixo
trigger22 = (stateno=1029)&&(movecontact); hyper combo fraco;testar
trigger23 = (stateno=1050)&&(movecontact)&&(pos y=0); hyper gunflame 2
trigger24 = (stateno=1043)&&(movecontact); TIM
trigger25 =(stateno=1055)&&(movecontact); air hyper combo

;---------------------------------------------------------------------------
[State -1, hyper gunflame 2]
type=ChangeState
value=1050
triggerall=(var(7)!=1)&&(power>=2000)&&(command="gunflame2")&&(statetype=S)
trigger1=ctrl
trigger2 = (stateno=200)&&(movecontact); soco fraco
trigger3 = (stateno=210)&&(movecontact); soco medio
trigger4 = (stateno=220)&&(movecontact); soco forte
trigger5 = (stateno=230)&&(movecontact); chute fraco
trigger6 = (stateno=240)&&(movecontact); chute medio
trigger7 = (stateno=250)&&(movecontact); chute forte
trigger8 = (stateno=202)&&(movecontact); frente soco fraco
trigger9 = (stateno=214)&&(movecontact); frente soco medio
trigger10 = (stateno=222)&&(movecontact); frente soco forte
trigger11 = (stateno=232)&&(movecontact); frente chute fraco
trigger12 = (stateno=244)&&(movecontact); frente chute medio
trigger13 = (stateno=252)&&(movecontact); frente chute forte
trigger14 = (stateno=[400,450])&&(movecontact); golpes agachados
trigger15 = (stateno=930)&&(movecontact); hiper 3
trigger16 = (stateno=941)&&(movecontact); hiper 3 ataque 2
trigger17 = (stateno=944)&&(movecontact); hiper 3 ataque 3
trigger18 = (stateno=[963,965])&&(time>=15); fireflames
trigger19 = (stateno=[997,1001])&&(movecontact); avanço reto
trigger20 = (stateno=[1003,1006])&&(movecontact); avanço baixo
trigger21 = (stateno=1029)&&(movecontact); hyper combo fraco;testar
trigger22 = (stateno=1049)&&(movecontact); hyper gunflame 1
trigger23 = (stateno=1043)&&(movecontact); TIM

;---------------------------------------------------------------------------
[State -1, hyper combo fraco AI]
type = ChangeState
value = ifelse(random<375,1028,1045)
triggerall = (var(7)=1)&&(power>=1000)&&(p2movetype=A)&&(p2statetype!=A)
triggerall = (statetype=S)&&(ctrl)&&(p2dist x < 160)
trigger1 = random = [251,500]

[State -1, hyper combo fraco]
type = ChangeState
value = 1028
triggerall = (var(7)!=1)&&(power>=1000)
triggerall = command = "hypercombof"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = (stateno=200)&&(movecontact); soco fraco
trigger3 = (stateno=210)&&(movecontact); soco medio
trigger4 = (stateno=220)&&(movecontact); soco forte
trigger5 = (stateno=230)&&(movecontact); chute fraco
trigger6 = (stateno=240)&&(movecontact); chute medio
trigger7 = (stateno=250)&&(movecontact); chute forte
trigger8 = (stateno=202)&&(movecontact); frente soco fraco
trigger9 = (stateno=214)&&(movecontact); frente soco medio
trigger10 = (stateno=222)&&(movecontact); frente soco forte
trigger11 = (stateno=232)&&(movecontact); frente chute fraco
trigger12 = (stateno=244)&&(movecontact); frente chute medio
trigger13 = (stateno=252)&&(movecontact); frente chute forte
trigger14 = (stateno=[400,450])&&(movecontact); golpes agachados
trigger15 = (stateno=930)&&(movecontact); hiper 3
trigger16 = (stateno=941)&&(movecontact); hiper 3 ataque 2
trigger17 = (stateno=944)&&(movecontact); hiper 3 ataque 3
trigger18 = (stateno=[1049,1050])&&(movecontact)&&(pos y>=0); hiper gunflame 1 e 2
trigger19 = (stateno=[963,965])&&(time>=15); fireflame
trigger20 = (stateno=[997,1001])&&(movecontact); avanço reto
trigger21 = (stateno=[1003,1006])&&(movecontact); avanço baixo
trigger22 = (stateno=1023)&&(movecontact)&&(time<200); hyper combo
trigger23 = (stateno=1029)&&(movecontact)&&(animelemtime(36)>1); hyper combo fraco;testar
trigger24 = (stateno=1043)&&(movecontact); TIM
trigger25 =(stateno=1055)&&(movecontact); air hyper combo

[State -1, hyper combo medio]
type = ChangeState
value = 1045
triggerall = (var(7)!=1)&&(power>=1000)
triggerall = command = "hypercombom"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = (stateno=200)&&(movecontact); soco fraco
trigger3 = (stateno=210)&&(movecontact); soco medio
trigger4 = (stateno=220)&&(movecontact); soco forte
trigger5 = (stateno=230)&&(movecontact); chute fraco
trigger6 = (stateno=240)&&(movecontact); chute medio
trigger7 = (stateno=250)&&(movecontact); chute forte
trigger8 = (stateno=202)&&(movecontact); frente soco fraco
trigger9 = (stateno=214)&&(movecontact); frente soco medio
trigger10 = (stateno=222)&&(movecontact); frente soco forte
trigger11 = (stateno=232)&&(movecontact); frente chute fraco
trigger12 = (stateno=244)&&(movecontact); frente chute medio
trigger13 = (stateno=252)&&(movecontact); frente chute forte
trigger14 = (stateno=[400,450])&&(movecontact); golpes agachados
trigger15 = (stateno=930)&&(movecontact); hiper 3
trigger16 = (stateno=941)&&(movecontact); hiper 3 ataque 2
trigger17 = (stateno=944)&&(movecontact); hiper 3 ataque 3
trigger18 = (stateno=[1049,1050])&&(movecontact)&&(pos y>=0); hiper gunflame 1 e 2
trigger19 = (stateno=[963,965])&&(time>=15); fireflame
trigger20 = (stateno=[997,1001])&&(movecontact); avanço reto
trigger21 = (stateno=[1003,1006])&&(movecontact); avanço baixo
trigger22 = (stateno=1023)&&(movecontact)&&(time<200); hyper combo
trigger23 = (stateno=1029)&&(movecontact)&&(animelemtime(86)>0); hyper combo fraco
trigger24 = (stateno=1043)&&(movecontact); TIM
trigger25 =(stateno=1055)&&(movecontact); air hyper combo

;---------------------------------------------------------------------------
[State -1, hyper combo AI]
type = ChangeState
value = 1022
triggerall = (var(7)=1)&&(power>=2000)&&(p2movetype=A)&&(p2statetype!=A)
triggerall = (statetype=S)&&(ctrl)
trigger1 = random = [251,500]

[State -1, hyper combo]
type = ChangeState
value = 1022
triggerall = (var(7)!=1)&&(power>=2000)
triggerall = command = "hypercombo"
triggerall = statetype = S
trigger1 = ctrl
trigger2 = (stateno=200)&&(movecontact); soco fraco
trigger3 = (stateno=210)&&(movecontact); soco medio
trigger4 = (stateno=220)&&(movecontact); soco forte
trigger5 = (stateno=230)&&(movecontact); chute fraco
trigger6 = (stateno=240)&&(movecontact); chute medio
trigger7 = (stateno=250)&&(movecontact); chute forte
trigger8 = (stateno=202)&&(movecontact); frente soco fraco
trigger9 = (stateno=214)&&(movecontact); frente soco medio
trigger10 = (stateno=222)&&(movecontact); frente soco forte
trigger11 = (stateno=232)&&(movecontact); frente chute fraco
trigger12 = (stateno=244)&&(movecontact); frente chute medio
trigger13 = (stateno=252)&&(movecontact); frente chute forte
trigger14 = (stateno=[400,450])&&(movecontact); golpes agachados
trigger15 = (stateno=930)&&(movecontact); hiper 3
trigger16 = (stateno=941)&&(movecontact); hiper 3 ataque 2
trigger17 = (stateno=944)&&(movecontact); hiper 3 ataque 3
trigger18 = (stateno=[1049,1050])&&(movecontact)&&(pos y>=0); hiper gunflame 1 e 2
trigger19 = (stateno=[963,965])&&(time>=15); fireflames
trigger20 = (stateno=[997,1001])&&(movecontact); avanço reto
trigger21 = (stateno=[1003,1006])&&(movecontact); avanço baixo
trigger22 = (stateno=1029)&&(movecontact); hyper combo fraco;testar
trigger23 = (stateno=1043)&&(movecontact); TIM

;---------------------------------------------------------------------------
[State -1, air hypercombo 1 e 2 AI]
type = ChangeState
value = ifelse(random<375,1037,1040)
triggerall = (var(7)=1)&&(power>=1000);&&(p2statetype=A)
triggerall = (statetype=A)&&(ctrl)
trigger1 = (random = [251,500])&&(p2movetype=A)
trigger2 = (stateno=[1014,1016])&&(moveguarded)&&(random<=500)

[State -1, air hypercombo 1]
type = ChangeState
value = 1037
triggerall = (var(7)!=1)&&(statetype=A)&&(command="hypercombof")&&(power>=1000)
trigger1 = ctrl
trigger2 = (stateno=[600,652])&&(movecontact); golpes comuns do ar
trigger3 = (stateno=904)&&(movecontact)&&(time>89); hyper explod
trigger4 = (stateno=[910,912])&&(movecontact); shoryuken
trigger5 = (stateno=[921,923])&&(movecontact); kick pos shoryuken
trigger6 = (stateno=212)&&(movecontact); tf soco medio
trigger7 = (stateno=242)&&(movecontact); tf chute medio
trigger8 = (stateno=1023)&&(movecontact)&&(animelem>=138);hypercombo
trigger9 = (stateno=1030)&&(movecontact);hypercombo final
trigger10 = (stateno=1027)&&(movecontact);chute voador
trigger11= (stateno=999)&&(movecontact);avanço reto alto
trigger12 = (stateno=1006)&&(movecontact)&&(animelem>=5);avanço baixo pro sol
trigger13 = (stateno=[1014,1016])&&(movecontact);diporvas
trigger14 = (stateno=[1024,1026])&&(movecontact);voadoras
trigger15 = (stateno=[1017,1019])&&(animelem>=4);air fireflames
trigger16 = (stateno=909)&&(movecontact);esquiva aérea
trigger17=(stateno=1050)&&(movecontact)&&(pos y<0); hiper gunflame 2
trigger18 =(stateno=1052)&&(movecontact)&&(animelemtime(9)>0); air hyper combo

;---------------------------------------------------------------------------
[State -1, air hypercombo 2]
type = ChangeState
value = 1040
triggerall = (var(7)!=1)&&(statetype=A)&&(command="hypercombom")&&(power>=1000)
trigger1 = ctrl
trigger2 = (stateno=[600,652])&&(movecontact); golpes comuns do ar
trigger3 = (stateno=904)&&(movecontact)&&(time>89); hyper explod
trigger4 = (stateno=[910,912])&&(movecontact); shoryuken
trigger5 = (stateno=[921,923])&&(movecontact); kick pos shoryuken
trigger6 = (stateno=212)&&(movecontact); tf soco medio
trigger7 = (stateno=242)&&(movecontact); tf chute medio
trigger8 = (stateno=1023)&&(movecontact)&&(animelem>=138);hypercombo
trigger9 = (stateno=1030)&&(movecontact);hypercombo final
trigger10 = (stateno=1027)&&(movecontact);chute voador
trigger11= (stateno=999)&&(movecontact);avanço reto alto
trigger12 = (stateno=1006)&&(movecontact)&&(animelem>=5);avanço baixo pro sol
trigger13 = (stateno=[1014,1016])&&(movecontact);diporvas
trigger14 = (stateno=[1024,1026])&&(movecontact);voadoras
trigger15 = (stateno=[1017,1019])&&(animelem>=4);air fireflames
trigger16 = (stateno=909)&&(movecontact);esquiva aérea
trigger17=(stateno=1050)&&(movecontact)&&(pos y<0); hiper gunflame 2
trigger18 =(stateno=1052)&&(movecontact)&&(animelemtime(9)>0); air hyper combo

;---------------------------------------------------------------------------
[State -1, air hypercombo AI]
type = ChangeState
value = 1051
triggerall = (var(7)=1)&&(power>=2000)
triggerall = (statetype=A)&&(ctrl)
trigger1 = (random = [251,500])&&(p2movetype=A)
trigger2 = (stateno=[1014,1016])&&(moveguarded)&&(random<=500)

[State -1, air hypercombo]
type = ChangeState
value = 1051
triggerall = (var(7)!=1)&&(statetype=A)&&(command="hypercombo")&&(power>=2000)
trigger1 = ctrl
trigger2 = (stateno=[600,652])&&(movecontact); golpes comuns do ar
trigger3 = (stateno=904)&&(movecontact)&&(time>89); hyper explod
trigger4 = (stateno=[910,912])&&(movecontact); shoryuken
trigger5 = (stateno=[921,923])&&(movecontact); kick pos shoryuken
trigger6 = (stateno=212)&&(movecontact); tf soco medio
trigger7 = (stateno=242)&&(movecontact); tf chute medio
trigger8 = (stateno=1023)&&(movecontact)&&(animelem>=138);hypercombo
trigger9 = (stateno=1030)&&(movecontact);hypercombo final
trigger10 = (stateno=1027)&&(movecontact);chute voador
trigger11= (stateno=999)&&(movecontact);avanço reto alto
trigger12 = (stateno=1006)&&(movecontact)&&(animelem>=5);avanço baixo pro sol
trigger13 = (stateno=[1014,1016])&&(movecontact);diporvas
trigger14 = (stateno=[1024,1026])&&(movecontact);voadoras
trigger15 = (stateno=[1017,1019])&&(animelem>=4);air fireflames
trigger16 = (stateno=909)&&(movecontact);esquiva aérea
trigger17=(stateno=1050)&&(movecontact)&&(pos y<0); hiper gunflame 2
trigger18=(stateno=[1038,1039])&&(movecontact); air hypercombo fraco

;---------------------------------------------------------------------------
[State -1, hyper explod]
type = ChangeState
value = 904
triggerall = (var(7)!=1)&&(power>=1000)
triggerall = command = "hyperexplod"
trigger1 = ctrl
trigger2 = (stateno=200)&&(movecontact); soco fraco
trigger3 = (stateno=210)&&(movecontact); soco medio
trigger4 = (stateno=220)&&(movecontact); soco forte
trigger5 = (stateno=230)&&(movecontact); chute fraco
trigger6 = (stateno=240)&&(movecontact); chute medio
trigger7 = (stateno=250)&&(movecontact); chute forte
trigger8 = (stateno=202)&&(movecontact); frente soco fraco
trigger9 = (stateno=214)&&(movecontact); frente soco medio
trigger10 = (stateno=222)&&(movecontact); frente soco forte
trigger11 = (stateno=232)&&(movecontact); frente chute fraco
trigger12 = (stateno=244)&&(movecontact); frente chute medio
trigger13 = (stateno=252)&&(movecontact); frente chute forte
trigger14 = (stateno=[400,450])&&(movecontact); golpes agachados
trigger15 = (stateno=[600,652])&&(movecontact); golpes comuns do ar
trigger16 = (stateno=930)&&(movecontact); hiper 3 ataque 1
trigger17 = (stateno=941)&&(movecontact); hiper 3 ataque 2
trigger18 = (stateno=944)&&(movecontact); hiper 3 ataque 3
trigger19 = (stateno=[1049,1050])&&(movecontact); hiper gunflame 1 e 2
trigger20 = (stateno=[963,965])&&(time>=15); fireflame
trigger21 = (stateno=[997,1001])&&(movecontact); avanço reto
trigger22 = (stateno=[910,912])&&(movecontact); shoryuken
trigger23 = (stateno=[921,923])&&(movecontact); kick pos shoryuken
trigger24 = (stateno=[1003,1006])&&(movecontact); avanço baixo
trigger25 = (stateno=1023)&&(movecontact); hyper combo
trigger26 = (stateno=[1029,1030])&&(movecontact); hyper combo fraco e final
trigger27 = (stateno=[1038,1039])&&(movecontact); air hypercombo fraco
trigger28 = (stateno=1043)&&(movecontact); TIM
trigger29 =(stateno=1052)&&(movecontact)&&(animelemtime(9)>0); air hyper combo (1)
trigger30 =(stateno=1055)&&(movecontact); air hyper combo (2)

;---------------------------------------------------------------------------
[State -1, shoryuken fraco AI]
type = ChangeState
value = 910
triggerall = var (7) = 1
triggerall = ctrl
trigger1 = (p2dist X =[0,45])&&(statetype!=A)&&(P2movetype=A)&&(random=[450,600])
trigger2 = (p2dist X =[0,45])&&(statetype=A)&&(p2statetype=A)&&(P2movetype=A)&&(random=[450,600])

; Shoryuken fraco
[State -1, shoryuken fraco]
type = ChangeState
value = 910
triggerall = var(7) != 1
triggerall = command = "shorknfraco"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (statetype=A)&&(ctrl)
trigger3 = (stateno = 200) && (movecontact);soco fraco
trigger4 = (stateno = 210) && (movecontact);soco medio
trigger5 = (stateno = 220) && (movecontact);soco forte
trigger6 = (stateno = 230) && (movecontact);chute fraco
trigger7 = (stateno = 240) && (movecontact);chute medio
trigger8 = (stateno = 250) && (movecontact);chute forte
trigger9 = (stateno = 202) && (movecontact);frente soco fraco
trigger10 = (stateno = 214) && (movecontact);frente soco medio
trigger11 = (stateno = 222) && (movecontact);frente soco forte
trigger12 = (stateno = 232) && (movecontact);frente chute fraco
trigger13 = (stateno = 244) && (movecontact);frente chute medio
trigger14 = (stateno = 252) && (movecontact);frente chute forte
trigger15 = (stateno = 400) && (movecontact);soco fraco agachado
trigger16 = (stateno = 410) && (movecontact);soco medio agachado
trigger17 = (stateno = 420) && (movecontact);soco forte agachado
trigger18 = (stateno = 430) && (movecontact);chute fraco agachado
trigger19 = (stateno = 440) && (movecontact);chute medio agachado
trigger20 = (stateno = 450) && (movecontact);chute forte agachado
trigger21 = (stateno=[600,652])&&(movecontact); golpes comuns do ar
;trigger22 = stateno = ;carregar
;trigger23 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, shoryuken medio AI]
type = ChangeState
value = 911
triggerall = var (7) = 1
triggerall = ctrl
trigger1 = (p2dist X =[0,45])&&(statetype!=A)&&(P2movetype=A)&&(random=[601,750])
trigger2 = (p2dist X =[0,45])&&(statetype=A)&&(p2statetype=A)&&(P2movetype=A)&&(random=[601,750])

; Shoryuken medio
[State -1, shoryuken medio]
type = ChangeState
value = 911
triggerall = var(7) != 1
triggerall = command = "shorknmedio"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (statetype=A)&&(ctrl)
trigger3 = (stateno = 200) && (movecontact);soco fraco
trigger4 = (stateno = 210) && (movecontact);soco medio
trigger5 = (stateno = 220) && (movecontact);soco forte
trigger6 = (stateno = 230) && (movecontact);chute fraco
trigger7 = (stateno = 240) && (movecontact);chute medio
trigger8 = (stateno = 250) && (movecontact);chute forte
trigger9 = (stateno = 202) && (movecontact);frente soco fraco
trigger10 = (stateno = 214) && (movecontact);frente soco medio
trigger11 = (stateno = 222) && (movecontact);frente soco forte
trigger12 = (stateno = 232) && (movecontact);frente chute fraco
trigger13 = (stateno = 244) && (movecontact);frente chute medio
trigger14 = (stateno = 252) && (movecontact);frente chute forte
trigger15 = (stateno = 400) && (movecontact);soco fraco agachado
trigger16 = (stateno = 410) && (movecontact);soco medio agachado
trigger17 = (stateno = 420) && (movecontact);soco forte agachado
trigger18 = (stateno = 430) && (movecontact);chute fraco agachado
trigger19 = (stateno = 440) && (movecontact);chute medio agachado
trigger20 = (stateno = 450) && (movecontact);chute forte agachado
trigger21 = (stateno=[600,652])&&(movecontact); golpes comuns do ar
;trigger22 = stateno = ;carregar
;trigger23 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, shoryuken forte AI]
type = ChangeState
value = 912
triggerall = var (7) = 1
triggerall = ctrl
trigger1 = (p2dist X =[0,50])&&(statetype!=A)&&(P2movetype=A)&&(random=[751,900])
trigger2 = (p2dist X =[0,50])&&(statetype=A)&&(p2statetype=A)&&(P2movetype=A)&&(random=[751,900])

; Shoryuken forte
[State -1, shoryuken forte]
type = ChangeState
value = 912
triggerall = var(7) != 1
triggerall = command = "shorknforte"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (statetype=A)&&(ctrl)
trigger3 = (stateno = 200) && (movecontact);soco fraco
trigger4 = (stateno = 210) && (movecontact);soco medio
trigger5 = (stateno = 220) && (movecontact);soco forte
trigger6 = (stateno = 230) && (movecontact);chute fraco
trigger7 = (stateno = 240) && (movecontact);chute medio
trigger8 = (stateno = 250) && (movecontact);chute forte
trigger9 = (stateno = 202) && (movecontact);frente soco fraco
trigger10 = (stateno = 214) && (movecontact);frente soco medio
trigger11 = (stateno = 222) && (movecontact);frente soco forte
trigger12 = (stateno = 232) && (movecontact);frente chute fraco
trigger13 = (stateno = 244) && (movecontact);frente chute medio
trigger14 = (stateno = 252) && (movecontact);frente chute forte
trigger15 = (stateno = 400) && (movecontact);soco fraco agachado
trigger16 = (stateno = 410) && (movecontact);soco medio agachado
trigger17 = (stateno = 420) && (movecontact);soco forte agachado
trigger18 = (stateno = 430) && (movecontact);chute fraco agachado
trigger19 = (stateno = 440) && (movecontact);chute medio agachado
trigger20 = (stateno = 450) && (movecontact);chute forte agachado
trigger21 = (stateno=[600,652])&&(movecontact); golpes comuns do ar
;trigger22 = stateno = ;carregar
;trigger23 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, avanço reto fraco AI]
type = ChangeState
value = 997
triggerall = var (7) = 1
triggerall = (statetype = s) && ctrl
triggerall = p2dist X >= 220
trigger1 = (random = [500,525])&&(enemy, numproj = 0)&&(p2statetype!=A)
;trigger2 = (random = [650,700])&&(enemy, numproj > 0);explodir magias

; avanço reto fraco
[State -1, avanço reto fraco]
type = ChangeState
value = 997
triggerall = var(7) != 1
triggerall = command = "avançoretox"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, avanço reto medio AI]
type = ChangeState
value = 1000
triggerall = var (7) = 1
triggerall = (statetype = s) && ctrl
triggerall = p2dist X >= 220
trigger1 = (random = [526,550])&&(enemy, numproj = 0)&&(p2statetype!=A)
;trigger2 = (random = [650,700])&&(enemy, numproj > 0);explodir magias

; avanço reto medio
[State -1, avanço reto medio]
type = ChangeState
value = 1000
triggerall = var(7) != 1
triggerall = command = "avançoretoy"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, avanço reto forte AI]
type = ChangeState
value = 1001
triggerall = var (7) = 1
triggerall = (statetype = s) && ctrl
triggerall = p2dist X >= 220
trigger1 = (random = [551,600])&&(enemy, numproj = 0)&&(p2statetype!=A)
;trigger2 = (random = [0,500])&&(enemy, numproj > 0)&&(p2statetype=A)

; avanço reto forte
[State -1, avanço reto forte]
type = ChangeState
value = 1001
triggerall = var(7) != 1
triggerall = command = "avançoretoz"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, avanço baixo fraco AI]
type = ChangeState
value = 1003
triggerall = var (7) = 1
triggerall = (statetype = s) && ctrl
triggerall = (p2dist X = [51,120])&&(p2movetype!=A)
trigger1 = (random = [601,640])&&(enemy, numproj = 0)
;trigger2 = (var(1)=1)&&(random = [500,750])&&(enemy, numproj > 0)

; avanço baixo fraco
[State -1, avanço baixo fraco]
type = ChangeState
value = 1003
triggerall = var(7) != 1
triggerall = command = "avançobaixoa"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, avanço baixo medio AI]
type = ChangeState
value = 1004
triggerall = var (7) = 1
triggerall = (statetype = s) && ctrl
triggerall = (p2dist X = [65,150])&&(p2movetype!=A)
trigger1 = (random = [641,690])&&(enemy, numproj = 0)
trigger2 = (var(1)=1)&&(random = [0,500])&&(enemy, numproj > 0)&&(p2statetype!=A)

; avanço baixo medio
[State -1, avanço baixo medio]
type = ChangeState
value = 1004
triggerall = var(7) != 1
triggerall = command = "avançobaixob"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, avanço baixo forte AI]
type = ChangeState
value = 1005
triggerall = var (7) = 1
triggerall = (statetype = s) && ctrl
triggerall = p2dist X = [80,220]
trigger1 = (random = [691,740])&&(enemy, numproj = 0)
trigger2 = (var(1)!=1)&&(random = [0,500])&&(enemy, numproj > 0)&&(p2statetype!=A)

; avanço baixo forte
[State -1, avanço baixo forte]
type = ChangeState
value = 1005
triggerall = var(7) != 1
triggerall = command = "avançobaixoc"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, diporva fraco AI]
type = ChangeState
value = 1014
triggerall = var (7) = 1
triggerall = (statetype = S) && ctrl
triggerall = (p2dist x = [51,120])&&(p2movetype!=A)&&(p2statetype!=L)
trigger1 = (random = [741,790])&&(enemy, numproj = 0)

; diporva fraco
[State -1, diporva fraco]
type = ChangeState
value = 1014
triggerall = var(7) != 1
triggerall = command = "diporvaa"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, diporva medio AI]
type = ChangeState
value = 1015
triggerall = var (7) = 1
triggerall = (statetype = S) && ctrl
triggerall = (p2dist x = [65,150])&&(p2movetype!=A)&&(p2statetype!=L)
trigger1 = (random = [791,840])&&(enemy, numproj = 0)


; diporva medio
[State -1, diporva medio]
type = ChangeState
value = 1015
triggerall = var(7) != 1
triggerall = command = "diporvab"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, diporva forte AI]
type = ChangeState
value = 1016
triggerall = var (7) = 1
triggerall = (statetype = s) && ctrl
triggerall = (p2dist X = [80,220])&&(p2statetype!=L)
trigger1 = (random = [841,890])&&(enemy, numproj = 0)

; diporva forte
[State -1, diporva forte]
type = ChangeState
value = 1016
triggerall = var(7) != 1
triggerall = command = "diporvac"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, Voadora fraca AI]
type = ChangeState
value = 1024
triggerall = var(7) = 1
triggerall = (statetype = A)&&(stateno!=105)
triggerall = ctrl
trigger1 = (p2dist x =[-10,10])&&(p2statetype!=A)&&(p2dist Y > 0)&&(random=[800,999])

; Voadora fraca
[State -1, Voadora fraca]
type = ChangeState
value = 1024
triggerall = var(7) != 1
triggerall = command = "avançobaixoa"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno=[600,652])&&(movecontact); golpes comuns do ar
trigger3 = (stateno=212)&&(movecontact); tf soco medio
trigger4 = (stateno=242)&&(movecontact); tf chute medio

;---------------------------------------------------------------------------
[State -1, Voadora media AI]
type = ChangeState
value = 1025
triggerall = var(7) = 1
triggerall = (statetype = A)&&(stateno!=105)
triggerall = ctrl
trigger1 = (pos y < -60)&&(p2dist x =[100,160])&&(p2statetype!=A)&&(p2movetype!= A)&&(random=[800,999])

; Voadora media
[State -1, Voadora media]
type = ChangeState
value = 1025
triggerall = var(7) != 1
triggerall = command = "avançobaixob"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno=[600,652])&&(movecontact); golpes comuns do ar
trigger3 = (stateno=212)&&(movecontact); tf soco medio
trigger4 = (stateno=242)&&(movecontact); tf chute medio

;---------------------------------------------------------------------------
[State -1, Voadora forte AI]
type = ChangeState
value = 1026
triggerall = var(7) = 1
triggerall = statetype = A
triggerall = ctrl
trigger1 = (p2dist x = [150,220])&&(p2statetype!=A)&&(p2movetype = A)&&(random = [800,999])

; Voadora forte
[State -1, Voadora forte]
type = ChangeState
value = 1026
triggerall = var(7) != 1
triggerall = command = "avançobaixoc"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno=[600,652])&&(movecontact); golpes comuns do ar
trigger3 = (stateno=212)&&(movecontact); tf soco medio
trigger4 = (stateno=242)&&(movecontact); tf chute medio

;---------------------------------------------------------------------------
[State -1, Chute voador AI]
type = ChangeState
value = 1027
triggerall = var(7) = 1
triggerall = statetype = S
triggerall = ctrl
trigger1 = (p2dist x =[-45,45])&&(p2dist y =[-60,60])&&(p2movetype=A)&&(random=[0,450])

; Chute voador
[State -1, Chute voador]
type = ChangeState
value = 1027
triggerall = var(7) != 1
triggerall = command = "chutevoador"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = [400,450]) && (movecontact);golpes agachados
trigger15 = (stateno=[600,652])&&(movecontact); golpes comuns do ar

;---------------------------------------------------------------------------
[State -1, fireflame fraco AI]
type = ChangeState
value = 963
triggerall = var (7) = 1
triggerall = (statetype = s) && ctrl
triggerall = p2dist X >= 220
trigger1 = (random = [871,910])&&(enemy, numproj = 0)

; Fireflame fraco
[State -1, fireflame fraco]
type = ChangeState
value = 963
triggerall = var(7) != 1
triggerall = command = "fireflamex"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, fireflame medio AI]
type = ChangeState
value = 964
triggerall = var (7) = 1
triggerall = (statetype = s) && ctrl
triggerall = p2dist X >= 220
trigger1 = (random = [911,950])&&(enemy, numproj = 0)

; Fireflame medio
[State -1, fireflame medio]
type = ChangeState
value = 964
triggerall = var(7) != 1
triggerall = command = "fireflamey"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, fireflame forte AI]
type = ChangeState
value = 965
triggerall = var (7) = 1
triggerall = (statetype = s) && ctrl
triggerall = p2dist X >= 220
trigger1 = (random = [951,999])&&(enemy, numproj = 0)

; Fireflame forte
[State -1, fireflame forte]
type = ChangeState
value = 965
triggerall = var(7) != 1
triggerall = command = "fireflamez"
trigger1 = (statetype=S)&&(ctrl)
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, air fireflame fraco AI]
type = ChangeState
value = 1017
triggerall = (var(7)=1)&&(stateno!=105)
triggerall = (statetype = A) && ctrl
trigger1 = (pos y < -60)&&(p2dist x >=150)&&(random=[451,600])

; Air Fireflame fraco
[State -1, air fireflame fraco]
type = ChangeState
value = 1017
triggerall = var(7) != 1
triggerall = command = "fireflamex"
trigger1 = (statetype=A)&&(ctrl)
trigger2 = (stateno=[600,652])&&(movecontact); golpes comuns do ar

;---------------------------------------------------------------------------
[State -1, air fireflame medio AI]
type = ChangeState
value = 1018
triggerall = var (7) = 1
triggerall = (statetype = A) && ctrl
trigger1 = (pos y < -60)&&(p2dist x >=100)&&(p2statetype=A)&&(random=[601,750])

; Air Fireflame medio
[State -1, air fireflame medio]
type = ChangeState
value = 1018
triggerall = var(7) != 1
triggerall = command = "fireflamey"
trigger1 = (statetype=A)&&(ctrl)
trigger2 = (stateno=[600,652])&&(movecontact); golpes comuns do ar

;---------------------------------------------------------------------------
[State -1, air fireflame forte AI]
type = ChangeState
value = 1019
triggerall = var (7) = 1
triggerall = (statetype = A) && ctrl
trigger1 = (pos y < -60)&&(p2dist x >=100)&&(p2statetype!=A)&&(random=[751,999])

; Air Fireflame forte
[State -1, air fireflame forte]
type = ChangeState
value = 1019
triggerall = var(7) != 1
triggerall = command = "fireflamez"
trigger1 = (statetype=A)&&(ctrl)
trigger2 = (stateno=[600,652])&&(movecontact); golpes comuns do ar

;---------------------------------------------------------------------------
[State -1, Deflect AI stand]
type = ChangeState
value = 901
triggerall = (var(7)=1)&&(statetype = S)&&(ctrl)
triggerall = (p2statetype != C)&&(p2dist y = [-75,0])
trigger1 = (p2dist X = [20,35])&&(life>=650)&&(p2movetype=A)&&(random<=250)
trigger2 = (enemy, numproj > 0)&&(random<=800)

[State -1, Deflect AI crouch]
type = ChangeState
value = 947
triggerall = var(7) = 1
triggerall = (statetype = C)&&(ctrl)
triggerall = (p2statetype != A)
trigger1 = (p2dist X = [20,35])&&(life>=650)&&(p2movetype=A)&&(random<=250)
trigger2 = (enemy, numproj > 0)&&(random<=800)

[State -1, Deflect AI air]
type = ChangeState
value = 949
triggerall = var(7) = 1
triggerall = (statetype = A)&&(ctrl)
triggerall = (p2statetype != C)&&(p2dist y = [-25,25])
trigger1 = (p2dist X = [20,35])&&(life>=650)&&(p2movetype=A)&&(random<=250)
trigger2 = (enemy, numproj > 0)&&(random<=800)

; Deflect
[State -1, Deflect]
type = ChangeState
value = ifelse(statetype = S,901,ifelse(statetype = C,947,949))
triggerall = var(7) != 1
triggerall = command = "deflect"
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, Carregar AI]
type = ChangeState
value = 903
triggerall = (var(7)=1)&&(power < 1000)&&(statetype=S)&&(ctrl)
trigger1 = (p2movetype=H)&&(p2dist x > 150)

; Carregar
[State -1, Carregar]
type = ChangeState
value = 903
triggerall = var(7) != 1
triggerall = (command="carregar")&&(power < 3000)
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = [400,450]) && (movecontact);golpes agachados
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, Esquiva com golpe AI]
type = ChangeState
value = 907
triggerall = var(7) = 1
triggerall = stateno != 907
triggerall = statetype = S
triggerall = ctrl
trigger1 = p2dist X <= 100
trigger1 = p2movetype = A
trigger1 = random <= 200

; Esquiva com golpe
[State -1, Esquiva com golpe]
type = ChangeState
value = 907
triggerall = var(7) != 1
triggerall = command = "esquiva"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, Esquiva aerea AI]
type = ChangeState
value = 909
triggerall = var(7) = 1
triggerall = statetype = A
triggerall = ctrl
trigger1 = (p2dist x = [-30,45])&&(p2dist y = [-70,70])
trigger1 = (p2movetype=A)&&(random=[0,450])

; Esquiva aérea com golpe
[State -1, Esquiva aerea]
type = ChangeState
value = 909
triggerall = var(7) != 1
triggerall = command = "esquiva"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno=[600,652])&&(movecontact); golpes comuns do ar

;---------------------------------------------------------------------------
; Order tras frente soco medio
[State -1, tras frente soco medio]
type = ChangeState
value = 212
triggerall = var(7) != 1
triggerall = command = "bfsocomedio"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
trigger21 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Order tras frente soco forte
[State -1, Order tf soco forte]
type = ChangeState
value = 224
triggerall = var(7) != 1
triggerall = var(1) = 1
triggerall = command = "bfsocoforte"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
trigger21 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Order tras frente chute medio
[State -1, tras frente chute medio]
type = ChangeState
value = 242
triggerall = var(7) != 1
triggerall = command = "bfchutemedio"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
trigger21 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Order tras frente chute forte
[State -1, Order tf chute forte]
type = ChangeState
value = 254
triggerall = var(7) != 1
triggerall = var(1) = 1
triggerall = command = "bfchuteforte"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 220) && (movecontact);soco forte
trigger5 = (stateno = 230) && (movecontact);chute fraco
trigger6 = (stateno = 240) && (movecontact);chute medio
trigger7 = (stateno = 250) && (movecontact);chute forte
trigger8 = (stateno = 202) && (movecontact);frente soco fraco
trigger9 = (stateno = 214) && (movecontact);frente soco medio
trigger10 = (stateno = 222) && (movecontact);frente soco forte
trigger11 = (stateno = 232) && (movecontact);frente chute fraco
trigger12 = (stateno = 244) && (movecontact);frente chute medio
trigger13 = (stateno = 252) && (movecontact);frente chute forte
trigger14 = (stateno = 400) && (movecontact);soco fraco agachado
trigger15 = (stateno = 410) && (movecontact);soco medio agachado
trigger16 = (stateno = 420) && (movecontact);soco forte agachado
trigger17 = (stateno = 430) && (movecontact);chute fraco agachado
trigger18 = (stateno = 440) && (movecontact);chute medio agachado
trigger19 = (stateno = 450) && (movecontact);chute forte agachado
trigger20 = stateno = 101;desvio pós corrida
trigger21 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Air baixo soco forte
[State -1, Air baixo soco forte]
type = ChangeState
value = 622
triggerall = var(7) != 1
triggerall = command = "holddown"
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact);air soco fraco
trigger3 = (stateno = 610) && (movecontact);air soco medio
trigger4 = (stateno = 620) && (movecontact);air soco forte
trigger5 = (stateno = 630) && (movecontact);air chute fraco
trigger6 = (stateno = 640) && (movecontact);air chute medio
trigger7 = (stateno = 650) && (movecontact);air chute forte

;---------------------------------------------------------------------------
; Air baixo chute forte
[State -1, Air baixo chute forte]
type = ChangeState
value = 652
triggerall = var(7) != 1
triggerall = command = "holddown"
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact);air soco fraco
trigger3 = (stateno = 610) && (movecontact);air soco medio
trigger4 = (stateno = 620) && (movecontact);air soco forte
trigger5 = (stateno = 630) && (movecontact);air chute fraco
trigger6 = (stateno = 640) && (movecontact);air chute medio
trigger7 = (stateno = 650) && (movecontact);air chute forte

;---------------------------------------------------------------------------
; Frente soco fraco
[State -1, Frente soco fraco]
type = ChangeState
value = 202
triggerall = var(7) != 1
triggerall = command = "holdfwd"
triggerall = command = "x"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 230) && (movecontact);chute fraco
trigger4 = (stateno = 400) && (movecontact);soco fraco agachado
trigger5 = (stateno = 430) && (movecontact);chute fraco agachado
trigger6 = stateno = 101;desvio pós corrida
trigger7 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Frente soco medio
[State -1, Frente soco medio]
type = ChangeState
value = 214
triggerall = var(7) != 1
triggerall = command = "holdfwd"
triggerall = command = "y"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 230) && (movecontact);chute fraco
trigger5 = (stateno = 240) && (movecontact);chute medio
trigger6 = (stateno = 202) && (movecontact);frente soco fraco
trigger7 = (stateno = 232) && (movecontact);frente chute fraco
trigger8 = (stateno = 400) && (movecontact);soco fraco agachado
trigger9 = (stateno = 410) && (movecontact);soco medio agachado
trigger10 = (stateno = 430) && (movecontact);chute fraco agachado
trigger11 = (stateno = 440) && (movecontact);chute medio agachado
trigger12 = stateno = 101;desvio pós corrida
trigger13 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Frente soco forte
[State -1, Frente soco forte]
type = ChangeState
value = 222
triggerall = var(7) != 1
triggerall = command = "holdfwd"
triggerall = command = "z"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 210) && (movecontact);soco medio
trigger3 = (stateno = 220) && (movecontact);soco forte
trigger4 = (stateno = 240) && (movecontact);chute medio
trigger5 = (stateno = 250) && (movecontact);chute forte
trigger6 = (stateno = 214) && (movecontact);frente soco medio
trigger7 = (stateno = 244) && (movecontact);frente chute medio
trigger8 = (stateno = 410) && (movecontact);soco medio agachado
trigger9 = (stateno = 420) && (movecontact);soco forte agachado
trigger10 = (stateno = 440) && (movecontact);chute medio agachado
trigger11 = (stateno = 450) && (movecontact);chute forte agachado
trigger12 = stateno = 101;desvio pós corrida
trigger13 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Frente chute fraco
[State -1, Frente chute fraco]
type = ChangeState
value = 232
triggerall = var(7) != 1
triggerall = var(1) = 1
triggerall = command = "holdfwd"
triggerall = command = "a"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 230) && (movecontact);chute fraco
trigger4 = (stateno = 202) && (movecontact);frente soco fraco
trigger5 = (stateno = 400) && (movecontact);soco fraco agachado
trigger6 = (stateno = 430) && (movecontact);chute fraco agachado
trigger7 = stateno = 101;desvio pós corrida
trigger8 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Frente chute medio
[State -1, Frente chute medio]
type = ChangeState
value = 244
triggerall = var(7) != 1
triggerall = var(1) = 1
triggerall = command = "holdfwd"
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 230) && (movecontact);chute fraco
trigger5 = (stateno = 240) && (movecontact);chute medio
trigger6 = (stateno = 202) && (movecontact);frente soco fraco
trigger7 = (stateno = 214) && (movecontact);frente soco medio
trigger8 = (stateno = 232) && (movecontact);frente chute fraco
trigger9 = (stateno = 400) && (movecontact);soco fraco agachado
trigger10 = (stateno = 410) && (movecontact);soco medio agachado
trigger11 = (stateno = 430) && (movecontact);chute fraco agachado
trigger12 = (stateno = 440) && (movecontact);chute medio agachado
trigger13 = stateno = 101;desvio pós corrida
trigger14 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, Frente chute forte AI]
type = ChangeState
value = 252
triggerall = var(7) = 1
triggerall = statetype = S
triggerall = ctrl
triggerall = (p2dist x = [100,150])&&(p2movetype!=A)
triggerall = random <= 150
trigger1 = p2stateno = 5100
trigger2 = p2stateno = 5101
trigger3 = p2stateno = 5110

;---------------------------------------------------------------------------
; Frente chute forte
[State -1, Frente chute forte]
type = ChangeState
value = 252
triggerall = var(7) != 1
triggerall = command = "holdfwd"
triggerall = command = "c"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 210) && (movecontact);soco medio
trigger3 = (stateno = 220) && (movecontact);soco forte
trigger4 = (stateno = 240) && (movecontact);chute medio
trigger5 = (stateno = 250) && (movecontact);chute forte
trigger6 = (stateno = 214) && (movecontact);frente soco medio
trigger7 = (stateno = 222) && (movecontact);frente soco forte
trigger8 = (stateno = 244) && (movecontact);frente chute medio
trigger9 = (stateno = 410) && (movecontact);soco medio agachado
trigger10 = (stateno = 420) && (movecontact);soco forte agachado
trigger11 = (stateno = 440) && (movecontact);chute medio agachado
trigger12 = (stateno = 450) && (movecontact);chute forte agachado
trigger13 = stateno = 101;desvio pós corrida
trigger14 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, Stand Light Punch AI]
type = ChangeState
value = 200
triggerall = var (7) = 1
triggerall = (p2movetype!=A)&&(p2dist X <= 50)&&(p2dist y >= -60)
triggerall = stateno != 200
triggerall = (statetype = s) && ctrl
triggerall = (p2statetype != C)&&(p2statetype != L)
triggerall = p2stateno != [5100,5120]
trigger1 = random <= 150

;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = var(7) != 1
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 230) && (movecontact);chute fraco
trigger4 = (stateno = 400) && (movecontact);soco fraco agachado
trigger5 = (stateno = 430) && (movecontact);chute fraco agachado
trigger6 = stateno = 101;desvio pós corrida
trigger7 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt


;---------------------------------------------------------------------------
; Stand Medium Punch
[State -1, Stand Medium Punch]
type = ChangeState
value = 210
triggerall = var(7) != 1
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 230) && (movecontact);chute fraco
trigger4 = (stateno = 202) && (movecontact);frente soco fraco
trigger5 = (stateno = 232) && (movecontact);frente chute fraco
trigger6 = (stateno = 400) && (movecontact);soco fraco agachado
trigger7 = (stateno = 430) && (movecontact);chute fraco agachado
trigger8 = stateno = 101;desvio pós corrida
trigger9 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 220
triggerall = var(7) != 1
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 210) && (movecontact);soco medio
trigger3 = (stateno = 240) && (movecontact);chute medio
trigger4 = (stateno = 214) && (movecontact);frente soco medio
trigger5 = (stateno = 244) && (movecontact);frente chute medio
trigger6 = (stateno = 410) && (movecontact);soco medio agachado
trigger7 = (stateno = 440) && (movecontact);chute medio agachado
trigger8 = stateno = 101;desvio pós corrida
trigger9 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = var(7) != 1
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 230) && (movecontact);chute fraco
trigger4 = (stateno = 400) && (movecontact);soco fraco agachado
trigger5 = (stateno = 430) && (movecontact);chute fraco agachado
trigger6 = stateno = 101;desvio pós corrida
trigger7 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Standing Medium Kick
[State -1, Standing Medium Kick]
type = ChangeState
value = 240
triggerall = var(7) != 1
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 230) && (movecontact);chute fraco
trigger5 = (stateno = 202) && (movecontact);frente soco fraco
trigger6 = (stateno = 232) && (movecontact);frente chute fraco
trigger7 = (stateno = 400) && (movecontact);soco fraco agachado
trigger8 = (stateno = 410) && (movecontact);soco medio agachado
trigger9 = (stateno = 430) && (movecontact);chute fraco agachado
trigger10 = stateno = 101;desvio pós corrida
trigger11 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 250
triggerall = var(7) != 1
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 210) && (movecontact);soco medio
trigger3 = (stateno = 220) && (movecontact);soco forte
trigger4 = (stateno = 240) && (movecontact);chute medio
trigger5 = (stateno = 214) && (movecontact);frente soco medio
trigger6 = (stateno = 244) && (movecontact);frente chute medio
trigger7 = (stateno = 410) && (movecontact);soco medio agachado
trigger8 = (stateno = 420) && (movecontact);soco forte agachado
trigger9 = (stateno = 440) && (movecontact);chute medio agachado
trigger10 = stateno = 101;desvio pós corrida
trigger11 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, Crouch Light Punch AI]
type = ChangeState
value = 400
triggerall = var (7) = 1
triggerall = p2dist X <= 50;40
triggerall = stateno != 400
triggerall = (statetype = C) && ctrl
triggerall = p2dist y >= 0
triggerall = (p2stateno != [5100,5120])&&(p2statetype != L)
trigger1 = p2movetype != A
trigger1 = random <= 150
trigger2 = p2movetype = A
trigger2 = p2statetype = S
trigger2 = random <= 75

; Crouching Light Punch
[State -1, Crouch Light Punch]
type = ChangeState
value = 400
triggerall = var(7) != 1
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 230) && (movecontact);chute fraco
trigger4 = (stateno = 400) && (movecontact);soco fraco agachado
trigger5 = (stateno = 430) && (movecontact);chute fraco agachado
trigger6 = stateno = 101;desvio pós corrida
trigger7 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Crouching Medium Punch
[State -1, Crouch Medium Punch]
type = ChangeState
value = 410
triggerall = var(7) != 1
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 230) && (movecontact);chute fraco
trigger4 = (stateno = 202) && (movecontact);frente soco fraco
trigger5 = (stateno = 232) && (movecontact);frente chute fraco
trigger6 = (stateno = 400) && (movecontact);soco fraco agachado
trigger7 = (stateno = 430) && (movecontact);chute fraco agachado
trigger8 = stateno = 101;desvio pós corrida
trigger9 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, Crouch Strong Punch AI]
type = ChangeState
value = 420
triggerall = var (7) = 1
triggerall = p2dist X <= 50;40
triggerall = stateno != 420
triggerall = (statetype = C) && ctrl
triggerall = p2dist y >= -200
triggerall = p2stateno != 5120
trigger1 = (p2movetype!=A)&&(random <= 150)
trigger2 = (p2stateno = 5100)&&(random <= 200)
trigger3 = (p2stateno = 5101)&&(random <= 200)
trigger4 = (p2stateno = 5110)&&(random <= 200)

; Crouching Strong Punch
[State -1, Crouch Strong Punch]
type = ChangeState
value = 420
triggerall = var(7) != 1
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 210) && (movecontact);soco medio
trigger3 = (stateno = 240) && (movecontact);chute medio
trigger4 = (stateno = 214) && (movecontact);frente soco medio
trigger5 = (stateno = 244) && (movecontact);frente chute medio
trigger6 = (stateno = 410) && (movecontact);soco medio agachado
trigger7 = (stateno = 440) && (movecontact);chute medio agachado
trigger8 = stateno = 101;desvio pós corrida
trigger9 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, Crouch Light Kick AI]
type = ChangeState
value = 430
triggerall = var (7) = 1
triggerall = p2dist X <= 50;40
triggerall = stateno != 430
triggerall = (statetype = C) && ctrl
triggerall = p2dist y = [0,-15]
triggerall = p2stateno != 5120
trigger1 = (p2movetype != A)&&(random <= 150)
trigger2 = (p2movetype = A)&&(p2statetype = S)&&(random <= 75)
trigger3 = (p2stateno = 5100)&&(random <= 200)
trigger4 = (p2stateno = 5101)&&(random <= 200)
trigger5 = (p2stateno = 5110)&&(random <= 200)

; Crouching Light Kick
[State -1, Crouch Light Kick]
type = ChangeState
value = 430
triggerall = var(7) != 1
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 230) && (movecontact);chute fraco
trigger4 = (stateno = 400) && (movecontact);soco fraco agachado
trigger5 = (stateno = 430) && (movecontact);chute fraco agachado
trigger6 = stateno = 101;desvio pós corrida
trigger7 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
; Crouching Medium Kick
[State -1, Crouch Medium Kick]
type = ChangeState
value = 440
triggerall = var(7) != 1
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact);soco fraco
trigger3 = (stateno = 210) && (movecontact);soco medio
trigger4 = (stateno = 230) && (movecontact);chute fraco
trigger5 = (stateno = 202) && (movecontact);frente soco fraco
trigger6 = (stateno = 232) && (movecontact);frente chute fraco
trigger7 = (stateno = 400) && (movecontact);soco fraco agachado
trigger8 = (stateno = 410) && (movecontact);soco medio agachado
trigger9 = (stateno = 430) && (movecontact);chute fraco agachado
trigger10 = stateno = 101;desvio pós corrida
trigger11 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, Crouch Strong Kick AI]
type = ChangeState
value = 450
triggerall = var(7) = 1
triggerall = statetype = C
triggerall = ctrl
triggerall = p2dist x = [51,99]
triggerall = random <= 150
trigger1 = p2stateno = 5100
trigger2 = p2stateno = 5101
trigger3 = p2stateno = 5110

; Crouching Strong Kick
[State -1, Crouch Strong Kick]
type = ChangeState
value = 450
triggerall = var(7) != 1
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 210) && (movecontact);soco medio
trigger3 = (stateno = 220) && (movecontact);soco forte
trigger4 = (stateno = 240) && (movecontact);chute medio
trigger5 = (stateno = 214) && (movecontact);frente soco medio
trigger6 = (stateno = 244) && (movecontact);frente chute medio
trigger7 = (stateno = 410) && (movecontact);soco medio agachado
trigger8 = (stateno = 420) && (movecontact);soco forte agachado
trigger9 = (stateno = 440) && (movecontact);chute medio agachado
trigger10 = stateno = 101;desvio pós corrida
trigger11 = (stateno = 907) && (time >= 13) && (time <= 28);esquiva com golpe
;trigger21 = stateno = ;carregar
;trigger22 = stateno = ;taunt

;---------------------------------------------------------------------------
[State -1, Jump Light Punch AI]
type = ChangeState
value = 600
triggerall = var (7) = 1
triggerall = stateno != 600
triggerall = (statetype = A) && ctrl
triggerall = (p2movetype != A)&&(p2statetype!=C)&&(p2statetype!=L)
trigger1 = (vel y < 0)&&(p2dist x <= 60)&&(random <= 200)
trigger2 = (vel y < 0)&&(vel x > 0)&&(p2dist x <= 80)&&(random <= 200)
trigger3 = (stateno = 110)&&(p2dist x <= 80)&&(p2dist y = [-30,30])&&(random <= 200)
trigger4 = (stateno = 115)&&(p2dist x <= 80)&&(p2dist y = [-30,30])&&(random <= 200)
trigger5 = (var(14)=1)&&(random <= 500)

; Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = var(7) != 1
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 630) && (movecontact);air chute fraco

;---------------------------------------------------------------------------
; Jump Medium Punch
[State -1, Jump Medium Punch]
type = ChangeState
value = 610
triggerall = var(7) != 1
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact);air soco fraco
trigger3 = (stateno = 630) && (movecontact);air chute fraco

;---------------------------------------------------------------------------
[State -1, Jump Strong Punch AI]
type = ChangeState
value = 620
triggerall = (var(7)=1)&&(statetype=A)&&(ctrl)
trigger1 = (ctrl)&&(vel y >= 0)&&(p2dist X <= 100)&&(random <= 200)
trigger2 = (vel y >= 0)&&(vel x > 0)&&(p2dist X <= 125)&&(random <= 200)
trigger3 = (stateno = 110)&&(p2dist x <= 120)
trigger3 = (p2dist y >= -50)&&(p2dist y <= 50)&&(random <= 200)
trigger4 = (stateno = 115)&&(p2dist x <= 120)
trigger4 = (p2dist y >= -50)&&(p2dist y <= 50)&&(random <= 200)

; Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 620
triggerall = var(7) != 1
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 610) && (movecontact);air soco medio
trigger3 = (stateno = 640) && (movecontact);air chute medio

;---------------------------------------------------------------------------
[State -1, Jump Light Kick AI]
type = ChangeState
value = 630
triggerall = var (7) = 1
triggerall = stateno != 630
triggerall = (statetype = A) && ctrl
triggerall = (p2movetype != A)&&(p2statetype!=C)&&(p2statetype!=L)
trigger1 = (vel y < 0)&&(p2dist x <= 60)&&(random <= 200)
trigger2 = (vel y < 0)&&(vel x > 0)&&(p2dist x <= 80)&&(random <= 200)
trigger3 = (stateno = 110)&&(p2dist x <= 80)&&(p2dist y = [-30,30])&&(random <= 200)
trigger4 = (stateno = 115)&&(p2dist x <= 80)&&(p2dist y = [-30,30])&&(random <= 200)
trigger5 = (var(14)=1)&&(random > 500)

; Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = var(7) != 1
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact);air soco fraco

;---------------------------------------------------------------------------
; Jump Medium Kick
[State -1, Jump Medium Kick]
type = ChangeState
value = 640
triggerall = var(7) != 1
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact);air soco fraco
trigger3 = (stateno = 610) && (movecontact);air soco medio
trigger4 = (stateno = 630) && (movecontact);air chute fraco

;---------------------------------------------------------------------------
; Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 650
triggerall = var(7) != 1
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 610) && (movecontact);air soco medio
trigger3 = (stateno = 620) && (movecontact);air soco forte
trigger4 = (stateno = 640) && (movecontact);air chute medio

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