; _____________________________________
;| Rare Akuma by Phantom.of.the.Server |
; ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
;===============================================================================
;SUPER STATES2>
;===============================================================================
;LightSky  POWER = -4000
;===============================================================================
[Statedef 2990]
type=S
movetype=A
physics=N
velset=0,0
juggle=0
poweradd=-4000
anim=7760
ctrl=0

[State 2990,AssertSpecial]
type=AssertSpecial
trigger1=1
flag=nobardisplay

[State 2990,NotHitBy]
type=NotHitBy
trigger1=1
value=SCA

[State 2990,SuperPause]
type=SuperPause
trigger1=time=0
time=65
movetime=65
anim=-1

[State 2990,EnvColor]
type=EnvColor
trigger1=time=0
persistent=0
ignorehitpause=1
time=1
value=255,255,255
under=2

[State 2990,EnvColor]
type=EnvColor
trigger1=time=1
persistent=0
ignorehitpause=1
time=50
value=0,0,0
under=2

;______Effects
[State 2990,Effects3]
type=PlaySnd
trigger1=time=1
value=5,8
volume=255

[State 2990,Effects1]
type=PlaySnd
trigger1=Time=3
value=5,24

[State 2990,Effects2]
type=PlaySnd
trigger1=Time=4
value=5,25

;______Voz
[State 2990,Voz]
type=PlaySnd
trigger1=time=2
value=4,12
volume=255

[state 2990,Changestate]
type=changestate
trigger1=animtime=0
value=2991

;=======================
;Parte2
[Statedef 2991]
type=S
movetype=A
physics=N
velset=0,0
juggle=0
anim=7763
ctrl=0

[State 2991,AssertSpecial]
type=AssertSpecial
trigger1=1
flag=nobardisplay

[State 2991,ReversalDef]
type=ReversalDef
trigger1=1
attr=S,HP
reversal.attr=SCA,NA,SA,HA,NT,ST,HT
hitflag=MAFD
priority=4,Miss
pausetime=0,0
sparkno=-1
hitsound=-1
p2facing = 1
p2stateno = 13121

[State 2991,NotHitBy]
type=NotHitBy
trigger1=1
value=SCA

[state 2991,varset]
type=varset
trigger1=time=0
v=19
value=255

[state 2991,varadd]
type=varadd
trigger1=var(19)>=128
v=19
value=-40

[State 2991,BGPalfx]
type=BGPalfx
trigger1=1
ignorehitpause=1
time=1
mul=var(19),var(19),var(19)
under=2

[State 2991,EnvColor]
type=EnvColor
trigger1=1
ignorehitpause=1
value=0,0,0
time=200
under=2

[State 2991,Pause]
type=Pause
trigger1=time>=202
time=1

[State 2991,BGLightSky]
type=Explod
trigger1=Time=0
anim=7764
id=7764
sprpriority=99999
postype=back
pos=0,0
bindtime=-1
supermove=0
under=99
ownpal=1

;_______Effects
[State 2991,Effects1]
type=PlaySnd
trigger1=Time=0
value=5,26

[State 2991,Effects2]
type=PlaySnd
trigger1=Time=30||Time=60||Time=74||Time=88||Time=96||Time=112||Time=120||time=126||Time=130||Time=140||Time=155||Time=170||Time=180||Time=202
value=5,27

[State 2991,Effects3]
type=PlaySnd
trigger1=Time=192
value=5,28
volume=-40

[State 2991,Effects4]
type=PlaySnd
trigger1=Time=30||Time=60||Time=74||Time=88||Time=96||Time=112||Time=120||time=126||Time=130||Time=140||Time=155||Time=170||Time=180||Time=202
value=5,29

[State 2991,EnvShake]
type=EnvShake
trigger1=Time=30||Time=60||Time=74||Time=88|| Time = 96 ||Time=112||Time=120||time=126||Time=130||Time=140||Time=155||Time=170||Time=180||Time=202
time=10
ampl=-20
freq=95
phase=95

[State 2991,helper1]
type=helper
trigger1=time=30
id=2100
persistent=0
name="LightSky"
pos=0,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper2]
type=helper
trigger1=time=60
id=2100
persistent=0
name="LightSky"
pos=-80,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper3]
type=helper
trigger1=time=74
id=2100
persistent=0
name="LightSky"
pos=100,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper4]
type=helper
trigger1=time=88
id=2100
persistent=0
name="LightSky"
pos=-100,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper5]
type=helper
trigger1=time=96
id=2100
persistent=0
name="LightSky"
pos=20,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper6]
type=helper
trigger1=time=96
id=2100
persistent=0
name="LightSky"
pos=-10,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper7]
type=helper
trigger1=time=112
id=2100
persistent=0
name="LightSky"
pos=-50,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper8]
type=helper
trigger1=time=120
id=2100
persistent=0
name="LightSky"
pos=-70,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper9]
type=helper
trigger1=time=126
id=2100
persistent=0
name="LightSky"
pos=70,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper10]
type=helper
trigger1=time=130
id=2100
persistent=0
name="LightSky"
pos=100,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper11]
type=helper
trigger1=time=140
id=2100
persistent=0
name="LightSky"
pos=50,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper12]
type=helper
trigger1=time=155
id=2100
persistent=0
name="LightSky"
pos=50,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper13]
type=helper
trigger1=time=155
id=2100
persistent=0
name="LightSky"
pos=30,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper14]
type=helper
trigger1=time=170
id=2100
persistent=0
name="LightSky"
pos=-100,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper15]
type=helper
trigger1=time=170
id=2100
persistent=0
name="LightSky"
pos=-70,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper16]
type=helper
trigger1=time=180
id=2100
persistent=0
name="LightSky"
pos=100,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2991,helper17]
type=helper
trigger1=time=195
id=2100
persistent=0
name="LightSky"
pos=0,-240
postype=back
stateno=22229
helpertype=normal
keyctrl=0
ownpal=1

[state 2991,changestate]
type=changestate
trigger1=time=180
value=2992

;=======================
;Parte3
[Statedef 2992]
type=S
movetype=A
physics=N
velset=0,0
juggle=0
anim=7763
ctrl=0

[State 2992,AssertSpecial]
type=AssertSpecial
trigger1=1
flag=nobardisplay

[State 2992,ReversalDef]
type=ReversalDef
trigger1=1
attr=S,HP
reversal.attr=SCA,NA,SA,HA,NT,ST,HT
hitflag=MAFD
priority=4,Miss
pausetime=0,0
sparkno=-1
hitsound=-1
p2facing = 1
p2stateno = 13121

[State 2992,NotHitBy]
type=NotHitBy
trigger1=1
value=SCA

[state 22051,varset]
type=varset
trigger1=time=0
v=19
value=255

[state 2992,varadd]
type=varadd
trigger1=var(19)>=128
v=19
value=-40

[State 2992,BGPalfx]
type=BGPalfx
trigger1=1
ignorehitpause=1
time=1
mul=var(19),var(19),var(19)
under=2

[State 2992,EnvColor]
type=EnvColor
trigger1=1
ignorehitpause=1
value=0,0,0
time=200
under=2

[State 2992,Pause]
type=Pause
trigger1=time>=202
time=1

[State 2992,BGLightSky]
type=Explod
trigger1=Time=0
anim=7865
id=7865
sprpriority=99999
postype=back
pos=0,0
bindtime=-1
supermove=0
under=99
ownpal=1

;_______Effects
[State 2992,Effects1]
type=PlaySnd
trigger1=Time=0
value=5,26

[State 2992,Effects2]
type=PlaySnd
trigger1=Time=30||Time=60||Time=74||Time=88||Time=96||Time=112||Time=120||time=126||Time=130||Time=140||Time=155||Time=170||Time=180||Time=202
value=5,27

[State 2992,Effects3]
type=PlaySnd
trigger1=Time=192
value=5,28
volume=-40

[State 2992,Effects4]
type=PlaySnd
trigger1=Time=30||Time=60||Time=74||Time=88||Time=96||Time=112||Time=120||time=126||Time=130||Time=140||Time=155||Time=170||Time=180||Time=202
value=5,29

[State 2992,EnvShake]
type=EnvShake
trigger1=Time=30||Time=60||Time=74||Time=88|| Time = 96 ||Time=112||Time=120||time=126||Time=130||Time=140||Time=155||Time=170||Time=180||Time=202
time=10
ampl=-20
freq=95
phase=95

[State 2992,helper1]
type=helper
trigger1=time=30
id=2100
persistent=0
name="LightSky"
pos=0,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper2]
type=helper
trigger1=time=60
id=2100
persistent=0
name="LightSky"
pos=-80,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper3]
type=helper
trigger1=time=74
id=2100
persistent=0
name="LightSky"
pos=100,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper4]
type=helper
trigger1=time=88
id=2100
persistent=0
name="LightSky"
pos=-100,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper5]
type=helper
trigger1=time=96
id=2100
persistent=0
name="LightSky"
pos=20,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper6]
type=helper
trigger1=time=96
id=2100
persistent=0
name="LightSky"
pos=-10,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper7]
type=helper
trigger1=time=112
id=2100
persistent=0
name="LightSky"
pos=-50,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper8]
type=helper
trigger1=time=120
id=2100
persistent=0
name="LightSky"
pos=-70,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper9]
type=helper
trigger1=time=126
id=2100
persistent=0
name="LightSky"
pos=70,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper10]
type=helper
trigger1=time=130
id=2100
persistent=0
name="LightSky"
pos=100,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper11]
type=helper
trigger1=time=140
id=2100
persistent=0
name="LightSky"
pos=50,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper12]
type=helper
trigger1=time=155
id=2100
persistent=0
name="LightSky"
pos=50,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper13]
type=helper
trigger1=time=155
id=2100
persistent=0
name="LightSky"
pos=30,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper14]
type=helper
trigger1=time=170
id=2100
persistent=0
name="LightSky"
pos=-100,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper15]
type=helper
trigger1=time=170
id=2100
persistent=0
name="LightSky"
pos=-70,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper16]
type=helper
trigger1=time=180
id=2100
persistent=0
name="LightSky"
pos=100,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2992,helper17]
type=helper
trigger1=time=195
id=2100
persistent=0
name="LightSky"
pos=0,-240
postype=back
stateno=22229
helpertype=normal
keyctrl=0
ownpal=1

[state 2992,changestate]
type=changestate
trigger1=time=180
value=2993

;=======================
;Parte4
[Statedef 2993]
type=S
movetype=A
physics=N
velset=0,0
juggle=0
anim=7763
ctrl=0

[State 2993,AssertSpecial]
type=AssertSpecial
trigger1=1
flag=nobardisplay

[State 2993,ReversalDef]
type=ReversalDef
trigger1=1
attr=S,HP
reversal.attr=SCA,NA,SA,HA,NT,ST,HT
hitflag=MAFD
priority=4,Miss
pausetime=0,0
sparkno=-1
hitsound=-1
p2facing = 1
p2stateno = 13121

[State 2993,NotHitBy]
type=NotHitBy
trigger1=1
value=SCA

[state 2993,varset]
type=varset
trigger1=time=0
v=19
value=255

[state 2993,varadd]
type=varadd
trigger1=var(19)>=128
v=19
value=-40

[State 2993,BGPalfx]
type=BGPalfx
trigger1=1
ignorehitpause=1
time=1
mul=var(19),var(19),var(19)
under=2

[State 2993,EnvColor]
type=EnvColor
trigger1=1
ignorehitpause=1
value=0,0,0
time=200
under=2

[State 2993,Pause]
type=Pause
trigger1=time>=202
time=1

[State 2993,BGLightSky]
type=Explod
trigger1=Time=0
anim=7865
id=7865
sprpriority=99999
postype=back
pos=0,0
bindtime=-1
supermove=0
under=99
ownpal=1

;_______Effects
[State 2993,Effects1]
type=PlaySnd
trigger1=Time=0
value=5,26

[State 2993,Effects2]
type=PlaySnd
trigger1=Time=30||Time=60||Time=74||Time=88||Time=96||Time=112||Time=120||time=126||Time=130||Time=140||Time=155||Time=170||Time=180||Time=202
value=5,27

[State 2993,Effects3]
type=PlaySnd
trigger1=Time=192
value=5,28
volume=-40

[State 2993,Effects4]
type=PlaySnd
trigger1=Time=30||Time=60||Time=74||Time=88||Time=96||Time=112||Time=120||time=126||Time=130||Time=140||Time=155||Time=170||Time=180||Time=202
value=5,29

[State 2993,EnvShake]
type=EnvShake
trigger1=Time=30||Time=60||Time=74||Time=88|| Time = 96 ||Time=112||Time=120||time=126||Time=130||Time=140||Time=155||Time=170||Time=180||Time=202
time=10
ampl=-20
freq=95
phase=95

[State 2993,helper1]
type=helper
trigger1=time=30
id=2100
persistent=0
name="LightSky"
pos=0,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper2]
type=helper
trigger1=time=60
id=2100
persistent=0
name="LightSky"
pos=-80,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper3]
type=helper
trigger1=time=74
id=2100
persistent=0
name="LightSky"
pos=100,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper4]
type=helper
trigger1=time=88
id=2100
persistent=0
name="LightSky"
pos=-100,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper5]
type=helper
trigger1=time=96
id=2100
persistent=0
name="LightSky"
pos=20,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper6]
type=helper
trigger1=time=96
id=2100
persistent=0
name="LightSky"
pos=-10,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper7]
type=helper
trigger1=time=112
id=2100
persistent=0
name="LightSky"
pos=-50,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper8]
type=helper
trigger1=time=120
id=2100
persistent=0
name="LightSky"
pos=-70,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper9]
type=helper
trigger1=time=126
id=2100
persistent=0
name="LightSky"
pos=70,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper10]
type=helper
trigger1=time=130
id=2100
persistent=0
name="LightSky"
pos=100,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper11]
type=helper
trigger1=time=140
id=2100
persistent=0
name="LightSky"
pos=50,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper12]
type=helper
trigger1=time=155
id=2100
persistent=0
name="LightSky"
pos=50,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper13]
type=helper
trigger1=time=155
id=2100
persistent=0
name="LightSky"
pos=30,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper14]
type=helper
trigger1=time=170
id=2100
persistent=0
name="LightSky"
pos=-100,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper15]
type=helper
trigger1=time=170
id=2100
persistent=0
name="LightSky"
pos=-70,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper16]
type=helper
trigger1=time=180
id=2100
persistent=0
name="LightSky"
pos=100,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2993,helper17]
type=helper
trigger1=time=195
id=2100
persistent=0
name="LightSky"
pos=0,-240
postype=back
stateno=22229
helpertype=normal
keyctrl=0
ownpal=1

[state 2993,changestate]
type=changestate
trigger1=time=150
value=2994

;=======================
;Parte4
[Statedef 2994]
type=S
movetype=A
physics=N
velset=0,0
juggle=0
anim=7763
ctrl=0

[State 2994,AssertSpecial]
type=AssertSpecial
trigger1=1
flag=nobardisplay

[State 2994,ReversalDef]
type=ReversalDef
trigger1=1
attr=S,HP
reversal.attr=SCA,NA,SA,HA,NT,ST,HT
hitflag=MAFD
priority=4,Miss
pausetime=0,0
sparkno=-1
hitsound=-1
p2facing = 1
p2stateno = 13121

[State 2994,NotHitBy]
type=NotHitBy
trigger1=1
value=SCA

[state 2994,varset]
type=varset
trigger1=time=0
v=19
value=255

[state 2994,varadd]
type=varadd
trigger1=var(19)>=128
v=19
value=-40

[State 2994,BGPalfx]
type=BGPalfx
trigger1=1
ignorehitpause=1
time=1
mul=var(19),var(19),var(19)
under=2

[State 2994,EnvColor]
type=EnvColor
trigger1=1
ignorehitpause=1
value=0,0,0
time=200
under=2

[State 2994,Pause]
type=Pause
trigger1=time>=202
time=1

[State 2994,BGLightSky]
type=Explod
trigger1=Time=0
anim=7865
id=7865
sprpriority=99999
postype=back
pos=0,0
bindtime=-1
supermove=0
under=99
ownpal=1

;_______Effects
[State 2994,Effects1]
type=PlaySnd
trigger1=Time=0
value=5,26

[State 2994,Effects2]
type=PlaySnd
trigger1=Time=30||Time=60||Time=74||Time=88||Time=96||Time=112||Time=120||time=126||Time=130||Time=140||Time=155||Time=170||Time=180||Time=202
value=5,27

[State 2994,Effects3]
type=PlaySnd
trigger1=Time=192
value=5,28
volume=-40

[State 2994,Effects4]
type=PlaySnd
trigger1=Time=30||Time=60||Time=74||Time=88||Time=96||Time=112||Time=120||time=126||Time=130||Time=140||Time=155||Time=170||Time=180||Time=202
value=5,29

[State 2994,EnvShake]
type=EnvShake
trigger1=Time=30||Time=60||Time=74||Time=88|| Time = 96 ||Time=112||Time=120||time=126||Time=130||Time=140||Time=155||Time=170||Time=180||Time=202
time=10
ampl=-20
freq=95
phase=95

[State 2994,helper1]
type=helper
trigger1=time=30
id=2100
persistent=0
name="LightSky"
pos=0,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper2]
type=helper
trigger1=time=60
id=2100
persistent=0
name="LightSky"
pos=-80,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper3]
type=helper
trigger1=time=74
id=2100
persistent=0
name="LightSky"
pos=100,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper4]
type=helper
trigger1=time=88
id=2100
persistent=0
name="LightSky"
pos=-100,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper5]
type=helper
trigger1=time=96
id=2100
persistent=0
name="LightSky"
pos=20,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper6]
type=helper
trigger1=time=96
id=2100
persistent=0
name="LightSky"
pos=-10,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper7]
type=helper
trigger1=time=112
id=2100
persistent=0
name="LightSky"
pos=-50,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper8]
type=helper
trigger1=time=120
id=2100
persistent=0
name="LightSky"
pos=-70,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper9]
type=helper
trigger1=time=126
id=2100
persistent=0
name="LightSky"
pos=70,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper10]
type=helper
trigger1=time=130
id=2100
persistent=0
name="LightSky"
pos=100,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper11]
type=helper
trigger1=time=140
id=2100
persistent=0
name="LightSky"
pos=50,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper12]
type=helper
trigger1=time=155
id=2100
persistent=0
name="LightSky"
pos=50,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper13]
type=helper
trigger1=time=155
id=2100
persistent=0
name="LightSky"
pos=30,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper14]
type=helper
trigger1=time=170
id=2100
persistent=0
name="LightSky"
pos=-100,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper15]
type=helper
trigger1=time=170
id=2100
persistent=0
name="LightSky"
pos=-70,-240
postype=back
stateno=22220
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper16]
type=helper
trigger1=time=180
id=2100
persistent=0
name="LightSky"
pos=100,-240
postype=back
stateno=22221
helpertype=normal
keyctrl=0
ownpal=1

[State 2994,helper17]
type=helper
trigger1=time=195
id=2100
persistent=0
name="LightSky"
pos=0,-240
postype=back
stateno=22229
helpertype=normal
keyctrl=0
ownpal=1

[state 2994,changestate]
type=changestate
trigger1=time=230
value=2995

;=======================
;Parte7 End
[Statedef 2995]
type=S
movetype=A
physics=N
velset=0,0
juggle=15
anim=7761
ctrl=0

;______Voz
[State 2994,Voz]
type=PlaySnd
trigger1=time=0
value=4,13

[State 2994,AssertSpecial]
type=AssertSpecial
trigger1=1
flag=nobardisplay

[state 2994,varadd]
type=varadd
trigger1=var(19)<=254
v=19
value=5

[State 2994,BGPalfx]
type=BGPalfx
trigger1=1
ignorehitpause=1
time=1
mul=var(19),var(19),var(19)
under=2

[State 2994,EnvColor]
type=EnvColor
trigger1=stateno!=22050
ignorehitpause=1
value=0,0,0
time=0
under=2

[state 2994,removeexplod]
type=removeexplod
trigger1=time=0
id=2220

[state 2994,changestate]
type=changestate
trigger1=animtime=0
value=0
ctrl = 1

;========================
;Helpers
[Statedef 22220]
type=A
movetype=A
physics=N
juggle=0
poweradd=0
velset=0,0
ctrl=0
anim=7762

[State 22220,Projectile1]
type=Projectile
trigger1=animelem=1
attr=S,HA
projanim=7762
projhitanim=-1
projid=20000
projpriority=999999999
projsprpriority=999999999
projremove=1
projremovetime=10
postype=p1
offset=0,0
velocity=0
animtype=diagup
damage=9999
getpower=0,0
givepower=Ceil(-1 * enemy,Const(data.power)) - 5,0
guardflag=MH
hitflag=MAFD
pausetime=2,1
sparkno=-1
sparkxy=-15,-77
hitsound=-1
guard.sparkno=-1
guardsound=-1
ground.type=low
ground.slidetime=17
ground.hittime=17
ground.velocity=-1,-5
air.velocity=-1,-5
fall=1
fall.recover=0
p2stateno=49000

[state 22220,nothitby]
type=nothitby
trigger1=1
value=SCA
time=-1

[state 22220,hitoverride]
type=hitoverride
trigger1=1
attr=SCA,AA,AP,AT
stateno=7762

[State 2]
type=HitDef
trigger1=time=0
trigger2=hitcount<=1
attr=S,HA
animtype=diagup
damage=9999
getpower=0,0
givepower=Ceil(-1 * enemy,Const(data.power)) - 5,0
guardflag=
hitflag=MAFD
numhits=1
pausetime=2,1
sparkno=s22109+root,var(35)
sparkxy=-2,floor(enemy,pos y)+180
hitsound=-1
guard.sparkno=s22113
guardsound=-1
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-1,-6.5
air.velocity=-1,-6.5
fall=1
fall.recover=0
nochainid=2200
yaccel=.7
p2stateno=49000

[State 22220,DestroySelf]
type=DestroySelf
trigger1=MoveGuarded=1

[state a]
type=destroyself
trigger1=time>=15
trigger2=root,stateno!=22050

;========================
;Helpers Parte2
[Statedef 22221]
type=A
movetype=A
physics=N
juggle=0
poweradd=0
velset=0,0
ctrl=0
anim=7762

[State 22221,Projectile2]
type=Projectile
trigger1=animelem=1
attr=S,HA
projanim=7762
projhitanim=-1
projid=20000
projpriority=999999999
projsprpriority=999999999
projremove=1
projremovetime=10
postype=p1
offset=0,0
velocity=0
animtype=diagup
damage=9999
getpower=0,0
givepower=Ceil(-1 * enemy,Const(data.power)) - 5,0
guardflag=MH
hitflag=MAFD
pausetime=2,1
sparkno=-1
sparkxy=-15,-77
hitsound=-1
guard.sparkno=-1
guardsound=-1
ground.type=low
ground.slidetime=17
ground.hittime=17
ground.velocity=-1,-6
air.velocity=-1,-6
fall=1
fall.recover=0
p2stateno=49000

[state 22221,nothitby]
type=nothitby
trigger1=1
value=SCA
time=-1

[state 22221,hitoverride]
type=hitoverride
trigger1=1
attr=SCA,AA,AP,AT
stateno=7762

[State 2]
type=HitDef
trigger1=time=0
trigger2=hitcount<=1
attr=S,HA
animtype=diagup
damage=9999
getpower=0,0
givepower=Ceil(-1 * enemy,Const(data.power)) - 5,0
guardflag=MH
hitflag=MAFD
numhits=1
pausetime=2,1
sparkno=s22109+root,var(35)
sparkxy=-2,floor(enemy,pos y)+180
hitsound=-1
guard.sparkno=s22113
guardsound=-1
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=2,-6.5
air.velocity=2,-6.5
fall=1
fall.recover=0
nochainid=2200
yaccel=.7
p2stateno=49000

[State 22221,DestroySelf]
type=DestroySelf
trigger1=MoveGuarded=1

[state a]
type=destroyself
trigger1=time>=15
trigger2=root,stateno!=22050

;======================================
;Helpers Parte3 End
[Statedef 22229]
type=A
movetype=A
physics=N
juggle=0
poweradd=0
velset=0,0
ctrl=0
anim=7762

[State 22229,Projectile3]
type=Projectile
trigger1=animelem=1
attr=S,HA
projanim=7762
projhitanim=-1
projid=20000
projpriority=999999999
projsprpriority=999999999
projremove=1
projremovetime=10
postype=p1
offset=0,0
velocity=0
animtype=diagup
damage=9999
getpower=0,0
givepower=Ceil(-1 * enemy,Const(data.power)) - 5,0
guardflag=MH
hitflag=MAFD
pausetime=2,1
sparkno=-1
sparkxy=-15,-77
hitsound=-1
guard.sparkno=-1
guardsound=-1
ground.type=low
ground.slidetime=17
ground.hittime=17
ground.velocity=-1,-6
air.velocity=-1,-6
fall=1
fall.recover=0
p2stateno=49000

[state 22229,nothitby]
type=nothitby
trigger1=1
value=SCA
time=-1

[state 22229,hitoverride]
type=hitoverride
trigger1=1
attr=SCA,AA,AP,AT
stateno=7762

[State 2]
type = HitDef
trigger1=time=0
trigger2=hitcount<=1
attr=S,HA
animtype=diagup
damage=9999
getpower=0,0
givepower=Ceil(-1 * enemy,Const(data.power)) - 5,0
guardflag=MH
hitflag=MAFD
numhits=1
pausetime=2,1
sparkno=s22109+root,var(35)
sparkxy=-2,floor(enemy,pos y)+180
hitsound=-1
guard.sparkno=s22113
guardsound=-1
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=0.1,-6
air.velocity=0.1,-6
fall=1
fall.recover=0
nochainid=2200
yaccel=.6
p2stateno=49000

[State 22229,DestroySelf]
type = DestroySelf
trigger1 = MoveGuarded = 1

[state 22229,destroyself]
type=destroyself
trigger1=time>=15
trigger2=root,stateno!=22050

;========================
;P2Stateno ReversalDef
[Statedef 13121]
type=A
poweradd=0
ctrl=0
velset=0,0
sprpriority=-1
movetype=H

[State 13121,PalFX]
type=null
trigger1=time=0
trigger1=pos y<= 0
value=0

[State 13121,statetypeset]
type=statetypeset
trigger1=time=0
trigger1=pos y=0
value=S

[State 13121,PalFX]
type=null
trigger1=time=0
trigger1=pos y<0
value=A

[State 13121,PalFX]
type=null
trigger1=pos y>=0
y=0

[State 13121,changeanim]
type = changeanim
trigger1=selfanimexist(anim)
value=anim
elem=animelemno(-1)

[State 13121,null]
type=null
trigger1=selfanimexist(anim)
trigger1=1
value=anim

[State 13121,changestate]
type=changestate
trigger1=time=1
value=10380

;========================
;P2Stateno Parte2 ReversalDef
[Statedef 10380]
type=A
movetype=H
physics=N
sprpriority=4
velset=-4,-6

[State 10380,ChangeAnim]
type=ChangeAnim
trigger1=time=0
value=5070

[State 10380,VelAdd]
type=VelAdd
Trigger1=time >0
y=.39

[State 10380,SelfState]
type=SelfState
trigger1=Vel Y>0
trigger1=Pos Y>=0
value=5100

;========================
;P2Stateno HitDef & projectiles Parte 1
[Statedef 49000]
type=A
movetype=H
physics=N
ctrl=0

[State 49000,ScreenBound]
type=ScreenBound
trigger1=stateno=2999
trigger1=1
movecamera=0,0

;[State 49000,PalFX]
;type=PalFX
;trigger1=GameTime%2
;time=1
;add=0,15,75
;color=0
;invertall=1

[State 49000,VelAdd]
type=VelAdd
trigger1=1
y=GetHitVar(yaccel)

[State 49000,HitVelSet]
type=HitVelSet
trigger1=Time=0
x=1
y=1

[State 49000,SelfState]
type=SelfState
triggerall=!HitFall
trigger1=HitOver
trigger2=Vel Y>0
trigger2=Pos Y>=10
value=5040

[State 49000,ChangeState]
type=ChangeState
triggerall=HitFall
trigger1=HitOver
trigger2=Vel Y>0
trigger2=Pos Y>= 10
value=9050

[State 49000,ChangeState]
type=ChangeState
trigger1=AnimTime=0
value=9035

;========================
;P2Stateno HitDef & projectiles Parte 2
[Statedef 9035]
type=A
movetype=H
physics=N

[State 9035,ScreenBound]
type=ScreenBound
trigger1=stateno=2999
trigger1=1
movecamera=0,0

;[State 9035,PalFX]
;type=PalFX
;trigger1=GameTime%2
;;time=1
;add=0,15,75
;color=0
;invertall=1

[State 9035,ChangeAnim]
type=ChangeAnim
trigger1=Time=0
trigger1=SelfAnimExist(5035)
trigger1=Anim!=[5051,5059]
trigger1=Anim!=5090
value=5035

[State 9035,VelAdd]
type=VelAdd
trigger1=1
y=GetHitVar(yaccel)

[State 9035,SelfState]
type=SelfState
triggerall=!HitFall
trigger1=HitOver
trigger2=AnimTime=0
trigger3=Vel Y >0
trigger3=Pos Y >=10
trigger4=Time=0
trigger4=Anim!=5035
value=5040

[State 9035,ChangeState]
type=ChangeState
triggerall=HitFall
trigger1=HitOver
trigger2=AnimTime=0
trigger3=Vel Y>0
trigger3=Pos Y>= 10
trigger4=Time=0
trigger4=Anim!=5035.
value=9050

;========================
;P2Stateno HitDef & projectiles Parte 2
[Statedef 9050]
type=A
movetype=H
physics=N

[State 9000,ScreenBound]
type=ScreenBound
trigger1=stateno=2999
trigger1=1
movecamera=0,0

;[State 9050,PalFX]
;type=PalFX
;trigger1=GameTime%2
;time=1
;add=0,15,75
;color=0
;invertall=1

[State 9050,ChangeAnim]
type=ChangeAnim
trigger1=AnimTime=0
trigger1=Anim=5035
trigger2=Time=0
trigger2=Anim!=5035
trigger2=(Anim!=[5051,5059])&&(Anim!=[5061,5069])
trigger2=Anim!=5090
value=5050

[State 9050,ChangeAnim2]
type=ChangeAnim
trigger1=anim=[5050,5059]
trigger1=Vel Y >=ifelse(anim=5050,1,-2)
trigger1=SelfAnimExist(anim+10)
value = anim+10
persistent = 0

[State 9050,VelAdd]
type=VelAdd
trigger1=1
y=GetHitVar(yaccel)

[State 9050,SelfState]
type=SelfState
triggerall=Vel Y>0
triggerall=Pos Y >= -20
triggerall=alive
triggerall=CanRecover
trigger1=Command="recovery"
value=5200

[State 9050,SelfState3]
type=SelfState
triggerall=Vel Y>-1
triggerall=alive
triggerall=CanRecover
trigger1=Command="recovery"
value=5210

[State 9050,SelfState2]
type=SelfState
trigger1=Vel Y> 0
trigger1=Pos Y>=ifelse((anim =[5051,5059])||(anim =[5061,5069]),0,25)
value=5100

;===============================================================================
;HameHameHA!
;===============================================================================
[Statedef 2997]
type=S
movetype=A
physics=S
anim=7768
velset=0
ctrl=0

;_____SND Effect
[State 2997,Opeing Especial]
type=PlaySnd
trigger1=time=1
value=5,22
persistent=0

;__________SND Akuma
[State 2997,Voz]
type=PlaySnd
trigger1=time=1
value=4,4
persistent=0

[State 2997,Superpause]
type=SuperPause
trigger1=!Time
time=65
movetime=65
pos=21, -29
anim=-1
poweradd=-1000
darken=0

[State 2997,ChangeState]
type=ChangeState
trigger1=AnimTime=0
value=2998
ctrl=1

;========================
[Statedef 2998]
type=S
movetype=A
physics=S
anim=7769
velset=0
ctrl=0

;____SND VoZ
[State 2997,VoZ]
type=PlaySnd
trigger1=time=30
value=3,7
persistent=0

;_____SND Effect
[State 2997,Effecto Especial]
type=PlaySnd
trigger1=time=1
value=5,20
persistent=0

[State 2997,Effecto Especial]
type=PlaySnd
trigger1=time=1
value=5,21
persistent=0

[State 2997,Effecto Especial2]
type=PlaySnd
trigger1=time=15
value=0,93
persistent=0
removetime=130

[State 2998,EnvShake]
type=EnvShake
trigger1=(GameTime%3)=1
time= 20
ampl=15
freq=95
phase=95

[State 2998,Sparks]
type=Explod
trigger1=ProjHit7701=1
anim=5991+var(35)
sprpriority=99
postype=p2
pos=0,-60
bindtime=-1
supermove=1
ignorehitpause=1
under=0
ownpal=1

[State 2998,Envcolor]
type=Envcolor
trigger1=projHit7701=1
ignorehitpause=1
value=255,255,255
time=1
under=5
supermove=1

[State 2998,Efecto Especial]
type=Explod
trigger1=animelem=1
anim=7700
id=7700
sprpriority=99
postype=p1
pos=70,-32
bindtime=-1
removetime=150
supermove=0
ignorehitpause=1
under=0
ownpal=1

[State 2998,HameHameHA!]
type=Projectile
triggerall=time<=200
trigger1=(GameTime%3)=1
projanim=7701
projhitanim=-1
projid=7701
projpriority=999
projsprpriority=999
projremove=1
projremovetime=5
postype=p1
sparkno=-1
sparkxy=0,0
offset=100, -60
velocity=0
animtype=diagup
damage=Ceil(0.018 * enemy,Const(data.life)) - 5,Ceil(0.0028 * enemy,Const(data.life))
getpower=0,0
givepower=0,0
guardflag=MA
attr=A,HP
hitflag=MAFD
pausetime=10,9
hitsound=-1
guard.sparkno=-1
guardsound=-1
ground.type=low
ground.slidetime=200
ground.hittime=200
guard.ctrltime=1
ground.velocity=-6,-6.5
air.velocity=-6,-6.8
fall=1
fall.recover=0
juggle=0
p2stateno=100115

[State 2998,ChangeState]
type=ChangeState
trigger1=AnimTime=0
value=0
ctrl=1

;===============================================================================
;HeavenHit
;===============================================================================
[Statedef 2999]
type=S
movetype=A
physics=S
anim=7765
sprpriority=1
velset=0,0
ctrl=0

[State 2999,Muteki]
type=NotHitBy
trigger1=Time<43
value=SCA

[State 2999,Superpause]
type=SuperPause
trigger1=!Time
time=60
movetime=60
anim=-1
sound=S0, 9
poweradd=-1000
darken=0

[State 2999,BG Cleaner]
type=AssertSpecial
trigger1=Time<43
flag=noFG

;_________Snd VoZ
[State 2999,VoZ]
type=PlaySnd
trigger1=time=1
value=3, 8

;_________Snd Effects
[State 2999,Effect]
type=PlaySnd
trigger1=time=1
value=5, 9

[State 2999,Effect]
type=PlaySnd
trigger1=time=25
value=5,23

[State 2999,Aire Detras]
type=Explod
trigger1=Time=30
Anim=7106
ID=7106
pos=-25, 5
postype=p1
sprpriority=99
ontop=0
ownpal=1
bindtime=1
pausemovetime=-1
supermove=1
ignorehitpause=1

[State 2999,Sky Intro]
type=Explod
trigger1=Time=30
anim=7767
id=7767
sprpriority=99
postype=back
pos=0,0
bindtime=-1
supermove=1
under=0
ownpal=1

[State 2999,HeavenHit]
type=Projectile
trigger1=time=40
projanim=7766
projhitanim=-1
projhits=18
offset=15, -20
projpriority=1
projsprpriority=99
velocity=0
attr=A, SP
damage=15,9
animtype=Back
hitflag=MAFD
guardflag=MA
pausetime=4,4
sparkno=-1
sparkxy=0,0
guard.sparkno=S8036
guardsound=S230,1
ground.type=Low
ground.slidetime=999
ground.hittime=999
guard.ctrltime=5
ground.velocity=-4.2,-8.8
guard.velocity=-8
air.velocity=-5,-10
airguard.velocity=-6,-5
fall=1
air.fall=1
air.recover=0
projstagebound=20
supermovetime=0
pausemovetime=0
projmisstime=2
ProjID=1005
Envshake.time=10
Envshake.ampl=3
p2stateno=100115

[State 2999,ChangeState]
type=ChangeState
trigger1=AnimTime=0
value=0
ctrl=1

;=======================
;P2Stateno HameHameHA & HeavenHit
[Statedef 100115]
type=S
movetype=H
physics=N
velset=0,0

[State 100115,ScreenBound]
type=ScreenBound
trigger1=stateno=2999
trigger1=1
movecamera=0,0

;[State 100115,PalFX]
;type=PalFX
;trigger1=GameTime%2
;time=1
;add=0,15,75
;color=0
;invertall=1

[State 100115,ChangeAnim]
type=ChangeAnim
trigger1=Time=0
trigger1=GetHitVar(animtype)!=[3,5]
value=ifelse((GetHitVar(groundtype)=1),5000,5010)+GetHitVar(animtype)

[State 100115,ChangeAnim]
type = ChangeAnim
trigger1=Time=0
trigger1=GetHitVar(animtype)=[3,5]
value=5030

[State 100115,ChangeAnim2]
type = ChangeAnim
trigger1=Time=0
trigger1=(GetHitVar(animtype)=[4,5])&&(SelfAnimExist(5047+GetHitVar(animtype)))
value=5047+GetHitVar(animtype)

[State 100115,ChangeAnim3]
type=ChangeAnim
trigger1=Time>0
value=anim

[State 100115,StateTypeSet]
type=StateTypeSet
trigger1=Time=0
trigger1=GetHitVar(yvel)!=0&&GetHitVar(fall)
trigger2=Pos Y!=0
value=a

[State 100115,ChangeState]
type=ChangeState
trigger1=HitShakeOver
trigger1=GetHitVar(yvel)=0
value=9001

[State 100115,ChangeState]
type=ChangeState
trigger1=HitShakeOver
value=9030

[State 100115, ForceFeedback Low]
type=ForceFeedback
trigger1=anim=5000
trigger2=anim=5010
persistent=0
time=6
waveform=square

[State 100115, ForceFeedback Medium]
type=ForceFeedback
trigger1=anim=5001
trigger2=anim=5011
persistent=0
time=8
waveform=sinesquare
ampl=110,-1,-.3

[State 100115,ForceFeedback Hard]
type=ForceFeedback
trigger1=anim=5012
trigger2=anim=5002
trigger3=anim=5030
persistent=0
time=15
waveform=sinesquare
ampl=140

;=======================
;P2Stateno HameHameHA & HeavenHit Parte2
[Statedef 9001]
type=S
movetype=H
physics=S

[State 9000,ScreenBound]
type=ScreenBound
trigger1=stateno=2999
trigger1=1
movecamera=0,0

;[State 9001,PalFX]
;type=PalFX
;trigger1=GameTime%2
;time=1
;add=0,15,75
;color=0
;invertall=1

[State 9001,HitVelSet]
type=HitVelSet
trigger1=Time=0
x=1

[State 9001,ChangeAnim]
type=ChangeAnim
trigger1=AnimTime=0
value=5005+GetHitVar(animtype)+(GetHitVar(groundtype)=2)*10

[State 9001,VelMul]
type=VelMul
trigger1=Time>=GetHitVar(slidetime)
x=.6

[State 9001,VelSet]
type=VelSet
trigger1=HitOver
x=0

[State 9001,DefenceMulSet]
type=DefenceMulSet
trigger1=HitOver
value=1

[State 9001,SelfState]
type=SelfState
trigger1=HitOver
value=0
ctrl=1

;=======================
;P2Stateno HameHameHA & HeavenHit Parte3
[Statedef 9030]
type=A
movetype=H
physics =N
ctrl=0

[State 9000,ScreenBound]
type=ScreenBound
trigger1=stateno=2999
trigger1=1
movecamera=0,0

;[State 9030,PalFX]
;type=PalFX
;trigger1=GameTime%2
;time=1
;add=0,15,75
;color=0
;invertall=1

[State 9030,VelAdd]
type=VelAdd
trigger1=1
y=GetHitVar(yaccel)

[State 9030,HitVelSet]
type=HitVelSet
trigger1=Time=0
x=1
y=1

[State 9030,SelfState]
type=SelfState
triggerall=!HitFall
trigger1=HitOver
trigger2=Vel Y>0
trigger2=Pos Y>=10
value=5040

[State 9030,ChangeState]
type = ChangeState
triggerall=HitFall
trigger1=HitOver
trigger2=Vel Y >0
trigger2=Pos Y >=10
value=9050

[State 9030,ChangeState2]
type=ChangeState
trigger1=AnimTime=0
value=9035

;=======================
;P2Stateno HameHameHA & HeavenHit Parte4
[Statedef 5030]
type=A
movetype=H
physics=N
ctrl=0

[State 5030,screenbound]
type=screenbound
trigger1=1
value=1
movecamera=1

;[State 5030,PalFX]
;type=PalFX
;trigger1=GameTime%2
;time=1
;add=0,15,75
;color=0
;invertall=1

[State 5030,VelAdd]
type=VelAdd
trigger1=1
y=GetHitVar(yaccel)

[State 9030,HitVelSet]
type=HitVelSet
trigger1=Time=0
x=1
y=1

[State 5030,SelfState]
type=SelfState
triggerall=!HitFall
trigger1=HitOver
trigger2=Vel Y>0
trigger2=Pos Y>=10
value=5040

[State 5030,ChangeState]
type=ChangeState
triggerall=HitFall
trigger1=HitOver
trigger2=Vel Y>0
trigger2=Pos Y>=10
value=49050

[State 5030,ChangeState2]
type=ChangeState
trigger1=AnimTime=0
value=49035

;=======================
;P2Stateno HameHameHA & HeavenHit Parte5
[Statedef 49035]
type=A
movetype=H
physics=N

[State 9035,screenbound]
type=screenbound
trigger1=1
value=1
movecamera=1

;[State 9035,PalFX]
;type=PalFX
;trigger1=GameTime%2
;time=1
;add=0,15,75
;color=0
;invertall=1

[State 9035,ChangeAnim]
type=ChangeAnim
trigger1=Time=0
trigger1=SelfAnimExist(5035)
trigger1=Anim!=[5051,5059]
trigger1=Anim!=5090
value=5035

[State 9035,VelAdd]
type=VelAdd
trigger1=1
y=GetHitVar(yaccel)

[State 9035,SelfState]
type=SelfState
triggerall=!HitFall
trigger1=HitOver
trigger2=AnimTime=0
trigger3=Vel Y >0
trigger3=Pos Y>=10
trigger4=Time=0
trigger4=Anim!=5035
value=5040

[State 9035,ChangeState]
type=ChangeState
triggerall=HitFall
trigger1=HitOver
trigger2=AnimTime=0
trigger3=Vel Y>0
trigger3=Pos Y>=10
trigger4=Time=0
trigger4=Anim!=5035.
value=49050

;=======================
;P2Stateno HameHameHA & HeavenHit Parte6
[Statedef 49050]
type=A
movetype=H
physics=N

[State 49050,screenbound]
type=screenbound
trigger1=1
value=1
movecamera=1

;[State 48050,PalFX]
;type=PalFX
;trigger1=GameTime%2
;time=1
;add=0,15,75
;color=0
;invertall=1

[State 48050,ChangeAnim]
type=ChangeAnim
trigger1=AnimTime=0
trigger1=Anim=5035
trigger2=Time=0
trigger2=Anim!=5035
trigger2=(Anim!=[5051, 5059])&&(Anim!=[5061, 5069])
trigger2=Anim!=5090
value=5050

[State 48050,ChangeAnim2]
type=ChangeAnim
trigger1=anim=[5050,5059]
trigger1=Vel Y>=ifelse(anim=5050,1,-2)
trigger1=SelfAnimExist(anim+10)
value=anim+10
persistent=0

[State 48050,VelAdd]
type=VelAdd
trigger1=1
y=GetHitVar(yaccel)

[State 48050,SelfState]
type=SelfState
triggerall=Vel Y>0
triggerall=Pos Y>=-20
triggerall=alive
triggerall=CanRecover
trigger1=Command="recovery"
value=5200

[State 48050,SelfState2]
type=SelfState
triggerall=Vel Y >-1
triggerall=alive
triggerall=CanRecover
trigger1=Command="recovery"
value=5210

[State 48050,ChangeState]
type=ChangeState
triggerall=alive=1
trigger1=Vel Y>0
trigger1=Pos Y>=ifelse((anim=[5051,5059])||(anim=[5061,5069]),0,25)
value=15100

[State 9050,ChangeState]
type=ChangeState
triggerall=alive=0
trigger1=Vel Y >0
trigger1=Pos Y>=ifelse((anim=[5051,5059])||(anim=[5061,5069]),0,25)
value=5100

