[State AI]
type = ChangeState
value = 215
triggerall = var(59)
triggerall = random <= 100
triggerall = p2stateno != [5050,5121]
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = p2bodydist x = [0,15]
triggerall = p2statetype != A
triggerall = statetype = S
trigger1 = ctrl

[State AI]
type = ChangeState
value = 7001
triggerall = var(59)
triggerall = random <= 300
triggerall = p2stateno != [5050,5121]
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = p2bodydist x = [0,90]
triggerall = statetype = S
trigger1 = enemy, hitdefattr = SCA, AA && ctrl

[State AI]
type = ChangeState
value = 1850
triggerall = var(59)
triggerall = random <= 300
triggerall = p2stateno != [5050,5121]
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = p2bodydist x = [120,300]
triggerall = statetype = S
trigger1 = ctrl

[State AI]
type = ChangeState
value = 2540
triggerall = var(59)
triggerall = numhelper(2500) <= 0
triggerall = random <= 90
triggerall = p2stateno != [5050,5121]
triggerall = power >= 2000
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = p2bodydist x = [0,300]
triggerall = p2statetype != A
triggerall = p2movetype != A
triggerall = statetype = S
trigger1 = ctrl

[State AI]
type = ChangeState
value = 2500
triggerall = var(59)
triggerall = numhelper(2000) <= 0
triggerall = random <= 30
triggerall = p2stateno != [5050,5121]
triggerall = power >= 1000
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = p2bodydist x = [0,300]
triggerall = p2statetype != A
triggerall = p2movetype != A
triggerall = statetype = S
trigger1 = ctrl

[State AI]
type = ChangeState
value = 1650
triggerall = var(59)
triggerall = numprojID(1600) = 0
triggerall = p2stateno != 2620
triggerall = random <= 60
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = statetype = S
triggerall = p2statetype != A
triggerall = p2bodydist x = [140,300]
trigger1 = ctrl

[State AI]
type = ChangeState
value = 1600
triggerall = var(59)
triggerall = numprojID(1600) = 0
triggerall = p2stateno != 2620
triggerall = random <= 60
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = statetype = S
triggerall = p2statetype != A
triggerall = p2bodydist x = [140,300]
trigger1 = ctrl

[State AI]
type = ChangeState
value = 800
triggerall = var(59)
triggerall = random <= 150
triggerall = p2stateno != [5050,5121]
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = p2bodydist x = [0,20]
triggerall = p2statetype != A
triggerall = statetype = S
trigger1 = ctrl

[State AI]
type = ChangeState
value = 1750
triggerall = var(59)
triggerall = numprojID(1600) = 0
triggerall = p2stateno != 1028
triggerall = p2stateno != [5050,5121]
triggerall = random <= 100
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = statetype = S
triggerall = p2bodydist x = [50,350]
trigger1 = ctrl

[State AI]
type = ChangeState
value = 1250
triggerall = var(59)
triggerall = numprojID(1600) = 0
triggerall = p2stateno != 2620
triggerall = random <= 60
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = statetype = S
triggerall = p2statetype != A
triggerall = p2bodydist x = [30,150]
trigger1 = ctrl

[State AI]
type = ChangeState
value = 1450
triggerall = var(59)
triggerall = numhelper(2500) <= 0
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = enemynear,stateno != [5050,5120]
triggerall = p2bodydist x = [100,350]
trigger1 = ctrl && var(59) = 1
trigger1 = random <= 500
trigger1 = enemynear,statetype != A
trigger2 = ctrl && var(59) = 2
trigger2 = random <= 500
trigger2 = enemynear,statetype != A

[State AI]
type = ChangeState
value = 1400
triggerall = var(59)
triggerall = numhelper(2500) <= 0
triggerall = random <= 600
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = statetype = S
triggerall = p2stateno != [5050,5120]
triggerall = p2statetype != A
triggerall = p2bodydist x = [100,350]
trigger1 = ctrl

[State AI]
type = ChangeState
value = 1200
triggerall = var(59)
triggerall = numprojID(1600) = 0
triggerall = p2stateno != 2620
triggerall = random <= 60
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = statetype = S
triggerall = p2statetype != A
triggerall = p2bodydist x = [151,300]
trigger1 = ctrl

[State AI]
type = ChangeState
value = 1700
triggerall = var(59)
triggerall = random <= 300
triggerall = p2stateno != [5050,5121]
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = p2bodydist x = [0,100]
triggerall = statetype = S
trigger1 = ctrl

[State AI]
type = ChangeState
value = 1705
triggerall = var(59)
triggerall = p2stateno != [5050,5121]
triggerall = roundstate = 2
triggerall = statetype != A
trigger1 = stateno = 1700
trigger1 = time = 17

[State AI]
type = ChangeState
value = 2400
triggerall = var(59)
triggerall = power >= 2000
triggerall = RoundState = 2
triggerall = random <= 500
triggerall = p2stateno != [5050,5121]
triggerall = p2stateno != 1028
triggerall = p2stateno != 2320
triggerall = p2bodydist x = [70,300]
triggerall = statetype != A
triggerall = Statetype = S
trigger1 = ctrl
trigger2 = p2bodydist y = [-70,-120]

[State AI]
type = ChangeState
value = 2550
triggerall = random <= 500
triggerall = var(59)
triggerall = power >= 2000
triggerall = p2stateno != 2320
triggerall = p2stateno != [1027,1028]
triggerall = p2stateno != [5050,5121]
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = statetype = S
trigger1 = ctrl

[State AI]
type = ChangeState
value = 2800
triggerall = var(59)
triggerall = random <= 400
triggerall = power >= 3000
triggerall = ctrl && statetype != A
triggerall = P2BodyDist X = [-15,39]
triggerall = enemy,hitdefattr = S, NA,SA,HA
trigger1 = ctrl

[State AI]
type = ChangeState
value = 300
triggerall = var(59)
triggerall = p2statetype != A
triggerall = movecontact
trigger1 = stateno = 215

[State AI]
type = ChangeState
value = 305
triggerall = var(59)
triggerall = p2statetype != A
triggerall = movecontact
trigger1 = stateno = 300

[State AI]
type = ChangeState
value = 2300
triggerall = var(59)
triggerall = power >= 3000
triggerall = p2statetype != A
trigger1 = stateno = 305
trigger1 = movehit

[State AI]
type = ChangeState
value = 2550
triggerall = var(59)
triggerall = power >= 2000
triggerall = p2statetype != A
trigger1 = stateno = 305
trigger1 = movehit

[State AI]
type = ChangeState
value = 2050
triggerall = var(59)
triggerall = power >= 1000
triggerall = p2statetype != A
triggerall = movehit
trigger1 = stateno = 305

[State AI]
type = ChangeState
value = 2000
triggerall = var(59)
triggerall = power >= 1000
triggerall = p2statetype != A
triggerall = movehit
trigger1 = stateno = 305

[State AI]
type = ChangeState
value = 1700
triggerall = var(59)
triggerall = p2statetype != A
triggerall = movehit
trigger1 = stateno = 305

[State AI]
type = ChangeState
value = 1650
triggerall = var(59)
triggerall = power <= 999
triggerall = p2statetype != A
triggerall = random <= 100
triggerall = movecontact
trigger1 = stateno = 305

[State AI]
type = ChangeState
value = 1600
triggerall = var(59)
triggerall = power <= 999
triggerall = p2statetype != A
triggerall = random <= 100
triggerall = movecontact
trigger1 = stateno = 305

[State AI]
type = ChangeState
value = 710
triggerall = var(59)
triggerall = p2statetype != L
triggerall = statetype != A
triggerall = InGuardDist = 1
triggerall = ctrl
triggerall = RoundState = 2
triggerall = random <= 70
triggerall = p2bodydist x = [70,300]
trigger1 = ctrl && enemynear,NumProj && statetype != A && random = [20,300]
trigger2 = inguarddist = [0,120]
trigger2 = ctrl && enemynear,NumProj && statetype != A

[State AI]
type = ChangeState
value = 720
triggerall = var(59)
triggerall = p2stateno = [5080,5121]
triggerall = random <= 100
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = p2bodydist x = [0,150]
triggerall = p2statetype != A
triggerall = statetype = S
trigger1 = ctrl

[State AI]
type = ChangeState
value = 101
triggerall = var(59)
triggerall = p2movetype != A
triggerall = p2bodydist x = [80,300]
triggerall = random <= 80
trigger1 = statetype != A
trigger1 = ctrl

[State AI]
type = ChangeState
value = 710
triggerall = var(59)
triggerall = random <= 500
triggerall = backEdgeBodyDist <= 5
triggerall = p2stateno != [5050,5121]
triggerall = roundstate = 2
triggerall = ctrl && statetype != A
triggerall = statetype = S
trigger1 = ctrl
;------------------------------------------------------------------------------
[State AI]
type = ChangeState
value = 710
triggerall = var(59)
triggerall = roundstate = 2
triggerall = p2bodydist x = [0,70]
trigger1 = (stateno = 150 || stateno = 151) && power >= 1000
trigger1 = random <= 20

;Guardia del char
[State AI]
type  = ChangeState
value = 130
triggerall = var(59)
triggerall = p2movetype = A
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != [190,194]
triggerall = p2statetype = S
trigger1   = P2BodyDist X = [40,90]
trigger1   = var(21) = [0,14]
trigger2   = P2BodyDist X = [-15,39]
trigger2   = var(21) = [10,29]
trigger3   = enemy,teammode = simul
trigger3   = P2BodyDist X = [-50,-16]
trigger3   = var(21) = [0,39]
trigger4   = P2BodyDist X = [-15,39]
trigger4   = enemy,hitdefattr = S, NA,SA,HA
trigger4   = Random < 350
trigger5   = P2BodyDist X = [0,300]
trigger5   = enemynear,NumProj = 1
trigger5   = Random < 700
trigger6   = P2BodyDist X = [0,300]
trigger6   = enemynear,ishelper = 1
trigger6   = Random < 750

[State AI]
type  = ChangeState
value = 130
triggerall = var(59)
triggerall = p2movetype = A
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != [190,194]
triggerall = p2statetype = A
trigger1   = P2BodyDist X = [40,90]
trigger1   = var(21) = [0,15]
trigger2   = P2BodyDist X = [-40,39]
trigger2   = var(21) = [0,32]
trigger3   = P2BodyDist X = [-40,39]
trigger3   = enemy,hitdefattr = A, NA,SA,HA
trigger3   = Random < 540
trigger4   = P2BodyDist X = [0,300]
trigger4   = enemynear,NumProj = 1
trigger4   = Random < 700
trigger5   = P2BodyDist X = [0,300]
trigger5   = enemynear,ishelper = 1
trigger5   = Random < 750

[State AI]
type  = ChangeState
value = 131
triggerall = var(59)
triggerall = p2movetype = A
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != [190,194]
trigger1   = p2statetype = C
trigger1   = P2BodyDist X = [40,85]
trigger1   = var(21) = [0,24]
trigger2   = p2statetype = C
trigger2   = P2BodyDist X = [-20,39]
trigger2   = var(21) = [0,39]
trigger3   = p2statetype = S
trigger3   = P2BodyDist X = [-15,39]
trigger3   = var(21) = [0,9]
trigger4   = p2statetype = C
trigger4   = enemy,teammode = simul
trigger4   = P2BodyDist X = [-50,-16]
trigger4   = var(21) = [0,39]
trigger5   = P2BodyDist X = [-20,39]
trigger5   = enemy,hitdefattr = C, NA,SA,HA
trigger5   = Random < 350
trigger6   = P2BodyDist X = [0,300]
trigger6   = enemynear,NumProj = 1
trigger6   = Random < 700
trigger7   = P2BodyDist X = [0,300]
trigger7   = enemynear,ishelper = 1
trigger7   = Random < 750

[State AI]
type = ChangeState
value = 5201
triggerall = var(9) != 0 && Alive && Vel Y > 0 && Pos Y >= 0 && random <= 999
triggerall = var(58)= 0
trigger1 = StateNo = 5050
trigger2 = StateNo = 5071

[State AI]
type = ChangeState
value = 640
triggerall = var(59)
triggerall = p2bodydist X < 80 && p2bodydist X > -10 && enemy,vel x >= 0
triggerall = p2bodydist Y > -50
triggerall = p2stateno != [5050,5121]
triggerall = ctrl && statetype = A
triggerall = p2statetype = A
trigger1 = ctrl

[State AI]
type = ChangeState
value = 640
triggerall = var(59)
triggerall = p2bodydist X < 50 && p2bodydist X > -10 && enemy,vel y >= 0 && enemy,vel x >= 0
triggerall = p2bodydist Y > -50
triggerall = vel y >= 0
triggerall = p2stateno != [5050,5121]
triggerall = ctrl && statetype = A
triggerall = p2statetype != A
trigger1 = ctrl