;-------------------------------------------------------------------------------
;-------------------=El Principe Saiyajin Vegeta= By Team OS´cmd=---------------
;-------------------------------------------------------------------------------
;------------------------------| Super Motions |--------------------------------




 ; --------- Nivel 3 -----------

[Command]
name = "Ohzauru"
command = ~D,DF,F,DF,D,DB,B, a+b
time = 30


[Command]
name = "Explosion Atomica de Ki"
command = ~D, DB, B, D, DB, B, a+b
time = 30


; --------- Nivel 2 -----------

[Command]
name = "Rayo destructor de mundos"
command = ~D,DF,F,B, x+y
time = 30

[Command]
name = "Flash Dead To Nappa"
command = ~D, DB, B, F, x+y
time = 30


; --------- Nivel 1 -----------
[Command]
name = "Gyaric ho"
command = ~D, DB, B, F, c
time = 30

[Command]
name = "Death Kiwi"
command = ~D, DF, F, D, DF, F, x
time = 30

[Command]
name = "Death Kiwi"
command = ~D, DF, F, D, DF, F, y
time = 30


;-| Special Ki |--------------------------------------------------------


[Command]
name = "Bola de Fuego"
command = D,DF, F, c
time = 30

[Command]
name = "Kienzan"
command = ~B, F, B, c
time = 30

[Command]
name = "Yubisaka-Kara Energy"
command = ~F, B, F, x
time = 30

[Command]
name = "Yubisaka-Kara Energy Electrico"
command = ~F, B, F, y
time = 30

[Command]
name = "Ki bomb"
command = D, DB, B, c
time = 30

[Command]
name = "Ki gaiser"
command = D, D, c
time = 30



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

[Command]
name = "shoryuken"
command = ~F, D, DF,  x
time = 30

[Command]
name = "shoryuken-fuerte"
command = ~F, D, DF,  y
time = 30

[Command]
name = "codazo"
command = D, DB, B, y
time = 30

[Command]
name = "codazo devil"
command = D, DB, B, x
time = 30

[Command]
name = "codazo patada"
command = D, DB, B, b
time = 30

[Command]
name = "Patada Con vuelta"
command = F, D, DF, a
time = 30

[Command]
name = "Ataque Rodillazo Volador"
command = D,DB,B,a
time = 20

[Command]
name = "Ataque Rodillazo Volador B"
command = D,DB,B, b
time = 20

[Command]
name = "patada arriba y abajo"
command = F, D, DF, b
time = 30

[Command]
name = "Raigeki Shuu Devil"
command = ~F, DF, D, a
time = 20

[Command]
name = "Raigeki Shuu Fuerte"
command = ~F, DF, D, b
time = 20

;-| Comands  |-----------------------------------------------------------

[Command]
name = "Fire Balls"
command = c
time = 15

[Command]
name = "Super Jump"
command = ~D, U
time = 10

;-| 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 = "charge"
command = /x
time = 1

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

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

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

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

[Command]
name = "FF"
command = F, F
time = 10

[Command]
name = "BB"
command = B, B
time = 10

[Command]
name = "UU"
command = U, U
time = 10

[Command]
name = "DD"
command = D, D
time = 10



;-| Dir + Button |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

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

;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1

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

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

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

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

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

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

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

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

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

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

;---------- Comandos de la Inteligencia Artificial-----------------
; Comandos activadores
;[Command]
;name = "AI Prueba"
;command = b+c ; con el botón A+B activamos la AI
;time = 10

;[Command]
;name = "AI desactivado"
;command = y+z ; Con el boton B+C desactivamos la AI
;time = 10

;---------- comandos para que la PC active la IA -------------------------
[command]
name = "AI1"
command = b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
time = 1

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

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

[command]
name = "AI4"
command = a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b,a
time = 1

[command]
name = "AI5"
command = b,a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b
time = 1

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

[command]
name = "AI7"
command = b,x,b,b,x,b,b,b,b,b,x,x,b,b,x,b,b,b,b,b,x
time = 1

[command]
name = "AI8"
command = x,y,b,b,b,y,b,b,b,b,y,b,y,b,b,b,y,b,b,b,b,y
time = 1

[command]
name = "AI9"
command = a,b,b,b,s,z,y,x,c,b,a,b,b,b,b,s,z,y,x,c,b,a 
time = 1

[command]
name = "AI10"
command = z,b,x,y,b,b,c,b,b,b,a,z,b,x,y,b,b,c,b,b,b,a 
time = 1

[command]
name = "AI11"
command = c,x,b,b,x,b,b,b,b,b,z,c,x,b,b,x,b,b,b,b,b,z
time = 1

[command]
name = "AI12"
command = x,y,b,s,b,y,b,b,b,b,y,y,b,s,b,y,b,b,b,b,y
time = 1

[command]
name = "AI13"
command = y,b,b,z,s,z,y,x,c,b,a,b,b,b,z,s,z,y,x,c,b,a
time = 1

[command]
name = "AI14"
command = z,b,x,y,b,b,c,b,b,c,a,z,b,x,y,b,b,c,b,b,c,a
time = 1


;---------------------------------------------------------------------------
; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]
;===========================================================================
;This is not a move, but it sets up var(1) to be 1 if conditions are right
;for a combo into a special move (used below).
;Since a lot of special moves rely on the same conditions, this reduces
;redundant logic.
[State -1, Combo condition Reset]
type = VarSet
trigger1 = 1
var(1) = 0

[State -1, Combo condition Check]
type = VarSet
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499])
trigger2 = stateno != 440 ;Except for sweep kick
trigger2 = movecontact
var(1) = 1

;===================================================================================
;---------------- Supers -----------------------------------------------------------
;===================================================================================



;Flash Dead To Nappa
[State -1, Flash Dead To Nappa]
type = ChangeState
value = 3200
triggerall = power >= 2000
triggerall = command = "Flash Dead To Nappa"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)

;Rayo destructor de mundos
[State -1, Rayo destructor de mundos]
type = ChangeState
value = 4700
triggerall = power >= 2000
triggerall = command = "Rayo destructor de mundos"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 601) && (movecontact = 1)
trigger4 = (stateno = 610) && (movecontact = 1)
trigger5 = (stateno = 630) && (movecontact = 1)
trigger6 = (stateno = 640) && (movecontact = 1)
trigger7 = (stateno = 500)  && (movecontact = 1)
trigger8 = (stateno = 510)  && (movecontact = 1)
trigger9 = (stateno = 530)  && (movecontact = 1)
trigger10 = (stateno = 531)  && (movecontact = 1)
trigger11 = (stateno = 540)  && (movecontact = 1)
trigger12 = (stateno = 2400)
trigger13 = (stateno = 1100)


;Gyaric ho
[State -1, Gyaric ho]
type = ChangeState
value = 3100
triggerall = power >= 1000
triggerall = command = "Gyaric ho"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 601) && (movecontact = 1)
trigger4 = (stateno = 610) && (movecontact = 1)
trigger5 = (stateno = 630) && (movecontact = 1)
trigger6 = (stateno = 640) && (movecontact = 1)
trigger7 = (stateno = 500)  && (movecontact = 1)
trigger8 = (stateno = 510)  && (movecontact = 1)
trigger9 = (stateno = 530)  && (movecontact = 1)
trigger10 = (stateno = 531)  && (movecontact = 1)
trigger11 = (stateno = 540)  && (movecontact = 1)
trigger12 = (stateno = 2400)
trigger13 = (stateno = 1100)


;Explosion Atomica de Ki
[State -1, Explosion Atomica de Ki]
type = ChangeState
value = 3500
triggerall = power >= 3000
triggerall = command = "Explosion Atomica de Ki"
trigger1 = statetype != A
trigger1 = ctrl = 1

;Death Kiwi
[State -1, Death Kiwi]
type = ChangeState
value = 3300
triggerall = power >= 1500
triggerall = command = "Death Kiwi"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)

[State -1, Ohzauru]
type = ChangeState
value = 6000
triggerall = command = "Ohzauru"
triggerall = power >= 3000
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = (stateno = 210) && (movecontact = 1)
trigger3 = (stateno = 200) && (movecontact = 1)
trigger4 = (stateno = 201) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 241) && (movecontact = 1)
trigger8 = (stateno = 400) && (movecontact = 1)
trigger9 = (stateno = 410) && (movecontact = 1)
trigger10 = (stateno = 430) && (movecontact = 1)
trigger11 = (stateno = 1120) && (movecontact = 1)
trigger12 = (stateno = 1130) && (movecontact = 1)
trigger13 = (stateno = 1140) && (movecontact = 1)
trigger14 = (stateno = 1150) && (movecontact = 1)
trigger15 = (stateno = 1160) && (movecontact = 1)
trigger16 = (stateno = 1520) && (Time >= 42)
trigger17 = (stateno = 1570) && (Time >= 13)
trigger18 = (stateno = 300) && (Time > 12)
trigger19 = (stateno = 301) && (Time > 5)



;===================================================================================
;---------------- Specials Ki -----------------------------------------------------------
;===================================================================================

;Bola de Fuego
[State -1, Bola de Fuego]
type = ChangeState
value = 4600
triggerall = power >= 400
triggerall = numhelper(2554) = 0
triggerall = command = "Bola de Fuego"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)


;Ki bomb en el aire
[State -1, Ki bomb en el aire]
type = ChangeState
value = 2400
triggerall = power >= 200
triggerall = command = "Ki bomb"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 610) && (movecontact = 1)
trigger4 = (stateno = 630) && (movecontact = 1)
trigger5 = (stateno = 640) && (movecontact = 1)
trigger6 = (stateno = 1500)  && (movecontact = 1)
trigger7 = (stateno = 1800)  && (movecontact = 1)
trigger8 = (stateno = 1900)  && (movecontact = 1)

;Ki bomb
[State -1, Ki bomb]
type = ChangeState
value = 2400
triggerall = power >= 200
triggerall = command = "Ki bomb"
trigger1 = statetype = s
trigger1 = ctrl = 1
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 610) && (movecontact = 1)
trigger4 = (stateno = 630) && (movecontact = 1)
trigger5 = (stateno = 640) && (movecontact = 1)
trigger6 = (stateno = 1500)  && (movecontact = 1)
trigger7 = (stateno = 1800)  && (movecontact = 1)
trigger8 = (stateno = 1900)  && (movecontact = 1)


;kienzan
[State -1, Kienzan]
type = ChangeState
value = 2200
triggerall = power >= 200
triggerall = command = "Kienzan"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)



;ki gaiser
[State -1, Ki gaiser]
type = ChangeState
value = 2000
triggerall = power >= 400
triggerall = command = "Ki gaiser"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)

;Yubisaka-Kara Energy
[State -1, Yubisaka-Kara Energy]
type = ChangeState
value = 1400
triggerall = power >= 100
triggerall = command = "Yubisaka-Kara Energy"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)

;Yubisaka-Kara Energy Electrico
[State -1, Yubisaka-Kara Energy Electrico]
type = ChangeState
value = 1700
triggerall = power >= 200
triggerall = command = "Yubisaka-Kara Energy Electrico"
trigger1 = statetype != A
trigger1 = p2stateno != 5001
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)




;Fire Balls - en el aire - Abajo
[State -1, Fire Balls - en el aire - Abajo]
type = ChangeState
value = 1040
triggerall = numhelper(1050) = 0 || numhelper (1051) = 0 || numhelper (1052) = 0 || numhelper (1053) = 0
triggerall = power >= 50
triggerall = (command = "Fire Balls")  && (command = "holddown")
trigger1 = ctrl = 1
trigger1 = statetype = A
trigger2 = Stateno = 1100
trigger3 = (stateno = 600) && (movecontact = 1)
trigger4 = (stateno = 610) && (movecontact = 1)
trigger5 = (stateno = 630) && (movecontact = 1)
trigger6 = (stateno = 640) && (movecontact = 1)
trigger7 = (stateno = 300) && (movecontact = 1)
trigger8 = (stateno = 500) && (movecontact = 1)
trigger9 = (stateno = 510) && (movecontact = 1)
trigger10 = (stateno = 530) && (movecontact = 1)
trigger11 = (stateno = 540) && (movecontact = 1)

;Fire Balls - en el aire  - Diagonales
[State -1, Fire Balls - en el aire - Diagonales]
type = ChangeState
value = 1020
triggerall = numhelper(1030) = 0 || numhelper (1031) = 0 || numhelper (1032) = 0 || numhelper (1033) = 0
triggerall = power >= 50
triggerall = command = "Fire Balls"
trigger1 = ctrl = 1
trigger1 = statetype = A
trigger2 = Stateno = 1100
trigger3 = (stateno = 600) && (movecontact = 1)
trigger4 = (stateno = 610) && (movecontact = 1)
trigger5 = (stateno = 630) && (movecontact = 1)
trigger6 = (stateno = 640) && (movecontact = 1)
trigger7 = (stateno = 300) && (movecontact = 1)
trigger8 = (stateno = 500) && (movecontact = 1)
trigger9 = (stateno = 510) && (movecontact = 1)
trigger10 = (stateno = 530) && (movecontact = 1)
trigger11 = (stateno = 540) && (movecontact = 1)

;Fire Balls
[State -1, Fire Balls]
type = ChangeState
value = 1000
triggerall = numhelper(1010) = 0 || numhelper (1011) = 0 || numhelper (1012) = 0 || numhelper (1013) = 0
triggerall = power >= 50
triggerall = command = "Fire Balls"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)





;===================================================================================
;---------------- Specials ---------------------------------------------------------
;===================================================================================
;codaso
[State -1, codazo fuerte]
type = ChangeState
value = 1300
triggerall = command = "codazo"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)

[State -1, codazo devil]
type = ChangeState
value = 1200
triggerall = command = "codazo devil"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)


;Patada Con vuelta
[State -1, Patada Con vuelta]
type = ChangeState
value = 1500
triggerall = command = "Patada Con vuelta"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)
trigger14 = (stateno = 1270)


;Raigeki Shuu Devil
[State -1: 		Raigeki Shuu Devil]
type 			= ChangeState
value 		        = 1850
triggerall 		= (Command = "Raigeki Shuu Devil")
trigger1		= (StateType = A) && (Ctrl)
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 610) && (movecontact = 1)
trigger4 = (stateno = 620) && (movecontact = 1)
trigger5 = (stateno = 630) && (movecontact = 1)
trigger6 = (stateno = 510) && (movecontact = 1)
trigger7 = (stateno = 520) && (movecontact = 1)
trigger8 = (stateno = 530) && (movecontact = 1)
trigger9 = (stateno = 540) && (movecontact = 1)
trigger10 = (stateno = 991)
trigger11 = (stateno = 920) && (time >= 15)
trigger12 = (stateno = 921) && (time >= 15)
trigger13 = (stateno = 922) && (time >= 15)
trigger14 = (stateno = 1200) && (time >= 16)
trigger15 = (stateno = 1250) && (time >= 16)


;Raigeki Shuu Fuerte
[State -1: 		Raigeki Shuu Fuerte]
type 			= ChangeState
value 	         	= 1860
triggerall 		= (Command = "Raigeki Shuu Fuerte")
trigger1		= (StateType = A) && (Ctrl)
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 610) && (movecontact = 1)
trigger4 = (stateno = 620) && (movecontact = 1)
trigger5 = (stateno = 630) && (movecontact = 1)
trigger6 = (stateno = 510) && (movecontact = 1)
trigger7 = (stateno = 520) && (movecontact = 1)
trigger8 = (stateno = 530) && (movecontact = 1)
trigger9 = (stateno = 540) && (movecontact = 1)
trigger10 = (stateno = 991)
trigger11 = (stateno = 920) && (time >= 15)
trigger12 = (stateno = 921) && (time >= 15)
trigger13 = (stateno = 922) && (time >= 15)
trigger14 = (stateno = 1200) && (time >= 16)
trigger15 = (stateno = 1250) && (time >= 16)

;shoryuken
[State -1,]
type = ChangeState
value = 1550
triggerall = var(59) = 0
triggerall = command = "shoryuken"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 100
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact; = 1
trigger4 = stateno = 210 && movecontact; = 1
trigger5 = stateno = 230 && movecontact; = 1
trigger6 = stateno = 200 && movecontact; = 1
trigger7 = stateno = 204 && movecontact; = 1
trigger8 = stateno = 250 && movecontact; = 1
trigger9 = stateno = 260 && movecontact; = 1
trigger10 = stateno = 270 && movecontact; = 1
trigger11 = stateno = 400 && movecontact; = 1
trigger12 = stateno = 410 && movecontact; = 1
trigger13 = stateno = 420 && movecontact; = 1
trigger14 = stateno = 450 && movecontact; = 1
trigger15 = stateno = 500 && movecontact; = 1
trigger16 = stateno = 550 && movecontact
trigger17 = stateno = 5120
trigger18 = stateno = 101 || stateno = 102

;shoryuken Fuerte
[State -1,]
type = ChangeState
value = 1560
triggerall = var(59) = 0
triggerall = command = "shoryuken-fuerte"
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 100
trigger2 = animelem = 1, >= 1
trigger3 = stateno = 220 && movecontact; = 1
trigger4 = stateno = 210 && movecontact; = 1
trigger5 = stateno = 230 && movecontact; = 1
trigger6 = stateno = 200 && movecontact; = 1
trigger7 = stateno = 204 && movecontact; = 1
trigger8 = stateno = 250 && movecontact; = 1
trigger9 = stateno = 260 && movecontact; = 1
trigger10 = stateno = 270 && movecontact; = 1
trigger11 = stateno = 400 && movecontact; = 1
trigger12 = stateno = 410 && movecontact; = 1
trigger13 = stateno = 420 && movecontact; = 1
trigger14 = stateno = 450 && movecontact; = 1
trigger15 = stateno = 500 && movecontact; = 1
trigger16 = stateno = 550 && movecontact
trigger17 = stateno = 5120
trigger18 = stateno = 101 || stateno = 102




[State -1, arriba abajo]
type = ChangeState
value = 1600
triggerall = command = "patada arriba y abajo"
trigger1 = statetype != A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)
trigger14 = (stateno = 1270)



[State -1, Ataque Rodillazo Volador]
type = ChangeState
value = 4500
triggerall = command = "Ataque Rodillazo Volador"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)
trigger14 = (stateno = 1200) && (movecontact = 1)
trigger15 = (stateno = 1300) && (movecontact = 1)

[State -1, Ataque Rodillazo Volador B Fuerte]
type = ChangeState
value = 4530
triggerall = command = "Ataque Rodillazo Volador B"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)
trigger14 = (stateno = 1200) && (movecontact = 1)
trigger15 = (stateno = 1300) && (movecontact = 1)

[State -1, Ataque Rodillazo Volador B Fuerte]
type = ChangeState
value = 4530
triggerall = command = "Ataque Rodillazo Volador B"
trigger1 = statetype = A
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 240) && (movecontact = 1)
trigger7 = (stateno = 400)  && (movecontact = 1)
trigger8 = (stateno = 410)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 431)  && (movecontact = 1)
trigger11 = (stateno = 440)  && (movecontact = 1)
trigger12 = (stateno = 310) && (movecontact = 1)
trigger13 = (stateno = 320) && (movecontact = 1)
trigger14 = (stateno = 1200) && (movecontact = 1)
trigger15 = (stateno = 1300) && (movecontact = 1)


;==================================================================================
;---------------- Comands -------------------------------------------------------
;===================================================================================
;Ki Charge
[State -1: 		Ki Charge]
type 			= ChangeState
value 		= 7030
triggerall = (power < 3000)
trigger1 = command = "charge" && time > 5
trigger1 = command = "charge 1" && time > 5
trigger1		= (StateType = S) && (Ctrl)


;Flying Start
[State -1]
type = ChangeState
value = 1110
trigger1 = command = "fly"
trigger1 = ctrl = 1
trigger1 = statetype = A

;Flying Start
[State -1]
type = ChangeState
value = 1110
trigger1 = command = "fly"
trigger1 = ctrl = 1
trigger1 = statetype = s

;Super Jump
[State -1:      Super Jump]
type            = ChangeState
value      = 60
triggerall      = command = "Super Jump"
trigger1        = (statetype = S) && (ctrl)

;zanzoken
[State -1, zanzoken]
type = ChangeState
value = 1090
triggerall = command = "z"
triggerall = (power > 400)
triggerall = alive = 1
trigger1 = ctrl = 1
trigger1 = stateno >= 150
trigger2 = Stateno <= 153
trigger3 = stateno = 5000
trigger4 = stateno = 5001
trigger5 = stateno = 5002
trigger6 = stateno = 5010
trigger7 = stateno = 5011
trigger8 = stateno = 5012
trigger9 = stateno = 5020
trigger10 = stateno = 5021
trigger11 = stateno = 5022
trigger12 = stateno = 5110
trigger13 = stateno = 5120
trigger14 = stateno = 5110
trigger15 = stateno = 5035
trigger16 = stateno = 5030
trigger17 = stateno = 5050
trigger18 = stateno = 5040
trigger19 = stateno = 5071
trigger20 = stateno = 1100

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

;---------------------------------------------------------------------------
;Run Back
;Œã‘Þƒ_ƒbƒVƒ…
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

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

[State -1, Air Dash Forward]
type = ChangeState
value = 107
trigger1 = command = "FF"
trigger1 = statetype = A
trigger1 = ctrl

[State -1, Air Dash Back]
type = ChangeState
value = 108
trigger1 = command = "BB"
trigger1 = statetype = A
trigger1 = ctrl

;===================================================================================
;---------------- Corriendo --------------------------------------------------------
;===================================================================================

;Runing codazo
[State -1, Runing codazo]
type = ChangeState
value = 1210
triggerall = stateno = 100
triggerall = command = "x" || command = "y"
triggerall = command = "holdfwd"
trigger1 = statetype = S
trigger1 = ctrl

;Puñetazo
[State -1]
type = ChangeState
value = 320
triggerall = command = "y" && command = "holdfwd"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 400)  && (movecontact = 1)
trigger7 = (stateno = 410)  && (movecontact = 1)
trigger8 = (stateno = 430)  && (movecontact = 1)
trigger9 = (stateno = 431)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)
trigger11 = (stateno = 310) && (movecontact = 1)
trigger12 = (stateno = 240) && (movecontact = 1)


;giro patada
[State -1]
type = ChangeState
value = 330
triggerall = command = "b" && command = "holdback"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 400)  && (movecontact = 1)
trigger7 = (stateno = 410)  && (movecontact = 1)
trigger8 = (stateno = 430)  && (movecontact = 1)
trigger9 = (stateno = 431)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)
trigger11 = (stateno = 310) && (movecontact = 1)
trigger12 = (stateno = 240) && (movecontact = 1)

;===================================================================================
;---------------- Básicos ----------------------------------------------------------
;===================================================================================
;---------------------------------------------------------------------------
;Stand Light Punch
[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 310) && (movecontact = 1)

;---------------------------------------------------------------------------
;Stand Light Punch - 2nd hit
[State -1, Stand Light Punch, 2nd hit]
type = ChangeState
value = 201
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact = 1)


;---------------------------------------------------------------------------
;Stand Strong Punch
[State -1, Stand Strong Punch]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 230) && (movecontact = 1)
trigger5 = (stateno = 241) && (movecontact = 1)
trigger6 = (stateno = 310) && (movecontact = 1)

;---------------------------------------------------------------------------
;Stand Light Kick
[State -1, Stand Light Kick]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 241) && (movecontact = 1)
trigger3 = (stateno = 200) && (movecontact = 1)
trigger4 = (stateno = 201) && (movecontact = 1)
trigger5 = (stateno = 310) && (movecontact = 1)

;---------------------------------------------------------------------------
;Standing Strong Kick
[State -1, Standing Strong Kick]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 201) && (movecontact = 1)
trigger4 = (stateno = 210) && (movecontact = 1)
trigger5 = (stateno = 230) && (movecontact = 1)
trigger6 = (stateno = 400)  && (movecontact = 1)
trigger7 = (stateno = 410)  && (movecontact = 1)
trigger8 = (stateno = 430)  && (movecontact = 1)
trigger9 = (stateno = 431)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)
trigger11 = (stateno = 310) && (movecontact = 1)

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

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

;---------------------------------------------------------------------------
;Crouching Strong Punch
[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400)  && (movecontact = 1)
trigger3 = (stateno = 430)  && (movecontact = 1)
trigger4 = (stateno = 431)  && (movecontact = 1)

;---------------------------------------------------------------------------
;Crouching Light Kick
[State -1, Crouching Light Kick]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400)


;---------------------------------------------------------------------------
;Crouching Strong Kick
[State -1, Crouching Strong Kick]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = (stateno = 400)  && (movecontact = 1)
trigger3 = (stateno = 430)  && (movecontact = 1)


;===========================================================================
;---------------------------------------------------------------------------
;Jump Light Punch
[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 630) && (movecontact = 1)
trigger3 = (stateno = 300) && (movecontact = 1)
trigger4 = stateno = 1350 ;Air blocking

;---------------------------------------------------------------------------
;Jump Strong Punch
[State -1, Jump Strong Punch]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = stateno = 1350 ;Air blocking
trigger4 = (stateno = 630) && (movecontact = 1)
trigger5 = (stateno = 300) && (movecontact = 1)

;---------------------------------------------------------------------------
;Jump Light Kick
[State -1, Jump Light Kick]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = stateno = 1350 ;Air blocking

;---------------------------------------------------------------------------
;Jump Strong Kick
[State -1, Jump Strong Kick]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact = 1)
trigger2 = (stateno = 610) && (movecontact = 1)
trigger3 = (stateno = 630) && (movecontact = 1)
trigger4 = (stateno = 300) && (movecontact = 1)
trigger5 = stateno = 1350 ;Air blocking


;===========================================================================
;---------------------------------------------------------------------------
;Fly Light Punch
[State -1, Fly Light Punch]
type = ChangeState
value = 500
triggerall = command = "x"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 530) && (movecontact = 1)
trigger3 = stateno = 1350 ;Air blocking
trigger4 = Stateno = 1100

;---------------------------------------------------------------------------
;Fly Strong Punch
[State -1, Fly Strong Punch]
type = ChangeState
value = 510
triggerall = command = "y"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 500) && (movecontact = 1)
trigger3 = (stateno = 530) && (movecontact = 1)
trigger4 = stateno = 1350 ;Air blocking
trigger5 = Stateno = 1100
;---------------------------------------------------------------------------
;Fly Light Kick
[State -1, Fly Light Kick]
type = ChangeState
value = 530
triggerall = command = "a"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 1350 ;Air blocking
trigger3 = Stateno = 1100
;---------------------------------------------------------------------------
;Fly Strong Kick
[State -1, Fly Strong Kick]
type = ChangeState
value = 540
triggerall = command = "b"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 500) && (movecontact = 1)
trigger3 = (stateno = 510) && (movecontact = 1)
trigger4 = (stateno = 530) && (movecontact = 1)
trigger5 = stateno = 1350 ;Air blocking
trigger6 = Stateno = 1100
;-----------------------------------------------------------------------------
; con esto la pc activa la IA

[State -2, AI activada por la PC]
type = VarSet
trigger1 = (command = "AI1") ||(Command = "AI2") || (Command = "AI3") || (Command = "AI4") || (Command = "AI5")
trigger2 = (Command = "AI6") || (Command = "AI7") || (Command = "AI8") || (Command = "AI9") || (Command = "AI10")
trigger4 = (Command = "AI11") || (Command = "AI12") || (Command = "AI13") || (Command = "AI14")
var(9) = 1
