
;*********************************************************************
;                                                                    *
;   Ichi de Hydra    Autor edit Grafico y Programacion : Tecla2000   *
;                                                                    *
;*********************************************************************

;-------------------------
;-------------------------
;    Reasignar botones
;-------------------------
;-------------------------
; Esta sección lo deja reasignar los botones del jugador (para cambiar fácilmente la Configuración)
; El formato es:
; boton predeterminado en mugen = nuevo boton que ponemos
; recuerden que deben mantener las mismas letras, lo que pueden hacer es cambiar el orden x=a o y=b 

[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

;---------------------------
;---------------------------
; Valores de incumplimiento
;---------------------------
;---------------------------

[Defaults]

command.time = 15          ; Valor de incumplimiento para el parámetro de "Tiempo" de un comando. Mínimo 1.

command.buffer.time = 1    ; Valor de incumplimiento para el parámetro de "Buffer.time" de un comando. 
                           ; 1 mínimo, 30 máximo.


;-------------------------
;-------------------------
;      AI Command 
;-------------------------
;-------------------------

[Command]
name = "AI1"
command = a, a, a
time = 1

[Command]
name = "AI2"
command = b, b, b
time = 1

[Command]
name = "AI3"
command = c, c, c
time = 1

[Command]
name = "AI4"
command = x, x, x
time = 1

[Command]
name = "AI5"
command = y, y, y
time = 1

[Command]
name = "AI6"
command = z, z, z
time = 1

[Command]
name = "AI7"
command = a, b, c
time = 1

[Command]
name = "AI8"
command = a, c, b
time = 1

[Command]
name = "AI9"
command = b, a, c
time = 1

[Command]
name = "AI10"
command = b, c, a
time = 1

[Command]
name = "AI11"
command = c, b, a
time = 1

[Command]
name = "AI12"
command = c, a, b
time = 1

[Command]
name = "AI13"
command = x, y, z
time = 1

[Command]
name = "AI14"
command = x, z, y
time = 1

[Command]
name = "AI15"
command = y, z, x
time = 1

[Command]
name = "AI16"
command = y, x, z
time = 1

[Command]
name = "AI17"
command = z, y, x
time = 1

[Command]
name = "AI18"
command = z, x, y
time = 1

[Command]
name = "AI19"
command = a, b, a
time = 1

[Command]
name = "AI20"
command = a, c, a
time = 1

[Command]
name = "AI21"
command = b, a, b
time = 1

[Command]
name = "AI22"
command = b, c, b
time = 1

[Command]
name = "AI23"
command = c, a, c
time = 1

[Command]
name = "AI24"
command = c, b, c
time = 1

[Command]
name = "AI25"
command = x, y, x
time = 1

[Command]
name = "AI26"
command = x, z, x
time = 1

[Command]
name = "AI27"
command = y, x, y
time = 1

[Command]
name = "AI28"
command = y, z, y
time = 1

[Command]
name = "AI29"
command = z, x, z
time = 1

[Command]
name = "AI30"
command = z, y, z
time = 1

[Command]
name = "AI31"
command = D, DF, F ,a, a, a
time = 1

[Command]
name = "AI32"
command = D, DF, F ,b, b, b
time = 1

[Command]
name = "AI33"
command = D, DF, F ,c, c, c
time = 1

[Command]
name = "AI34"
command = D, DF, F ,x, x, x
time = 1

[Command]
name = "AI35"
command = D, DF, F ,y, y, y
time = 1

[Command]
name = "AI36"
command = D, DF, F ,z, z, z
time = 1

[Command]
name = "AI37"
command = D, DF, F ,a, b, c
time = 1

[Command]
name = "AI38"
command = D, DF, F ,a, c, b
time = 1

[Command]
name = "AI39"
command = D, DF, F ,b, a, c
time = 1

[Command]
name = "AI40"
command = D, DF, F ,b, c, a
time = 1

[Command]
name = "AI41"
command = D, DF, F ,c, b, a
time = 1

[Command]
name = "AI42"
command = D, DF, F ,c, a, b
time = 1

[Command]
name = "AI43"
command = D, DF, F ,x, y, z
time = 1

[Command]
name = "AI44"
command = D, DF, F ,x, z, y
time = 1

[Command]
name = "AI45"
command = D, DF, F ,y, z, x
time = 1

[Command]
name = "AI46"
command = D, DF, F ,y, x, z
time = 1

[Command]
name = "AI47"
command = D, DF, F ,z, y, x
time = 1

[Command]
name = "AI48"
command = D, DF, F ,z, x, y
time = 1

[Command]
name = "AI49"
command = D, DF, F ,a, b, a
time = 1

[Command]
name = "AI50"
command = D, DF, F ,a, c, a
time = 1

[Command]
name = "AI51"
command = D, DF, F ,b, a, b
time = 1

[Command]
name = "AI52"
command = D, DF, F ,b, c, b
time = 1

[Command]
name = "AI53"
command = D, DF, F ,c, a, c
time = 1

[Command]
name = "AI54"
command = D, DF, F ,c, b, c
time = 1

[Command]
name = "AI55"
command = D, DF, F ,x, y, x
time = 1

[Command]
name = "AI56"
command = D, DF, F ,x, z, x
time = 1

[Command]
name = "AI57"
command = D, DF, F ,y, x, y
time = 1

[Command]
name = "AI58"
command = D, DF, F ,y, z, y
time = 1

[Command]
name = "AI59"
command = D, DF, F ,z, x, z
time = 1

[Command]
name = "AI60"
command = D, DF, F ,z, y, z
time = 1

[Command]
name = "AI61"
command = F, DF, D ,a, b, c
time = 1

[Command]
name = "AI62"
command = F, DF, D ,a, c, b
time = 1

[Command]
name = "AI63"
command = D, DB, B ,b, a, c
time = 1

[Command]
name = "AI64"
command = D, DB, B ,b, c, a
time = 1

[Command]
name = "AI65"
command = D, DB, B ,c, b, a
time = 1

[Command]
name = "AI66"
command = D, DB, B ,c, a, b
time = 1

[Command]
name = "AI67"
command = F, DF, D ,a, b, a
time = 1

;-------------------------
;-------------------------
;      Super Ataques
;-------------------------
;-------------------------


;Ataque Traidor

[Command]
name = "ataque_traidor"
command = B, DB, D, DF, F, a
time = 35


;garras de energia

[Command]
name = "garras_energia"
command = B, DB, D, DF, F, b
time = 35


;Agresión de Hydra

[Command]
name = "agresion_hydra"
command = B, DB, D, DF, F, c
time = 35


;Agarre de la hydra
[Command]
name = "agarre_hydra"
command = B, DB, D, DF, F, x
time = 45


;Agarre de la hydra V2
[Command]
name = "agarre_hydra2"
command = B, DB, D, DF, F, y
time = 45


;Garras de Veneno
[Command]
name = "garras_veneno"
command = B, DB, D, DF, F, z
time = 35



;-------------------------
;-------------------------
;    Combos y Poderes
;-------------------------
;-------------------------


;golpes en el Aire
;=================


;garras rodilla aerea

[Command]
name = "garras_rodilla_aerea"
command = D, DF, F, x
time = 25

[Command]
name = "garras_rodilla_aerea"
command = D, DF, F, y
time = 25

[Command]
name = "garras_rodilla_aerea"
command = D, DF, F, z
time = 25






;golpes en la tierra
;===================




;Garras violentas

[Command]
name = "Garras_violentas2"
command = F, B, F, a
time = 25

[Command]
name = "Garras_violentas1"
command = F, B, F, b
time = 25

[Command]
name = "Garras_violentas"
command = F, B, F, c
time = 25


;Rodilla de veneno

[Command]
name = "Rodilla_veneno"
command = F, DF, D, x
time = 25

[Command]
name = "Rodilla_veneno"
command = F, DF, D, y
time = 25

[Command]
name = "Rodilla_veneno"
command = F, DF, D, z
time = 25


;agarre garras violntas

[Command]
name = "agarre_Garras_violentas"
command = D, DB, B, x
time = 25

[Command]
name = "agarre_Garras_violentas1"
command = D, DB, B, y
time = 25

[Command]
name = "agarre_Garras_violentas2"
command = D, DB, B, z
time = 25


;proyectil garras en el suelo

[Command]
name = "suelo_garras"
command = D, DF, F, c
time = 25

[Command]
name = "suelo_garras1"
command = D, DF, F, b
time = 25

[Command]
name = "suelo_garras2"
command = D, DF, F, a
time = 25


;garras ascendente

[Command]
name = "ascendente_garras"
command = D, DB, B, a
time = 25

[Command]
name = "ascendente_garras1"
command = D, DB, B, b
time = 25

[Command]
name = "ascendente_garras2"
command = D, DB, B, c
time = 25


;garras giratoia

[Command]
name = "garras_giratoia"
command = F, DF, D, a
time = 25

[Command]
name = "garras_giratoia1"
command = F, DF, D, b
time = 25

[Command]
name = "garras_giratoia2"
command = F, DF, D, c
time = 25


;Combo garras

[Command]
name = "combo_garras"
command = D, DF, F, x
time = 25

[Command]
name = "combo_garras1"
command = D, DF, F, y
time = 25

[Command]
name = "combo_garras2"
command = D, DF, F, z
time = 25


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


;-------------------------
;-------------------------
;   Button combination
;-------------------------
;-------------------------

;Carga de cosmo
[Command]
name = "charge"
command = /b
time= 1
[Command]
name = "charge 1"
command= /c
time= 1

;explocion de cosmos
[Command]
name = "recover"
command = a+x
time = 20

; Megablock y incrementar cosmo
[Command]
name = "mega_block"
command = c
time = 25

;-------------------------
;-------------------------
;      Dir + Button
;-------------------------
;-------------------------

;agarre patada
[Command]
name = "throw_2" 
command = /F, y
time = 10

;agarre puño
[Command]
name = "throw_1" 
command = /F, b
time = 10


;puño adicional medio
[Command]
name = "fwd_b"
command = /F,b
time = 1

;Remate puño
[Command]
name = "fwd_c"
command = /F,c 
time = 1

;patada adicional devil
[Command]
name = "fwd_y"
command = /F,y 
time = 1

;REmate patada
[Command]
name = "fwd_z"
command = /F,z
time = 1

;-------------------------
;-------------------------
;   Single button
;-------------------------
;-------------------------


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

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

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

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

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

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

[Command]
name = "start"
command = s
time = 1



;-------------------------
;-------------------------
;       Hold Dir
;-------------------------
;-------------------------


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

[Command]
name = "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

[command]
name = "holdx"
command = /$x
time = 1

[command]
name = "holdy"
command = /$y
time = 1

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


[command]
name = "holda"
command = /$a
time = 1

[command]
name = "holdb"
command = /$b
time = 1

[command]
name = "holdc"
command = /$c
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]

;===========================================================================

;-------------------------
;-------------------------
;      Super Ataques
;-------------------------
;-------------------------


;Ataque Traidor de cerca

[state -1]
type = ChangeState
value = 3000
triggerall = power >= 1000
triggerall = stateno != [1600,1699]
triggerall = p2stateno != 1120
triggerall = p2stateno != 3421
triggerall = command = "ataque_traidor"
triggerall = statetype != A
triggerall = P2statetype != A
triggerall = P2statetype != L
triggerall = P2statetype != C
trigger1 = P2bodydist X <= 80
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact


;garras de energia

[state -1]
type = Changestate
value = 3100
triggerall = command = "garras_energia"
triggerall = stateno != [1600,1699]
triggerall = p2stateno != 3421
triggerall = power >= 2000
triggerall = statetype != A
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact


;Agresión de Hydra


;cerca
[state -1]
type = Changestate
value = 3201
triggerall = command = "agresion_hydra"
triggerall = stateno != [1600,1699]
triggerall = p2stateno != 3421
triggerall = power >= 3000
triggerall = statetype != A
triggerall = p2bodydist X <= 100
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact


;lejos
[state -1]
type = Changestate
value = 3202
triggerall = command = "agresion_hydra"
triggerall = stateno != [1600,1699]
triggerall = p2stateno != 3421
triggerall = power >= 3000
triggerall = statetype != A
triggerall = p2bodydist X > 100
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact


;Agarre de la hydra

[state -1]
type = Changestate
value = 3300
triggerall = command = "agarre_hydra"
triggerall = stateno != [1600,1699]
triggerall = p2stateno != [1025,1028]
triggerall = p2stateno != 3421
triggerall = power >= 1000
triggerall = p2bodydist X >= 35
triggerall = statetype != A
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact


;Agarre de la hydra V2

[state -1]
type = Changestate
value = 3500
triggerall = command = "agarre_hydra2"
triggerall = stateno != [1600,1699]
triggerall = p2stateno != 3421
triggerall = p2stateno != [1025,1028]
triggerall = power >= 1000
triggerall = p2bodydist X >= 35
triggerall = statetype != A
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

;Garras de Veneno

[state -1]
type = Changestate
value = 3400
triggerall = stateno != [1600,1699]
triggerall = p2stateno != 1120
triggerall = p2stateno != 3421
triggerall = numhelper(3440) = 0
triggerall = command = "garras_veneno"
triggerall = power >= 3000
triggerall = statetype != A
trigger1 = ctrl = 1
trigger1 = statetype = S
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact



;===========================================================================

;-------------------------
;-------------------------
;    Combos y Poderes
;-------------------------
;-------------------------


;golpes en el Aire
;=================


;garras rodilla aerea
[State -1]
type = ChangeState
value = 1200
triggerall = command = "garras_rodilla_aerea"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 600) && (MoveContact)
trigger3 = (stateno = 610) && (MoveContact)
trigger4 = (stateno = 660) && (MoveContact)
trigger5 = (stateno = 620) && (MoveContact)
trigger6 = (stateno = 630) && (MoveContact)
trigger7 = (stateno = 640) && (MoveContact)
trigger8 = (stateno = 670) && (MoveContact)
trigger9 = (stateno = 650) && (MoveContact)





;golpes en la tierra
;===================



;Garras violentas
[State -1]
type = ChangeState
value = 1000
triggerall = P2statetype != A
triggerall = stateno != [1600,1699]
triggerall = p2stateno != 1120
triggerall = p2stateno != 3421
triggerall = p2stateno != [1025,1028]
triggerall = command = "Garras_violentas"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

[State -1]
type = ChangeState
value = 1001
triggerall = P2statetype != A
triggerall = stateno != [1600,1699]
triggerall = p2stateno != 1120
triggerall = p2stateno != 3421
triggerall = p2stateno != [1025,1028]
triggerall = command = "Garras_violentas1"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

[State -1]
type = ChangeState
value = 1002
triggerall = P2statetype != A
triggerall = stateno != [1600,1699]
triggerall = p2stateno != 1120
triggerall = p2stateno != 3421
triggerall = p2stateno != [1025,1028]
triggerall = command = "Garras_violentas2"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact


;Rodilla de veneno
[State -1]
type = ChangeState
value = 1100
triggerall = stateno != [1600,1699]
triggerall = p2stateno != 1120
triggerall = p2stateno != 3421
triggerall = numhelper(3440) = 0
triggerall = command = "Rodilla_veneno"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact



;agarre Garras violentas

[State -1, Special1]
type = ChangeState
value = 1600
triggerall = stateno != [1600,1699]
triggerall = command =  "agarre_Garras_violentas2"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

[State -1, Special1]
type = ChangeState
value = 1650
triggerall = stateno != [1600,1699]
triggerall = command =  "agarre_Garras_violentas1"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

[State -1, Special1]
type = ChangeState
value = 1660
triggerall = stateno != [1600,1699]
triggerall = command = "agarre_Garras_violentas"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact


;proyectil garras en el suelo

[State -1]
type = ChangeState
value = 1300
triggerall = stateno != [1600,1699]
triggerall = command = "suelo_garras"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

[State -1]
type = ChangeState
value = 1301
triggerall = stateno != [1600,1699]
triggerall = command = "suelo_garras1"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

[State -1]
type = ChangeState
value = 1302
triggerall = stateno != [1600,1699]
triggerall = command = "suelo_garras2"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact



;garras ascendente

[State -1]
type = ChangeState
value = 1400
triggerall = stateno != [1600,1699]
triggerall = command = "ascendente_garras"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact


[State -1]
type = ChangeState
value = 1401
triggerall = stateno != [1600,1699]
triggerall = command = "ascendente_garras1"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

[State -1]
type = ChangeState
value = 1402
triggerall = stateno != [1600,1699]
triggerall = command = "ascendente_garras2"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact



;garras giratoria

[State -1]
type = ChangeState
value = 1500
triggerall = stateno != [1600,1699]
triggerall = Command = "garras_giratoia"
trigger1 = statetype != A
trigger1 = ctrl || (stateno = 100 && time >= 5)
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

[State -1]
type = ChangeState
value = 1520
triggerall = stateno != [1600,1699]
triggerall = Command = "garras_giratoia1"
trigger1 = statetype != A
trigger1 = ctrl || (stateno = 100 && time >= 5)
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

[State -1]
type = ChangeState
value = 1540
triggerall = stateno != [1600,1699]
triggerall = Command = "garras_giratoia2"
trigger1 = statetype != A
trigger1 = ctrl || (stateno = 100 && time >= 5)
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact



;Combo garras


[State -1]
type = ChangeState
value = 1760
triggerall = stateno != [1600,1699]
triggerall = command = "combo_garras"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

[State -1]
type = ChangeState
value = 1700
triggerall = stateno != [1600,1699]
triggerall = command = "combo_garras1"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

[State -1]
type = ChangeState
value = 1731
triggerall = stateno != [1600,1699]
triggerall = command = "combo_garras2"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 220) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 240) && (MoveContact)
trigger8 = (stateno = 270) && (MoveContact)
trigger9 = (stateno = 250) && (MoveContact)
trigger10 = hitdefattr = SC, NA, SA
trigger10 = movecontact

;===========================================================================

;-------------------------
;-------------------------
;   Button combination
;-------------------------
;-------------------------

;Recarga de cosmo
[State -1]
type = ChangeState
value = 730000
triggerall = statetype = S
triggerall = Power < 3000
triggerall = ctrl = 1
trigger1 = command = "charge"
trigger1 = command = "charge 1"

; Megablock y incrementar cosmo
[State -1]
type = ChangeState
value = 2100
triggerall = command = "mega_block"
triggerall = command = "holdback"
trigger1 = statetype != A
trigger1 = ctrl = 1

;Septimo Sentido
[State -1]
type = ChangeState
value = 2000
triggerall = Var(59) = 0
triggerall = var(8) = 0
triggerall = command = "recover"
triggerall = power >= 3000
;triggerall = life <= 250
trigger1 = statetype != A
trigger1 = ctrl = 1

;===========================================================================

;-------------------------
;-------------------------
;        Double Tap
;-------------------------
;-------------------------

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


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



;===========================================================================

;-------------------------
;-------------------------
;      Dir + Button
;-------------------------
;-------------------------

;agarre Patada
[State -1]
type = ChangeState
value = 800
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = stateno != 100    ;Not running
triggerall = p2bodydist X < 35
triggerall = p2statetype != A
triggerall = p2movetype != H
trigger1 = command = "throw_2" && p2statetype = S && p2movetype != H
trigger2 = command = "throw_2" && p2statetype = C && p2movetype != H

;agarre puño 
[State -1]
type = ChangeState
value = 850
triggerall = statetype = S
triggerall = ctrl = 1
triggerall = stateno != 100    ;Not running
triggerall = p2bodydist X < 35
triggerall = p2statetype != A
triggerall = p2movetype != H
trigger1 = command = "throw_1" && p2statetype = S && p2movetype != H
trigger2 = command = "throw_1" && p2statetype = C && p2movetype != H

;puño Alternativo medio
[State -1]
type = ChangeState
value = 260
triggerall = command = "fwd_b"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 210) && (MoveContact)


;patada Alternativa  media
[State -1]
type = ChangeState
value = 270
triggerall = command = "fwd_y"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 240) && (MoveContact)

;Remate puño
[State -1]
type = ChangeState
value = 280
triggerall = command = "fwd_c"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 220) && (MoveContact)
trigger4 = (stateno = 230) && (MoveContact)
trigger5 = (stateno = 240) && (MoveContact)
trigger6 = (stateno = 270) && (MoveContact)
trigger7 = (stateno = 250) && (MoveContact)

;Remate patada
[State -1]
type = ChangeState
value = 290
triggerall = command = "fwd_z"
triggerall = command != "holddown"
triggerall = command = "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 210) && (MoveContact)
trigger4 = (stateno = 220) && (MoveContact)
trigger5 = (stateno = 260) && (MoveContact)
trigger6 = (stateno = 230) && (MoveContact)
trigger7 = (stateno = 250) && (MoveContact)


;===========================================================================

;-------------------------
;-------------------------
;       Hold Dir
;-------------------------
;-------------------------

; gancho (defensa al lebantarse)
[State -1,]
type = ChangeState
value = 960
triggerall = statetype = L
triggerall = Pos Y = 0
triggerall = life >= 1
trigger1 = command = "holda"
trigger2 = command = "holdb"
trigger3 = command = "holdc"



;===========================================================================

;-------------------------
;-------------------------
;   Single button
;-------------------------
;-------------------------


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




;-------------------------
;         Puños
;-------------------------


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


; Parado puño devil
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = Var(59) = 0
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 230) && (MoveContact)

; Parado puño medio
[State -1, Stand Medium Punch]
type = ChangeState
value = 210
triggerall = Var(59) = 0
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 230) && (MoveContact)
trigger4 = (stateno = 240) && (MoveContact)
trigger5 = (stateno = 260) && (MoveContact)
trigger6 = (stateno = 270) && (MoveContact)

; Parado puño fuerte
[State -1, Stand Strong Punch]
type = ChangeState
value = 220
triggerall = Var(59) = 0
triggerall = command = "c"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 210) && (MoveContact)
trigger3 = (stateno = 240) && (MoveContact)
trigger4 = (stateno = 260) && (MoveContact)
trigger5 = (stateno = 270) && (MoveContact)

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


; Agachado puño devil
[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = Var(59) = 0
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) && (MoveContact)
trigger3 = (stateno = 430) && (MoveContact)

; Agachado puño medio
[State -1, Crouching Medium Punch]
type = ChangeState
value = 410
triggerall = Var(59) = 0
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) && (MoveContact)
trigger3 = (stateno = 430) && (MoveContact)
trigger4 = (stateno = 440) && (MoveContact)

; Agachado puño fuerte
[State -1, Crouching Strong Punch]
type = ChangeState
value = 420
triggerall = Var(59) = 0
triggerall = command = "c"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 410) && (MoveContact)
trigger3 = (stateno = 440) && (MoveContact)

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


; aire puño devil
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = Var(59) = 0
triggerall = Vel X != 0
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

; aire puño medio
[State -1, Jump Medium Punch]
type = ChangeState
value = 610
triggerall = Var(59) = 0
triggerall = Vel X != 0
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl

; aire puño fuerte
[State -1, Jump Strong Punch]
type = ChangeState
value = 620
triggerall = Var(59) = 0
triggerall = Vel X != 0
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl


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


; aire puño salto neutro
[State -1]
type = ChangeState
value = 660
triggerall = Var(59) = 0
triggerall = command = "a"
triggerall = Vel X = 0
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 670) && (MoveContact)

; aire puño salto neutro
[State -1]
type = ChangeState
value = 660
triggerall = Var(59) = 0
triggerall = command = "b"
triggerall = Vel X = 0
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 670) && (MoveContact)

; aire puño salto neutro
[State -1]
type = ChangeState
value = 660
triggerall = Var(59) = 0
triggerall = command = "c"
triggerall = Vel X = 0
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 670) && (MoveContact)


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





;-------------------------
;         Patadas
;-------------------------


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

; Parado patada devil
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = Var(59) = 0
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 230) && (MoveContact) && (AnimElem >= 6) 



; Parado patada medio
[State -1, Standing Medium Kick]
type = ChangeState
value = 240
triggerall = Var(59) = 0
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (MoveContact)
trigger3 = (stateno = 230) && (MoveContact)
trigger4 = (stateno = 210) && (MoveContact)
trigger5 = (stateno = 270) && (MoveContact)


; Parado patada fuerte
[State -1, Standing Strong Kick]
type = ChangeState
value = 250
triggerall = Var(59) = 0
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 210) && (MoveContact)
trigger3 = (stateno = 240) && (MoveContact)
trigger4 = (stateno = 270) && (MoveContact)
trigger5 = (stateno = 260) && (MoveContact)




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


; Agachado patada devil
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = Var(59) = 0
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) && (MoveContact)
trigger3 = (stateno = 430) && (MoveContact)

; Agachado patada medio
[State -1, Crouching Medium Kick]
type = ChangeState
value = 440
triggerall = Var(59) = 0
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400) && (MoveContact)
trigger3 = (stateno = 430) && (MoveContact)
trigger4 = (stateno = 410) && (MoveContact)

; Agachado patada fuerte
[State -1, Crouching Strong Kick]
type = ChangeState
value = 450
triggerall = Var(59) = 0
triggerall = command = "z"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 410) && (MoveContact)
trigger3 = (stateno = 440) && (MoveContact)
trigger4 = (stateno = 430) && (MoveContact)
trigger5 = (stateno = 420) && (MoveContact)
trigger6 = (stateno = 400) && (MoveContact)
;--------------


; Aire patada devil
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = Var(59) = 0
triggerall = command = "x"
triggerall = Vel X != 0
trigger1 = statetype = A
trigger1 = ctrl

; Aire patada medio
[State -1, Jump Medium Kick]
type = ChangeState
value = 640
triggerall = Var(59) = 0
triggerall = command = "y"
triggerall = Vel X != 0
trigger1 = statetype = A
trigger1 = ctrl

; Aire patada fuerte
[State -1, Jump Strong Kick]
type = ChangeState
value = 650
triggerall = Var(59) = 0
triggerall = command = "z"
triggerall = Vel X != 0
trigger1 = statetype = A
trigger1 = ctrl


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


; aire patada salto neutro
[State -1]
type = ChangeState
value = 670
triggerall = Var(59) = 0
triggerall = command = "x"
triggerall = Vel X = 0
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 660) && (MoveContact)

; aire puño salto neutro
[State -1]
type = ChangeState
value = 670
triggerall = Var(59) = 0
triggerall = command = "y"
triggerall = Vel X = 0
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 660) && (MoveContact)

; aire puño salto neutro
[State -1]
type = ChangeState
value = 670
triggerall = Var(59) = 0
triggerall = command = "z"
triggerall = Vel X = 0
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 660) && (MoveContact)


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


;===========================================================================


;-----------------------------------------------------------------------
;****                                                               ****
;****                AI Inteligencia Artificial                     **** 
;****                                                               ****
;-----------------------------------------------------------------------




[State -1, AI]
type = Varset
trigger1 = command = "AI1"
trigger2 = command = "AI2"
trigger3 = command = "AI3"
trigger4 = command = "AI4"
trigger5 = command = "AI5"
trigger6 = command = "AI6"
trigger7 = command = "AI7"
trigger8 = command = "AI8"
trigger9 = command = "AI9"
trigger10 = command = "AI10"
trigger11 = command = "AI11"
trigger12 = command = "AI12"
trigger13 = command = "AI13"
trigger14 = command = "AI14"
trigger15 = command = "AI15"
trigger16 = command = "AI16"
trigger17 = command = "AI17"
trigger18 = command = "AI18"
trigger19 = command = "AI19"
trigger20 = command = "AI20"
trigger21 = command = "AI21"
trigger22 = command = "AI22"
trigger23 = command = "AI23"
trigger24 = command = "AI24"
trigger25 = command = "AI25"
trigger26 = command = "AI26"
trigger27 = command = "AI27"
trigger28 = command = "AI28"
trigger29 = command = "AI29"
trigger30 = command = "AI30"
trigger31 = command = "AI31"
trigger32 = command = "AI32"
trigger33 = command = "AI33"
trigger34 = command = "AI34"
trigger35 = command = "AI35"
trigger36 = command = "AI36"
trigger37 = command = "AI37"
trigger38 = command = "AI38"
trigger39 = command = "AI39"
trigger40 = command = "AI40"
trigger41 = command = "AI41"
trigger42 = command = "AI42"
trigger43 = command = "AI43"
trigger44 = command = "AI44"
trigger45 = command = "AI45"
trigger46 = command = "AI46"
trigger47 = command = "AI47"
trigger48 = command = "AI48"
trigger49 = command = "AI49"
trigger50 = command = "AI50"
trigger51 = command = "AI51"
trigger52 = command = "AI52"
trigger53 = command = "AI53"
trigger54 = command = "AI54"
trigger55 = command = "AI55"
trigger56 = command = "AI56"
trigger57 = command = "AI57"
trigger58 = command = "AI58"
trigger59 = command = "AI59"
trigger60 = command = "AI60"
trigger61 = command = "AI61"
trigger62 = command = "AI62"
trigger63 = command = "AI63"
trigger64 = command = "AI64"
trigger65 = command = "AI65"
trigger66 = command = "AI66"
trigger67 = command = "AI67"
v = 59
value = 1

;------------------------------------
; ------ AI parado cubrirse ---------
;------------------------------------

[State -1]
type = ChangeState
triggerall = var(59) = 1 
triggerall = Statetype != A 
triggerall = P2statetype != C 
triggerall = Statetype = S 
triggerall = P2Movetype = A 
triggerall = Pos Y != [-1,-999]
triggerall = ctrl = 1
trigger1 = random <= 999
value = 130

[State -1]
type = ChangeState 
triggerall = (Var(30) = 59) && (StateType = S) && (Pos Y = 0) && (P2BodyDist Y <= 0) 
triggerall = (P2BodyDist Y = -120) && (P2StateType != C) && (P2MoveType = A) 
trigger1 = (P2BodyDist X <= 120) && (Random = [401, 999]) && (Ctrl) 
trigger2 = (StateNo = [140, 155]) || (StateNo = [100, 105]) 
value = 130 

;--------------------------------------
; ------ AI AGachado cubrirse ---------
;--------------------------------------
; AI Stand to Crouch Guard Transition
[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = StateType != A
triggerall = P2statetype = C
triggerall = P2Movetype = A
triggerall = Pos Y != [-1,-999]
trigger1 = stateno = 150
trigger1 = 1
value = 152

; AI Crouching Guard
[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = StateType != A
triggerall = P2statetype = C
triggerall = P2Movetype = A
triggerall = Pos Y != [-1,-999]
triggerall = ctrl = 1
trigger1 = random <= 900
value = 131

[State -1]
type = ChangeState 
triggerall = (Var(30) = 59) && (StateType != A) && (Pos Y = 0) && (P2BodyDist Y <= 0) 
triggerall = (P2BodyDist Y = -50) && (P2StateType = C) && (P2MoveType = A) 
trigger1 = (P2BodyDist X <= 120) && (Random <= 799) && (Ctrl) 
trigger2 = (StateNo = [140, 155]) || (StateNo = [100, 105]) 
value = 131

;------------------------------------
; ------- AI Aerea cubrirse ---------
;------------------------------------

; AI Crouch to Stand Guard Transition
[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = Statetype != A
triggerall = P2statetype != C
triggerall = P2Movetype = A
triggerall = 1
trigger1 = stateno = 152
value = 150

;AI Aerial Guard
[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = Statetype = A
triggerall = P2Movetype = A
triggerall = ctrl = 1
trigger1 = random <= 900
value = 132

[State -1]
type = ChangeState 
triggerall = (Var(30) = 59) && (StateType = A) && (Pos Y = 0)  && (P2BodyDist Y = -120) 
triggerall = (StateType = A) && (P2MoveType = A) 
trigger1 = ((P2BodyDist X <= 120) && (Ctrl)) || (StateNo = [140, 155]) 
value = 132 


