;Aura 2nd Revival
;By Crucifix
;
;AI file (thanks kyou!)
;
;note: to noob MUGEN programmers, this ai won't do anything,
;if not screw up your character, if this file is placed under
;your character's directory.  Don't just add it to another
;character and expect it to do anything. ;)

[statedef -3]

 ;-AI---------------------------------------------
[State -3, Activate AI]
type = Varset
trigger1 = command = "AI1"
trigger2 = command = "AI2"
trigger3 = command = "AI3"
trigger4 = command = "AI4"
trigger5 = command = "AI5"
trigger6 = command = "AI6"
trigger7 = command = "AI7"
trigger8 = command = "AI8"
trigger9 = command = "AI9"
trigger10 = command = "AI10"
trigger11 = command = "AI11"
trigger12 = command = "AI12"
trigger13 = command = "AI13"
trigger14 = command = "AI14"
trigger15 = command = "AI15"
trigger16 = command = "AI16"
trigger17 = command = "AI17"
trigger18 = command = "AI18"
trigger19 = command = "AI19"
trigger20 = command = "AI20"
trigger21 = command = "AI21"
trigger22 = command = "AI22"
trigger23 = command = "AI23"
trigger24 = command = "AI24"
trigger25 = command = "AI25"
trigger26 = command = "AI26"
trigger27 = command = "AI27"
trigger28 = command = "AI28"
trigger29 = command = "AI29"
trigger30 = command = "AI30"
v = 59
value = 1

;-----------------
[state -3, float recover towards]
type = changestate
triggerall = roundstate = 2
triggerall = stateno = 5120
triggerall = var(59) = 1
trigger1 = p2bodydist x >= 25
trigger2 = backedgedist <= 20
value = 6100

[state -3, float recover away]
type = changestate
triggerall = roundstate = 2
triggerall = stateno = 5120
triggerall = var(59) = 1
triggerall = backedgedist <= 200
trigger1 = p2bodydist x <= 15
trigger2 = life <= 100
trigger3 = frontedgedist <= 20
trigger4 = p2bodydist x <= 0
value = 6101

;Dodge back
[State -1, dodge back]
type = changestate
value = 1063
triggerall = roundstate = 2
triggerall = alive = 1
triggerall = Statetype != A
triggerall = p2stateno = 5120
triggerall = var(59) = 1
triggerall = p2bodydist x <= 100
trigger1 = ctrl = 1
trigger2 = stateno = 0
trigger3 = stateno = 660

;guard
[State 0, guard]
type = ChangeState
triggerall = p2name = "ultimate sula"
triggerall = p2stateno = 666777
triggerall = p2statetype != L
triggerall = p2statetype != A
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = alive = 1
triggerall = p2movetype = A
trigger1 = stateno = 660
trigger2 = ctrl = 1
trigger3 = stateno = 0
value = 120
ctrl = 0

;-----------------
;super attacks
[State 0, ghost strike]
type = ChangeState
triggerall = p2statetype = A
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl = 1
triggerall = stateno != 9100
triggerall = (p2bodydist y = [-25,-150])
trigger1 = (p2bodydist x = [20,-20]) && (stateno = 0)
value = 9100
ctrl = 0

[State 0, beam]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = power = 3000
triggerall = statetype != A
triggerall = ctrl
trigger1 = p2bodydist x  >= 150
value = 9300
ctrl = 0

[State 0, Blade of Divinity]
type = ChangeState
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = var(59) = 1
triggerall = power = 3000
triggerall = statetype != L
triggerall = ctrl
triggerall = stateno != 9000
triggerall = p2bodydist y >= -73
triggerall = p2statetype = A
trigger1 = p2bodydist x  <= 150
value = 9000
ctrl = 0

[State 0, abstract collossus]
type = ChangeState
triggerall = p2statetype != L
triggerall = p2stateno != 5120
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = power >= 2000
triggerall = power != 3000
triggerall = statetype != A
triggerall = stateno != 660
triggerall = ctrl
trigger1 = p2bodydist x  >= 100
value = 9200
ctrl = 0

[State 0, energy storm]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = power >= 2000
triggerall = statetype = A
triggerall = pos y != 0
triggerall = pos y = [-100,-200]
trigger1 = (p2bodydist x = [-50,50]) && ctrl = 1
trigger2 = (stateno = 600) && (p2bodydist x = [-50,50])
trigger3 = (stateno = 610) && (p2bodydist x = [-50,50])
trigger4 = (stateno = 620) && (p2bodydist x = [-50,50])
trigger5 = (stateno = 2500) && (p2bodydist x = [-50,50])
trigger6 = (stateno = 50) && (p2bodydist x = [-50,50])
trigger7 = (stateno = 5040) && (p2bodydist x = [-100,100])
trigger8 = (stateno = 5030) && (p2bodydist x = [-100,100])
trigger9 = (stateno = 1552) && movecontact
value = 444
ctrl = 0

[State 0, earth slam]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = power >= 1000
triggerall = power <= 2000
triggerall = statetype = A
triggerall = pos y != 0
triggerall = pos y <= -100
trigger1 = (p2bodydist x = [-50,50]) && ctrl = 1
trigger2 = (stateno = 600) && (p2bodydist x = [-50,50])
trigger3 = (stateno = 610) && (p2bodydist x = [-50,50])
trigger4 = (stateno = 620) && (p2bodydist x = [-50,50])
trigger5 = (stateno = 2500) && (p2bodydist x = [-50,50])
trigger6 = (stateno = 50) && (p2bodydist x = [-50,50])
trigger7 = (stateno = 5040) && (p2bodydist x = [-100,100])
trigger8 = (stateno = 5030) && (p2bodydist x = [-100,100])
trigger9 = (stateno = 1552) && movecontact
value = 9600
ctrl = 0

[State 0, energy storm H]
type = ChangeState
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = var(59) = 1
triggerall = power >= 2000
triggerall = power != 3000
triggerall = statetype != L
triggerall = ctrl
triggerall = stateno != 660
triggerall = p2bodydist y >= -73
triggerall = p2statetype = A
trigger1 = p2bodydist x  <= 100
value = 777
ctrl = 0

[State 0, skulls]
type = ChangeState
triggerall = roundstate = 2
triggerall = statetype != A
triggerall = var(59) = 1
triggerall = power >= 1000
triggerall = power <= 2000
triggerall = power != 3000
triggerall = statetype != L
triggerall = ctrl
triggerall = stateno != 660
triggerall = p2bodydist y >= -73
triggerall = p2statetype = A
trigger1 = p2bodydist x <= 100
value = 10101
ctrl = 0

[State 0, column blast]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = power >= 1000
triggerall = power <= 1500
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != 660
triggerall = stateno != 9552
trigger1 = p2bodydist x >= 100
value = 9552
ctrl = 0

;-----------------
;normal attacks

[State 0, Aura CD VarRandom]
type = VarRandom
trigger1 = stateno = 150
trigger2 = stateno = 151
v = 42
range = 1,3
persistent = 0

[State -1, Aura CD]
type = ChangeState
value = 240
triggerall = alive = 1
triggerall = statetype = S
triggerall = p2statetype != L
triggerall = var(59) = 1
triggerall = var(42) = 3
triggerall = statetype != A
triggerall = p2movetype != A
triggerall = p2bodydist x <= 20
triggerall = stateno != 240
trigger1 = stateno = 150
trigger2 = stateno = 151

[State 0, punch 200]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != 200
trigger1 = (p2bodydist x <= 20)
value = 200
ctrl = 0

[State 0, CD2]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl
trigger1 = (p2bodydist x <= 75) && (p2bodydist x >= 50)
value = 13000
ctrl = 0

[State 0, two inch]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(58) = 1
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl = 1
triggerall = stateno != 1200
triggerall = power >= 500
triggerall = power <= 1000
trigger1 = p2bodydist x >= 200
trigger2 = ctrl = 1
value = 1200
ctrl = 0

[State 0, flyby 3000]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != 3000
trigger1 = p2bodydist x >= 200
trigger2 = (prevstateno = 1100) && movehit
trigger3 = (prevstateno = 3050) && movehit
value = 3000
ctrl = 0

[State 0, Three Inch]
type = ChangeState
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl
triggerall = power >= 500
triggerall = stateno != 1400
triggerall = p2statetype = L
trigger1 = p2bodydist x = [50,200]
value = 1400
ctrl = 0

[State 0, charge slam 260]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != 270
trigger1 = p2bodydist x <= 30
trigger2 = (stateno = 52) || (prevstateno = 251)
value = 260
ctrl = 0

[State 0, sliding kick 2]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != 221
triggerall = alive = 1
trigger1 = (stateno = 230) && movecontact
trigger2 = (stateno = 220) && movecontact
value = 221
ctrl = 0

[State 0, kick 220]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != 220
trigger1 = (p2bodydist x >= 10) && (p2bodydist x <= 20)
trigger2 = (prevstateno = 230) && movehit
value = 220
ctrl = 0

[State 0, 2kick 250]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != 250
trigger1 = (prevstateno = 200) && movecontact
trigger2 = (p2bodydist x <= 25) && (prevstateno = 200)
trigger3 = (p2bodydist x <= 25) && (p2bodydist x >= 10)
trigger4 = (prevstateno = 220) && movehit
value = 250
ctrl = 0

[State 0, 2kick 251]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = stateno != 251
trigger1 = (prevstateno = 250) && movehit
value = 251
ctrl = 0

[State 0, 2kick 230]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl
triggerall = stateno != 230
trigger1 = (prevstateno = 200) && movehit
trigger2 = (prevstateno = 200) && movecontact
trigger3 = (p2bodydist x >= 10) && (p2bodydist x <= 20)
value = 230
ctrl = 0

[State 0, Charge Slam Remake] ;one inch
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = statetype != A
triggerall = ctrl
trigger1 = (p2bodydist x <= 100) && (p2bodydist x >= 50)
trigger2 = (prevstateno = 230) && movecontact
value = 260
ctrl = 0

;[State 0, abstract collossus]
;type = ChangeState
;triggerall = roundstate = 2
;triggerall = var(59) = 1
;triggerall = power >= 300
;triggerall = statetype != A
;triggerall = ctrl
;trigger1 = p2bodydist x  >= 250
;value = 444
;ctrl = 0

[State 0, blast long 1100]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = power >= 1000
triggerall = power <= 2000
triggerall = statetype != A
triggerall = stateno != 1100
triggerall = prevstateno != 1100
triggerall = prevstateno != 0
trigger1 = ctrl
trigger2 = (prevstateno = 200) && (movecontact = 0) && (p2bodydist x >= 30)
value = 1100
ctrl = 0

[State 0, blast short 3050]
type = ChangeState
triggerall = p2statetype != L
triggerall = roundstate = 2
triggerall = var(59) = 1
triggerall = power >= 1000
triggerall = power <= 2000
triggerall = statetype != A
triggerall = stateno != 3050
triggerall = prevstateno != 3050
triggerall = prevstateno != 0
trigger1 = ctrl
trigger2 = (prevstateno = 200) && (movecontact = 0) && (p2bodydist x <= 30)
value = 3050
ctrl = 0

[State 0, taunt]
type = ChangeState
triggerall = roundstate = 2
triggerall = statetype = A
triggerall = var(59) = 1
triggerall = ctrl
triggerall = pos y = 0
trigger1 = (p2bodydist x >= 200) && (p2statetype = L)
value = 195


;__________________________________
;air attacks

[State 0, spin kick air]
type = ChangeState
triggerall = roundstate = 2
triggerall = statetype = A
triggerall = var(59) = 1
triggerall = stateno != 2500
triggerall = stateno != 1552
triggerall = stateno != 9100
triggerall = p2bodydist x >= 100
trigger1 = ctrl = 1
value = 2500
ctrl = 0

;air attack loop

[State 0, 600]
type = ChangeState
triggerall = roundstate = 2
triggerall = statetype = A
triggerall = var(59) = 1
triggerall = stateno != 600
triggerall = stateno != 9100
trigger1 = ctrl
trigger2 = (prevstateno = 630) && movehit
value = 600
ctrl = 0

[State 0, 610]
type = ChangeState
triggerall = roundstate = 2
triggerall = statetype = A
triggerall = var(59) = 1
triggerall = stateno != 610
triggerall = stateno != 9100
trigger1 = ctrl
trigger2 = (prevstateno = 600) && movehit
value = 610
ctrl = 0

[State 0, 610]
type = ChangeState
triggerall = roundstate = 2
triggerall = statetype = A
triggerall = var(59) = 1
triggerall = movehit
trigger1 = stateno = 2500
value = 610
ctrl = 0

[State 0, 630]
type = ChangeState
triggerall = roundstate = 2
triggerall = statetype = A
triggerall = var(59) = 1
triggerall = stateno != 630
triggerall = stateno != 9100
trigger1 = ctrl
trigger2 = (prevstateno = 610) && movehit
value = 630
ctrl = 0




;---------------------------------------
;Aura 2nd Revival
;By Crucifix
;
;AI File
;
