; Queda prohibida la manipulación total o parcial de los sprites. ¡Los caballeros no son clones!
; The total or partial manipulation of sprites is forbidden. The saints aren't clones! 
; On interdit la manipulation totale ou partielle des sprites. Les chevaliers ne sont pas copie! 
; La manipolazione totale o parziale degli sprites è proibita. I cavalieri non sono clona! 


;-| AI |---La véritable intelligence d'un chevalier-------Aqualudo SSGA Team-----------------------------------------------------

[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 = B, DB, D, z, y, z
time = 1

[Command]
name = "AI31"
command = B, DB, D, a, a, a
time = 1

[Command]
name = "AI32"
command = B, DB, D, b, b, b
time = 1

[Command]
name = "AI33"
command = B, DB, D, c, c, c
time = 1

[Command]
name = "AI34"
command = B, DB, D, x, x, x
time = 1

[Command]
name = "AI35"
command = B, DB, D, y, y, y
time = 1

[Command]
name = "AI36"
command = B, DB, D, z, z, z
time = 1

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

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

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

[Command]
name = "AI40"
command = B, DB, D, DF, a, a, a
time = 1

[Command]
name = "AI41"
command = B, DB, D, DF, a, a, a
time = 1


[Command]
name = "AI42"
command = B, DB, D, DF, b, b, b
time = 1

[Command]
name = "AI43"
command = B, DB, D, DF, c, c, c
time = 1

[Command]
name = "AI44"
command = B, DB, D, DF, x, x, x
time = 1

[Command]
name = "AI45"
command = B, DB, D, DF, y, y, y
time = 1

[Command]
name = "AI46"
command = B, DB, D, DF, z, z, z
time = 1

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

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

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

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


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

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

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

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

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

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

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

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

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


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



[Command]
name = "qcbp2"
command = a+b+c+x+y+z
time = 30
[Command]
name = "qcbp2"
command = a+c
time = 30
;---------------------------
;helper
[Command]
name = "helper"
command = F, x+y+z
time = 30
;-----------------------------
[Command]
name = "qcfp2"
command = a+y
time = 30
[Command]
name = "qcbhcfp"
command = ~D, DF, F, a+z
time = 45
[Command]
name = "qcb_y"
command = b+x
time = 15
[Command]
name = "charge_x"
command = c+x
time = 15

; Especiales

; Magia en el aire con dos brazos
[Command]
name = "2_brazos"
command = D, DF, F, a
time = 15

; Magia en el aire con un brazo
[Command]
name = "1_brazo"
command = D, DF, F, z
time = 15

; Magia golpe al suelo
[Command]
name = "g_suelo"
command = D, DF, F, c
time = 15

; 3 bolas de fuego
[Command]
name = "3_bolas"
command = D, DB, B, a
time = 20

;Combinación de botones

;Defensa reversa (reversal def)
[Command]
name = "qcf_a"
command = c
time = 15	

;Recuperar
[Command]
name = "recover"
command = a+x
time = 10

; A + B
[Command]
name = "rdp_a"
command = a+b
time = 15

; Combo
[Command]
name = "hcf_x"
command = b+y
time = 15


; Patada misil
[Command]
name = "super"
command = x+z
time = 45


;Dir + botón
;----------------------
;----------------------

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

[Command]
name = "rdp_b"
command = ~30$F, B, z
time = 10

; Botones
;----------------------
;----------------------

[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 = "dp_x"
;command = x+z
time = 15
[Command]
name = "dp_y"
command = D, B, F, a+b
time = 15
[Command]
name = "hcf_y"
command = ~B, DB, D, DF, F, y
time = 15
[Command]
name = "FF"
command = F, F
time = 10
[Command]
name = "BB"
command = B, B
time = 10
[Command]
name = "recovery"
command = x+y
time = 1
[Command]
name = "dodge"
command = x+a
time = 1

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

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


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


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


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



[Command]
name = "hold_x"
command = /$x
time = 1


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


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

;boh
[Command]
name = "s"
command = s
time = 1


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

[Command]
name = "holdfwd"
command = /$F
time = 1
[Command]
name = "holdback"
command = /$B      
time = 1
;--------------------
; Holdback3
[Command]
name = "holdback3"
command = /$B   
time = 50
;---------------------

[Command]
name = "holdup"
command = /$U
time = 1
[Command]
name = "holddown"
command = 

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

[Statedef -1]

; ===================AI==============================================
; AI
[State -1, AI]
type = Varset
triggerall = RoundState = 1 || RoundState = 2 || RoundState = 3 || RoundState = 4 
triggerall = ctrl = 0 || ctrl = 1

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"
v = 59
value = 1


; ==========================
; AI Standing Guard
; ==========================
[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 <= 900 
value = 1400
; =============================
; 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
; =============================
; AI Crouch to Stand Guard Transition
; =============================
[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = Statetype != A
triggerall = P2statetype != C
triggerall = P2Movetype = A
trigger1 = 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

;--------------------------- Spéciales AI -----------------------------------------------------


[State -1]; Flammes
type = changestate
Triggerall = roundstate = 2
triggerall = (var(59) = 1) && (statetype = S) && (ctrl) && (random = [0, 450])
trigger1 = (P2bodydist X >= 150) && (p2movetype = A) && (power >= 1400) && (prevstateno != 5120)
value = 210

[State -1]; Flammes de l'enfer
type = changestate
Triggerall = roundstate = 2
triggerall = (var(59) = 1) && (statetype = S) && (ctrl) && (random = [0, 900])
trigger1 = (P2bodydist X >= 150) && (prevstateno != 5120) && (power >= 2000) && (p2movetype != A) && (numproj = 0)
value = 7210

[State -1]; Boules de feu
type = changestate
Triggerall = roundstate = 2
triggerall = (var(59) = 1) && (statetype = S) && (ctrl) && (random = [0, 600])
trigger1 = (P2bodydist X >= 200) && (prevstateno != 5120) && (power >= 1000) && (p2movetype != A)
value = 225

;============================== AI Attaques fatales ====================================================
[State -1];Tu vas mourrir par le feu!
type = changestate
Triggerall = roundstate = 2
triggerall = (var(59) = 1) && (statetype = S) && (ctrl)
trigger1 = (p2bodydist X >= 150) &&  (power >= 1500) && (random = [0,500]) && (p2statetype != A)
value = 8000

[State -1]
type = changestate
Triggerall = roundstate = 2
triggerall = (var(59) = 1) && (statetype = S) && (ctrl) && (p2statetype != A)
trigger1 = (p2bodydist X >= 200) && (power >= 500) && (random = [600,949])
value = 680

[State -1]
type = changestate
Triggerall = roundstate = 2
triggerall = (var(59) = 1) && (statetype = S) && (ctrl) 
trigger1 = (p2bodydist X >= 40) && (power >= 1000) && (random = [50,150]) && (p2statetype != A)
value = 1200

[State -1]
type = ChangeState
triggerall = var(59) = 1
triggerall = StateType != A
triggerall = P2statetype != L
triggerall = P2Life <= 700
triggerall = P2Movetype != I
;triggerall = Power >= 1500
triggerall = ctrl = 1
trigger1 = random <= 199
triggerall = p2bodydist X <= 100
value = 1600

;Combo aerea
[State -1]
type = ChangeState
value = 40
triggerall = command = "holdup"
trigger1 = movecontact = 1
trigger1 = stateno = 405

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


[State -1]
type = ChangeState
value = 2050
trigger1 = command = "qcbp2"
trigger1 = power >= 3000
trigger1 = life <= 170
trigger1 = statetype != A
trigger1 = statetype != C
trigger1 = ctrl = 1

; Espacial
;-------------------------
;-------------------------

; Magia en el aire con un brazo
[State -1]
type = ChangeState
value = 210
triggerall = command = "1_brazo"
triggerall = power >= 1500
trigger1 = statetype = S
trigger1 = ctrl = 1

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

; Magia en el aire con dos brazos
[State -1]
type = ChangeState
value = 7210
triggerall = command = "2_brazos"
triggerall = power >= 1900
trigger1 = statetype = S
trigger1 = ctrl = 1

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

; Magia golpe al suelo
[State -1]
type = ChangeState
value = 8000
triggerall = command = "g_suelo"
triggerall = power >= 1700
trigger1 = statetype = S
trigger1 = ctrl = 1

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

; bola de fuego
[State -1]
type = ChangeState
value = 225
triggerall = command = "3_bolas"
trigger1 = statetype != A
trigger1 = statetype != C
trigger1 = ctrl = 1

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

; Combinación de botones
;-------------------------
;-------------------------

; Revés
[State -1]
type = ChangeState
value = 1400
triggerall = command = "qcf_a"
triggerall = command = "holdback"
trigger1 = statetype != A
trigger1 = ctrl = 1

; Recuperar
[State -1]
type = ChangeState
value = 2000
trigger1 = Var(1) != 1
triggerall = command = "recover"
trigger1 = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl = 1

; Ataque 1
[State -1]
type = ChangeState
value = 1200
triggerall = command = "rdp_a"
trigger1 = statetype != C
trigger1 = statetype != A
trigger1 = ctrl = 1


; Combo
[State -1]
type = ChangeState
value = 1600
triggerall = command = "hcf_x"
trigger1 = statetype = S
trigger1 = statetype != A
trigger1 = ctrl = 1


; Patada misil
[State -1]
type = ChangeState
value = 680
triggerall = command = "super"
trigger1 = statetype = A
trigger1 = ctrl = 1


; Patada fuerte
;[State -1]
;type = ChangeState
;value = 260
;triggerall = command = "shk"
;trigger1 = statetype = S
;trigger1 = P2bodydist X <= 15
;trigger1 = command != "holddown"
;trigger1 = ctrl = 1


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






; Direcciones y botones
;-------------------------

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

; Patada alta
[State -1]
type = ChangeState
value = 240
triggerall = command = "fwd_y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 260
trigger2 = movecontact = 1
;-----------------------------------------


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

; Puño en el aire (con a)
[State -1]
type = ChangeState
value = 640
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl = 1

; Puño en el aire (con b)
[State -1]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl = 1

; Puño en el aire (con c)
[State -1]
type = ChangeState
value = 640
triggerall = command = "c"
trigger1 = statetype = A
trigger1 = ctrl = 1

; Puño agachado flojo
[State -1]
type = ChangeState
value = 400
triggerall = command = "a"
trigger1 = statetype = C
trigger1 = ctrl = 1

; Puño agachado medio
[State -1]
type = ChangeState
value = 405
triggerall = command = "b"
trigger1 = statetype = C
trigger1 = ctrl = 1

; Puño agachado fuerte
[State -1]
type = ChangeState
value = 410
triggerall = command = "c"
trigger1 = statetype = C
trigger1 = ctrl = 1

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

; Patada en el aire (con x)
[State -1]
type = ChangeState
value = 630
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = movecontact = 1

; Patada en el aire (con y)
[State -1]
type = ChangeState
value = 630
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl = 1

; Patada en el aire (con z)
[State -1]
type = ChangeState
value = 630
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl = 1

; Golpe x
[State -1]
type = ChangeState
value = 440
triggerall = command = "x"
trigger1 = statetype = C
trigger1 = ctrl = 1

; Golpe y
[State -1]
type = ChangeState
value = 440
triggerall = command = "y"
trigger1 = statetype = C
trigger1 = ctrl = 1

; Golpe z
[State -1]
type = ChangeState
value = 440
triggerall = command = "z"
trigger1 = statetype = C
trigger1 = ctrl = 1

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

; Combo en el aire
[State -1]
type = ChangeState
value = 1230
triggerall = command = "rdp_b"
trigger1 = statetype = S
trigger1 = ctrl = 1

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

; Botón
;--------------------------
;--------------------------

; Puño débil
[State -1]
type = ChangeState
value = 200
triggerall = command = "a"
trigger1 = statetype = S
trigger1 = command != "holddown"
trigger1 = ctrl = 1

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

;Puño medio
[State -1]
type = ChangeState
value = 215
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = movecontact = 1
trigger3 = stateno = 220
trigger3 = movecontact = 1
;-----------------------------------------

;Puño fuerte
[State -1]
type = ChangeState
value = 201
triggerall = command = "c"
trigger1 = statetype != A
trigger1 = statetype != C
trigger1 = ctrl = 1
trigger2 = stateno = 215
trigger2 = movecontact = 1
trigger3 = stateno = 250
trigger3 = movecontact = 1
;----------------------------------------

; Rodillazo  x
[State -1]
type = ChangeState
value = 230
triggerall = command = "x"
trigger1 = statetype = S
trigger1 = P2bodydist X <= 8
trigger1 = command != "holddown"
trigger1 = ctrl = 1

; Rodillazo y
[State -1]
type = ChangeState
value = 230
triggerall = command = "y"
trigger1 = statetype = S
trigger1 = P2bodydist X <= 8
trigger1 = command != "holddown"
trigger1 = ctrl = 1

; Rodillazo z
[State -1]
type = ChangeState
value = 230
triggerall = command = "z"
trigger1 = statetype = S
trigger1 = P2bodydist X <= 8
trigger1 = command != "holddown"
trigger1 = ctrl = 1
;------------------------------------------


; Patada débil
[State -1]
type = ChangeState
value = 220
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger3 = stateno = 200
trigger3 = movecontact = 1
;----------------------------------------

; Patada media
[State -1]
type = ChangeState
value = 250
triggerall = command = "y"
trigger1 = statetype = S
trigger1 = command != "holddown"
trigger1 = ctrl = 1
trigger2 = stateno = 220
trigger2 = movecontact = 1
trigger3 = stateno = 215
trigger3 = movecontact = 1
;----------------------------------------

; Patada fuerte
[State -1]
type = ChangeState
value = 290
triggerall = command = "z"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 250
trigger2 = movecontact = 1
trigger3 = stateno = 201
trigger3 = movecontact = 1
;-----------------------------------------




[State -1]
type = ChangeState
value = 2150
triggerall = command = "qcfp2"
triggerall = power >= 3000
triggerall = life <= 170
trigger1 = statetype != A
trigger1 = P2statetype != A
trigger1 = P2bodydist X < 30
trigger1 = P2stateno != 40
trigger1 = P2stateno != 5110
trigger1 = P2stateno != 5120
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = MoveContact = 1
trigger3 = stateno = 230
trigger3 = MoveContact = 1
trigger4 = stateno = 250
trigger4 = MoveContact = 1
trigger5 = stateno = 270
trigger5 = MoveContact = 1
trigger6 = stateno = 400
trigger6 = MoveContact = 1
trigger7 = stateno = 440
trigger7 = MoveContact = 1
trigger8 = stateno = 460
trigger8 = MoveContact = 1


;------------------------------------
[State -1]
type = ChangeState
value = 2250
triggerall = command = "qcbhcfp"
triggerall = power >= 3000
triggerall = life <= 170
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = MoveContact = 1
trigger3 = stateno = 230
trigger3 = MoveContact = 1
trigger4 = stateno = 250
trigger4 = MoveContact = 1
trigger5 = stateno = 270
trigger5 = MoveContact = 1
trigger6 = stateno = 400
trigger6 = MoveContact = 1
trigger7 = stateno = 440
trigger7 = MoveContact = 1
trigger8 = stateno = 460
trigger8 = MoveContact = 1

[State -1]
type = ChangeState
value = 1140
triggerall = command = "qcb_y"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = stateno = 600
trigger2 = MoveContact = 1
trigger3 = stateno = 620
trigger3 = MoveContact = 1
trigger4 = stateno = 630
trigger4 = MoveContact = 1
trigger5 = stateno = 640
trigger5 = MoveContact = 1
trigger6 = stateno = 660
trigger6 = MoveContact = 1
trigger7 = stateno = 226
trigger7 = MoveHit = 1

[State -1]
type = ChangeState
value = 1650
triggerall = command = "hcf_y"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = MoveContact = 1
trigger3 = stateno = 230
trigger3 = MoveContact = 1
trigger4 = stateno = 250
trigger4 = MoveContact = 1
trigger5 = stateno = 270
trigger5 = MoveContact = 1
trigger6 = stateno = 400
trigger6 = MoveContact = 1
trigger7 = stateno = 440
trigger7 = MoveContact = 1
trigger8 = stateno = 460
trigger8 = MoveContact = 1

[State -1]
type = ChangeState
value = 1300
triggerall = command = "charge_x"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = MoveContact = 1
trigger3 = stateno = 230
trigger3 = MoveContact = 1
trigger4 = stateno = 250
trigger4 = MoveContact = 1
trigger5 = stateno = 270
trigger5 = MoveContact = 1
trigger6 = stateno = 400
trigger6 = MoveContact = 1
trigger7 = stateno = 440
trigger7 = MoveContact = 1
trigger8 = stateno = 460
trigger8 = MoveContact = 1

;[State -1]
;type = ChangeState
;value = 1500
;triggerall = command = "dp_x"
;trigger1 = statetype != A
;trigger1 = ctrl = 1
;trigger2 = stateno = 200
;trigger2 = MoveContact = 1
;trigger3 = stateno = 230
;trigger3 = MoveContact = 1
;trigger4 = stateno = 250
;trigger4 = MoveContact = 1
;trigger5 = stateno = 270
;trigger5 = MoveContact = 1
;trigger6 = stateno = 400
;trigger6 = MoveContact = 1
;trigger7 = stateno = 440
;trigger7 = MoveContact = 1
;trigger8 = stateno = 460
;trigger8 = MoveContact = 1

[State -1]
type = ChangeState
value = 1525
triggerall = command = "dp_y"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = stateno = 200
trigger2 = MoveContact = 1
trigger3 = stateno = 230
trigger3 = MoveContact = 1
trigger4 = stateno = 250
trigger4 = MoveContact = 1
trigger5 = stateno = 270
trigger5 = MoveContact = 1
trigger6 = stateno = 400
trigger6 = MoveContact = 1
trigger7 = stateno = 440
trigger7 = MoveContact = 1
trigger8 = stateno = 460
trigger8 = MoveContact = 1

[State -1]
type = VarAdd
v = 1
value = 1
trigger1 = command = "y"
trigger1 = stateno = 1525


; Patada doble
;[State -1]
;type = ChangeState
;value = 241
;triggerall = command = "fwd_y"
;trigger1 = P2statetype = A
;trigger1 = statetype = S
;trigger1 = command != "holddown"
;trigger1 = ctrl = 1

[State -1]
type = ChangeState
value = 420
triggerall = command = "a"
trigger1 = statetype = C
trigger1 = ctrl = 1

[State -1]
type = ChangeState
value = 600
trigger1 = command = "x"
trigger1 = statetype = A
trigger1 = ctrl = 1

[State -1]
type = ChangeState
value = 620
trigger1 = command = "a"
trigger1 = statetype = A
trigger1 = Vel X = 0
trigger1 = ctrl = 1

[State -1]
type = ChangeState
value = 199
trigger1 = command = "s"
trigger1 = statetype != A
trigger1 = stateno != 199
trigger1 = ctrl = 1

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

[State -1]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = command != "holddown"
trigger1 = ctrl = 1

;-----------------------------
; Se cubre
[State -1]
type = ChangeState
value = 3675
triggerall = StateType != A
triggerall = StateType != C
triggerall = P2StateNo = 1330
trigger1 = command = "holdback3"
trigger1 = statetype = S
trigger1 = command != "holddown"
trigger1 = ctrl = 1
;----------------------------------------------

;---------------------------------------------------------------------------
; Override common states (use same number to override) :
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
; States that are always executed (use statedef -2)
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
; States that are executed when in self's state file (use statedef -3)
;---------------------------------------------------------------------------
;                                   ALL SELFSTATE
;---------------------------------------------------------------------------
