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

[Command]
name = "cpu1"
command = U, U, U, U
time = 1
[Command]
name = "cpu2"
command = U, U, U, D
time = 1
[Command]
name = "cpu3"
command = U, U, D, D
time = 1
[Command]
name = "cpu4"
command = U, D, D, D
time = 1
[Command]
name = "cpu5"
command = D, D, D, D
time = 1
[Command]
name = "cpu6"
command = D, D, D, U
time = 1
[Command]
name = "cpu7"
command = D, D, U, U
time = 1
[Command]
name = "cpu8"
command = D, U, U, U
time = 1
[Command]
name = "cpu9"
command = U, D, U, U
time = 1
[Command]
name = "cpu10"
command = U, U, D, U
time = 1
[Command]
name = "cpu11"
command = D, U, U, D
time = 1
[Command]
name = "cpu12"
command = U, D, D, U
time = 1
[Command]
name = "cpu13"
command = D, U, D, U
time = 1
[Command]
name = "cpu14"
command = U, D, U, D
time = 1
[Command]
name = "cpu15"
command = F, F, F, F
time = 1
[Command]
name = "cpu16"
command = B, B, B, B
time = 1
[Command]
name = "cpu17"
command = F, B, F, F
time = 1
[Command]
name = "cpu18"
command = F, F, B, F
time = 1
[Command]
name = "cpu19"
command = B, F, F, F
time = 1
[Command]
name = "cpu20"
command = F, F, F, B
time = 1
[Command]
name = "cpu21"
command = F, B, B, F
time = 1
[Command]
name = "cpu22"
command = B, F, F, B
time = 1
[Command]
name = "cpu23"
command = F, B, F, B
time = 1
[Command]
name = "cpu24"
command = B, F, B, F
time = 1
[Command]
name = "cpu25"
command = D, F, D, F
time = 1
[Command]
name = "cpu26"
command = D, B, D, B
time = 1
[Command]
name = "cpu27"
command = D, B, D, F
time = 1
[Command]
name = "cpu28"
command = D, F, D, B
time = 1
[Command]
name = "cpu29"
command = U, F, D, B
time = 1
[Command]
name = "cpu30"
command = U, B, D, F
time = 1
[Command]
name = "cpu31"
command = B, D, F, U
time = 1
[Command]
name = "cpu32"
command = F, D, B, U
time = 1
[Command]
name = "cpu33"
command = U, U, U, U
time = 1
[Command]
name = "cpu34"
command = U, U, U, D
time = 1
[Command]
name = "cpu35"
command = U, U, D, D
time = 1
[Command]
name = "cpu36"
command = U, D, D, D
time = 1
[Command]
name = "cpu37"
command = D, D, D, D
time = 1
[Command]
name = "cpu38"
command = D, D, D, U
time = 1
[Command]
name = "cpu39"
command = D, D, U, U
time = 1
[Command]
name = "cpu40"
command = D, U, U, U
time = 1
[Command]
name = "cpu41"
command = U, D, U, U
time = 1
[Command]
name = "cpu42"
command = U, U, D, U
time = 1
[Command]
name = "cpu43"
command = D, U, U, D
time = 1
[Command]
name = "cpu44"
command = U, D, D, U
time = 1
[Command]
name = "cpu45"
command = D, U, D, U
time = 1
[Command]
name = "cpu46"
command = U, D, U, D
time = 1
[Command]
name = "cpu47"
command = F, F, F, F
time = 1
[Command]
name = "cpu48"
command = B, B, B, B
time = 1
[Command]
name = "cpu49"
command = F, B, F, F
time = 1
[Command]
name = "cpu50"
command = F, F, B, F
time = 1
[Command]
name = "cpu51"
command = B, F, F, F
time = 1
[Command]
name = "cpu52"
command = F, F, F, B
time = 1
[Command]
name = "cpu53"
command = F, B, B, F
time = 1
[Command]
name = "cpu54"
command = B, F, F, B
time = 1
[Command]
name = "cpu55"
command = F, B, F, B
time = 1
[Command]
name = "cpu56"
command = B, F, B, F
time = 1
[Command]
name = "cpu57"
command = D, F, D, F
time = 1
[Command]
name = "cpu58"
command = D, B, D, B
time = 1
[Command]
name = "cpu59"
command = D, B, D, F
time = 1
[Command]
name = "cpu60"
command = D, F, D, U
time = 1
[Command]
name = "cpu61"
command = U, F, D, B
time = 1
[Command]
name = "cpu62"
command = U, B, D, F
time = 1
[Command]
name = "cpu63"
command = B, D, F, U
time = 1
[Command]
name = "cpu64"
command = F, D, B, U
time = 1

;-| HYPER MOVES |--------------------------------------------------------



;bloodshower

[Command]
name = "bloodshower"
command = ~F, D, B, D, B, x+y
time = 35 

[Command]
name = "bloodshower"
command = ~F, B, F, B, x+y
time = 35 

[Command]
name = "bloodshower"
command = ~D, DB, B, D, DB, B, x+y
time = 35

Command]
name = "bloodshower"
command = ~D, B, D, B, x+y
time = 35

Command]
name = "bloodshower"
command = ~DB, B, D, DB, x+y
time = 35

Command]
name = "bloodshower"
command = ~D, DB, D, DB, x+y
time = 35

[Command]
name = "bloodshower"
command = ~D, D, D, x+y
time = 35 

[Command]
name = "bloodshower"
command = ~F, D, B, D, B, c
time = 35 

[Command]
name = "bloodshower"
command = ~D, DB, B, D, DB, B, c
time = 35

Command]
name = "bloodshower"
command = ~D, B, D, B, c
time = 35

Command]
name = "bloodshower"
command = ~DB, B, D, DB, c
time = 35

Command]
name = "bloodshower"
command = ~D, DB, D, DB, c
time = 35
[Command]
name = "bloodshower"
command = ~F, D, B, D, B, x+y
time = 35 

[Command]
name = "bloodshower"
command = ~D, DB, B, D, DB, B, x+y
time = 35

Command]
name = "bloodshower"
command = ~D, B, D, B, x+y
time = 35

Command]
name = "bloodshower"
command = ~DB, B, D, DB, x+y
time = 35

Command]
name = "bloodshower"
command = ~D, DB, D, DB, x+y
time = 35
;Insistiscici
[Command]
name = "insistiscici"
command = ~D, DB, B, D, DB, B, x
time = 35

[Command]
name = "insistiscici"
command = ~D, B, D, B, x
time = 35

[Command]
name = "insistiscici"
command = ~DB, B, D, DB, x
time = 35

[Command]
name = "insistiscici"
command = ~D, DB, D, DB, x
time = 35

[Command]
name = "insistiscici"
command = ~D, DB, B, D, DB, B, y
time = 35

[Command]
name = "insistiscici"
command = ~D, B, D, B, y
time = 35

[Command]
name = "insistiscici"
command = ~DB, B, D, DB, y
time = 35

[Command]
name = "insistiscici"
command = ~D, DB, D, DB, y
time = 35

;Chain O Saw
[Command]
name = "chainosaw"
command = ~D, DF, F, D, DF, F, a+b
time = 35

[Command]
name = "chainosaw"
command = ~D, DF, F, D, DF, a+b
time = 35

[Command]
name = "chainosaw"
command = ~D, F, D, F, a+b
time = 35

[Command]
name = "chainosaw"
command = ~D, DF, D, DF, a+b
time = 35

;Grab O Rama
[Command]
name = "graborama"
command = ~D, DF, F, D, DF, F, a 
time = 35

[Command]
name = "graborama"
command = ~D, DF, F, D, DF, a 
time = 35

[Command]
name = "graborama"
command = ~D, F, D, F, a 
time = 35

[Command]
name = "graborama"
command = ~D, DF, D, DF, a 
time = 35

[Command]
name = "graborama"
command = ~D, DF, F, D , DF, F, b
time = 35

[Command]
name = "graborama"
command = ~D, DF, F, D, DF, b
time = 35

[Command]
name = "graborama"
command = ~D, F, D, F, b
time = 35

[Command]
name = "graborama"
command = ~D, DF, D, DF, b
time = 35

;hyper reversal MAX
[Command]
name = "HrevMAX"
command = ~D, F, D, B, x+y
time = 35

;hyper reversal MAX
[Command]
name = "HrevMAX"
command = ~D, F, DF, B, x+y
time = 35

;hyper reversal MAX
[Command]
name = "HrevMAX"
command = ~D, DF, F, D, B, x+y
time = 35

;hyper reversal MAX
[Command]
name = "HrevMAX"
command = ~D, DF, F, D, DB, B, x+y
time = 35

;hyper reversal MAX
[Command]
name = "HrevMAX" 
command = ~D, DF, F, DF, D, DB, B, x+y
time = 35

;hyper reversal MAX
[Command]
name = "HrevMAX" 
command = ~D, DF, F, D, DB, x+y
time = 35


;hyper reversal
[Command]
name = "Hrev"
command = ~D, F, D, DB, B, x
time = 35

;hyper reversal
[Command]
name = "Hrev"
command = ~D, F, DF, DB, B, x
time = 35

;hyper reversal
[Command]
name = "Hrev"
command = ~D, DF, F, D, B, x
time = 35

;hyper reversal
[Command]
name = "Hrev"
command = ~D, DF, F, D, DB, B, x
time = 35

;hyper reversal
[Command]
name = "Hrev"
command = ~D, DF, F, DF, D, DB, B, x
time = 35

;hyper reversal
[Command]
name = "Hrev"
command = ~D, DF, F, D, DB, x
time = 35

;hyper reversal
[Command]
name = "Hrev"
command = ~D, F, D, DB, B, y
time = 35

;hyper reversal
[Command]
name = "Hrev"
command = ~D, F, DF, DB, B, y
time = 35

;hyper reversal
[Command]
name = "Hrev"
command = ~D, DF, F, DB, B, y
time = 35

;hyper reversal
[Command]
name = "Hrev"
command = ~D, DF, F, D, DB, B, y
time = 35

;hyper reversal
[Command]
name = "Hrev"
command = ~D, DF, F, DF, D, DB, B, y
time = 35

;hyper reversal
[Command]
name = "Hrev"
command = ~D, DF, F, D, DB, y
time = 35

;-Full Metal teddy
[Command]
name = "fullmetal"
command = ~D, DF, F, D , DF, F, x+y
time = 35

[Command]
name = "fullmetal"
command = ~D, DF, F, D, DF, x+y
time = 35

[Command]
name = "fullmetal"
command = ~D, F, D, F, x+y
time = 35

[Command]
name = "fullmetal"
command = ~D, DF, D, DF, x+y
time = 35

;-Psycho Teddy
[Command]
name = "psycho"
command = ~D, DF, F, D ,DF, F, x
time = 35

[Command]
name = "psycho"
command = ~D, DF, F, D, DF, x
time = 35

[Command]
name = "psycho"
command = ~D, F, D, F, x
time = 35

[Command]
name = "psycho"
command = ~D, DF, D, DF, x
time = 35


[Command]
name = "psycho"
command = ~D, DF, F, D , DF, F, y
time = 35

[Command]
name = "psycho"
command = ~D, DF, F, D, DF, y
time = 35

[Command]
name = "psycho"
command = ~D, F, D, F, y
time = 35

[Command]
name = "psycho"
command = ~D, DF, D , DF, y
time = 35


;-| MOSSE SPECIALI |------------------------------------------------------
;-ABoriginal (ELLA vs ELLA)
[Command]
name = "aboriginal"
command = ~D, F, c
time = 25

;-Sonoledue! (Ella Vs Kuando)
[Command]
name = "sonoledue"
command = ~D, F, c
time = 25

;-Ti Titillo (Ella Vs Ubu)
[Command]
name = "titillo"
command = ~D, F, c
time = 25

;-SuperCharge (ella Vs altri)
[Command]
name = "supercharge"
command = ~D, F, c
time = 25

;-Presa Speciale
[Command]
name = "presaspeciale"
command = ~B, DB, D, DF, F, x
time = 25
 
[Command]
name = "presaspeciale"
command = ~DB, D, DF, F, x
time = 25

[Command]
name = "presaspeciale"
command = ~B, DB, D, DF, x
time = 25

[Command]
name = "presaspeciale"
command = ~DB, D, DF, x
time = 25

[Command]
name = "presaspeciale"
command = ~B, D, F, x
time = 25

[Command]
name = "presaspeciale"
command = ~B, DB, F, x
time = 25

;-Presa Speciale
[Command]
name = "presaspeciale"
command = ~B, DB, D, DF, F, y
time = 25

[Command]
name = "presaspeciale"
command = ~DB, D, DF, F, y
time = 25

[Command]
name = "presaspeciale"
command = ~B, DB, D, DF, y
time = 25

[Command]
name = "presaspeciale"
command = ~DB, D, DF, y
time = 25

[Command]
name = "presaspeciale"
command = ~B, D, F, y
time = 25

[Command]
name = "presaspeciale"
command = ~B, DB, F, y
time = 25

[Command]
name = "slaphappy"
command = ~x, x, x
time = 25

[Command]
name = "slaphappy2"
command = ~y, y, y
time = 25

;-calciolo *dopo lo uppercut*
[Command]
name = "calciolo"
command = ~a
time = 15

;-calciolo *dopo lo uppercut*
[Command]
name = "calciolo"
command = ~b
time = 15

;-teleportino
[Command]
name = "teleportino"
command = ~F, D, DF, a
time = 25

;-teleportino
[Command]
name = "teleportino2"
command = ~F, D, DF, b
time = 20

;-Ella Reversal
[Command]
name = "rev1"
command = ~D, DB, B, x
time = 20
[Command]
name = "rev1"
command = ~D, DB, x
time = 20
[Command]
name = "rev1"
command = ~D, B, x
time = 20

;-Ella Reversal2
[Command]
name = "rev2"
command = ~D, DB, B, y
time = 20
[Command]
name = "rev2"
command = ~D, DB, y
time = 20
name = "rev2"
command = ~D, B, y
time = 20

;-Face The Piccion
[Command]
name = "face1"
command = ~D, DF, F, x
time = 15
;­Pachebel Cannon
[Command]
name = "face2"
command = ~D, DF, F, y
time = 15

;-Pretendo In vanati
[Command]
name = "vanati_a"
command = ~D, DF, F, a
[Command]
name = "vanati_b"
command = ~D, DF, F, b

;-Indriuken
[Command]
name = "indriuken_x"
command = ~F, D, DF, x
time = 20

[Command]
name = "indriuken_y"
command = ~F, D, DF, y
time = 20

;-Calcio Nautilius
[Command]
name = "nautilus_a"
command = ~D, DB, B, a

[Command]
name = "nautilus_b"
command = ~D, DB, B, b

;-Fall On Me
[Command]
name = "fallonme"
command = ~D, DB, B, a
time = 25

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


;-| SCATTI |-----------------------------------------------------------
[Command]
name = "FF"     
command = F, F
time = 10

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

;-| COMANDI FUNZIONE |-----------------------------------------------
[Command]
name = "recovery"
command = x+a
time = 1

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

[Command]
name = "dodge"
command = x+a
time = 1

[Command]
name = "knockdown"
command = y+b
time = 1

[Command]
name = "st"
command = y+a
time = 1

;-| MOSSE PARTICOLARI |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

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

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

[Command]
name = "fwd_a"
command = /F,a
time = 1

[Command]
name = "bwd_a"
command = /B,a
time = 1

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

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

;-| MOVIMENTI -------------------------------------------------------
[Command]
name = "holdfwd"
command = /$F
time = 1

[Command]
name = "holdback"
command = /$B
time = 1

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

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

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

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

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

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

;------------------------ SALTI E SALTONI
[Command]
name = "holdupfwd"
command = /UF
time = 1

[Command]
name = "holdupback"
command = /UB
time = 1

[Command]
name = "longjump"
command = D, $U
time = 18

;===========================================================================
[Statedef -1]

;---------------------------------------------------------------------------
;-Blood Shower
[State -1, BloodShower]
type = ChangeState
value = 17000
triggerall = command = "bloodshower"
triggerall = power >= 2000
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
trigger1 = ctrl
trigger2 = stateno = 5120 || stateno = 5121

;---------------------------------------------------------------------------
;-Insistiscici
[State -1, insistiscici]
type = ChangeState
value = 16000
triggerall = command = "insistiscici"
triggerall = power >= 1000
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
trigger1 = ctrl
trigger2 = stateno = 5120 || stateno = 5121

;------------------------------------------------------------
;-Chain'o'Saw
[State -1, Chain'O'Saw]
type = ChangeState
value = 3050
triggerall = command = "chainosaw"
triggerall = power >= 2000
triggerall = stateno != 5200 || stateno != 5210
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 310
trigger2 = AnimElem = 7, >0
trigger3 = stateno = 10050
trigger3 = AnimElem = 22, >2
trigger4 = stateno = 310
trigger4 = AnimElem = 6, >2

;------------------------------------------------------------
;-Grab'O'Rama
[State -1, Grab'O'Rama]
type = ChangeState
value = 3000
triggerall = command = "graborama"
triggerall = power >= 1000
triggerall = stateno != 5200 || stateno != 5210
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 310
trigger2 = AnimElem = 7, >0
trigger3 = stateno = 10050
trigger3 = AnimElem = 22, >2
trigger4 = stateno = 310
trigger4 = AnimElem = 6, >2

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

;Hyper Reversal
[State -1,HrevMAX]
type = ChangeState
value = 10006
;triggerall = var(9) != 1
triggerall = command = "HrevMAX"
triggerall = power >= 2000
triggerall = statetype != A
trigger1 = ctrl

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

;Hyper Reversal
[State -1,Hrev]
type = ChangeState
value = 10004
;triggerall = var(9) != 1
triggerall = command = "Hrev"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;-Full Metal Teddy
[State -1, ‚Super Cannone a Due]
type = ChangeState
value = 3160
triggerall = command = "fullmetal"
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger3 = stateno = 300 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1
trigger5 = stateno = 310 && movecontact
trigger5 = time <= 15
trigger6 = stateno = 1000 || stateno = 1010
trigger6 = AnimElemTime(16) > 0
trigger6 = AnimElemTime(21) < 2
trigger7 = stateno = 310
trigger7 = AnimElem = 4, >2

;-----------------------------------------------------------------------------
;-Psycho Teddy
[State -1, Super Sparo a Uno]
type = ChangeState
value = 3100
triggerall = command = "psycho"
triggerall = power >= 1000
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger3 = stateno = 300 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1
trigger5 = stateno = 310 && movecontact
trigger5 = time <= 15
trigger6 = stateno = 1000 || stateno = 1010
trigger6 = AnimElemTime(16) > 0
trigger6 = AnimElemTime(21) < 2
trigger7 = stateno = 310
trigger7 = AnimElem = 4, >2

;===========================================================================
;-MOSSE VS
;-ABoriginal (ella vs ella)
[State -1, ABoriginal]
type = ChangeState
value = 19900
triggerall = command = "aboriginal"
triggerall = stateno != 5200 || stateno != 5210
triggerall = P2bodydist X < 15
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2name = "Ella 2.5"
trigger2 = p4name = "Ella 2.5"


;-SONOLEDUE! (ella vs kuando)
[State -1, Sonoledue]
type = ChangeState
value = 19940
triggerall = command = "sonoledue"
triggerall = stateno != 5200 || stateno != 5210
triggerall = P2bodydist X < 15
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2name = "Kuando 1.5"
trigger2 = p4name = "Kuando 1.5"


;-Ti Titillo (ubu Vs Ella)
[State -1, titillo]
type = ChangeState
value = 19950
triggerall = command = "titillo"
triggerall = stateno != 5200 || stateno != 5210
triggerall = P2bodydist X < 15
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2name = "ubu vagrante 3.5"
trigger2 = p4name = "ubu vagrante 3.5"


;-SuperCharge (Ella Vs altri)
[State -1, supercharge]
type = ChangeState
value = 19980
triggerall = command = "supercharge"
triggerall = stateno != 5200 || stateno != 5210
triggerall = P2bodydist X < 15
triggerall = statetype != A
trigger1 = ctrl


;--------------------------------------------------
;-TELEPORTINO
[State -1, teleportino]
type = ChangeState
value = 10010
triggerall = command = "teleportino"
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
trigger1 = ctrl
trigger2 = stateno = 1020 || stateno = 310
trigger2 = movecontact

;-TELEPORTINO Forte (con colpo)
[State -1, teleportino2]
type = ChangeState
value = 10050
triggerall = command = "teleportino2"
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
trigger1 = ctrl


;-Indriuken MEGA UPPERCUT (debole)
[State -1, Uppercut]
type = ChangeState
value = 1100
triggerall = command = "indriuken_x"
triggerall = stateno != 5200 || stateno != 5210
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger3 = stateno = 300 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1
trigger5 = stateno = 1020
trigger5 = movecontact
trigger6 = stateno = 310
trigger6 = AnimElem = 4, >2


;-Indriuken Mega Uppercut (forte)
[State -1, oriuken]
type = ChangeState
value = 1110
triggerall = command = "indriuken_y"
triggerall = stateno != 5200 || stateno != 5210
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger3 = stateno = 310 || stateno = 300 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1
trigger5 = stateno = 1020
trigger5 = movecontact
trigger6 = stateno = 310
trigger6 = AnimElem = 4, >2

;---------------------------------------------------------------------------
;Pretendo in Vanati (debole)
[State -1, Vanati]
type = ChangeState
value = 1022
triggerall = command = "vanati_a"
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
trigger1 = ctrl
trigger2 = stateno = 1020
trigger2 = movecontact
trigger3 = stateno = 215
trigger3 = AnimElem = 4, >1
trigger4 = stateno = 310
trigger4 = AnimElem = 4, >2
trigger5 = stateno = 12000
trigger5 = AnimElem = 27, >1
trigger6 = stateno = 12001
trigger6 = AnimElem = 46, >1

;Pretendo in Vanati (forte)
[State -1, Vanati]
type = ChangeState
value = 1020
triggerall = command = "vanati_b"
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
trigger1 = ctrl
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) ;Cancel ground moves
trigger2 = movecontact
trigger3 = stateno = 215
trigger3 = AnimElem = 4, >1
trigger4 = stateno = 310
trigger4 = movecontact
trigger5 = stateno = 310
trigger5 = AnimElem = 4, >2
trigger6 = stateno = 12000
trigger6 = AnimElem = 27, >1
trigger7 = stateno = 12001
trigger7 = AnimElem = 46, >1

;---------------------------------------------------------------------------
;Presa Speciale
[State -1,presa speciale]
type = ChangeState
value = 10100
;triggerall = var(9) != 1
triggerall = command = "presaspeciale"
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
trigger1 = ctrl
trigger2 = stateno = 5120 || stateno = 5121

;---------------------------------------------------------------------------
;Slap Happy debole
[State -1,Slap Happy]
type = ChangeState
value = 12000
;triggerall = var(9) != 1
triggerall = command = "slaphappy"
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
trigger1 = ctrl
trigger2 = stateno = 5120 || stateno = 5121
trigger3 = stateno = 215
trigger3 = AnimElem = 4, >1
trigger4 = stateno = 200
trigger4 = movecontact
trigger5 = stateno = 210
trigger5 = AnimElem = 6, >1


;Slap Happy forte
[State -1,Slap Happy]
type = ChangeState
value = 12001
;triggerall = var(9) != 1
triggerall = command = "slaphappy2"
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
trigger1 = ctrl
trigger2 = stateno = 5120 || stateno = 5121
trigger3 = stateno = 215
trigger3 = AnimElem = 4, >1
trigger4 = stateno = 200
trigger4 = movecontact
trigger5 = stateno = 210
trigger5 = AnimElem = 6, >1

;------------------------------------------
;-Face The Piccion
[State -1, Face]
type = ChangeState
value = 1000
triggerall = command = "face1"
triggerall = stateno != 5200 || stateno != 5210
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger3 = stateno = 310 || stateno = 300 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1

;-Face The Piccion (forte)
[State -1, Face]
type = ChangeState
value = 1010
triggerall = command = "face2"
triggerall = stateno != 5200 || stateno != 5210
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger3 = stateno = 310 || stateno = 300 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1

;---------------------------------------------------------------------------
;-Calcio nautilus
[State -1, Nautilus]
type = ChangeState
value = 1200
triggerall = command = "nautilus_a"
triggerall = stateno != 5200 || stateno != 5210
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger3 = stateno = 300 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger4 = stateno = 215 || stateno = 310
trigger4 = AnimElem = 4, >1
trigger5 = stateno = 310
trigger5 = AnimElem = 4, >2

;-calcio nautilus
[State -1, Nautilus]
type = ChangeState
value = 1210
triggerall = command = "nautilus_b"
triggerall = stateno != 5200 || stateno != 5210
trigger1 = statetype != A
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger3 = stateno = 310 || stateno = 300 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger4 = stateno = 215 || stateno = 310
trigger4 = AnimElem = 4, >1
trigger5 = stateno = 310
trigger5 = AnimElem = 4, >2

;------------------------------------------
;-Fall On Me
[State -1, Fall On Me]
type = ChangeState
value = 1300
triggerall = var(9) != 1
triggerall = command = "fallonme"
triggerall = stateno != 5200 || stateno != 5210
trigger1 = statetype = A && ctrl
trigger2 = stateno = 630 || stateno = 640
trigger2 = movecontact

;------------------------------------------
;Reversal 1
[State -1,rev1]
type = ChangeState
value = 10001
;triggerall = var(9) != 1
triggerall = command = "rev1"
triggerall = statetype != A
trigger1 = ctrl = 1

;------------------------------------------
;Reversal 2
[State -1,rev2]
type = ChangeState
value = 10008
;triggerall = var(9) != 1
triggerall = command = "rev2"
triggerall = statetype != A
trigger1 = ctrl = 1


;------------------------------------------
;-Omnitel Touch
;Standing knockdown attack
[State -1]
type = ChangeState
value = 300
triggerall = statetype = S
triggerall = command = "knockdown"|| command = "c" 
trigger1 = ctrl = 1
trigger2 = stateno = 310
trigger2 = movecontact

;Colpo Atterramento in Aria
[State -1]
type = ChangeState
value = 305
triggerall = statetype = A
triggerall = ctrl = 1
trigger1 = command = "knockdown"|| command = "c"

;----------------------------------------------------------
; Scrolla av
[State -1]
type = ChangeState
value = 750
triggerall = command = "holdfwd"
triggerall = command = "dodge" || command = "z" 
trigger1 = statetype = S
trigger1 = ctrl = 1

; Scrolla ind
[State -1]
type = ChangeState
value = 775
triggerall = command = "holdback"
triggerall = statetype = S
triggerall = ctrl = 1
trigger1 = command = "dodge"|| command = "z" 

; Evita
[State -1]
type = ChangeState
value = 725
trigger1 = command = "dodge" || command = "z" 
trigger1 = statetype = S && ctrl

;------------------------------------------
;-DEFINIZIONI DELLE MOSSE
[State -1]
type = ChangeState
value = 780
triggerall = statetype != A
triggerall = power >= 1000
trigger1 = command = "knockdown"|| command = "c" 
trigger1 = stateno = 150 || stateno = 152

[State -1]
type = ChangeState
value = 790
triggerall = statetype != A
triggerall = power >= 1000
trigger1 = command = "dodge" || command = "z" 
trigger1 = command != "holdback"
trigger1 = stateno = 150 || stateno = 152

[State -1]
type = ChangeState
value = 795
triggerall = statetype != A
triggerall = power >= 1000
trigger1 = command = "dodge" || command = "z" 
trigger1 = command = "holdback"
trigger1 = stateno = 150 || stateno = 152

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

;Caricamento
[State -1]
type = ChangeState
value = 700
trigger1 = command = "hold_x" && command = "hold_a"
trigger1 = power < 3000 && statetype = S && ctrl

;-------------------------------
; Perro
[State -1]
type = ChangeState
value = 4500
triggerall = roundstate = 2
triggerall = numhelper(6000) = 0
triggerall = power >= 500
triggerall = command = "st"
triggerall = movetype != H
triggerall = movetype != A
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
trigger1 = ctrl = 1

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

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

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

[State -1, scatto ind]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;PRESA
[State -1, Presa]
type = ChangeState
value = 800
triggerall = command = "y"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

;---------------------------------------------------------------------------
;PRESA
[State -1, Presa]
type = ChangeState
value = 810
triggerall = command = "b"
triggerall = statetype = S
triggerall = ctrl
triggerall = stateno != 100
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger1 = p2movetype != H
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 5
trigger2 = (p2statetype = S) || (p2statetype = C)
trigger2 = p2movetype != H

;Avanti e X
[State -1]
type = ChangeState
value = 310
triggerall = command = "fwd_x"
trigger1 = statetype != A && ctrl
trigger2 = stateno = 200 || stateno = 215 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger3 = stateno = 300 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1



;Avanti e calcio
[State -1]
type = ChangeState
value = 311
triggerall = command = "fwd_a"
trigger1 = statetype != A && ctrl

;Avanti e calcio (altro modo di farla)
[State -1, calcio indietro in aria]
type = ChangeState
value = 311
triggerall = command = "bwd_a"
trigger1 = statetype != A && ctrl


;===========================================================================
;pugnetto
[State -1, pugnetto]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact

;---------------------------------------------------------------------------
;pugnone
[State -1, pugnone]
type = ChangeState
value = 210
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = P2bodydist X > 15
trigger1 = statetype = S
trigger1 = ctrl

;pugnone vicino
[State -1, pugnone vicino]
type = ChangeState
value = 215
triggerall = command = "y"
triggerall = command != "holddown"
triggerall = P2bodydist X <= 15 
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;calcetto
[State -1, calcetto]
type = ChangeState
value = 230
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact

;---------------------------------------------------------------------------
;calcione
[State -1, calcione]
type = ChangeState
value = 240
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = P2bodydist X > 15 
trigger1 = statetype = S
trigger1 = ctrl

;calcio atterra
[State -1, calcione atterra]
type = ChangeState
value = 245
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = P2bodydist X <= 15 
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;pugnetto abbassato
[State -1, pugnetto abbassato]
type = ChangeState
value = 400
triggerall = command = "x"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact

;---------------------------------------------------------------------------
;pugnone abassato
[State -1, pugnone abassato]
type = ChangeState
value = 410
triggerall = command = "y"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact

;---------------------------------------------------------------------------
;calcetto abassato
[State -1, calcetto abassato]
type = ChangeState
value = 430
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact

;---------------------------------------------------------------------------
;calcione abassato
[State -1, calcione abassato]
type = ChangeState
value = 440
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

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

;---------------------------------------------------------------------------
;pugnone in aria
[State -1, pugnone in aria]
type = ChangeState
value = 610
triggerall = command = "y"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;calcetto in aria
[State -1, calcetto in aria]
type = ChangeState
value = 630
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;calcione in aria
[State -1, calcione in aria]
type = ChangeState
value = 640
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl


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






;=======================================
; AI
;=======================================
[State -1, AI TRIGGER]
type = Varset
triggerall = RoundState = 2
trigger1 = command = "cpu1"
trigger2 = command = "cpu2"
trigger3 = command = "cpu3"
trigger4 = command = "cpu4"
trigger5 = command = "cpu5"
trigger6 = command = "cpu6"
trigger7 = command = "cpu7"
trigger8 = command = "cpu8"
trigger9 = command = "cpu9"
trigger10 = command = "cpu10"
trigger11 = command = "cpu11"
trigger12 = command = "cpu12"
trigger13 = command = "cpu13"
trigger14 = command = "cpu14"
trigger15 = command = "cpu15"
trigger16 = command = "cpu16"
trigger17 = command = "cpu17"
trigger18 = command = "cpu18"
trigger19 = command = "cpu19"
trigger20 = command = "cpu20"
trigger21 = command = "cpu21"
trigger22 = command = "cpu22"
trigger23 = command = "cpu23"
trigger24 = command = "cpu24"
trigger25 = command = "cpu25"
trigger26 = command = "cpu26"
trigger27 = command = "cpu27"
trigger28 = command = "cpu28"
trigger29 = command = "cpu29"
trigger30 = command = "cpu30"
trigger31 = command = "cpu31"
trigger32 = command = "cpu32"
trigger33 = command = "cpu33"
trigger34 = command = "cpu34"
trigger35 = command = "cpu35"
trigger36 = command = "cpu36"
trigger37 = command = "cpu37"
trigger38 = command = "cpu38"
trigger39 = command = "cpu39"
trigger40 = command = "cpu40"
trigger41 = command = "cpu41"
trigger42 = command = "cpu42"
trigger43 = command = "cpu43"
trigger44 = command = "cpu44"
trigger45 = command = "cpu45"
trigger46 = command = "cpu46"
trigger47 = command = "cpu47"
trigger48 = command = "cpu48"
trigger49 = command = "cpu49"
trigger50 = command = "cpu50"
trigger51 = command = "cpu51"
trigger52 = command = "cpu52"
trigger53 = command = "cpu53"
trigger54 = command = "cpu54"
trigger55 = command = "cpu55"
trigger56 = command = "cpu56"
trigger57 = command = "cpu57"
trigger58 = command = "cpu58"
trigger59 = command = "cpu59"
trigger60 = command = "cpu60"
trigger61 = command = "cpu61"
trigger62 = command = "cpu62"
trigger63 = command = "cpu63"
trigger64 = command = "cpu64"
v = 7
value = 1

[State -1, AI caricamento]
type = ChangeState
value = 700
triggerall = Var(7) >= 1
triggerall = power < 3000 && statetype = S && ctrl
triggerall = P2bodydist X > 250
triggerall = p2movetype != A
triggerall = p2movetype = H
trigger1 = random < 5


[State -1, AI schivata da vicino];
type = ChangeState
value = 725
triggerall = Var(7) >= 1
triggerall = (roundstate != [0,1]) || (roundstate != [3,4]) 
triggerall = statetype != A
triggerall = ctrl
triggerall = P2BodyDist X = [20,100]
trigger1 = random <= 50
trigger1 = p2movetype = A
trigger2 = ProjGuardedTime(0) != -1 && ProjGuardedTime(0) < 30 && random <= 50
trigger3 = enemy, Numproj > 0 && random <= 100

[State -1, AI schivata media];
type = ChangeState
value = 725
triggerall = Var(7) >= 1
triggerall = (roundstate != [0,1]) || (roundstate != [3,4]) 
triggerall = statetype != A
triggerall = ctrl
triggerall = P2BodyDist X = [100,200]
trigger1 = random <= 50
trigger1 = p2movetype = A
trigger2 = ProjGuardedTime(0) != -1 && ProjGuardedTime(0) < 30 && random <= 50
trigger3 = enemy, Numproj > 0 && random <= 100

[State -1, AI schivata da lontano];
type = ChangeState
value = 725
triggerall = Var(7) >= 1
triggerall = (roundstate != [0,1]) || (roundstate != [3,4]) 
triggerall = statetype != A
triggerall = ctrl
triggerall = P2BodyDist X > 200
trigger1 = random <= 50
trigger1 = p2movetype = A
trigger2 = enemy, Numproj > 0 && random <= 300

[State -1, AI pugno schivata];
type = ChangeState
value = 730
triggerall = Var(7) >= 1
triggerall = P2bodydist X <= 50
triggerall = random < 50
trigger1 = stateno = 725
trigger1 = AnimElem = 3, > 2
trigger1 = AnimElem = 4, < 0 

[State -1, AI Roll];
type = ChangeState
value = 750
triggerall = Var(7) >= 1
triggerall = statetype != A
triggerall = P2bodydist X <= 40
triggerall = P2bodydist X > 200
triggerall = random < 60
triggerall = ctrl
trigger1 = P2Movetype = A
trigger2 = p2stateno = 5050
trigger3 = p2stateno = 5100
trigger4 = p2stateno = 5101
trigger5 = p2stateno = 5110
trigger6 = p2stateno = 5020
trigger7 = p2stateno = 5030
trigger8 = P2Movetype = A
trigger8 = enemy, Numproj > 0 && random <= 300


[State -1, AI Roll 2];
type = ChangeState
value = 775
triggerall = Var(7) >= 1
triggerall = statetype != A
triggerall = P2bodydist X <= 40
triggerall = random < 20
trigger1 = ctrl
trigger1 = P2Movetype = A

;-------------------------------
AI GUARD
[State -1 Guard normale];
type = ChangeState
triggerall = random <= 950
triggerall = var(7) = 1 && StateType != A && P2statetype != C && P2Movetype = A
triggerall = stateno != 120
triggerall = Pos Y != [-1,-999]
triggerall = ctrl
trigger1 = enemy, Numproj > 0 && random <= 300 && stateno != 725
trigger1 = P2Movetype = A
value = 130

[State -1, Stand To Crouch G];
type = ChangeState
triggerall = random <= 900
triggerall = var(7) = 1 && StateType != A && P2statetype = C && P2Movetype = A
trigger1 = stateno = 150
value = 152

[State -1, Crouching G];
type = ChangeState
triggerall = random <= 950
triggerall = var(7) = 1 && StateType != A && P2statetype = C && P2Movetype = A
triggerall = stateno != 131
trigger1 = ctrl
value = 131

[State -1, Crouch To Stand G];
type = ChangeState
triggerall = random <= 900
triggerall = var(7) = 1 && StateType != A && P2statetype != C && P2Movetype = A
trigger1 = stateno = 152
value = 150

[State -1, Air G];
type = ChangeState
triggerall = random <= 950
triggerall = var(7) = 1 && StateType = A && P2statetype != C && P2Movetype = A
triggerall = movetype != H
trigger1 = ctrl
trigger2 = enemy, Numproj > 0 && random <= 300
value = 132
;-------------------------------
[State -1];
type = ChangeState
triggerall = var(7) = 1
triggerall = p2movetype != A && p2statetype != L
triggerall = P2bodydist X >= 40
triggerall = ctrl 
triggerall = stateno != 100
trigger1 = stateno = 0
value = 100

[State -1];
type = ChangeState
triggerall = var(7) = 1
triggerall = stateno = 100 && Time >= 10
trigger1 = p2bodydist x <= 20
trigger2 = p2movetype = A
trigger3 = p2statetype = A && p2bodydist x <= 20
value = 101

[State -1];
type = ChangeState
triggerall = var(7) = 1
triggerall = stateno = 100
triggerall = random <= 800
triggerall = p2bodydist x <= 20
trigger1 = p2movetype != A
trigger2 = p2statetype != A
trigger3 = p2stateno = 5120
value = 40
ctrl = 1

;-------------------------------------
[State -1, AI Presa 1];
type = ChangeState
value = 800
triggerall = Var(7) >= 1
triggerall = statetype = S
triggerall = P2bodydist X < 5
triggerall = P2statetype = S
triggerall = random < 150
trigger1 = ctrl
trigger2 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger2 = p2statetype = S
trigger2 = random < 400
trigger2 = ctrl

[State -1, AI Presa 2];
type = ChangeState
value = 810
triggerall = Var(7) >= 1
triggerall = statetype = S
triggerall = P2bodydist X < 5
triggerall = P2statetype = S
triggerall = random < 100
trigger1 = ctrl

-----------------------------------
[State -1, AI Stand Strong Punch]
type = ChangeState
value = 215
triggerall = Var(7) >= 1
triggerall = P2bodydist X <= 15 
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = random < 250

-----------------------------------
[State -1, AI Standing knockdown attack]
type = ChangeState
value = 300
triggerall = Var(7) >= 1
triggerall = statetype = S
trigger1 = ctrl = 1
trigger1 = random < 30

[State -1, AI Jumping knockdown attack]
type = ChangeState
value = 305
triggerall = statetype = A
triggerall = ctrl = 1
triggerall = Var(7) >= 1
trigger1 = random < 15

[State -1, AI avanti e X]
type = ChangeState
value = 310
triggerall = Var(7) >= 1
triggerall = statetype != A
triggerall = ctrl = 1
trigger1 = stateno = 215
trigger1 = P2movetype = H
trigger1 = AnimElem = 4, >=0
trigger1 = random <= 900

-------------------------------------------------------------
[State -1, AI Blood Shower]
type = ChangeState
value = 17000
triggerall = var(7) >= 1
triggerall = power >= 2000
triggerall = statetype = S
triggerall = P2statetype != A
triggerall = P2movetype != H
triggerall = stateno != 5200 || stateno != 5210
trigger1 = ctrl = 1
trigger1 = random <= 30
trigger2 = P2bodydist X < 10
trigger2 = ctrl = 1
trigger2 = random <= 950
trigger3 = stateno = 5120 || stateno = 5121
trigger3 = random <= 870
trigger3 = P2bodydist X < 10

---------------------------------------------------------------------------
[State -1, AI insistiscici]
type = ChangeState
value = 16000
triggerall = var(7) >= 1
triggerall = power >= 1000
triggerall = statetype = S
triggerall = P2statetype != A
triggerall = P2movetype != H
triggerall = stateno != 5200 || stateno != 5210
trigger1 = ctrl = 1
trigger1 = random <= 30
trigger2 = P2bodydist X < 10
trigger2 = ctrl = 1
trigger2 = random <= 700
trigger3 = stateno = 5120 || stateno = 5121
trigger3 = random <= 750
trigger3 = P2bodydist X < 10

-------------------------------------------------------------
[State -1, AI Chain'O'Saw]
type = ChangeState
value = 3050
triggerall = var(7) >= 1
triggerall = power >= 2000
triggerall = statetype != A
triggerall = P2statetype = A
triggerall = P2bodydist X <= 150
triggerall = stateno != 3000 || stateno != 3001 || stateno != 3050 || stateno != 3051
triggerall = ctrl = 1
;trigger1 = ctrl = 1
trigger1 = random <= 50
trigger1 = P2movetype != H
trigger2 = P2bodydist X > 5
;trigger2 = ctrl = 1
trigger2 = random <= 600
trigger2 = P2movetype != H
trigger3 = P2movetype = H
trigger3 = P2bodydist X > 5 && P2bodydist X <= 150
trigger3 = P2bodydist Y <= -80
trigger3 = random <= 700
trigger4 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger4 = P2bodydist X < 150
trigger4 = p2statetype = A
trigger4 = random < 850
trigger5 = stateno = 10050
trigger5 = AnimElem = 23, >=0
trigger5 = P2movetype = H
trigger5 = random < 700

-------------------------------------------------------------
[State -1, AI Grab'O'Rama]
type = ChangeState
value = 3000
triggerall = var(7) >= 1
triggerall = power >= 1000
triggerall = statetype != A
triggerall = P2statetype = A
triggerall = P2bodydist X <= 150
triggerall = stateno != 3000 || stateno != 3001 || stateno != 3050 || stateno != 3051
triggerall = ctrl = 1
;trigger1 = ctrl = 1
trigger1 = random <= 30
trigger1 = P2movetype != H
trigger2 = P2bodydist X > 5
;trigger2 = ctrl = 1
trigger2 = random <= 300
trigger2 = P2movetype != H
trigger3 = P2movetype = H
trigger3 = P2bodydist X > 5 && P2bodydist X <= 150
trigger3 = P2bodydist Y <= -80
trigger3 = random <= 300
trigger4 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger4 = P2bodydist X < 150
trigger4 = p2statetype = A
trigger4 = random < 600
trigger5 = stateno = 10050
trigger5 = AnimElem = 23, >=0
trigger5 = P2movetype = H
trigger5 = random < 600

;-----------------------------------------------------------------------------
[State -1, AI HrevMAX]
type = ChangeState
value = 10006
triggerall = var(7) >= 1
;triggerall = var(9) != 1
triggerall = power >= 2000
triggerall = statetype = S
trigger1 = ctrl
trigger1 = random <= 800
trigger1 = p2bodydist X <= 120
trigger1 = p2movetype = A
trigger2 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger2 = P2bodydist X < 150
trigger2 = p2movetype = A
trigger2 = random < 250


;---------------------------------------------------------------------------
[State -1, AI Hrev]
type = ChangeState
value = 10004
triggerall = var(7) >= 1
;triggerall = var(9) != 1
triggerall = power >= 1000
triggerall = statetype = S
trigger1 = p2bodydist X <= 120
trigger1 = p2movetype = A
trigger1 = ctrl
trigger1 = random <= 500
trigger2 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger2 = P2bodydist X < 150
trigger2 = p2movetype = A
trigger2 = random < 200


;---------------------------------------------------------------------------
[State -1, AI Full Metal Teddy Due]
type = ChangeState
value = 3160
triggerall = var(7) >= 1
triggerall = power >= 2000
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = random < 200
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger2 = random < 400
trigger3 = stateno = 310 || stateno = 300 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger3 = random < 400
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1
trigger4 = random < 250
trigger5 = stateno = 310 && movecontact
trigger5 = time <= 15
trigger5 = random < 250
trigger6 = stateno = 1010
trigger6 = projcontact = 1
trigger6 = random < 500
trigger7 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger7 = P2bodydist X > 150
trigger7 = random < 300

;-----------------------------------------------------------------------------
[State -1, AI Psycho Teddy a Uno]
type = ChangeState
value = 3100
triggerall = var(7) >= 1
triggerall = power >= 1000
triggerall = P2bodydist X > 50
triggerall = P2statetype != L
trigger1 = statetype = S
trigger1 = ctrl
trigger1 = random < 100
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger2 = random < 100
trigger3 = stateno = 1020 || stateno = 1211 || stateno = 1110
trigger3 = movecontact
trigger3 = random < 100
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1
trigger4 = movecontact
trigger4 = random < 90
trigger5 = stateno = 310 && movecontact
trigger5 = time <= 15
trigger5 = random < 90
trigger6 = stateno = 1010
trigger6 = projcontact = 1
trigger6 = random < 150
trigger7 = stateno = 1110
trigger7 = projcontact = 1
trigger7 = random < 150
trigger7 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger7 = P2bodydist X > 150
trigger7 = random < 200

;===========================================================================
;AI MOSSE VS
;AI ABoriginal (ella vs ella)
[State -1, AI ABoriginal]
type = ChangeState
value = 19900
triggerall = Var(7) >= 1
triggerall = statetype = S
triggerall = stateno != 5200 || stateno != 5210
triggerall = P2bodydist X < 15
triggerall = statetype != A
triggerall = power < 2000
triggerall = ctrl
trigger1 = p2name = "Ella 2.5"
trigger1 = random <= 600
trigger2 = p4name = "Ella 2.5"
trigger2 = random <= 600


;AI SONOLEDUE! (ella vs kuando)
[State -1, AI Sonoledue]
type = ChangeState
value = 19940
triggerall = Var(7) >= 1
triggerall = statetype = S
triggerall = stateno != 5200 || stateno != 5210
triggerall = P2bodydist X < 15
triggerall = statetype != A
triggerall = power < 2000
triggerall = ctrl
trigger1 = p2name = "Kuando 1.5"
trigger1 = random <= 500
trigger2 = p4name = "Kuando 1.5"
trigger2 = random <= 500


;AI Ti Titillo (ubu Vs Ella)
[State -1, AI titillo]
type = ChangeState
value = 19950
triggerall = Var(7) >= 1
triggerall = statetype = S
triggerall = stateno != 5200 || stateno != 5210
triggerall = P2bodydist X < 15
triggerall = statetype != A
triggerall = power < 2000
triggerall = ctrl
trigger1 = p2name = "ubu vagrante 3.5"
trigger1 = random <= 500
trigger2 = p4name = "ubu vagrante 3.5"
trigger2 = random <= 500


;AI SuperCharge (Ella Vs altri)
[State -1, AI supercharge]
type = ChangeState
value = 19980
triggerall = Var(7) >= 1
triggerall = statetype = S
triggerall = stateno != 5200 || stateno != 5210
triggerall = P2bodydist X < 15
triggerall = statetype != A
triggerall = power < 2000
triggerall = p2name != "kuando 1.5"
triggerall = p2name != "ella 2.5"
triggerall = p2name != "ubu vagrante 3.5"
triggerall = p4name != "kuando 1.5"
triggerall = p4name != "ella 2.5"
triggerall = p4name != "ubu vagrante 3.5"
trigger1 = ctrl
trigger1 = random <= 850
trigger2 = ctrl
trigger2 = stateno = 705
trigger2 = random <= 350

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

[State -1, AI Oriuken]
type = ChangeState
value = 1100
triggerall = Var(7) >= 1
triggerall = statetype = S
trigger1 = ctrl
trigger1 = random <= 100
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger2 = random <= 100
trigger3 = stateno = 1010 || stateno = 1020 || stateno = 1211 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger3 = random < 200
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1
trigger5 = statetype != A
trigger5 = ctrl
trigger5 = random < 90
trigger5 = p2statetype = A
trigger5 = p2movetype = A
trigger5 = P2bodydist X <= 100
trigger5 = random <= 600
trigger6 = stateno = 1010 || stateno = 1020 || stateno = 1211
trigger6 = projcontact = 1
trigger6 = random < 250
trigger7 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger7 = P2bodydist X < 40
trigger7 = p2movetype = A
trigger7 = random < 350


[State -1, AI oriuken]
type = ChangeState
value = 1110
triggerall = Var(7) >= 1
triggerall = statetype = S
trigger1 = ctrl
trigger1 = random <= 100
trigger2 = stateno = 200 || stateno = 230 || stateno = 400 || stateno = 430
trigger2 = movecontact
trigger2 = random <= 100
trigger3 = stateno = 1020 || stateno = 1211 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger3 = random < 450
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1
trigger5 = statetype != A
trigger5 = ctrl
trigger5 = random < 150
trigger5 = p2statetype = A
trigger5 = p2movetype = A
trigger5 = P2bodydist X <= 130
trigger5 = random <= 650
trigger6 = stateno = 1020 || stateno = 1211
trigger6 = projcontact = 1
trigger6 = random < 450
trigger7 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger7 = P2bodydist X < 45
trigger7 = p2movetype = A
trigger7 = random < 150


;---------------------------------------------------------------------------
[State -1, AI Pretendo in Vanati forte]
type = ChangeState
value = 1020
triggerall = Var(7) >= 1
triggerall = statetype = S
trigger1 = ctrl
trigger1 = random < 70
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) ;Cancel ground moves
trigger2 = movecontact
trigger2 = random < 70
trigger3 = stateno = 1211
trigger3 = movecontact
trigger3 = random < 320
trigger4 = stateno = 1211
trigger4 = projcontact = 1
trigger4 = random < 325
trigger5 = stateno = 1000
trigger5 = movecontact
trigger5 = random < 600
trigger6 = stateno = 1000
trigger6 = projcontact = 1
trigger6 = random < 600
trigger7 = stateno = 12000
trigger7 = AnimElem = 27, >1
trigger7 = random < 350
trigger8 = stateno = 12001
trigger8 = AnimElem = 46, >1
trigger8 = random < 400
trigger9 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger9 = P2bodydist X < 70
trigger9 = p2statetype = S
trigger9 = random < 300

[State -1, AI Pretendo in Vanatine debole]
type = ChangeState
value = 1022
triggerall = Var(7) >= 1
triggerall = statetype = S
trigger1 = ctrl
trigger1 = random < 50
trigger2 = (stateno = [200,299]) || (stateno = [400,499]) ;Cancel ground moves
trigger2 = movecontact
trigger2 = random < 50
trigger3 = stateno = 1211
trigger3 = movecontact
trigger3 = random < 270
trigger4 = stateno = 1211
trigger4 = projcontact = 1
trigger4 = random < 350
trigger5 = stateno = 1000
trigger5 = movecontact
trigger5 = random < 650
trigger6 = stateno = 1000
trigger6 = projcontact = 1
trigger6 = random < 650
trigger7 = stateno = 1020
trigger7 = movecontact
trigger7 = random < 950
trigger8 = stateno = 12000
trigger8 = AnimElem = 27, >1
trigger8 = random < 330
trigger9 = stateno = 12001
trigger9 = AnimElem = 46, >1
trigger9 = random < 370
trigger10 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger10 = P2bodydist X < 70
trigger10 = p2statetype = S
trigger10 = random < 300

;---------------------------------------------------------------------------
[State -1, AI Slap Happy Forte]
type = ChangeState
value = 12001
triggerall = Var(7) >= 1
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
triggerall = P2bodyDist X = [0,170]
trigger1 = ctrl
trigger1 = random < 50
trigger2 = stateno = 5120 || stateno = 5121
trigger2 = random < 40
trigger3 = stateno = 215
trigger3 = AnimElem = 4, >1
trigger3 = random < 850
trigger4 = stateno = 200
trigger4 = movecontact
trigger4 = random < 350
trigger5 = stateno = 210
trigger5 = AnimElem = 6, >1
trigger5 = random < 400

[State -1, AI Slap Happy Debole]
type = ChangeState
value = 12000
triggerall = Var(7) >= 1
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
triggerall = P2bodyDist X = [0,150]
trigger1 = ctrl
trigger1 = random < 50
trigger2 = stateno = 5120 || stateno = 5121
trigger2 = random < 40
trigger3 = stateno = 215
trigger3 = AnimElem = 4, >1
trigger3 = random < 850
trigger4 = stateno = 200
trigger4 = movecontact
trigger4 = random < 350
trigger5 = stateno = 210
trigger5 = AnimElem = 6, >1
trigger5 = random < 400

;---------------------------------------------------------------------------
[State -1, AI Piccion]
type = ChangeState
value = 1000
triggerall = Var(7) >= 1
triggerall = P2bodydist X > 120
triggerall = statetype = S
trigger1 = ctrl
trigger1 = random < 120
trigger2 = P2statetype = L
trigger2 = ctrl
trigger2 = random < 200
trigger3 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger3 = P2bodydist X > 120
trigger3 = p2statetype = S
trigger3 = random < 70


[State -1, AI Piccion]
type = ChangeState
value = 1010
triggerall = Var(7) >= 1
triggerall = P2bodydist X > 130
triggerall = statetype = S
trigger1 = ctrl
trigger1 = random < 80
trigger2 = P2statetype = L
trigger2 = ctrl
trigger2 = random < 200
trigger3 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger3 = P2bodydist X > 120
trigger3 = p2statetype = S
trigger3 = random < 70

;---------------------------------------------------------------------------
[State -1, AI Nautilus]
type = ChangeState
value = 1200
triggerall = Var(7) >= 1
triggerall = statetype = S
trigger1 = ctrl
trigger1 = random < 200
trigger2 = stateno = 200 || stateno = 230
trigger2 = movecontact
trigger2 = random < 200
trigger3 = stateno = 1211 || stateno = 1110 || stateno = 730 || stateno = 215 || stateno = 1020 || stateno = 1000
trigger3 = movecontact
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1
trigger4 = random < 100
trigger5 = stateno = 1211 || stateno = 1110 || stateno = 1020 || stateno = 1000
trigger5 = projcontact = 1
trigger5 = random < 300


[State -1, AI Nautilus]
type = ChangeState
value = 1210
triggerall = Var(7) >= 1
triggerall = statetype = S
trigger1 = ctrl
trigger1 = random < 250
trigger2 = stateno = 200 || stateno = 230
trigger2 = movecontact
trigger2 = random < 500
trigger3 = stateno = 1020 || stateno = 1010 || stateno = 730 || stateno = 215
trigger3 = movecontact
trigger3 = random < 600
trigger4 = stateno = 215
trigger4 = AnimElem = 4, >1
trigger4 = random < 90
trigger5 = stateno = 1020 || stateno = 1010
trigger5 = projcontact = 1
trigger5 = random < 600

;------------------------------------------
[State -1, AI Fall On Me]
type = ChangeState
value = 1300
;triggerall = var(9) != 1
triggerall = Var(7) >= 1
trigger1 = statetype = A && ctrl
trigger1 = Pos Y < -50
trigger1 = p2bodydist X <= 150
trigger1 = random <= 200
trigger2 = stateno = 630 || stateno = 640
trigger2 = movecontact

;------------------------------------------
[State -1, AI Reversal colpi Alti-Medi]
type = ChangeState
value = 10001
;triggerall = var(9) != 1
triggerall = Var(7) >= 1
triggerall = statetype = S
trigger1 = ctrl = 1
trigger1 = random <= 150
trigger1 = p2statetype != C
trigger2 = p2bodydist X <= 120
trigger2 = p2movetype = A
trigger2 = ctrl
trigger2 = p2statetype != C
trigger2 = random <= 400 
trigger3 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger3 = P2bodydist X < 50
trigger3 = p2statetype = S
trigger3 = p2movetype = A
trigger3 = random < 350

[State -1, AI Reversal colpi Medi-Bassi]
type = ChangeState
value = 10008
;triggerall = var(9) != 1
triggerall = Var(7) >= 1
triggerall = statetype = S
trigger1 = ctrl = 1
trigger1 = p2statetype != A
trigger1 = random <= 150
trigger2 = p2bodydist X <= 120
trigger2 = p2movetype = A
trigger2 = ctrl
trigger2 = p2statetype != A
trigger2 = random <= 400
trigger3 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger3 = P2bodydist X < 50
trigger3 = p2statetype = S
trigger3 = p2movetype = A
trigger3 = random < 350

;------------------------------------------
[State -1, AI Presa Speciale];
type = ChangeState
value = 10100
triggerall = Var(7) >= 1
triggerall = statetype = S
triggerall = P2statetype != A
triggerall = P2movetype != H
trigger1 = ctrl = 1
trigger1 = random <= 30
trigger2 = P2bodydist X < 15
trigger2 = ctrl = 1
trigger2 = random <= 800
trigger3 = stateno = 5120 || stateno = 5121
trigger3 = random <= 870
trigger3 = P2bodydist X < 15
trigger4 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger4 = P2bodydist X < 15
trigger4 = p2statetype = S
trigger4 = random < 700

;------------------------------------------
[State -1, AI teleportino]
type = ChangeState
value = 10010
triggerall = Var(7) >= 1
triggerall = statetype = S
triggerall = movetype != A
triggerall = ctrl
trigger1 = random <= 100
trigger2 = p2movetype = A
trigger2 = enemy, Numproj > 0
trigger2 = random < 500
trigger3 = stateno = 700 || stateno = 705 || stateno = 710 || stateno = 715
trigger3 = p2movetype = A
trigger3 = enemy, Numproj > 0
trigger3 = random < 950
trigger4 = P2bodydist X > 150
trigger4 = random < 100

[State -1, AI teleportino2]
type = ChangeState
value = 10050
triggerall = Var(7) >= 1
triggerall = statetype = S
triggerall = movetype != A
trigger1 = ctrl
trigger1 = random <= 250
trigger2 = P2bodydist X > 30
trigger2 = P2bodydist X < 70
trigger2 = random < 50

;[State -1, AI Recovery]
;type = ChangeState
;value = 5200
;triggerall = Var(7) >= 1
;trigger1 = life > 9999
;trigger1 = random <= 1

;[State -1, AI Recovery Air]
;type = ChangeState
;value = 5210
;triggerall = Var(7) >= 1
;trigger1 = life > 9999
;trigger1 = random <= 1

[State -1, AI Perro]
type = ChangeState
value = 4500
triggerall = Var(7) >= 1
triggerall = roundstate = 2
triggerall = numhelper(6000) = 0
triggerall = power >= 500
triggerall = movetype != H
triggerall = movetype != A
triggerall = statetype != A
triggerall = stateno != 5200 || stateno != 5210
triggerall = P2movetype != H
trigger1 = ctrl = 1
trigger1 = random <= 80

















