;-| Super Motions |-------------------------------------------------------------
[Command]
name = "Torvellino Infernal"
command = ~D, DF, F, D, DF, F, z
time = 25

[command]
name = "Death Ball"
command = D,DB,B,D,DB,B,x+y
time = 30

[command]
name = "Super Nova"
command = ~30$B,F,B,F, x+y
time = 30

[command]
name = "Giga Death Blast"
command = D,DF,F,B,a+b
time = 30

[command]
name = "strong daichiretsuzan"
command = D,DB,B,F,y
time = 30

[command]
name = "Rising Freezer Beams"
command = D,DB,B,F,x
time = 30

;-| Special Ki Motions |-----------------------------------------------------------
[command]
name = "freezer beam"
command = D,DF,F,x
time = 30

[command]
name = "weak daichiretsuzan"
command = D,DF,F,y
time = 30


[Command]
name = "Telekinesis piedras"
command = ~D,DB,B,c
time = 20

[Command]
name = "Telekinesis piedras Lanzamiento"
command = ~D,DF,F,c
time = 20

[Command]
name = "Telekinesis corta"
command = ~F,DF,D,DB,B,x
time = 20


[Command]
name = "Telekinesis Larga"
command = ~F,DF,D,DB,B,y
time = 20


[Command]
name = "Death Disc"
command = ~F,B,F,c
time = 20

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

[command]
name = "Frezaa Rush 1"
command = F,B,F,x
time = 30

[command]
name = "Frezaa Rush 2"
command = F,B,F,y
time = 30

[command]
name = "Voltereta Alta"
command = D,DB,B,a
time = 30

[command]
name = "Voltereta Larga"
command = D,DB,B,b
time = 30

[command]
name = "Cola tornado 1"
command = D,DF,F,a
time = 30

[command]
name = "Cola tornado 2"
command = D,DF,F,b
time = 30

[command]
name = "Pataditas 1"
command = F,DF,D,a
time = 30

[command]
name = "Pataditas 2"
command = F,DF,D,b
time = 30



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

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

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

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

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

[Command]
name = "Super Jump"
command = ~D, U
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


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


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

[Command]
name = "charge 1"
command = /x

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


;===============================================================================
[Statedef -1]
;===============================================================================
;-------------------------------------------------------------------------------
;Torvellino Infernal
[State -1: Torvellino Infernal]
type = ChangeState
value = 3600
triggerall = (Command = "Torvellino Infernal") && (Power >= 2000)
triggerall = p3name = "Cell Perfecto By Team OS"
trigger1 = ((StateType != A) && (Ctrl))

[State -1, Torvellino Infernal - Esclavo]
type = ChangeState
value = 3700
triggerall = Stateno != 3700
triggerall = partner, name = "Cell Perfecto By Team OS"; &&statetype = S
trigger1 = (stateno >= 0) && (Stateno < 3000) && (partner, numhelper(8237) = 1)  && (partner, Life > 0)



[State -1, Death Ball]
type = ChangeState
value = 3400
triggerall = command = "Death Ball"
triggerall = power >= 3000
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 610) && (movecontact = 1)
trigger4 = (stateno = 630) && (movecontact = 1)
trigger5 = (stateno = 640) && (movecontact = 1)
trigger6 = Stateno = 991

[State -1, Giga Death Blast]
type = ChangeState
value = 3300
triggerall = command = "Giga Death Blast"
triggerall = power >= 2000
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 610) && (movecontact = 1)
trigger4 = (stateno = 630) && (movecontact = 1)
trigger5 = (stateno = 640) && (movecontact = 1)
trigger6 = Stateno = 991


[State -1, Strong Daichiretsuzan]
type = ChangeState
value = 3200
triggerall = command = "Super Nova"
triggerall = power >= 2000
;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 = 240) && (movecontact = 1)
trigger7 = (stateno = 241) && (movecontact = 1)
trigger8 = (stateno = 400)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)
trigger11 = (stateno = 600) && (movecontact = 1)
trigger12= (stateno = 610) && (movecontact = 1)
trigger13 = (stateno = 630) && (movecontact = 1)
trigger14 = (stateno = 640) && (movecontact = 1)
trigger15 = Stateno = 991


[State -1, Strong Daichiretsuzan]
type = ChangeState
value = 3000
triggerall = command = "strong daichiretsuzan"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Rising Freezer Beams]
type = ChangeState
value = 3100
triggerall = command = "Rising Freezer Beams"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl

;-------------------------------------------------------------------------------
[State -1, Freezer Beam]
type = ChangeState
value = 2100
triggerall = command = "freezer beam"
triggerall = power > 400
trigger1 = statetype = S
trigger1 = ctrl

[State -1, Weak Daichiretsuzan]
type = ChangeState
value = 2200
triggerall = command = "weak daichiretsuzan"
triggerall = power > 200
triggerall = numhelper(6109) = 0
triggerall = numhelper(6110) = 0
trigger1 = ctrl
trigger2 = Stateno = 991

;Telekinesis piedras
[State -1, Telekinesis piedras]
type = ChangeState
triggerall = power >= 200
triggerall = command = "Telekinesis piedras"
triggerall = Numhelper(2356) < 1
value = ifelse(numhelper(2355) = 1, 2305, ifelse(numhelper(2354) = 1,2304,ifelse(numhelper(2353) = 1,2303,ifelse(numhelper(2352) = 1,2302,ifelse(numhelper(2351) = 1,2301,2300)))))
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 = 420)  && (movecontact = 1)
trigger10 = (stateno = 430)  && (movecontact = 1)
trigger11 = (stateno = 440) && (movecontact = 1)
trigger12 = Stateno = 991



;Telekinesis piedras
[State -1, Telekinesis piedras]
type = ChangeState
triggerall = power >= 200
triggerall = (command = "Telekinesis piedras Lanzamiento")
triggerall = Numhelper(2351) = 1 || Numhelper(2352) = 1 || Numhelper(2353) = 1 || Numhelper(2354) = 1|| Numhelper(2355) = 1 || Numhelper(2356) = 1
value = ifelse(numhelper(2351) = 1, 2310, ifelse(numhelper(2352) = 1,2311,ifelse(numhelper(2353) = 1,2312,ifelse(numhelper(2354) = 1,2313,ifelse(numhelper(2355) = 1,2314,2315)))))
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 = 420)  && (movecontact = 1)
trigger10 = (stateno = 430)  && (movecontact = 1)
trigger11 = (stateno = 440) && (movecontact = 1)
trigger12 = Stateno = 991


;Telekinesis corta
[State -1, Telekinesis corta]
type = ChangeState
value = 2400
triggerall = command = "Telekinesis corta"
triggerall = power >= 400
trigger1 = ctrl
trigger1 = statetype != A
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 = 241) && (movecontact = 1)
trigger8 = (stateno = 400)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)

;Telekinesis Larga
[State -1, Telekinesis Larga]
type = ChangeState
value = 2405
triggerall = command = "Telekinesis Larga"
triggerall = power >= 400
trigger1 = ctrl
trigger1 = statetype != A
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 = 241) && (movecontact = 1)
trigger8 = (stateno = 400)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)

;Death Disc
[State -1, Death Disc]
type = ChangeState
value = 2500
triggerall = command = "Death Disc"
triggerall = power >= 200
trigger1 = ctrl
trigger1 = statetype != A
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 = 241) && (movecontact = 1)
trigger8 = (stateno = 400)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)



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

;Frezaa Rush - Adelante Piso
[State -1, Frezaa Rush - Adelante Piso]
type = ChangeState
value = 1100
triggerall = command = "Frezaa Rush 1"
trigger1 = ctrl
trigger1 = statetype != A
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 = 241) && (movecontact = 1)
trigger8 = (stateno = 400)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)


;Frezaa Rush - Arriba Piso
[State -1, Frezaa Rush - Arriba Piso]
type = ChangeState
value = 1110
triggerall = command = "Frezaa Rush 2"
trigger1 = ctrl
trigger1 = statetype != A
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 = 241) && (movecontact = 1)
trigger8 = (stateno = 400)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)


;Frezaa Rush - Adelante Aire
[State -1, Frezaa Rush - Adelante Aire]
type = ChangeState
value = 1130
triggerall = command = "Frezaa Rush 1"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 610) && (movecontact = 1)
trigger4 = (stateno = 630) && (movecontact = 1)
trigger5 = (stateno = 640) && (movecontact = 1)
trigger6 = Stateno = 991

;Frezaa Rush - Abajo Aire
[State -1, Frezaa Rush - Abajo Aire]
type = ChangeState
value = 1140
triggerall = command = "Frezaa Rush 2"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 610) && (movecontact = 1)
trigger4 = (stateno = 630) && (movecontact = 1)
trigger5 = (stateno = 640) && (movecontact = 1)
trigger6 = Stateno = 991

;Voltereta Alta
[State -1, Voltereta Alta]
type = ChangeState
value = 1200
triggerall = command = "Voltereta Alta"
trigger1 = ctrl
;trigger1 = statetype != A
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 = 241) && (movecontact = 1)
trigger8 = (stateno = 400)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)
trigger11 = (stateno = 1300)  && (hitcount >= 3)
trigger12 = (stateno = 1300)  && (hitcount >= 3)
trigger13 = Stateno = 991

;Voltereta Larga"
[State -1, Voltereta Larga]
type = ChangeState
value = 1220
triggerall = command = "Voltereta Larga"
trigger1 = ctrl
;trigger1 = statetype != A
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 = 241) && (movecontact = 1)
trigger8 = (stateno = 400)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)
trigger11 = (stateno = 1300)  && (hitcount >= 3)
trigger12 = (stateno = 1300)  && (hitcount >= 3)
trigger13 = Stateno = 991

;Cola tornado
[State -1, Cola tornado]
type = ChangeState
value = 1300
triggerall = command = "Cola tornado 1"
trigger1 = ctrl
trigger1 = statetype != A
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 = 241) && (movecontact = 1)
trigger8 = (stateno = 400)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)

;Cola tornado
[State -1, Cola tornado]
type = ChangeState
value = 1310
triggerall = command = "Cola tornado 2"
trigger1 = ctrl
trigger1 = statetype != A
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 = 241) && (movecontact = 1)
trigger8 = (stateno = 400)  && (movecontact = 1)
trigger9 = (stateno = 430)  && (movecontact = 1)
trigger10 = (stateno = 440)  && (movecontact = 1)
trigger11 = (stateno = 1300)  && (hitcount >= 3)


;Pataditas Devil
[State -1, Pataditas Devil]
type = ChangeState
value = 1400
triggerall = command = "Pataditas 1"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 610) && (movecontact = 1)
trigger4 = (stateno = 630) && (movecontact = 1)
trigger5 = (stateno = 640) && (movecontact = 1)
trigger6 = (stateno = 1310)  && (hitcount >= 3)
trigger7 = (stateno = 1200)  && (hitcount >= 2)
trigger8 = (stateno = 1220)  && (hitcount >= 2)
trigger9 = Stateno = 991

;Pataditas fuerte
[State -1, Pataditas Fuerte]
type = ChangeState
value = 1450
triggerall = command = "Pataditas 2"
trigger1 = ctrl
trigger1 = statetype = A
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 610) && (movecontact = 1)
trigger4 = (stateno = 630) && (movecontact = 1)
trigger5 = (stateno = 640) && (movecontact = 1)
trigger6 = (stateno = 1310)  && (hitcount >= 3)
trigger7 = (stateno = 1200)  && (hitcount >= 2)
trigger8 = (stateno = 1220)  && (hitcount >= 2)
trigger9 = Stateno = 991



;===============================================================================
;-------------------------------------------------------------------------------
[State -1, Renzouken]
type = ChangeState
value = 1000
triggerall = command = "c"
triggerall = power > 200
trigger1 = statetype = S
trigger1 = ctrl

;-------------------------------------------------------------------------------
[State -1, Zanzouken]
type = ChangeState
value = 1090
triggerall = command = "z"
triggerall = power > 400
triggerall = alive = 1
trigger1 = ctrl
trigger2 = stateno = 1015 || stateno = 1016 || stateno = 1017 || stateno = 1018
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 = 200) && (movecontact = 1)
trigger21 = (stateno = 201) && (movecontact = 1)
trigger22 = (stateno = 210) && (movecontact = 1)
trigger23 = (stateno = 220) && (movecontact = 1)
trigger24 = (stateno = 230)  && (movecontact = 1)
trigger25 = (stateno = 400)  && (movecontact = 1)
trigger26 = (stateno = 410)  && (movecontact = 1)
trigger27 = (stateno = 420)  && (movecontact = 1)
trigger28 = (stateno = 430)  && (movecontact = 1)
trigger29 = (stateno = 440) && (movecontact = 1)
trigger30 = (stateno = 1150) && (time >= 16)
trigger31 = Stateno = 991

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

;-------------------------------------------------------------------------------
[State -1, Charge Ki]
type = ChangeState
value = 1005
triggerall = ctrl
triggerall = power < 4000
trigger1 = command = "charge"
trigger1 = command = "charge 1"
trigger1 = statetype = S

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

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

[State -1, Air Dash Down]
type = ChangeState
value = 1017
trigger1 = command = "DD"
trigger1 = statetype = A

[State -1, Air Dash Up]
type = ChangeState
value = 1018
triggerall = pos y > -320
trigger1 = command = "UU"
trigger1 = statetype = A

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

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

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

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

;-------------------------------------------------------------------------------
[State -1, Stand Punch 2]
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 = 1000) && (movecontact = 1)

;-------------------------------------------------------------------------------
[State -1, Standing Kick 3]
type = ChangeState
value = 250
triggerall = command = "a" && command = "holdfwd"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 200) && (movecontact = 1)
trigger3 = (stateno = 210) && (movecontact = 1)
trigger4 = (stateno = 230) && (movecontact = 1)
trigger5 = (stateno = 240) && (movecontact = 1)
trigger6 = (stateno = 1000) && (movecontact = 1)

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

;-------------------------------------------------------------------------------
[State -1, Standing Kick 2]
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 = 250) && (movecontact = 1)

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

;-------------------------------------------------------------------------------
[State -1, Crouch Punch fuerte]
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)

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

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


;-------------------------------------------------------------------------------
[State -1, Jump Punch]
type = ChangeState
value = 600
triggerall = command = "x"
trigger1 = statetype = A
trigger1 = ctrl

;-------------------------------------------------------------------------------
[State -1, Jump Punch]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 610) && (movecontact = 1)
;-------------------------------------------------------------------------------
[State -1, Jump Kick]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

;-------------------------------------------------------------------------------
[State -1, Jump Kick 2]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = (stateno = 600) && (movecontact = 1)
trigger3 = (stateno = 610) && (movecontact = 1)

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

;Fly Light Punch
[State -1, Fly Light Punch]
type = ChangeState
value = 500
triggerall = command = "x"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = (stateno = 500) && (movecontact = 1)
trigger3 = Stateno = 991
;---------------------------------------------------------------------------
;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 = 991
;---------------------------------------------------------------------------
;Fly Light Kick
[State -1, Fly Light Kick]
type = ChangeState
value = 530
triggerall = command = "a"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = Stateno = 991

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

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