; _______________________________________
;| Edmond Honda by Phantom.of.the.Server |
; ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
;==============================================================================================
;=======================================<HELPER STATES>========================================
;==============================================================================================

;========================<AI ACTIVATION>=============================
;Adapted from Winane's (http://www.mugenguild.com/winane)
[Statedef 9741]
type=A
movetype=I
physics=N
anim=9741
ctrl=0

[State 9741, wrong]
type=destroyself
trigger1= (parent,ID)!=(root,ID)
[State 9741, Safety]
type=selfstate
trigger1= !ishelper
value=0

[State 9741, uglyhack]
type=varset
trigger1= !var(1)
var(2)=1
[State 9741, pausecheck]
type=varset
trigger1= gametime>root,var(58)
trigger2= !(root,alive)
trigger3= roundstate!=2
trigger4= root,var(59)
var(2)=1

[State 9741, facing]
type=turn
trigger1= var(9):=(facing!=root,facing)

[State 9741, dirturnonAI]
type=parentvarset
triggerall= !var(2) && !var(9)
trigger1= root,command="fwd"
trigger2= root,command="back"
trigger3= root,command="up"
trigger4= root,command="down"
var(59)=1
[State 9741, dirturnoffAI]
type=parentvarset
triggerall= !var(2) && !var(9); && (root,var(59)>=1)
trigger1= command="fwd" && root,command="fwd"
trigger2= command="back" && root,command="back"
trigger3= command="up" && root,command="up"
trigger4= command="down" && root,command="down"
var(59)=-1

[State 9741, buttonturnonAI]
type=parentvarset
triggerall= !var(2)
trigger1= root,command="a"
trigger2= root,command="b"
trigger3= root,command="c"
trigger4= root,command="x"
trigger5= root,command="y"
trigger6= root,command="z"
trigger7= root,command="start"
trigger8= root,command="pp"
trigger9= root,command="kk"
trigger10= root,command="recovery"
trigger11= root,command="FF"
trigger12= root,command="BB"
trigger13= root,command="highjump"
trigger14= root,command="c+z"
trigger15= root,command="a+x"
trigger16= root,command="b+y"
trigger17= root,command="ppp"
trigger18= root,command="kkk"
var(59)=1
[State 9741, buttonturnoffAI]
type=parentvarset
triggerall= !var(2); && (root,var(59)>=1)
trigger1= command="a" && root,command="a"
trigger2= command="b" && root,command="b"
trigger3= command="c" && root,command="c"
trigger4= command="x" && root,command="x"
trigger5= command="y" && root,command="y"
trigger6= command="z" && root,command="z"
trigger7= command="start" && root,command="start"
trigger8= command="pp" && root,command="pp"
trigger9= command="kk" && root,command="kk"
trigger10=command="recovery" && root,command="recovery"
trigger11=command="FF" && root,command="FF"
trigger12=command="BB" && root,command="BB"
trigger13=command="highjump" && root,command="highjump"
trigger14=command="c+z" && root,command="c+z"
trigger15=command="a+x" && root,command="a+x"
trigger16=command="b+y" && root,command="b+y"
trigger17=command="ppp" && root,command="ppp"
trigger18=command="kkk" && root,command="kkk"
var(59)=-1

[State 9741, unpausecheck]
type=varset
triggerall= var(2)
trigger1= root,command="fwd" || root,command="back" || root,command="up" || root,command="down"
trigger2= root,command="a" || root,command="b" || root,command="c"
trigger3= root,command="x" || root,command="y" || root,command="z"
trigger4= root,command="start" || root,command="ppp" || root,command="kkk"
trigger5= root,command="pp" || root,command="kk" || root,command="a+x" || root,command="recovery" || root,command="c+z"
trigger6= root,command="FF" || root,command="BB" || root,command="highjump" || root,command="b+y"
trigger7= var(2)=1
trigger7= var(2):=0
var(2)=1

[State 9741, goodbye]
type=destroyself
triggerall= var(1):=1
trigger1= root,var(59)
trigger2= !(root,alive)
trigger3= roundstate!=2

;========================<Shield>========================================
[Statedef 1135]
type=A
physics=N
movetype=I
anim=1135

[State 0, PlayerPush]
type=playerpush
trigger1=1
value=0

[State 1135]
type=parentvarset
trigger1= !time
trigger1= gethitvar(damage)>0 && root,fvar(0)<=0
fvar(0)=gethitvar(damage)*1.2
[State 1135]
type=playsnd
trigger1= !time
trigger1= gethitvar(hittime)>0
value=5000,2
channel=2
volume=255
[State 760, Snd]
type=playsnd
trigger1= !time
trigger1= gethitvar(hittime)>0
value=2,4
channel=1
[State 1135]
type=pause
trigger1= !time
trigger1= gethitvar(hittime)>0
time=12
[State 1135]
type=varadd
trigger1= prevstateno=1135 && !time
var(59)=1

[State 1135]
type=nothitby
trigger1=1
value=SCA
[State 1135]
type=hitby
trigger1=1
value=SCA,AP

[State 1135]
type=hitoverride
trigger1=1
attr=SCA,AA,AT,AP
time=1
stateno=1135
;ignorehitpause=1

[State 1135]
type=bindtoroot
trigger1=1
facing=1

[State 1135, End]
type=destroyself
trigger1= root,movetype=H
trigger2= root,stateno!=1130 || root,animelem!=5
trigger3= var(59)>=3

;========================<PROJECTILE SHIELD>=============================
;---Oni Musou---
[Statedef 3005]
type=A
physics=N
movetype=I
anim=3005
ctrl=0
velset=0,0

[State 3005, HitOverride]
type=hitoverride
trigger1= 1
attr=SCA,AA,AP,AT
time=-1
stateno=3006
ignorehitpause=1

[State 3005, NHB]
type=nothitby
trigger1= 1
time=-1
value=SCA
ignorehitpause=1
[State 3015, HB]
type=hitby
trigger1= 1
value=SCA,NP,SP,HP
time=-1
ignorehitpause=1

[State 3005, Bind]
type=bindtoroot
trigger1= 1
facing=1

[State 3005, End]
type=destroyself
trigger1= root,movetype=H
trigger2= root,stateno!=3000
trigger3= root,stateno=3000 && root,animelemtime(5)<0


[Statedef 3006]
type=A
physics=N
movetype=I
ctrl=0
velset=0,0
[State 3006, End]
type=destroyself
trigger1= 1
ignorehitpause=1


;---MAX Oni Musou---
[Statedef 3055]
type=A
physics=N
movetype=I
anim=3055
ctrl=0
velset=0,0

[State 3055, HitOverride]
type=hitoverride
trigger1= 1
attr=SCA,AA,AP,AT
time=-1
stateno=3055
ignorehitpause=1

[State 3055, NHB]
type=nothitby
trigger1= 1
time=-1
value=SCA
ignorehitpause=1
[State 3015, HB]
type=hitby
trigger1= 1
value=SCA,NP,SP,HP
time=-1
ignorehitpause=1

[State 3055, Bind]
type=bindtoroot
trigger1= 1
facing=1

[State 3055, End]
type=destroyself
trigger1= root,movetype=H
trigger2= root,stateno!=3050
trigger3= root,stateno=3050 && root,animelemtime(5)<0


;========================<SPARKS>=============================
;---Guard Normal---
[Statedef 8000]
type=A
physics=N
movetype=I
anim=8000
velset=0,0
sprpriority=5

[State 8000, Assert]
type=assertspecial
trigger1= 1
flag=noshadow

[State 8000, Scale]
type=angledraw
trigger1= 1
scale= .125+(.046875*time), .125+(.046875*time)
[State 8000, Trans]
type=trans
trigger1= time<4
trans= addalpha
alpha= 256, 256
[State 8000, Trans]
type=trans
trigger1= time>=4
trans= addalpha
alpha= 256 - 64*(time-4), 256

[State 8000, End]
type=destroyself
trigger1= time>=8


;---Guard Special---
[Statedef 8001]
type=A
physics=N
movetype=I
anim=8001
velset=0,0
sprpriority=5

[State 8001, Assert]
type=assertspecial
trigger1= 1
flag=noshadow

[State 8001, Scale]
type=angledraw
trigger1= 1
scale= .25+(.03125*time), .25+(.03125*time)
[State 8001, Trans]
type=trans
trigger1= time<4
trans= addalpha
alpha= 256, 256
[State 8001, Trans]
type=trans
trigger1= time>=4
trans= addalpha
alpha= 256 - 64*(time-4), 256

[State 8001, End]
type=destroyself
trigger1= time>=8


;---Weak---
[Statedef 8010]
type=A
physics=N
movetype=I
anim=8010
velset=0,0
sprpriority=5

[State 8010, Assert]
type=assertspecial
trigger1= 1
flag=noshadow

[State 8010, Angle]
type=angleset
trigger1= !time
value=30*(random%12)
[State 8010, Angle]
type=angleadd
trigger1= 1
value=30
[State 8010, Scale]
type=angledraw
trigger1= time<10
scale= .3-(time*.03), .3-(time*.03)
[State 8010, Scale]
type=angledraw
trigger1= time>=10
scale=0,0
[State 8010, Trans]
type=trans
trigger1= 1
trans=addalpha
alpha=256,256

[State 8010, Center]
type=explod
trigger1= !time
anim=8011
ID=1
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=5
removetime=16
pausemovetime=-1
supermovetime=-1
[State 8010, Scale]
type=modifyexplod
trigger1= numexplod(1)
ID=1
scale=.15+(.009375*time),.15+(.009375*time)
trans=addalpha
alpha=256-(16*time),256

[State 8010, Streaks]
type=explod
trigger1= !time
anim=8012
ID=2
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=5
removetime=16
pausemovetime=-1
supermovetime=-1
[State 8010, Scale]
type=modifyexplod
trigger1= numexplod(2)
ID=2
scale=.15+(.009375*time),.15+(.009375*time)
trans=addalpha
alpha=256-(16*time),256

[State 8010, Impact]
type=explod
trigger1= !time
anim=8014
ID=4
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=3
removetime=8
pausemovetime=-1
supermovetime=-1
[State 8010, Scale]
type=modifyexplod
trigger1= numexplod(4)
ID=4
scale=.3-(.0375*time),.3-(.0375*time)
trans=addalpha
alpha=128-(16*time),256

[State 8010, End]
type=removeexplod
trigger1= time>=16
[State 8010, End]
type=destroyself
trigger1= time>=16


;---Medium---
[Statedef 8011]
type=A
physics=N
movetype=I
anim=8010
velset=0,0
sprpriority=5

[State 8011, Assert]
type=assertspecial
trigger1= 1
flag=noshadow

[State 8011, Angle]
type=angleset
trigger1= !time
value=30*(random%12)
[State 8011, Angle]
type=angleadd
trigger1= 1
value=30
[State 8011, Scale]
type=angledraw
trigger1= time<10
scale= .35-(time*.035), .35-(time*.035)
[State 8011, Scale]
type=angledraw
trigger1= time>=10
scale=0,0
[State 8011, Trans]
type=trans
trigger1= 1
trans=addalpha
alpha=256,256

[State 8011, Center]
type=explod
trigger1= !time
anim=8011
ID=1
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=5
removetime=16
pausemovetime=-1
supermovetime=-1
[State 8011, Scale]
type=modifyexplod
trigger1= numexplod(1)
ID=1
scale=.175+(.0109375*time),.175+(.0109375*time)
trans=addalpha
alpha=256-(16*time),256

[State 8011, Streaks]
type=explod
trigger1= !time
anim=8012
ID=2
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=5
removetime=16
pausemovetime=-1
supermovetime=-1
[State 8011, Scale]
type=modifyexplod
trigger1= numexplod(2)
ID=2
scale=.175+(.0109375*time),.175+(.0109375*time)
trans=addalpha
alpha=256-(16*time),256

[State 8011, Impact]
type=explod
trigger1= !time
anim=8014
ID=4
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=3
removetime=8
pausemovetime=-1
supermovetime=-1
[State 8011, Scale]
type=modifyexplod
trigger1= numexplod(4)
ID=4
scale=.35-(.04375*time),.35-(.04375*time)
trans=addalpha
alpha=128-(16*time),256

[State 8011, End]
type=removeexplod
trigger1= time>=16
[State 8011, End]
type=destroyself
trigger1= time>=16


;---Strong---
[Statedef 8012]
type=A
physics=N
movetype=I
anim=8010
velset=0,0
sprpriority=5

[State 8012, Assert]
type=assertspecial
trigger1= 1
flag=noshadow

[State 8012, Angle]
type=angleset
trigger1= !time
value=30*(random%12)
[State 8012, Angle]
type=angleadd
trigger1= 1
value=30
[State 8012, Scale]
type=angledraw
trigger1= time<10
scale= .4-(time*.04), .4-(time*.04)
[State 8012, Scale]
type=angledraw
trigger1= time>=10
scale=0,0
[State 8012, Trans]
type=trans
trigger1= 1
trans=addalpha
alpha=256,256

[State 8012, Center]
type=explod
trigger1= !time
anim=8011
ID=1
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=5
removetime=16
pausemovetime=-1
supermovetime=-1
[State 8012, Scale]
type=modifyexplod
trigger1= numexplod(1)
ID=1
scale=.2+(.0125*time),.2+(.0125*time)
trans=addalpha
alpha=256-(16*time),256

[State 8012, Streaks]
type=explod
trigger1= !time
anim=8012
ID=2
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=5
removetime=16
pausemovetime=-1
supermovetime=-1
[State 8012, Scale]
type=modifyexplod
trigger1= numexplod(2)
ID=2
scale=.2+(.0125*time),.2+(.0125*time)
trans=addalpha
alpha=256-(16*time),256

[State 8012, Impact]
type=explod
trigger1= !time
anim=8014
ID=4
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=3
removetime=8
pausemovetime=-1
supermovetime=-1
[State 8012, Scale]
type=modifyexplod
trigger1= numexplod(4)
ID=4
scale=.4-(.05*time),.4-(.05*time)
trans=addalpha
alpha=128-(16*time),256

[State 8012, End]
type=removeexplod
trigger1= time>=16
[State 8012, End]
type=destroyself
trigger1= time>=16


;---Special---
[Statedef 8013]
type=A
physics=N
movetype=I
anim=8010
velset=0,0
sprpriority=5

[State 8013, Assert]
type=assertspecial
trigger1= 1
flag=noshadow

[State 8013, Angle]
type=angleset
trigger1= !time
value=30*(random%12)
[State 8013, Angle]
type=angleadd
trigger1= 1
value=30
[State 8013, Scale]
type=angledraw
trigger1= time<10
scale= .45-(time*.045), .45-(time*.045)
[State 8012, Scale]
type=angledraw
trigger1= time>=10
scale=0,0
[State 8013, Trans]
type=trans
trigger1= 1
trans=addalpha
alpha=256,256

[State 8013, Center]
type=explod
trigger1= !time
anim=8011
ID=1
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=5
removetime=16
pausemovetime=-1
supermovetime=-1
[State 8013, Scale]
type=modifyexplod
trigger1= numexplod(1)
ID=1
scale=.225+(.0140625*time),.225+(.0140625*time)
trans=addalpha
alpha=256-(16*time),256

[State 8013, Streaks]
type=explod
trigger1= !time
anim=8012
ID=2
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=5
removetime=16
pausemovetime=-1
supermovetime=-1
[State 8013, Scale]
type=modifyexplod
trigger1= numexplod(2)
ID=2
scale=.225+(.0140625*time),.225+(.0140625*time)
trans=addalpha
alpha=256-(16*time),256

[State 8013, P2 Back]
type=explod
trigger1= !time
anim=8013
ID=3
postype=p1
vfacing=ifelse(random<500,-1,1)
sprpriority=-3
removetime=8
pausemovetime=-1
supermovetime=-1
[State 8013, Scale]
type=modifyexplod
trigger1= numexplod(3)
ID=3
scale=.4,.4
trans=addalpha
alpha=256-(32*time),256

[State 8013, Impact]
type=explod
trigger1= !time
anim=8014
ID=4
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=3
removetime=8
pausemovetime=-1
supermovetime=-1
[State 8013, Scale]
type=modifyexplod
trigger1= numexplod(4)
ID=4
scale=.45-(.05625*time),.45-(.05625*time)
trans=addalpha
alpha=192-(24*time),256

[State 8013, End]
type=removeexplod
trigger1= time>=16
[State 8013, End]
type=destroyself
trigger1= time>=16


;---Super---
[Statedef 8014]
type=A
physics=N
movetype=I
anim=8010
velset=0,0
sprpriority=5

[State 8014, Assert]
type=assertspecial
trigger1= 1
flag=noshadow

[State 8014, Angle]
type=angleset
trigger1= !time
value=30*(random%12)
[State 8014, Angle]
type=angleadd
trigger1= 1
value=30
[State 8014, Scale]
type=angledraw
trigger1= time<10
scale= .5-(time*.05), .5-(time*.05)
[State 8012, Scale]
type=angledraw
trigger1= time>=10
scale=0,0
[State 8014, Trans]
type=trans
trigger1= 1
trans=addalpha
alpha=256,256

[State 8014, Center]
type=explod
trigger1= !time
anim=8011
ID=1
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=5
removetime=16
pausemovetime=-1
supermovetime=-1
[State 8014, Scale]
type=modifyexplod
trigger1= numexplod(1)
ID=1
scale=.25+(.015625*time),.25+(.015625*time)
trans=addalpha
alpha=256-(16*time),256

[State 8014, Streaks]
type=explod
trigger1= !time
anim=8012
ID=2
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=5
removetime=16
pausemovetime=-1
supermovetime=-1
[State 8014, Scale]
type=modifyexplod
trigger1= numexplod(2)
ID=2
scale=.25+(.015625*time),.25+(.015625*time)
trans=addalpha
alpha=256-(16*time),256

[State 8014, P2 Back]
type=explod
trigger1= !time
anim=8013
ID=3
postype=p1
vfacing=ifelse(random<500,-1,1)
sprpriority=-3
removetime=8
pausemovetime=-1
supermovetime=-1
[State 8014, Scale]
type=modifyexplod
trigger1= numexplod(3)
ID=3
scale=.5,.5
trans=addalpha
alpha=256-(32*time),256

[State 8014, Impact]
type=explod
trigger1= !time
anim=8014
ID=4
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
sprpriority=3
removetime=8
pausemovetime=-1
supermovetime=-1
[State 8014, Scale]
type=modifyexplod
trigger1= numexplod(4)
ID=4
scale=.5-(.0625*time),.5-(.0625*time)
trans=addalpha
alpha=256-(32*time),256

[State 8014, End]
type=removeexplod
trigger1= time>=16
[State 8014, End]
type=destroyself
trigger1= time>=16


;---Reversal---
[Statedef 8020]
type=A
physics=N
movetype=I
anim=8020
velset=0,0
sprpriority=5

[State 8020, Assert]
type=assertspecial
trigger1= 1
flag=noshadow

[State 8020, Scale]
type=angledraw
trigger1= 1
scale= .25+(.09375*time), .25+(.09375*time)
[State 8020, Trans]
type=trans
trigger1= time<4
trans= addalpha
alpha= 256, 256
[State 8020, Trans]
type=trans
trigger1= time>=4
trans= addalpha
alpha= 256 - 64*(time-4), 256

[State 8020, End]
type=destroyself
trigger1= time>=8


;========================<DUSTS>=============================
;---Jump---
[Statedef 8100]
type=S
anim=9741
velset=0,0

[State 8100, Bind]
type=bindtoroot
trigger1= time

[State 8100, Dust]
type=explod
trigger1= !time
anim=8100
sprpriority=3
postype=p1
pos=0,ceil(pos y)
scale=.5,.5
pausemovetime=-1
supermovetime=-1
ownpal=1
[State 8100, Dust]
type=explod
trigger1= !time || time=2 || time=6
anim=8101
sprpriority=3
postype=p1
scale=.5,.5
pausemovetime=-1
supermovetime=-1
ownpal=1

[State 8100, End]
type=destroyself
trigger1= time>=7


;---Dash---
[Statedef 8103]
type=A
anim=9741
velset=0,0
sprpriority=5

[State 8103, Pos]
type=posset
trigger1= !time=0
y=0

[State 8103, Dust]
type=explod
trigger1= time=0 || time=3 || time=6
anim=8103
ID= ifelse((time=6), 3, ifelse((time=3), 2, 1))
postype=p1
pos=0,-4
random=8,8
vel= -3-(random/1000.0), -2-(random/2000.0)
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
removetime=16
sprpriority=3
pausemovetime=-1
supermovetime=-1

[State 8103, Scale]
type=modifyexplod
trigger1= numexplod(1)
ID=1
scale= .1+(.025*time), .1+(.025*time)
trans=addalpha
alpha= 256-(16*time), 256
[State 8103, Scale]
type=modifyexplod
trigger1= numexplod(2)
ID=2
scale= .1+(.025*(time-3)), .1+(.025*(time-3))
trans=addalpha
alpha= 256-(16*(time-3)), 256
[State 8103, Scale]
type=modifyexplod
trigger1= numexplod(3)
ID=3
scale= .1+(.025*(time-6)), .1+(.025*(time-6))
trans=addalpha
alpha= 256-(16*(time-6)), 256

[State 8103, End]
type=removeexplod
trigger1= time>=22
[State 8103, End]
type=destroyself
trigger1= !numexplod


;---Impact---
[Statedef 8110]
type=A
anim=9741
velset=0,0
sprpriority=5

[State 8110, FX]
type=explod
trigger1= !time
anim=8110
ID= ifelse(time=8, 3, ifelse(time=4, 2, 1))
postype=p1
removetime=8
sprpriority=-4
pausemovetime=-1
supermovetime=-1
[State 8110, FX]
type=explod
trigger1= !time
anim=8111
ID= 2
postype=p1
removetime=8
sprpriority=-4
pausemovetime=-1
supermovetime=-1

[State 8110, Scale]
type=modifyexplod
trigger1= 1
scale= .25+(.03125*time), .25+(.03125*time)
trans= addalpha
alpha= ifelse(time<4, 256, 256-(64*(time-4))), 256

[State 8110, End]
type=removeexplod
trigger1= time>=8
[State 8110, End]
type=destroyself
trigger1= !numexplod


;========================<FLAMES>=============================
;---Cammy---
[Statedef 8150]
type=A
velset=0,0
anim=9741

[State 8150, player]
type=varset
trigger1= !time
var(0)= parent,var(40)

[State 8150, Pos]
type=posset
trigger1= playerIDexist(var(0))
x= ceil(playerID(var(0)), pos x)
y= ceil(playerID(var(0)), pos y) + (playerID(var(0)), const(size.mid.pos.y))
[State 8150, Pos]
type=posset
trigger1= playerIDexist(var(0))
trigger1= playerID(var(0)),statetype=L
x= ceil(playerID(var(0)), pos x)
y= ceil(playerID(var(0)), pos y) - 20

[State 8150, facing]
type=turn
trigger1= playerIDexist(var(0))
trigger1= facing != (playerID(var(0)),facing)

[State 8150, flames]
type=explod
trigger1= playerIDexist(var(0))
anim=8150
sprpriority=3
postype=p1
random=40,40
vel= (random/2000.0), -.5-(random/2000.0)
facing= ifelse(random<500, -1, 1)
vfacing= ifelse(random<500, -1, 1)
scale=.5,.5
ownpal=1
[State 8150, flames]
type=explod
trigger1= playerIDexist(var(0))
anim=8150
sprpriority=3
postype=p1
random=60,60
vel= (random/2000.0), -.5-(random/2000.0)
facing= ifelse(random<500, -1, 1)
vfacing= ifelse(random<500, -1, 1)
scale=.5,.5
ownpal=1

[State 8150, End]
type=destroyself
trigger1= time> 600
trigger2= !playerIDexist(var(0))
[State 8150, End]
type=destroyself
triggerall= playerIDexist(var(0))
trigger1= playerID(var(0)),ctrl
trigger2= playerID(var(0)),movetype!=H || playerID(var(0)),stateno=5300
trigger3= playerID(var(0)),statetype=L && (playerID(var(0)),stateno!=[5080,5081])


;---Vega---
[Statedef 8151]
type=A
velset=0,0
anim=9741

[State 8151, player]
type=varset
trigger1= !time
var(0)= parent,var(40)

[State 8151, Pos]
type=posset
trigger1= playerIDexist(var(0))
x= ceil(playerID(var(0)), pos x)
y= ceil(playerID(var(0)), pos y) + (playerID(var(0)), const(size.mid.pos.y))
[State 8151, Pos]
type=posset
trigger1= playerIDexist(var(0))
trigger1= playerID(var(0)),statetype=L
x= ceil(playerID(var(0)), pos x)
y= ceil(playerID(var(0)), pos y) - 20

[State 8151, facing]
type=turn
trigger1= playerIDexist(var(0))
trigger1= facing != (playerID(var(0)),facing)

[State 8151, flames]
type=explod
trigger1= playerIDexist(var(0))
anim=8151
sprpriority=3
postype=p1
random=40,40
vel= (random/2000.0), -.5-(random/2000.0)
facing= ifelse(random<500, -1, 1)
vfacing= ifelse(random<500, -1, 1)
scale=.5,.5
ownpal=1
[State 8151, flames]
type=explod
trigger1= playerIDexist(var(0))
anim=8151
sprpriority=3
postype=p1
random=60,60
vel= (random/2000.0), -.5-(random/2000.0)
facing= ifelse(random<500, -1, 1)
vfacing= ifelse(random<500, -1, 1)
scale=.5,.5
ownpal=1

[State 8151, End]
type=destroyself
trigger1= time> 600
trigger2= !playerIDexist(var(0))
[State 8151, End]
type=destroyself
triggerall= playerIDexist(var(0))
trigger1= playerID(var(0)),ctrl
trigger2= playerID(var(0)),movetype!=H || playerID(var(0)),stateno=5300
trigger3= playerID(var(0)),statetype=L && (playerID(var(0)),stateno!=[5080,5081])


;========================<RECOVER FX>=============================
[Statedef 8200]
type=A
velset=0,0
anim=8200
sprpriority=5
[State 8200, No Shadow]
type=assertspecial
trigger1= 1
flag=noshadow

[State 8200, Scale]
type=angledraw
trigger1= 1
scale=.25+(.017*time),.25+(.017*time)
[State 8200, Trans]
type=trans
trigger1= 1
trans=addalpha
alpha=ceil(256-17.1*time),256

[State 8200, End]
type=destroyself
trigger1= time>=15


;========================<COUNTER FX>=============================
[Statedef 8290]
type=A
physics=N
velset=0,0
anim=9741

[State 8290, Circle]
type=explod
trigger1= !numexplod(8290)
anim=8290
ID=8290
sprpriority=64
postype=p1
facing=facing
removetime=32
pausemovetime=-1
supermovetime=-1
ownpal=1

[State 8290, Scale]
type=modifyexplod
trigger1= time<8
ID=8290
scale=.5,.5
trans=addalpha
alpha=256,0
[State 8290, Scale]
type=modifyexplod
trigger1= time>=8
ID= 8290
scale= .5+.0625*(time-8), .5+.0625*(time-8)
trans= addalpha
alpha= 256-32*(time-8), 32*(time-8)

[State 8290, Safety]
type=removeexplod
trigger1= time>=16
[State 8290, End]
type=destroyself
trigger1= time>=16


;====================<POWER CHARGE>====================
;---MAIN FX---
[Statedef 8330]
type=A
physics=N
movetype=I
anim=9741
ctrl=0
velset=0,0

[State 8330, Bind]
type=bindtoroot
trigger1= (root,stateno=730)
pos=4,0
[State 8330, Snd]
type=playsnd
trigger1= !time
value=0,730
channel=0

[State 8330, Aura]
type=explod
trigger1= !numexplod(8330)
ID=8330
anim=8330
sprpriority=3
postype=p1
bindtime=-1
removetime=-1
scale=.5,.5
pausemovetime=-1
supermovetime=-1
ownpal=1
[State 8330, Dust]
type=explod
trigger1= !(time%6)
anim=8105
sprpriority=-3
postype=p1
pos=0,-ceil(pos y)
scale=.5,.5
pausemovetime=-1
supermovetime=-1
ownpal=1

[State 8330, FX]
type=modifyexplod
trigger1= numexplod(8330) && root,power<3000
ID=8330
scale= .5, .1 + .4*(root,power/3000.0)
[State 8330, FX]
type=modifyexplod
trigger1= numexplod(8330) && root,power>=3000
ID=8330
scale= .5, .5

[State 8330, End]
type=stopsnd
trigger1= root,stateno!=730
channel=0
[State 8330, End]
type=removeexplod
trigger1= root,stateno!=730
[State 8330, End]
type=destroyself
trigger1= root,stateno!=730


;---Particles---
[Statedef 8331]
type=A
physics=N
movetype=I
anim=9741
ctrl=0
velset=0,0

[State 8331, Bind]
type=bindtoroot
trigger1= !(time%8)
pos= ceil(-140 + (random/3.125)), ceil(130 - (random/3.125))

[State 8331, Particle]
type=explod
trigger1= (time%8)=1
anim=8331
sprpriority=ifelse(random<750,5,-1)
postype=p1
vel= ((rootdist x+20)/32.0), ((rootdist y-30)/32.0)
scale= ifelse(random<500,.5,-.5), ifelse(random<500,.5,-.5)
pausemovetime=-1
supermovetime=-1
ownpal=1

[State 8331, End]
type=removeexplod
trigger1= root,stateno!=730
[State 8331, End]
type=destroyself
trigger1= root,stateno!=730


;====================<ZERO COUNTER PAUSE>====================
[Statedef 8350]
type=A
physics=N
movetype=I
anim=9741
ctrl=0
velset=0,0

[State 8350, BG PalFX]
type=bgpalfx
trigger1= 1
time=1
color= 16*time
mul= 16*time, 16*time, 16*time

[State 8350, Circle]
type=explod
trigger1= !time
anim=8350
ID=1
sprpriority=3
postype=p1
removetime=16
supermovetime=-1
ownpal=1

[State 8350, Scale]
type=modifyexplod
trigger1= numexplod(1)
ID=1
scale= (.0625*time), (.0625*time)
trans= addalpha
alpha= 256-(16*time), 256

[State 8350, Lightning]
type=explod
trigger1= !time
anim=8351
ID=2
sprpriority=-2
postype=p1
pos=0,-ceil(pos y)
supermovetime=-1
ownpal=1

[State 8350, End]
type=destroyself
trigger1= time>=16


;========================<CUSTOM COMBO>=============================
[Statedef 8400]
type=A
physics=N
movetype=I
anim=8400
ctrl=0
velset=0,0
sprpriority=5

[State 8400, Assert]
type=assertspecial
trigger1= 1
flag=noshadow

[State 8400, BG PalFX]
type=bgpalfx
trigger1= time<25
time=1
mul=128,128,128

[State 8400, Rotate]
type=angleset
trigger1= !time
value=6*(random%60)
[State 8400, Rotate]
type=angleadd
trigger1= 1
value=-6

[State 8400, Scale]
type=angledraw
trigger1= time<8
scale= (.0625*time), (.0625*time)
[State 8400, Scale]
type=angledraw
trigger1= time>=8
scale= .5, .5
[State 8400, Trans]
type=trans
trigger1= time<16
trans= addalpha
alpha= 256, 256
[State 8400, Trans]
type=trans
trigger1= time>=16
trans= addalpha
alpha= ceil(256 - 25.6*(time-16)), 256

[State 8400, Lines]
type=explod
trigger1= !time
anim=8401
ID=1
sprpriority=5
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
removetime=16
supermovetime=-1

[State 8400, Scale]
type=modifyexplod
trigger1= numexplod(1)
ID=1
scale= 2-(.125*time), 2-(.125*time)
trans= addalpha
alpha= ifelse(time<4, 64*time, 256), 256

[State 8400, Circle]
type=explod
trigger1= time=16
anim=8402
ID=2
sprpriority=5
postype=p1
removetime=32
supermovetime=-1

[State 8400, Scale]
type=modifyexplod
trigger1= numexplod(2)
ID=2
scale= (.1*(time-16)), (.1*(time-16))
trans= addalpha
alpha= ceil(256 - 25.6*(time-16)), 256

[State 8400, Safety]
type=removeexplod
trigger1= time>=26
[State 8400, End]
type=destroyself
trigger1= time>=26


;========================<SUPERPAUSE FX>=============================
;-----Level 1-----
[Statedef 8500]
type=A
velset=0,0
anim=8500
sprpriority=5

[State 8500, Assert]
type=assertspecial
trigger1= 1
flag=noshadow

[State 8500, BG PalFX]
type=bgpalfx
trigger1= time<39
time=1
color=0
mul=0,0,256

[State 8500, Rotate]
type=angleset
trigger1= !time
value=6*(random%60)
[State 8500, Rotate]
type=angleadd
trigger1= 1
value=-6

[State 8500, Scale]
type=angledraw
trigger1= time<16
scale= (.03125*time), (.03125*time)
[State 8500, Scale]
type=angledraw
trigger1= time>=16
scale= .5, .5
[State 8500, Trans]
type=trans
trigger1= 1
trans=addalpha
alpha=256,256

[State 8500, Lines]
type=explod
trigger1= time=0 || time=8 || time=16 || time=24
anim=8501
ID=ifelse(time=24, 4, ifelse(time=16, 3, ifelse(time=8, 2, 1)))
sprpriority=5
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
removetime=16
supermovetime=-1

[State 8500, Scale]
type=modifyexplod
trigger1= numexplod(1)
ID=1
scale= 1-(.0625*time), 1-(.0625*time)
trans= addalpha
alpha= ifelse(time<4, 64*time, 256), 256
[State 8500, Scale]
type=modifyexplod
trigger1= numexplod(2)
ID=2
scale= 1-(.0625*(time-8)), 1-(.0625*(time-8))
trans= addalpha
alpha= ifelse((time-8)<4, 64*(time-8), 256), 256
[State 8500, Scale]
type=modifyexplod
trigger1= numexplod(3)
ID=3
scale= 1-(.0625*(time-16)), 1-(.0625*(time-16))
trans= addalpha
alpha= ifelse((time-16)<4, 64*(time-16), 256), 256
[State 8500, Scale]
type=modifyexplod
trigger1= numexplod(4)
ID=4
scale= 1-(.0625*(time-24)), 1-(.0625*(time-24))
trans= addalpha
alpha= ifelse((time-24)<4, 64*(time-24), 256), 256

[State 8500, Circle]
type=explod
trigger1= time=24
anim=8502
ID=10
sprpriority=5
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
removetime=32
supermovetime=-1

[State 8500, Scale]
type=modifyexplod
trigger1= numexplod(10)
ID=10
scale= 2-(.125*(time-24)), 2-(.125*(time-24))
trans= addalpha
alpha= ifelse((time-24)<4, 64*(time-24), 256), 256

[State 8500, Safety]
type=removeexplod
trigger1= time>=40
[State 8500, End]
type=destroyself
trigger1= time>=40


;-----Level 2-----
[Statedef 8510]
type=A
velset=0,0
anim=8510
sprpriority=5

[State 8510, Assert]
type=assertspecial
trigger1= 1
flag=noshadow

[State 8510, BG PalFX]
type=bgpalfx
trigger1= time<39
time=1
color=0
mul=192,0,256

[State 8510, Rotate]
type=angleset
trigger1= !time
value=6*(random%60)
[State 8510, Rotate]
type=angleadd
trigger1= 1
value=-6

[State 8510, Scale]
type=angledraw
trigger1= time<16
scale= (.03125*time), (.03125*time)
[State 8510, Scale]
type=angledraw
trigger1= time>=16
scale= .5, .5
[State 8510, Trans]
type=trans
trigger1= 1
trans=addalpha
alpha=256,256

[State 8510, Lines]
type=explod
trigger1= time=0 || time=8 || time=16 || time=24
anim=8511
ID=ifelse(time=24, 4, ifelse(time=16, 3, ifelse(time=8, 2, 1)))
sprpriority=5
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
removetime=16
supermovetime=-1

[State 8510, Scale]
type=modifyexplod
trigger1= numexplod(1)
ID=1
scale= 1-(.0625*time), 1-(.0625*time)
trans= addalpha
alpha= ifelse(time<4, 64*time, 256), 256
[State 8510, Scale]
type=modifyexplod
trigger1= numexplod(2)
ID=2
scale= 1-(.0625*(time-8)), 1-(.0625*(time-8))
trans= addalpha
alpha= ifelse((time-8)<4, 64*(time-8), 256), 256
[State 8510, Scale]
type=modifyexplod
trigger1= numexplod(3)
ID=3
scale= 1-(.0625*(time-16)), 1-(.0625*(time-16))
trans= addalpha
alpha= ifelse((time-16)<4, 64*(time-16), 256), 256
[State 8510, Scale]
type=modifyexplod
trigger1= numexplod(4)
ID=4
scale= 1-(.0625*(time-24)), 1-(.0625*(time-24))
trans= addalpha
alpha= ifelse((time-24)<4, 64*(time-24), 256), 256

[State 8510, Circle]
type=explod
trigger1= time=24
anim=8512
ID=10
sprpriority=5
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
removetime=32
supermovetime=-1

[State 8510, Scale]
type=modifyexplod
trigger1= numexplod(10)
ID=10
scale= 2-(.125*(time-24)), 2-(.125*(time-24))
trans= addalpha
alpha= ifelse((time-24)<4, 64*(time-24), 256), 256

[State 8510, Safety]
type=removeexplod
trigger1= time>=40
[State 8510, End]
type=destroyself
trigger1= time>=40


;-----Level 3-----
[Statedef 8520]
type=A
velset=0,0
anim=8520
sprpriority=5

[State 8520, Assert]
type=assertspecial
trigger1= 1
flag=noshadow
[State 8520, Assert]
type=assertspecial
trigger1= time<40
flag=nobardisplay
flag2=noBG
flag3=noFG

[State 8520, Rotate]
type=angleset
trigger1= !time
value=6*(random%60)
[State 8520, Rotate]
type=angleadd
trigger1= 1
value=-6

[State 8520, Scale]
type=angledraw
trigger1= time<16
scale= (.03125*time), (.03125*time)
[State 8520, Scale]
type=angledraw
trigger1= time>=16
scale= .5, .5
[State 8520, Trans]
type=trans
trigger1= 1
trans=addalpha
alpha=256,256

[State 8520, Portrait]
type=explod
trigger1= !time
anim=8525
ID=20
sprpriority=-16
postype=back
removetime=40
supermovetime=-1
[State 8520, Portrait]
type=explod
trigger1= !time
anim=8525
ID=21
sprpriority=-16
postype=back
removetime=40
supermovetime=-1

[State 8520, Scale]
type=modifyexplod
trigger1= numexplod(20) && time<16
ID=20
postype=back
pos= 160, 120
scale= 1 - (.03125*time), 1 - (.03125*time)
trans= addalpha
alpha= (8*time), 256
[State 8520, Scale]
type=modifyexplod
trigger1= numexplod(21) && time<16
ID=21
postype=back
pos= 160, 120
scale= 2 - (.09375*time), 2 - (.09375*time)
trans= addalpha
alpha= (8*time), 256

[State 8520, Scale]
type=modifyexplod
trigger1= numexplod(20) && (time=[16,32])
ID=20
postype=back
pos= 160, 120
scale= .5, .5
trans= addalpha
alpha= 256, 256
[State 8520, Scale]
type=removeexplod
trigger1= numexplod(21) && time>=16
ID=21

[State 8520, Scale]
type=modifyexplod
trigger1= numexplod(20) && time>=32
ID=20
postype=back
pos= 160, 120
scale= .5, .5
trans= addalpha
alpha= 128 - 16*(time-32), 256

[State 8520, Lines]
type=explod
trigger1= time=0 || time=8 || time=16 || time=24
anim=8521
ID=ifelse(time=24, 4, ifelse(time=16, 3, ifelse(time=8, 2, 1)))
sprpriority=5
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
removetime=16
supermovetime=-1

[State 8520, Scale]
type=modifyexplod
trigger1= numexplod(1)
ID=1
scale= 1-(.0625*time), 1-(.0625*time)
trans= addalpha
alpha= ifelse(time<4, 64*time, 256), 256
[State 8520, Scale]
type=modifyexplod
trigger1= numexplod(2)
ID=2
scale= 1-(.0625*(time-8)), 1-(.0625*(time-8))
trans= addalpha
alpha= ifelse((time-8)<4, 64*(time-8), 256), 256
[State 8520, Scale]
type=modifyexplod
trigger1= numexplod(3)
ID=3
scale= 1-(.0625*(time-16)), 1-(.0625*(time-16))
trans= addalpha
alpha= ifelse((time-16)<4, 64*(time-16), 256), 256
[State 8520, Scale]
type=modifyexplod
trigger1= numexplod(4)
ID=4
scale= 1-(.0625*(time-24)), 1-(.0625*(time-24))
trans= addalpha
alpha= ifelse((time-24)<4, 64*(time-24), 256), 256

[State 8520, Circle]
type=explod
trigger1= time=24
anim=8522
ID=10
sprpriority=5
postype=p1
facing=ifelse(random<500,-1,1)
vfacing=ifelse(random<500,-1,1)
removetime=32
supermovetime=-1

[State 8520, Scale]
type=modifyexplod
trigger1= numexplod(10)
ID=10
scale= 2-(.125*(time-24)), 2-(.125*(time-24))
trans= addalpha
alpha= ifelse((time-24)<4, 64*(time-24), 256), 256

[State 8520, Safety]
type=removeexplod
trigger1= time>=40
[State 8520, End]
type=destroyself
trigger1= time>=40


;========================<SUPER FINISH>=============================
[Statedef 8600]
type=A
velset=0,0
anim=9741

[State 8600, Sound]
type=playsnd
trigger1= !time
value=0,8600
channel=0

[State 8600, BG PalFX]
type=bgpalfx
trigger1= time<16
time=1
mul= 0, 0, 0
[State 8600, BG PalFX]
type=bgpalfx
trigger1= time=[16,24)
time=1
mul= 32*(time-16), 32*(time-16), 32*(time-16)

[State 8600, Move Name]
type=varset
trigger1= !time && root,var(23)=900
var(0)=1
[State 8600, Move Name]
type=varset
trigger1= !time && (root,var(23)=[3000,3099])
var(0)=2
[State 8600, Move Name]
type=varset
trigger1= !time && (root,var(23)=[3100,3199])
var(0)=3
[State 8600, Move Name]
type=varset
trigger1= !time && (root,var(23)=[3200,3299])
var(0)=4

[State 8600, MvC]
type=explod
trigger1= !time
anim=8600
ID=8600
ontop=1
postype=left
pos=160,120
scale=.5,.5
bindtime=-1
removetime=32
pausemovetime=-1
supermovetime=-1

[State 8600, Fade]
type=modifyexplod
trigger1= numexplod(8600)
ID=8600
trans= addalpha
alpha= ifelse(time<16, 256, 256-32*(time-16)), 256

[State 8600, Text]
type=explod
trigger1= !time && var(0)
anim=8610+var(0)
ID=10
ontop=1
postype=left
pos=160,120
scale=.5,.5
bindtime=-1
removetime=32
pausemovetime=-1
supermovetime=-1
[State 8600, Text]
type=explod
trigger1= !time && var(0)
anim=8610+var(0)
ID=11
ontop=1
postype=left
pos=160,120
scale=.5,.5
bindtime=-1
removetime=8
pausemovetime=-1
supermovetime=-1

[State 8600, Fade]
type=modifyexplod
trigger1= numexplod(10)
ID=10
trans=addalpha
alpha= ifelse(time<16, 256, 256-32*(time-16)), ifelse(time<16, 0, 32*(time-16))
[State 8600, Fade]
type=modifyexplod
trigger1= numexplod(11)
ID=11
scale= .5 + (.0625*time), .5 + (.0625*time)
trans=addalpha
alpha= 256 - (32*time), 32*time

[State 8600, Circle]
type=explod
trigger1= !time
anim=8601
ID=8601
under=1
postype=left
pos=160,120
bindtime=-1
removetime=16
pausemovetime=-1
supermovetime=-1

[State 8600, Fade]
type=modifyexplod
trigger1= numexplod(8601)
ID=8601
scale= (.25*time), (.25*time)
trans= addalpha
alpha= 256 - (16*time), 256

[State 8600, Assert]
type=assertspecial
trigger1= time<16
flag=noFG
[State 8600, Assert]
type=assertspecial
trigger1= time<24
flag=nobardisplay

[State 8600, End]
type=removeexplod
trigger1= time>=24
trigger2= roundstate<3
[State 8600, End]
type=destroyself
trigger1= roundstate<3


;========================<CAMERA CONTROL>=============================
[Statedef 8999]
type=S
velset=0,0
anim=9741
[State 8999, bound]
type=screenbound
trigger1= 1
value=0
movecamera=1,1
[State 8999, End]
type=destroyself
trigger1= roundstate=2
trigger1= (root,stateno!=[3205,3206])


;========================<PARRY CONDUCTOR STAND>============================
[Statedef 10700]
type=A
physics=N
movetype=I
anim=10700
velset=0,0
ctrl=0
[State 765, NHB]
type=nothitby
trigger1= 1
value=SCA
[State 765, Bind]
type=bindtoroot
trigger1= 1
time=-1
[State 765, hitoverride]
type=hitoverride
trigger1=1
attr=SCA,AA,AP,AT
stateno=10700
time=1

[State 765, End]
type=destroyself
trigger1= time>7
trigger2= root,ctrl=0 && !(root,stateno=[760,762]) && !(root,stateno=5120) && root,stateno!=100
trigger2= !(root,stateno=14000) && !(root,stateno=[13000,13001]) && !(root,stateno=[21,29])
trigger3= !(root,movetype=I) || (root,stateno=[102,105]) || (root,stateno=[120,132])
trigger4= root,var(59)<=0 && (root,command="holdback" || root,command="holdup")
trigger5= root,statetype=A
trigger6= root,stateno=760 && root,time<=10
ignorehitpause=1

[State 765, Standing/Air]
type=reversaldef
trigger1= 1
reversal.attr=SA,AA
p1stateno=10705
pausetime=0,13+1
sparkno=-1
numhits=0

[State -2, time]
type=varset
trigger1=1
var(59)=time

;========================<PARRY CONDUCTOR CROUCH>============================
[Statedef 10701]
type=A
physics=N
movetype=I
anim=10701
velset=0,0
ctrl=0
[State 765, NHB]
type=nothitby
trigger1= 1
value=SCA
[State 765, Bind]
type=bindtoroot
trigger1= 1
time=-1
[State 765, hitoverride]
type=hitoverride
trigger1=1
attr=SCA,AA,AP,AT
stateno=10701
time=1

[State 765, End]
type=destroyself
trigger1= time>7
trigger2= root,ctrl=0 && !(root,stateno=[760,762]) && !(root,stateno=5120)
trigger2= !(root,stateno=14000) && !(root,stateno=[13000,13001]) && !(root,stateno=[21,29])
trigger3= !(root,movetype=I) || (root,stateno=[102,105]) || (root,stateno=[120,132])
trigger4= root,var(59)<=0 && (root,command="holdback" || root,command="holdup")
trigger5= root,statetype=A
trigger6= root,stateno=761 && root,time<=10
ignorehitpause=1

[State 765, Standing/Air]
type=reversaldef
trigger1= 1
reversal.attr=C,AA
p1stateno=10705
pausetime=0,13+1
sparkno=-1
numhits=0

[State -2, time]
type=varset
trigger1=1
var(59)=time

;========================<PARRY CONDUCTOR AIR>============================
[Statedef 10702]
type=A
physics=N
movetype=I
anim=10702
velset=0,0
ctrl=0
[State 765, NHB]
type=nothitby
trigger1= 1
value=SCA
[State 765, Bind]
type=bindtoroot
trigger1= 1
time=-1
[State 765, hitoverride]
type=hitoverride
trigger1=1
attr=SCA,AA
stateno=10702
time=1

[State 765, End]
type=destroyself
trigger1= time>7
trigger2= root,ctrl=0 && !(root,stateno=762) && !(root,stateno=5120) && !(root,stateno=12345) && !(root,stateno=23456) && !(root,stateno=34567)
trigger3= !(root,movetype=I) || root,stateno=105 || (root,stateno=[120,132])
trigger4= root,var(59)<=0 && (root,command="holdback" || root,command="holdup")
trigger5= !(root,statetype=A)
trigger6= root,stateno=762 && root,time<=10
ignorehitpause=1

[State 765, Standing/Air]
type=reversaldef
trigger1= 1
reversal.attr=SCA,AA
p1stateno=10705
pausetime=0,13+1
sparkno=-1
numhits=0

[State -2, time]
type=varset
trigger1=1
var(59)=time

;========================<PARRY SUCCESS>============================
[Statedef 10705]
type=A
physics=N
movetype=I
anim=9741
velset=0,0
ctrl=0
[State 765, NHB]
type=nothitby
trigger1= 1
value=SCA
[State 765, Bind]
type=bindtoroot
trigger1= 1
time=-1
[State 10705, timer]
type=parentvarset
trigger1=1
var(14)=target,time
ignorehitpause=1
pausemove=1
supermove=1
[State 765, End]
type=destroyself
trigger1= (root,stateno=[760,762]) && root,time<=6
trigger2= root,movetype=H || root,movetype=A || (root,stateno=[102,105]) || (root,stateno=[120,132]) || statetype=A
trigger3= root,ctrl=0 && !(root,stateno=[760,762]) && !(root,stateno=5120)
trigger3= !(root,stateno=14000) && !(root,stateno=[13000,13001]) && !(root,stateno=[21,29])
