[Statedef 3100]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
poweradd= 0;-2000
anim = 3100
ctrl = 0

[state a]
type = changestate
trigger1 = root,palno>=10
value = 3101

[state a]
type = poweradd
trigger1 = root,palno<10
value =  -2000
persistent = 0

;---------------------[挻昁嶦媄墘弌]
[State 1];柍揋偺忬懺傪嶌傞
type = NotHitBy
trigger1 = 1
value = SCA

[State 30000]
type = AssertSpecial
trigger1 = 1
flag = nobg
flag2 = nofg
flag3 = nobardisplay

[State 2000, 2]
type = SuperPause
trigger1 = time = 0
time = 30
movetime = 30
anim = -1

[State 1000, 5]
type = Explod
trigger1 = time = 0
anim = 6010
sprpriority = -1
postype = p1
pos = -1,-138
bindtime = 1
supermove = 1
under = 0
ownpal = 1

[State 1000, 5]
type = Explod
trigger1 = Time = 10
anim = 6011
sprpriority = 1
postype = p1
pos = -1,-138
bindtime = 1
supermove = 1
under = 0
ownpal = 1

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

[State 3040, 7]
type = EnvColor
trigger1 = time = 3
persistent = 0
ignorehitpause = 1
time = 25
value = 0,0,0
under = 2

[State 2000, 6]
type = PlaySnd
trigger1 = Time = 1
value = 3000,2

;---------------------[岠壥壒]
[State 2000, 6];偝偁
type = PlaySnd
trigger1 = Time = 0
value = 2100,0
volume=255

[State 2000, 6];柍偵娨傠偆
type = PlaySnd
trigger1 = animelem = 5
value = 2100,1
volume=255

[State 2000, 6];岠壥壒
type = PlaySnd
trigger1 = time = 30
trigger2 = time = 90
trigger3 = time = 150
value = 1150,0
volume=255

[State 2000, 6];岠壥壒
type = PlaySnd
trigger1 = time = 210
value = 2300,0
volume=255

;---------------------[夋柺岠壥]

[State 2000, 6]
type = EnvShake
trigger1 = time = 30
trigger2 = time = 90
trigger3 = time = 150
time = 6
freq = 180
ampl = -10

[State 1000, 5]
type = ModifyExplod
trigger1 = numexplod(3101)
ontop = 1

[State 1000, 5]
type = Explod
trigger1 = time=30
ID = 3101
anim = 3101
sprpriority = 999
ontop=1
postype = left
pos = 0,0
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=-2
under = 0
ownpal = 1
[State 1000, 5]
type = Explod
trigger1 = time=30
ID = 3101
anim = 3101
sprpriority = 999
ontop=1
postype = left
pos = 0,0
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=-2
under = 0
ownpal = 1
[State 1000, 5]
type = Explod
trigger1 = time=30
ID = 3101
anim = 3101
sprpriority = 999
ontop=1
postype = left
pos = 0,0
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=-2
under = 0
ownpal = 1
[State 1000, 5]
type = Explod
trigger1 = time=30
ID = 3101
anim = 3101
sprpriority = 999
ontop=1
postype = left
pos = 0,0
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=-2
under = 0
ownpal = 1
[State 1000, 5]
type = Explod
trigger1 = time=30
ID = 3101
anim = 3101
sprpriority = 999
ontop=1
postype = left
pos = 0,0
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=-2
under = 0
ownpal = 1
[State 1000, 5]
type = Explod
trigger1 = time=30
ID = 3101
anim = 3101
sprpriority = 999
ontop=1
postype = left
pos = 0,0
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=-2
under = 0
ownpal = 1
[State 1000, 5]
type = Explod
trigger1 = time=30
ID = 3101
anim = 3101
sprpriority = 999
ontop=1
postype = left
pos = 0,0
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=-2
under = 0
ownpal = 1
[State 1000, 5]
type = Explod
trigger1 = time=30
ID = 3101
anim = 3101
sprpriority = 999
ontop=1
postype = left
pos = 0,0
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=-2
under = 0
ownpal = 1
[State 1000, 5]
type = Explod
trigger1 = time=30
ID = 3101
anim = 3101
sprpriority = 999
ontop=1
postype = left
pos = 0,0
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=-2
under = 0
ownpal = 1
[State 1000, 5]
type = Explod
trigger1 = time=30
ID = 3101
anim = 3101
sprpriority = 999
ontop=1
postype = left
pos = 0,0
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=-2
under = 0
ownpal = 1

[State 1000, 5]
type = Explod
trigger1 = time=30
ID = 3102
anim = 3102
sprpriority = 999
ontop=1
postype = left
pos = 0,240
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=336
under = 0
ownpal = 1

[State 1000, 5]
type = Explod
trigger1 = time=30
ID = 3103
anim = 3103
sprpriority = 999
ontop=1
postype = left
pos = 0,-1
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=336
under = 0
ownpal = 1

[State 3040, 7]
type = EnvColor
trigger1 = time>=366
trigger1 = time<430
ignorehitpause = 1
time = 1
value = 255-(time-366)*4,0,0
under = 0

[State 3040, 7]
type = EnvColor
trigger1 = time>=430
ignorehitpause = 1
time = 1
value = 0,0,0
under = 0


[State 240, 2]
type = Projectile
trigger1 = time = 30
trigger2 = time = 90
trigger3 = time = 150
projanim = 166
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = 120,20
guardflag = MA
hitflag = MAFD
pausetime = 0,70
guard.pausetime = 0,70
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0
fall.damage=0
;p2stateno = 5110
;p2getp1state = 0

[State 240, 2]
type = Projectile
trigger1 = time >= 210
projanim = 166
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = gametime%2
guardflag = MA
hitflag = MAFD
pausetime = 0,2
guard.pausetime = 0,2
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = -1,0;s225,1
guardsound = -1,0;s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0


[state a]
type = changestate
trigger1 = time=490
value = 3105
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 僽儔僢僋丒傾價僗
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 9988174]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 2300
ctrl = 0

[state 2300]
type = poweradd
trigger1 = time = 0
value = -5000
ignorehitpause = 1
[state 2300]
type = varadd
trigger1 = time = 0
var(35) = -5000
ignorehitpause = 1
[state 2300]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1
[state 2300]
type = helper
trigger1= time = 0
id = 64000
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 150
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = time = 0
anim = 22172
sprpriority = -3
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = Time = 0
anim = 22173
sprpriority = 20
postype = p1
pos = 1,-129
bindtime = 1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = time = 0
anim = 22174
sprpriority = -4
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = add;sub
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = PlaySnd
trigger1 = Time = 0
value = 2200,1
volume = 255
;freqmul = 0.9
ignorehitpause = 1

[state 2300]
type = PlaySnd
trigger1 = Time = 0
value = 2200,2
;freqmul = 0.9
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 10000,11
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 10000,41
volume = 255
[State 2300]
type = EnvColor
trigger1 = time = 0
persistent = 0
ignorehitpause = 1
time = 3
value = 0,0,0
under = 2
[State 2300]
type = EnvColor
trigger1 = time = 3
persistent = 0
ignorehitpause = 1
time = 50
value = 0,0,0
under = 2
[State 2300]
type = bgpalfx
trigger1 = 1
time = 10
add = 0,0,0
mul = 0,0,0
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1
[state a]
type = changestate
trigger1 = animtime = 0
value = 9988175

;---------------------------------------------------------------------------------
;峌寕
;---------------------------------------------------------------------------------
[Statedef 9988175]
type    = A
movetype= I
physics = N
velset = 0,0
juggle = 15
anim = 2206
ctrl = 0

[State 23000]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1

[State 23000]
type = NotHitBy
trigger1 = 1
value = SCA

[State 23000]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,2
numhits = 0
p2facing = 1
p2stateno = 169995
ignorehitpause = 1

[State 23000]
type = HitAdd
triggerall = numtarget > 0
trigger1 = target,stateno = 169995 && enemynear,time = 0
value = 1
[State 23000]
type = targetdrop
triggerall = numtarget
trigger1 = target,ishelper
trigger2 = numtarget >= 8
ignorehitpause = 1
[State 23000]
type = targetLifeAdd
trigger1 = numtarget
value = -2147483647
absolute = 1
ignorehitpause = 1
[State 23000]
type = targetpowerAdd
trigger1= numtarget
value = -(enemynear,Const(data.power))
ignorehitpause = 1
[State 23000]
type = targetstate
triggerall = numtarget > 0
triggerall = !target,ishelper
trigger1 = enemy,alive
value = 169995
ignorehitpause = 1
[State 23000]
type = targetstate
triggerall = numtarget
trigger1 = enemy,alive=0&&!(enemy,stateno=104010||enemy,stateno=169995||enemy,stateno=5150)
value = 104010
ignorehitpause = 1
[State 23000]
type = targetfacing
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0
value = 1-2*(random%2)
ignorehitpause = 1
[State 23000]
type = targetveladd
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y >= 0
x = 0
y = 0
ignorehitpause = 1
[State 23000]
type = targetvelset
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y >= 0
x = 0
y = 0
ignorehitpause = 1
[State 23000]
type = targetveladd
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y < 0
x = 0
y = 2147483647*2147483647
ignorehitpause = 1
[State 23000]
type = targetvelset
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y < 0
x = 0
y = 2147483647*2147483647
ignorehitpause = 1
[State 240, 2]
type = Projectile
trigger1 = time = 50
trigger2 = time = 125
trigger3 = time = 200
projanim = 40010
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = 120,20
guardflag = MA
hitflag = MAFD
pausetime = 0,70
guard.pausetime = 0,70
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0
fall.damage=0
;p2stateno = 5110
;p2getp1state = 0

[State 240, 2]
type = Projectile
trigger1 = time >=220
projanim = 40010
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = gametime%2
guardflag = MA
hitflag = MAFD
pausetime = 0,2
guard.pausetime = 0,2
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = -1,0;s225,1
guardsound = -1,0;s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0

[State 23000]
type = Explod
trigger1 = Time = 0
anim = 3955
id = 3955
sprpriority = 214748364
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = Explod
trigger1 = Time = 0
anim = 3950
id = 3950
sprpriority = -9999999999999999999999999999999999999999999999999
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 1000, 5];sere1
type = Explod
trigger1 = Time = 0
anim = 11111
id = 11111
sprpriority = 99999999999999999999
postype = back
scale = 1.0,1.0714285714285714285714285714286
pos = 0,0
bindtime = -1
under = 100
ownpal = 1
SuperMove = 0
Trans = add
pausemovetime = 999999999999999
supermovetime = 999999999999999

[State 23000]
type = bgpalfx
trigger1 = 1
time = 10
add = 0,0,0
mul = 0,0,0
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1

[State 23000]
type = EnvShake
trigger1 = (GameTime%4) = 1
time = 5
ampl = -5
freq = 95
phase = 95

[State 23000]
type = PlaySnd
trigger1 = Time = 5
value = 20000,0
volume = 255
freqmul = 0.9
ignorehitpause = 1

[State 23000]
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
;trigger1 = (GameTime%6) = 1
value = 10000,2

[State 23000]
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
;trigger1 = (GameTime%6) = 1
value = 20000,5

[State 23000]
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
;trigger1 = (GameTime%6) = 1
value = 10000,49

[State 23000]
type = PlaySnd
trigger1 = time = 40
value = 20000,3
volume = 255
ignorehitpause = 1

[State 23000]
type = PlaySnd
trigger1 = time = 80
value = 10000,50
volume = 255
ignorehitpause = 1

[State 23000]
type = PlaySnd
trigger1 = time = 60
value = 20000,4
volume = 255
ignorehitpause = 1

[State 23000]
type = PlaySnd
trigger1 = time = 150
value = 10000,35
volume = 255
ignorehitpause = 1

[State 23000]
type = PlaySnd
trigger1 = time = 110
value = 10000,11
volume = 255
ignorehitpause = 1

[State 23000]
type = PlaySnd
trigger1 = time = 170
value = 20000,8
volume = 255
ignorehitpause = 1

[State 23000]
type = turn
trigger1 = P2dist X < 0
trigger1 = fvar(1) < 0
ignorehitpause = 1

[State 23000]
type = superpause
triggerall = time < 270
trigger1 = win
trigger2 = enemynear,life = 0
time = 1
movetime = 1
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
persistent = 0
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = time >= 270
time = 1
movetime = 0
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1
[State 23000]
type = pause
triggerall = !win
trigger1 = time > 270
trigger1 = (gametime%2) = 0
time = 1
movetime = 1
persistent = 0
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = !win
trigger1 = time > 270
trigger1 = (gametime%2) = 0
trigger2 = time = 280
anim = -1
time = 1
movetime = 1
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = win
trigger2 = p2life = 0
time = 2
movetime = 2
anim = -1
darken = 0
persistent = 0
ignorehitpause = 1

[State 23000]
type = changestate
trigger1 = time >= 280
value = 9988176
;---------------------------------------------------------------------------------
;廔椆
;---------------------------------------------------------------------------------
[Statedef 9988176]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2211
ctrl = 0

[State 23001]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay

[state 23001]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
;霸体
[Statedef 5150]
[state ]
type=statetypeset
trigger1=!ishelper
type=L
movetype=H
physics=N
[State ]
type=destroyself
trigger1=!ishelper(5000)
trigger1=!ishelper(555)
trigger1=!ishelper(2221)
trigger1=!ishelper(112233)
trigger1=!ishelper(3000)
trigger1=!ishelper(99000)
trigger1=!ishelper(450)
trigger1=!ishelper(7400)
trigger1=!ishelper(67676)
trigger1=!ishelper(214748364)
trigger1=!ishelper(214748365)
trigger1=!ishelper(169990)
trigger1=!ishelper(169990)
trigger1=!ishelper(169990)
trigger1=!ishelper(150)
trigger1=!ishelper(150)
trigger1=!ishelper(150)
trigger1=!ishelper(130)
trigger1=!ishelper(130)
trigger1=!ishelper(130)
[state ]
type=selfstate
trigger1=ishelper(214748364)
value=214748364
ignorehitpause=1
[state ]
type=selfstate
trigger1=ishelper(214748365)
value=214748365
ignorehitpause=1
[State ]
type=velset
trigger1=!ishelper
trigger1=time=0
x=0
y=0
[State ]
type=turn
triggerall=!ishelper
triggerall=alive
triggerall=numenemy>0
trigger1=numenemy=1
trigger1=fvar(0)<0
trigger2=numenemy=2
trigger2=enemy(0),alive
trigger2=abs(fvar(0))<abs(fvar(2))
trigger2=fvar(0)<0
trigger3=numenemy=2
trigger3=enemy(1),alive
trigger3=abs(fvar(2))<abs(fvar(0))
trigger3=fvar(2)<0
trigger4=numenemy=2
trigger4=fvar(0)<0&&fvar(2)<0
[State ]
type=ChangeAnim
triggerall=!ishelper
triggerall=Time=0
triggerall=SelfAnimExist(5140)
trigger1=(anim!=[5111,5119])&&(anim!=[5171,5179])
trigger2=!SelfAnimExist(5140+(anim%10))
value=5140
[State ]
type=ChangeAnim
trigger1=!ishelper
trigger1=Time=0
trigger1=(anim=[5111,5119])||(anim=[5171,5179])
trigger1=SelfAnimExist(5140+(anim%10))
value=5140+(anim%10)
[State ]
type=ChangeAnim
persistent=0
trigger1=!ishelper
trigger1=MatchOver=1
trigger1=Anim=[5140,5149]
trigger1=SelfAnimExist(anim+10)
value=anim+10
[State ]
type=ChangeAnim
trigger1=!ishelper
trigger1=Time=0
trigger1=Anim!=[5140,5159]
trigger1=Anim!=[5110,5119]
value=5110
[State ]
type=VelMul
trigger1=!ishelper
x=0.85
[State ]
type=VelSet
trigger1=!ishelper
trigger1=Vel x<0.05
persistent=0
x=0
[State ]
type=NotHitBy
trigger1=!ishelper
value=SCA
time=1
;------------------------------------------------------------
[Statedef 3000]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
poweradd= -1000
anim = 3000
ctrl = 0

[state ];帪巭傔夝彍
type=helper
helpertype=player
trigger1=root,palno=[7,12]
trigger1=time>30
name="T"
id=3001
stateno=3001
size.ground.back = 0
size.ground.front = 0
size.air.back = 0
size.air.front = 0
size.height = 0
supermovetime=2147483647
pausemovetime=2147483647

;---------------------[挻昁嶦媄墘弌]
[State 1];柍揋偺忬懺傪嶌傞
type = NotHitBy
trigger1 = 1
value = SCA

[State 30000]
type = AssertSpecial
trigger1 = 1
flag = nobg
flag2 = nofg
flag3 = nobardisplay

[State 2000, 2]
type = SuperPause
trigger1 = time = 0
time = 30
movetime = 30
anim = -1

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

[State 3040, 7]
type = EnvColor
trigger1 = time = 3
persistent = 0
ignorehitpause = 1
time = 25
value = 0,0,0
under = 2

[State 2000, 6]
type = PlaySnd
trigger1 = Time = 1
value = 10000,4

;---------------------[岠壥壒]
[State 2000, 6];偝偁
type = PlaySnd
trigger1 = Time = 1
value = 2200,0

[State 2000, 6];柍偵娨傠偆
type = PlaySnd
trigger1 = animelem = 4
value = 2200,1

[State 2000, 6];岠壥壒
type = PlaySnd
trigger1 = animelem = 7
value = 10000,0
persistent = 0
volume=255

[State 2000, 6];岠壥壒
type = PlaySnd
trigger1 = animelem = 7
value = 10000,9
volume=255

[State 2000, 6];岠壥壒
type = PlaySnd
trigger1 = time = 170;256
value = 10000,9
volume=255

[State 2000, 6];岠壥壒
type = PlaySnd
trigger1 = time = 256
value = 10000,12
volume=255
;---------------------[夋柺岠壥]
[State 3040, 7]
type = EnvColor
trigger1 = time!=[255,257]
trigger1 = time!=[260,262]
trigger2 = time!=[280,282]
trigger2 = time!=[285,287]
trigger3 = time!=[305,307]
trigger3 = time!=[310,312]
ignorehitpause = 1
time = 2
value = 0,0,0
under = 2

[State 3040, 7]
type = EnvColor
trigger1 = time=255
trigger2 = time=260
trigger3 = time=280
trigger4 = time=285
trigger5 = time=305
trigger6 = time=310
ignorehitpause = 1
time = 3
value = 255,255,255
under = 0

[State 0]
type = EnvShake
trigger1 = time >= 256
trigger1 = time%4 = 1
time = 10
ampl = -10
freq = 95
phase = 95

[State 240, 2]
type = Projectile
triggerall = time=[31,255]
triggerall = !movehit
trigger1=anim=3000
trigger1=gametime%3=0
projanim = 166
projremovetime = 2
attr = SCA, HA
animtype  = hard
damage    = 5,3
guardflag = MA
hitflag = MAFD
pausetime = 0,6
guard.pausetime = 0,6
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = -1
guardsound = -1;S0,25
ground.type = high
ground.slidetime = 0
ground.hittime  = 15
ground.velocity = 0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
givepower = 60,50
guard.hittime = 15
guard.ctrltime = 8
air.animtype = Up
hitonce = 0
offset=0,-9999
[State 240, 2]
type = Projectile
triggerall = time=[31,255]
triggerall = !movehit
trigger1=anim=3000
trigger1=gametime%3=1
projanim = 166
projremovetime = 2
attr = SCA, HP
animtype  = hard
damage    = 5,3
guardflag = MA
hitflag = MAFD
pausetime = 0,6
guard.pausetime = 0,6
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = -1
guardsound = -1;S0,25
ground.type = high
ground.slidetime = 0
ground.hittime  = 15
ground.velocity = 0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
givepower = 60,50
guard.hittime = 15
guard.ctrltime = 8
air.animtype = Up
hitonce = 0
offset=0,-9999
[State 240, 2]
type = Projectile
triggerall = time=[31,255]
triggerall = !movehit
trigger1=anim=3000
trigger1=gametime%3=2
projanim = 166
projremovetime = 2
attr = SCA, HT
animtype  = hard
damage    = 5,3
guardflag = MA
hitflag = MAFD
pausetime = 0,6
guard.pausetime = 0,6
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = -1
guardsound = -1;S0,25
ground.type = high
ground.slidetime = 0
ground.hittime  = 15
ground.velocity = 0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
givepower = 60,50
guard.hittime = 15
guard.ctrltime = 8
air.animtype = Up
hitonce = 0
offset=0,-9999
[State 240, 2]
type = Projectile
triggerall = root,palno!=[7,12]
triggerall = !movehit
trigger1 = time=256
trigger2 = time=281
trigger3 = time=306
projanim = 166
projremovetime = 2
attr = SCA, AA,AT,AP
animtype  = hard
damage    = 80,8
guardflag = MA
hitflag = MAFD
pausetime = 0,30
guard.pausetime = 0,30
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = -1
guardsound = -1;S0,25
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
guard.hittime = 15
guard.ctrltime = 8
air.animtype = Up
hitonce = 0
fall.damage=80
p2stateno = 5110
p2getp1state = 0

[State 240, 2]
type = Projectile
triggerall = root,palno=[7,12]
triggerall = !movehit
trigger1 = time=256
trigger2 = time=281
trigger3 = time=306
projanim = 166
projremovetime = 2
attr = SCA, AA,AT,AP
animtype  = hard
damage    = 3000000,3000000
guardflag = MA
hitflag = MAFD
pausetime = 0,30
guard.pausetime = 0,30
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = -1
guardsound = -1;S0,25
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
guard.hittime = 15
guard.ctrltime = 8
air.animtype = Up
hitonce = 0
fall.damage=99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
p2stateno = 5110
p2getp1state = 0

;---------------------[夋柺岠壥]

[state a]
type=reversaldef
trigger1 = root,palno=[10,12]
reversal.attr=sca,aa,at,ap
priority=7, hit
sparkno = -1
pausetime=0,10
p2stateno=5151

[state a]
type=reversaldef
trigger1 = root,palno=[7,9]
reversal.attr=sca,aa,at,ap
priority=7, hit
sparkno = -1
pausetime=0,10
p2stateno=5153

[state -2]
type = TargetLifeAdd
trigger1 = numtarget
value=-3000000
ID = -1
kill = 1
absolute = 1
ignorehitpause=1

[state a]
type = varset
trigger1 = numtarget=1;僼儕乕僘杊巭
var(41) = target,anim
ignorehitpause=1

[state a]
type = parentvarset
trigger1 = numtarget=1;僼儕乕僘杊巭
var(41) = target,anim
ignorehitpause=1

[state a]
type = varset
trigger1 = numtarget=1;僼儕乕僘杊巭
trigger1 = target,stateno!=[5151,5154]
var(42) = target,stateno
ignorehitpause=1

[state a]
type = parentvarset
trigger1 = numtarget=1;僼儕乕僘杊巭
trigger1 = target,stateno!=[5151,5154]
var(42) = target,stateno
ignorehitpause=1

[state a]
type = parentvarset
trigger1 = root,var(41)!=var(41)
var(41) = -1
ignorehitpause=1

[state a]
type = parentvarset
trigger1 = root,var(42)!=var(42)
var(42) = -1
ignorehitpause=1

[state a]
type = targetdrop
trigger1 = numtarget
trigger1 = target,ishelper
ignorehitpause=1

[state a]
type = targetstate
trigger1 = !win
trigger1 = numtarget
ignorehitpause=1
value = 5154

;---------------------[夋柺岠壥]

[State 1000, 5]
type = Explod
trigger1 = time=30
anim = 3001
ID=3001
sprpriority = -5
postype = left
pos = 160,120
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=225
under = 0
ownpal = 1
scale=.75,.75
trans = addalpha
alpha = 160,256
[State 1000, 5]
type = Explod
trigger1 = time=30
anim = 3001
ID=3001
sprpriority = 5
postype = left
pos = 160,120
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=225
under = 0
ownpal = 1
scale=.75,.75
trans = addalpha
alpha = 96,256
[State 1000, 5]
type = Explod
trigger1 = time=180
anim = 300222
ID = 300222
sprpriority = 5
ontop = 1
postype = left
pos = 0,240
bindtime = -1
pausemovetime=0
supermovetime=0
removetime=75
under = 0
ownpal = 1
scale=1,1

[State a]
type = ModifyExplod
trigger1 = numexplod(3002)
ID = 3002
scale = 1,(time-180)*.1

[state a]
type = changestate
trigger1 = time=350
value = 3005


[Statedef 3001]
type    = U
movetype= I
physics = N
velset = 0,0

[State 125]
Type = changeanim
trigger1=1
value=169

[state a]
type=assertspecial
trigger1=1
flag = invisible
flag2 = noshadow
ignorehitpause=1

[State -2]
type = Pause
trigger1 = 1
time = 0
movetime = 0
pos = 999, 999
anim = -1
sound = -1
poweradd = 0
p2defmul = 1
unhittable = 1
darken = 0
ignorehitpause = 1

[State -2]
type = superPause
trigger1 = 1
time = 0
movetime = 0
pos = 999, 999
anim = -1
sound = -1
poweradd = 0
p2defmul = 1
unhittable = 1
darken = 0
ignorehitpause = 1

[state a]
type = selfstate
Trigger1 = 1
value=7777
ignorehitpause=1

[Statedef 3005]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 3005
ctrl = 0

[State 30000]
type = AssertSpecial
trigger1 = 1
flag = nobg
flag2 = nofg

[State 3040, 7]
type = EnvColor
trigger1 = time=0
ignorehitpause = 1
time = -(animtime)
value = 0,0,0
under = 2

;---------------------[挻昁嶦媄墘弌]
[State 1];柍揋偺忬懺傪嶌傞
type = NotHitBy
trigger1 = root,palno=[7,12]
value = SCA

;---------------------[廔椆]
[state a]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 22300
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[Statedef 22300]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 2300
ctrl = 0

[state 2300]
type = poweradd
trigger1 = time = 0
value = -5000
ignorehitpause = 1
[state 2300]
type = varadd
trigger1 = time = 0
var(35) = -5000
ignorehitpause = 1
[state 2300]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1
[state 2300]
type = helper
trigger1= time = 0
id = 64000
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 150
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = time = 0
anim = 22172
sprpriority = -3
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = Time = 0
anim = 22173
sprpriority = 20
postype = p1
pos = 1,-129
bindtime = 1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = time = 0
anim = 22174
sprpriority = -4
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = add;sub
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = PlaySnd
trigger1 = Time = 0
value = 2200,1
volume = 255
;freqmul = 0.9
ignorehitpause = 1

[state 2300]
type = PlaySnd
trigger1 = Time = 0
value = 2200,2
;freqmul = 0.9
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 10000,11
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 10000,41
volume = 255
[State 2300]
type = EnvColor
trigger1 = time = 0
persistent = 0
ignorehitpause = 1
time = 3
value = 0,0,0
under = 2
[State 2300]
type = EnvColor
trigger1 = time = 3
persistent = 0
ignorehitpause = 1
time = 50
value = 0,0,0
under = 2
[State 2300]
type = bgpalfx
trigger1 = 1
time = 10
add = 0,0,0
mul = 0,0,0
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1
[state a]
type = changestate
trigger1 = animtime = 0
value = 223000

;---------------------------------------------------------------------------------
;峌寕
;---------------------------------------------------------------------------------
[Statedef 223000]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 23000
ctrl = 0

[State 23000]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1

[State 23000]
type = statetypeset
triggerall = palno = [7,12]
trigger1 = !ishelper
statetype = A
movetype = I
physics = N
ignorehitpause = 1

[State 23000]
type = NotHitBy
trigger1 = 1
value = SCA

[State 23000]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AT,AA,AP
hitflag = M-
priority = 7
pausetime = 0,2
numhits = 0
p2facing = 1
p2stateno = 1000043
ignorehitpause = 1

[State 23000]
type = HitAdd
triggerall = numtarget > 0
trigger1 = target,stateno = 1000043 && enemynear,time = 0
value = 1
[State 23000]
type = targetdrop
triggerall = numtarget
trigger1 = target,ishelper
trigger2 = numtarget >= 8
ignorehitpause = 1
[State 23000]
type = targetLifeAdd
trigger1 = numtarget
value = -2147483647
absolute = 1
ignorehitpause = 1
[State 23000]
type = targetpowerAdd
trigger1= numtarget
value = -(enemynear,Const(data.power))
ignorehitpause = 1
[State 23000]
type = targetstate
triggerall = numtarget > 0
triggerall = !target,ishelper
triggerall = !win
trigger1 = enemy,alive
value = 1000043
ignorehitpause = 1
[State 23000]
type = targetstate
triggerall = numtarget
trigger1 = enemy,alive=0&&!(enemy,stateno=104010||enemy,stateno=1000043||enemy,stateno=5150)
value = 104010
ignorehitpause = 1
[State 23000]
type = targetfacing
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0
value = 1-2*(random%2)
ignorehitpause = 1
[State 23000]
type = targetveladd
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y >= 0
x = 0
y = 0
ignorehitpause = 1
[State 23000]
type = targetvelset
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y >= 0
x = 0
y = 0
ignorehitpause = 1
[State 23000]
type = targetveladd
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y < 0
x = 0
y = 2147483647*2147483647
ignorehitpause = 1
[State 23000]
type = targetvelset
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y < 0
x = 0
y = 2147483647*2147483647
ignorehitpause = 1
[State 23000]
type = helper
triggerall = palno = [1,6]
triggerall = numhelper(169990) = 0
trigger1 = roundstate <= 2
id = 169990
persistent = 1
name = "kill"
pos = 0,0
postype = p1
stateno = 150
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = Projectile
triggerall = !ishelper
trigger1 = (GameTime%4) = 1
trigger1 = time >= 80
trigger1 = p2movetype != A
trigger2 = (GameTime%4) = 1
trigger2 = p2movetype = A&&time = [204,396]
attr = A, NA
projanim = 40010
projid = 40010
projpriority = 2147483647
projsprpriority = 5
projremove = 1
projremovetime = 2
postype = back
offset = 0,0
animtype  = hard
damage = 30+random%20,5+random%20
hitflag = MAFD
guardflag =
pausetime = 9,5
guard.pausetime = 9,5
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.75,-0.01
guard.velocity = -9.5
air.velocity = -0.75,-0.01
fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = Projectile
triggerall = !ishelper
trigger1 = time = [204,396]
attr = S, SP
projanim = 40020
projid =40020
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 1
projremovetime = 2
postype = p1
animtype  = hard
damage    = 10,0
getpower = 10,0
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 2,8
ground.type = low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2
air.velocity = -2,-1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = Explod
triggerall = palno = [7,12]
trigger1 = Time = 0
anim = 32730
id = 10120
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 20000,10
volume = 255
[State 23000]
type = null;EnvShake
trigger1 = time = 70 || time = 140
time = 5
ampl = -20
freq = 95
phase = 95
[State 23000]
type = null;EnvShake
trigger1 = time = 220
time = 5
ampl = -40
freq = 95
phase = 95

[State 23000]
type = bgpalfx
trigger1 = 1
time = 10
add = 0,0,0
mul = 0,0,0
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1

[State 23000]
type = EnvShake
trigger1 = (GameTime%4) = 1
time = 5
ampl = -5
freq = 95
phase = 95

[State 23000]
type = turn
triggerall = !ishelper
trigger1 = p2dist X < 0
trigger1 = fvar(5) < 0
ignorehitpause = 1

[State 23000]
type = PlaySnd
triggerall = palno != [7,12]
trigger1 = time = 10
value = 2300,0
volume = 255
channel = 6
;freqmul = 0.7
ignorehitpause = 1

[State 23000]
type = AttackDist
trigger1 = 1
value = 0

[State 23000]
type = superpause
triggerall = time < 396
trigger1 = win
trigger2 = enemynear,life = 0
time = 1
movetime = 1
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
persistent = 0
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = time >= 396
time = 1
movetime = 0
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1
[State 23000]
type = pause
triggerall = !win
trigger1 = time > 396
trigger1 = (gametime%2) = 0
time = 1
movetime = 1
persistent = 0
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = !win
trigger1 = time > 396
trigger1 = (gametime%2) = 0
trigger2 = time = 397
anim = -1
time = 1
movetime = 1
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = win
trigger2 = p2life = 0
time = 2
movetime = 2
anim = -1
darken = 0
persistent = 0
ignorehitpause = 1

[State 23000]
type = changestate
trigger1 = time >= 397
value = 223001
;---------------------------------------------------------------------------------
;廔椆
;---------------------------------------------------------------------------------
[Statedef 223001]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2211
ctrl = 0

[state 23000]
type = Explod
trigger1 = time = 0
anim = 32200
sprpriority = 214748364
postype = p1
pos = 6,-159
bindtime = -1
supermove = 1
under = 0
ownpal = 1
removetime = 10
scale = 0.65,0.65
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23001]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay

[state 23001]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 僽儔僢僋丒傾價僗[分裂]
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[Statedef 2304]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 2300
ctrl = 0

[state 2300]
type = poweradd
trigger1 = time = 0
value = -5000
ignorehitpause = 1
[state 2300]
type = varadd
trigger1 = time = 0
var(35) = -5000
ignorehitpause = 1
[state 2300]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1
[state 2300]
type = helper
trigger1=time=2||time=6||time=10||time=14||AnimElemTime(7)=1||AnimElemTime(9)=2
id = 22101
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 130
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = helper
trigger1= time = 0
id = 64000
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 150
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = time = 0
anim = 22172
sprpriority = -3
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = Time = 0
anim = 22173
sprpriority = 20
postype = p1
pos = 1,-129
bindtime = 1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = time = 0
anim = 22174
sprpriority = -4
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = add;sub
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = PlaySnd
trigger1 = Time = 0
value = 2200,1
volume = 255
;freqmul = 0.9
ignorehitpause = 1

[state 2300]
type = PlaySnd
trigger1 = Time = 0
value = 2200,2
;freqmul = 0.9
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 10000,11
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 10000,41
volume = 255
[State 2300]
type = EnvColor
trigger1 = time = 0
persistent = 0
ignorehitpause = 1
time = 3
value = 0,0,0
under = 2
[State 2300]
type = EnvColor
trigger1 = time = 3
persistent = 0
ignorehitpause = 1
time = 50
value = 0,0,0
under = 2
[State 2300]
type = bgpalfx
trigger1 = 1
time = 10
add = 255,255,255
mul = 255,255,255
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1
[state a]
type = changestate
trigger1 = animtime = 0
value = 23006

;---------------------------------------------------------------------------------
;峌寕
;---------------------------------------------------------------------------------
[Statedef 23006]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 23000
ctrl = 0

[State 23000]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1

[State 23000]
type = statetypeset
triggerall = palno = [7,12]
trigger1 = !ishelper
statetype = A
movetype = I
physics = N
ignorehitpause = 1

[State 23000]
type = NotHitBy
trigger1 = 1
value = SCA

[State 23000]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AT,AA,AP
hitflag = M-
priority = 7
pausetime = 0,2
numhits = 0
p2facing = 1
p2stateno = 1000043
ignorehitpause = 1

[State 23000]
type = HitAdd
triggerall = numtarget > 0
trigger1 = target,stateno = 1000043 && enemynear,time = 0
value = 1
[State 23000]
type = targetdrop
triggerall = numtarget
trigger1 = target,ishelper
trigger2 = numtarget >= 8
ignorehitpause = 1
[State 23000]
type = targetLifeAdd
trigger1 = numtarget
value = -2147483647
absolute = 1
ignorehitpause = 1
[State 23000]
type = targetpowerAdd
trigger1= numtarget
value = -(enemynear,Const(data.power))
ignorehitpause = 1
[State 23000]
type = targetstate
triggerall = numtarget > 0
triggerall = !target,ishelper
triggerall = !win
trigger1 = enemy,alive
value = 1000043
ignorehitpause = 1
[State 23000]
type = targetstate
triggerall = numtarget
trigger1 = enemy,alive=0&&!(enemy,stateno=104010||enemy,stateno=1000043||enemy,stateno=5150)
value = 104010
ignorehitpause = 1
[State 23000]
type = targetfacing
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0
value = 1-2*(random%2)
ignorehitpause = 1
[State 23000]
type = targetveladd
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y >= 0
x = 0
y = 0
ignorehitpause = 1
[State 23000]
type = targetvelset
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y >= 0
x = 0
y = 0
ignorehitpause = 1
[State 23000]
type = targetveladd
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y < 0
x = 0
y = 2147483647*2147483647
ignorehitpause = 1
[State 23000]
type = targetvelset
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y < 0
x = 0
y = 2147483647*2147483647
ignorehitpause = 1
[State 23000]
type = helper
triggerall = palno = [1,6]
triggerall = numhelper(169990) = 0
trigger1 = roundstate <= 2
id = 169990
persistent = 1
name = "kill"
pos = 0,0
postype = p1
stateno = 150
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = Projectile
triggerall = !ishelper
trigger1 = (GameTime%4) = 1
trigger1 = time >= 80
trigger1 = p2movetype != A
trigger2 = (GameTime%4) = 1
trigger2 = p2movetype = A&&time >= 220
attr = A, NA
projanim = 40010
projid = 40010
projpriority = 2147483647
projsprpriority = 5
projremove = 1
projremovetime = 2
postype = back
offset = 0,0
animtype  = hard
damage = 30+random%20,5+random%20
hitflag = MAFD
guardflag =
pausetime = 9,5
guard.pausetime = 9,5
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.75,-0.01
guard.velocity = -9.5
air.velocity = -0.75,-0.01
fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = Projectile
triggerall = !ishelper
trigger1 = (GameTime%3) = 1
attr = S, SP
projanim = 40020
projid =40020
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 1
projremovetime = 2
postype = p1
animtype  = hard
damage    = 10,0
getpower = 10,0
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 2,8
ground.type = low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2
air.velocity = -2,-1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = Explod
triggerall = palno != [7,12]
trigger1 = Time = 0
anim = 49955
id = 10130
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
;trans = none;add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = Explod
triggerall = palno = [7,12]
trigger1 = Time = 0
anim = 49955
id = 10120
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = null;Explod
triggerall = palno = [7,12]
trigger1 = Time = 0
anim = 13519
id = 36581
sprpriority = 2147483648
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647
removetime = 220
;======================================================G-X
[State 23000]
type = null;Explod
triggerall = palno = [7,12]
trigger1 = Time = 30
anim = 32714
id = 32714
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647
removetime = 220
[State 23000]
type = Explod
triggerall = palno = [7,12]
trigger1 = Time = 30
anim = 32726
id = 32726
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647
removetime = 220
[State 23000]
type = Explod
triggerall = palno = [7,12]
trigger1 = Time = 30
anim = 32727
id = 32727
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647
removetime = 220
[State 23000]
type = Explod
triggerall = palno = [7,12]
trigger1 = Time = 30
anim = 253234
id = 253234
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647
removetime = 220
[State 23000]
type = null;Explod
triggerall = palno = [7,12]
trigger1 = Time = 140
anim = 463334
id = 463334
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647
removetime = 220
[State 23000]
type = null;Explod
triggerall = palno = [7,12]
trigger1 = Time = 220
anim = 342345
id = 342345
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647
removetime = 220
[State 23000]
type = Explod
triggerall = palno = [7,12]
trigger1 = Time = 249
anim = 213431
id = 213431
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647
[State 101]
type = null;removeexplod
trigger1 = time = 220
id = 234664
[State 101]
type = null;removeexplod
trigger1 = time = 220
id = 463334
[State 101]
type = null;removeexplod
trigger1 = time = 236
id = 342345
[state 2300]
type = null;PlaySnd
trigger1 = time = 70 || time = 140
value = 10000,30
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 249
value = 10000,17
volume = 255
[State 23000]
type = null;EnvShake
trigger1 = time = 70 || time = 140
time = 5
ampl = -20
freq = 95
phase = 95
[State 23000]
type = null;EnvShake
trigger1 = time = 220
time = 5
ampl = -40
freq = 95
phase = 95
;===========================================================--END
[state 23000]
type = Explod
trigger1 = time = 0
anim = 32000
sprpriority = 214748364
postype = p1
pos = 6,-159
bindtime = -1
supermove = 1
under = 0
ownpal = 1
removetime = 280
scale = 0.65,0.65
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = bgpalfx
trigger1 = 1
time = 10
add = 0,0,0
mul = 0,0,0
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1

[State 23000]
type = EnvShake
trigger1 = (GameTime%4) = 1
time = 5
ampl = -5
freq = 95
phase = 95

[State 23000]
type = turn
triggerall = !ishelper
trigger1 = p2dist X < 0
trigger1 = fvar(5) < 0
ignorehitpause = 1
[State 23000]
type = PlaySnd
triggerall = palno != [7,12]
trigger1 = time = 10
value = 10000,51
volume = 255
channel = 5
;freqmul = 0.7
ignorehitpause = 1

[State 23000]
type = PlaySnd
triggerall = palno != [7,12]
trigger1 = time = 10
value = 2300,0
volume = 255
channel = 6
;freqmul = 0.7
ignorehitpause = 1

[State 23000]
type = PlaySnd
triggerall = palno = [7,12]
trigger1 = time = 10
value = 2563,0
volume = 255
channel = 5
ignorehitpause = 1

[State 23000]
type = AttackDist
trigger1 = 1
value = 0

[State 23000]
type = superpause
triggerall = time < 270
trigger1 = win
trigger2 = enemynear,life = 0
time = 1
movetime = 1
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
persistent = 0
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = time >= 270
time = 1
movetime = 0
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1
[State 23000]
type = pause
triggerall = !win
trigger1 = time > 270
trigger1 = (gametime%2) = 0
time = 1
movetime = 1
persistent = 0
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = !win
trigger1 = time > 270
trigger1 = (gametime%2) = 0
trigger2 = time = 280
anim = -1
time = 1
movetime = 1
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = win
trigger2 = p2life = 0
time = 2
movetime = 2
anim = -1
darken = 0
persistent = 0
ignorehitpause = 1

[State 23000]
type = changestate
trigger1 = time >= 280
value = 23007
;---------------------------------------------------------------------------------
;廔椆
;---------------------------------------------------------------------------------
[Statedef 23007]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2211
ctrl = 0

[state 23000]
type = Explod
trigger1 = time = 0
anim = 32200
sprpriority = 214748364
postype = p1
pos = 6,-159
bindtime = -1
supermove = 1
under = 0
ownpal = 1
removetime = 10
scale = 0.65,0.65
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23001]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay

[state 23001]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
;巰偺桿偄
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 19500]
type    = S
physics = N
velset = 0,0
juggle = 0
sprpriority = 1
anim = 19500
ctrl = 0

[State -2]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[State 2000]
type = Explod
trigger1 = AnimElem = 1
anim = 22174
pos = -29,-102
sprpriority = -3
ownpal = 1
bindtime = 1
supermove = 1
removetime = 20
trans = sub
supermovetime = 2147483647
pausemovetime = 2147483647

[State 2000]
type = Explod
trigger1 = AnimElem = 1
anim = 22172
pos = -29,-102
sprpriority = -3
ownpal = 1
bindtime = 1
supermove = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 2000]
type = Explod
trigger1 = AnimElem = 1
anim = 22173
pos = -29,-102
sprpriority = 20
ownpal = 1
bindtime = 1
supermove = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[state a]
type = poweradd
trigger1 = time = 0
value = -4000
ignorehitpause = 1

[State 2000, 2]
type = varadd
trigger1 = time = 0
var(35) = -4000
ignorehitpause = 1

[State 2000, 2]
type = SuperPause
trigger1 = time = 0
time = 28
movetime = 28
anim = -1

[State 2000, 6]
type = PlaySnd
trigger1 = Time = 0
value = 10000,21

[State 2000, 6]
type = PlaySnd
trigger1 = Time = 0
value = 195,0

[State 1000, 5]
type = Explod
trigger1 = time = 0
anim = 32600
sprpriority = 8
postype = p1
pos = -10,-60
bindtime = 1
supermove = 1
under = 0
ownpal = 1
scale = .5,.5
supermovetime = 2147483647
pausemovetime = 2147483647

[State 19500]
type = helper
triggerall = !ishelper
trigger1 = numhelper(24610) = 0
trigger1 = time = 0
id = 24610
persistent = 0
name = "kagami"
pos = 0,0
postype = p1
stateno = 150
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[state 0]
type = destroyself
trigger1 = ishelper
ignorehitpause = 1
[state 0]
type = lifeset
triggerall = name != "AREDL"
trigger1 = !ishelper
value = 0
ignorehitpause = 1
[state 0]
type = lifeadd
triggerall = name != "AREDL"
trigger1 = !ishelper
value = -lifemax
absolute = 1
ignorehitpause = 1
[state 0]
type = hitdef
triggerall = name != "AREDL"
trigger1 = !ishelper
damage = 0,0
attr = C,NP
id = 19500
sparkno = -1
ignorehitpause = 1
[state 0]
type = changestate
trigger1 = loseko
value = 5150
ignorehitpause = 1
[state 0]
type = changestate
trigger1 = !ishelper
trigger1 = hitdefattr = C,NP
value = 1000044
ignorehitpause = 1

[state 195]
type = targetdrop
triggerall = numtarget > 0
trigger1 = time > 360
trigger2 = numtarget > 6
ignorehitpause = 1

[state 19500]
type = targetstate
triggerall = numtarget > 0
trigger1 = target,ishelper != 1
trigger1 = roundstate = 3
value = 5150
ignorehitpause = 1

[State 195]
type = Turn
trigger1 = P2dist X < 0

[state a]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 僯儏乕僋儕傾乕丒儗僀僕僄乕僔儑儞
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[Statedef 10151]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 10150
ctrl = 0

[state 10150]
type = poweradd
trigger1 = time = 0
value = -2000+((var(40)=2)*1000)
ignorehitpause = 1

[state 10150]
type = varadd
trigger1 = time = 0
var(35) = -2000+((var(40)=2)*1000)
ignorehitpause = 1

[State 10150]
type = superpause
trigger1 = time = 0
time = 30
movetime = 30
darken = 0
anim = -1
unhittable = 1
sound = s10000,17

[state 10150]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[state 10150]
type = SuperPause
trigger1 = time = 0
time = 28
movetime = 28
anim = -1

[state 10150]
type = Explod
trigger1 = time = 0
anim = 22172
sprpriority = -3
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 10150]
type = Explod
trigger1 = Time = 0
anim = 22173
sprpriority = 20
postype = p1
pos = 1,-129
bindtime = 1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 10150]
type = helper
trigger1=time=2||time=6||time=10||time=14||AnimElemTime(7)=1||AnimElemTime(9)=2
id = 22101
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 22101
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 10150]
type = bgpalfx
trigger1 = 1
time = 10
add = 255,255,255
mul = 255,255,255
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1

[State 10150]
type = PlaySnd
trigger1 = Time = 0
value = 10000,32
volume = 255

[state a]
type = changestate
trigger1 = animtime = 0
value = 10156

[Statedef 10156]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 10155
sprpriority = 0
ctrl = 0
[State 10155]
type = AssertSpecial
triggerall = palno != 12
trigger1 = (GameTime%2) = 1
flag = invisible
[State 10155]
type = bgpalfx
trigger1 = 1
time = 10
add = 255,255,255
mul = 255,255,255
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1
[State 10155]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
[State 10155]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1
[State 10155]
type = PlaySnd
trigger1 = time = 0
value = 2300,0
freqmul = 0.7
[State 10155]
type = PlaySnd
trigger1 = time = 0
value = 10000,7
volume = 255
[State 10155]
type = Explod
triggerall = time > 40
triggerall = time <= 240
trigger1 = (GameTime%2) = 1
anim = 22131
sprpriority = 10
postype = p1
pos = 0,var(52)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 1
vel = 8,-2 + (random%5)
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647
[State 10155]
type = targetlifeadd
triggerall = palno = [11,12]
trigger1 = time > 5
trigger1 = (gametime%2) = 1
value = -2
absolute = 1
[State 10155]
type = EnvShake
trigger1 = (gametime%2) = 1
time = 3
ampl = -3
freq = 95
phase = 95
[State 10155]
type = Explod
trigger1 = time = 0
anim = 10100
id = 211
postype = p1
pos = 15,-85
sprpriority = 2147483647
supermove = 0
removetime = 200
ownpal = 1
removeongethit = 0
bindtime = -1
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647
[State 10155]
type = Explod
trigger1 = time = 0
anim = 10065
id = 211
postype = p1
pos = 30,-85
sprpriority = 2147483647
supermove = 0
removetime = 200
ownpal = 1
removeongethit = 0
bindtime = -1
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647


[State 240, 2]
type = Projectile
trigger1 = time = 10
trigger2 = time = 20
trigger3 = time = 100
projanim = 166
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = 120,20
guardflag = MA
hitflag = MAFD
pausetime = 0,70
guard.pausetime = 0,70
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0
fall.damage=0
;p2stateno = 5110
;p2getp1state = 0

[State 240, 2]
type = Projectile
trigger1 = time >= 150
projanim = 166
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = gametime%2
guardflag = MA
hitflag = MAFD
pausetime = 0,2
guard.pausetime = 0,2
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = -1,0;s225,1
guardsound = -1,0;s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0

[State 10155]
type = Projectile
triggerall = palno != 12
trigger1 = (GameTime%5) = 1
trigger1 = time > 0
trigger1 = time <= 200
attr = S, HA
projanim = 10050
projid = 10050
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 5
postype = p1
offset = 5,-80
projscale = 5,1
animtype  = hard
damage = 10+random%10,5
getpower = 0,0
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 2,4
guardsound = s120,0
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.5
fall = 1
fall.recover = 0
juggle = 50
p2stateno = 9000
[State 10155]
type = Projectile
triggerall = palno = 12
trigger1 = (GameTime%3) = 1
trigger1 = time > 0
attr = S, HA
projanim = 10050
projid = 10050
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 5
postype = p1
offset = 0,-85
projscale = 0,0
velocity = 0
animtype  = diagup
damage = 35+random%20,5+random%20
getpower = 0,0
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 2,4
ground.type = hard
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.5
fall = 1
fall.recover = 0
juggle = 50
[State 10155]
type = Projectile
trigger1 = palno = 12
trigger1 = (GameTime%3) = 1
trigger1 = time > 0
attr = S, HA
projanim = 10060
projid = 10060
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 5
postype = p1
offset = 15,-85
projscale = 0,0
velocity = 0
animtype  = diagup
damage  = 0,0
getpower = 0,0
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 2,4
ground.type = hard
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.5
fall = 1
fall.recover = 0
juggle = 50

[State 10155]
type = changestate
trigger1 = time = 200
value = 10161
;------------------------------------------------
; 廔椆
[Statedef 10161]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 10160
ctrl = 0

[State 10160]
type = BGPalFx
trigger1 = time <= 220
add = 255,255,255
sinadd = -256,-256,-256,480
time = 120
ignorehitpause = 1

[State 10160]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[State 10160]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 僯儏乕僋儕傾乕丒儗僀僕僄乕僔儑儞2
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[Statedef 10150]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 22011
ctrl = 0

[state 10150]
type = poweradd
trigger1 = time = 0
value = -2000+((var(40)=2)*1000)
ignorehitpause = 1

[state 10150]
type = varadd
trigger1 = time = 0
var(35) = -2000+((var(40)=2)*1000)
ignorehitpause = 1

[State 10150]
type = superpause
trigger1 = time = 0
time = 30
movetime = 30
darken = 0
anim = -1
unhittable = 1
sound = s10000,17

[state 10150]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[state 10150]
type = SuperPause
trigger1 = time = 0
time = 28
movetime = 28
anim = -1

[state 10150]
type = Explod
trigger1 = time = 0
anim = 22172
sprpriority = -3
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 10150]
type = Explod
trigger1 = Time = 0
anim = 22173
sprpriority = 20
postype = p1
pos = 1,-129
bindtime = 1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 10150]
type = helper
trigger1=time=2||time=6||time=10||time=14||AnimElemTime(7)=1||AnimElemTime(9)=2
id = 22101
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 22101
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 10150]
type = bgpalfx
trigger1 = 1
time = 10
add = 255,255,255
mul = 255,255,255
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1

[State 10150]
type = PlaySnd
trigger1 = Time = 0
value = 10000,32
volume = 255

[state a]
type = changestate
trigger1 = animtime = 0
value = 10155

[Statedef 10155]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 2205
sprpriority = 0
ctrl = 0
[State 10155]
type = AssertSpecial
triggerall = palno != 12
trigger1 = (GameTime%2) = 1
flag = invisible
[State 10155]
type = bgpalfx
trigger1 = 1
time = 10
add = 0,0,0
mul = 0,0,0
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1
[State 10155]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
[State 10155]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1
[State 10155]
type = PlaySnd
trigger1 = time = 0
value = 20000,9
;freqmul = 0.7
[State 10155]
type = PlaySnd
trigger1 = time = 0
value = 10000,7
volume = 255
[State 10155]
type = Explod
triggerall = time > 40
triggerall = time <= 240
trigger1 = (GameTime%2) = 1
anim = 22131
sprpriority = 10
postype = p1
pos = 0,var(52)
bindtime = 1
under = 0
ownpal = 1
persistent = 1
ignorehitpause = 1
vel = 8,-2 + (random%5)
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647
[State 10155]
type = targetlifeadd
triggerall = palno = [11,12]
trigger1 = time > 5
trigger1 = (gametime%2) = 1
value = -2
absolute = 1
[State 10155]
type = EnvShake
trigger1 = (gametime%2) = 1
time = 3
ampl = -3
freq = 95
phase = 95
[State 10155]
type = Explod
trigger1 = time = 0
anim = 100653
id = 211
postype = p1
pos = 35,-100
sprpriority = 2147483647
supermove = 0
removetime = 200
ownpal = 1
removeongethit = 0
bindtime = -1
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647
[State 10155]
type = Explod
trigger1 = time = 0
anim = 100654
id = 211
postype = p1
pos = 35,-100
sprpriority = 2147483647
supermove = 0
removetime = 200
ownpal = 1
removeongethit = 0
bindtime = -1
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647
[State 10155]
type = Explod
trigger1 = time = 0
anim = 100655
id = 211
postype = p1
pos = 35,-100
sprpriority = 2147483647
supermove = 0
removetime = 200
ownpal = 1
removeongethit = 0
bindtime = -1
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647
[State 10155]
type = Explod
trigger1 = time = 0
anim = 32300
id = 211
postype = p1
pos = 35,-100
sprpriority = 2147483647
supermove = 0
removetime = 200
ownpal = 1
removeongethit = 0
bindtime = -1
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647
[State 1000, 5]
type = Explod
trigger1 = time=0
anim = 300222
ID = 221
sprpriority = 2147483647
ontop = 1
postype = left
pos = 0,240
bindtime = -1
pausemovetime=2147483647
supermovetime=2147483647
removetime=200
under = 0
ownpal = 1
scale=1,1
[State 10155]
type = Explod
trigger1 = time = 0
anim = 32714
id = 26000
postype = p1
pos = 35,-100
scale = 0.1555,1.12345
sprpriority = 2147483647
supermove = 0
removetime = 200
ownpal = 1
removeongethit = 0
bindtime = -1
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647
[State 10155]
type = Explod
trigger1 = time = 0
anim = 327114
id = 327114
postype = p1
pos = 35,-100
scale = 0.1555,1.12345
sprpriority = 2147483647
supermove = 0
removetime = 200
ownpal = 1
removeongethit = 0
bindtime = -1
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647
[State 10155]
type = Explod
trigger1 = time = 0
anim = 427219
id = 427219
postype = p1
pos = 35,-100
scale = 0.1555,1.12345
sprpriority = 2147483647
supermove = 0
removetime = 200
ownpal = 1
removeongethit = 0
bindtime = -1
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647
[State 10155]
type = Explod
trigger1 = time = 0
anim = 28000
id = 28000
postype = p1
pos = 35,-100
scale = 0.1555,1.12345
sprpriority = 2147483647
supermove = 0
removetime = 200
ownpal = 1
removeongethit = 0
bindtime = -1
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647
[State 10155]
type = Explod
trigger1 = time = 0
anim = 101055
id = 101055
postype = p1
pos = 35,-100
scale = 0.1555,1.12345
sprpriority = 2147483647
supermove = 0
removetime = 200
ownpal = 1
removeongethit = 0
bindtime = -1
SuperMoveTime = 2147483647
PauseMoveTime = 2147483647

[State 240, 2]
type = Projectile
trigger1 = time = 10
trigger2 = time = 20
trigger3 = time = 100
projanim = 166
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = 120,20
guardflag = MA
hitflag = MAFD
pausetime = 0,70
guard.pausetime = 0,70
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0
fall.damage=0
;p2stateno = 5110
;p2getp1state = 0

[State 240, 2]
type = Projectile
trigger1 = time >= 150
projanim = 166
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = gametime%2
guardflag = MA
hitflag = MAFD
pausetime = 0,2
guard.pausetime = 0,2
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = -1,0;s225,1
guardsound = -1,0;s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0

[State 10155]
type = Projectile
triggerall = palno != 12
trigger1 = (GameTime%5) = 1
trigger1 = time > 0
trigger1 = time <= 200
attr = S, HA
projanim = 10050
projid = 10050
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 5
postype = p1
offset = 5,-80
projscale = 5,1
animtype  = hard
damage = 10+random%10,1
getpower = 0,0
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 2,4
guardsound = s120,0
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.5
fall = 1
fall.recover = 0
juggle = 50
p2stateno = 9000
[State 10155]
type = Projectile
triggerall = palno = 12
trigger1 = (GameTime%3) = 1
trigger1 = time > 0
attr = S, HA
projanim = 10050
projid = 10050
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 5
postype = p1
offset = 0,-85
projscale = 0,0
velocity = 0
animtype  = diagup
damage = 35+random%20,5+random%20
getpower = 0,0
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 2,4
ground.type = hard
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.5
fall = 1
fall.recover = 0
juggle = 50
p2stateno = 9000
[State 10155]
type = Projectile
trigger1 = palno = 12
trigger1 = (GameTime%3) = 1
trigger1 = time > 0
attr = S, HA
projanim = 10060
projid = 10060
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 0
projremovetime = 5
postype = p1
offset = 15,-85
projscale = 0,0
velocity = 0
animtype  = diagup
damage  = 0,0
getpower = 0,0
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 2,4
ground.type = hard
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -6,-6.5
air.velocity = -6,-6.5
fall = 1
fall.recover = 0
juggle = 50

[State 10155]
type = changestate
trigger1 = time = 200
value = 10160
;------------------------------------------------
; 廔椆
[Statedef 10160]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2210
ctrl = 0

[State 10160]
type = BGPalFx
trigger1 = time <= 220
add = 0,0,0
sinadd = -256,-256,-256,480
time = 120
ignorehitpause = 1

[State 10160]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[State 10160]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 僇僆僥傿僢僋丒僼儗傾
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[Statedef 2200]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2201
ctrl = 0

[State p2name]
type = changestate
triggerall = time = 0
trigger1 = p2name = "G Magaki"
value = 100500

[State p2name]
type = changestate
triggerall = time = 0
trigger1 = p2name = "AxAyAzSSS" ;mugen偑棊偪傞
value = 2300

[State 2200]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[State 2200]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = -1
ignorehitpause = 1

[State 2200]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2= nofg
ignorehitpause = 1

[state a]
type = poweradd
trigger1 = time = 0
value = -6000
ignorehitpause = 1

[State 2000, 2]
type = varadd
trigger1 = time = 0
var(35) = -6000
ignorehitpause = 1

[State 2200]
type = Explod
trigger1 = time = 10
anim = 13048
sprpriority = 5
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = sub
pausemovetime = 2147483647
supermovetime = 2147483647
[State 2200]
type = Explod
trigger1 = time = 0
anim = 13046
sprpriority = 5
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = sub
pausemovetime = 2147483647
supermovetime = 2147483647
[State 2200]
type = Explod
trigger1 = time = 10
anim = 22174
sprpriority = 5
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = sub
pausemovetime = 2147483647
supermovetime = 2147483647
[State 2200]
type = Explod
trigger1 = Time = 0
anim = 28100
sprpriority = 5
postype = p1
pos = 1,-129
bindtime = 1
supermove = 1
under = 0
ownpal = 1
trans = sub
pausemovetime = 2147483647
supermovetime = 2147483647
[state 2200]
type = helper
trigger1= time = 0
id = 64000
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 150
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[State 2200]
type = helper
trigger1=time=4||time=8||time=12||time=16||time=20||time=24||animelemtime(7)=1||animelemtime(9)=2
id = 22101
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 22101
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[State 2200]
type = Explod
trigger1 = AnimElemTime(12) >= 2
anim = 22131
sprpriority = 6
postype = p1
pos = 0,-75
random = 60,60
removetime = 30
vel = -6 + (random%12),-6 + (random%12)
facing = -1
ownpal = 1
ontop = 1
pausemovetime = 2147483647
supermovetime = 2147483647
[State 2200]
type = Explod
trigger1 = time = 0
anim = 22172
sprpriority = -3
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
pausemovetime = 2147483647
supermovetime = 2147483647
[State 2200]
type = Explod
trigger1 = Time = 0
anim = 22173
sprpriority = 20
postype = p1
pos = 1,-129
bindtime = 1
supermove = 1
under = 0
ownpal = 1
pausemovetime = 2147483647
supermovetime = 2147483647
[State 2200]
type = Explod
trigger1 = time = 0
anim = 32600
sprpriority = 8
postype = p1
pos = -2,-60
bindtime = 1
supermove = 1
under = 0
ownpal = 1
scale = .5,.5
pausemovetime = 2147483647
supermovetime = 2147483647
[State 2200]
type = PlaySnd
trigger1 = Time = 0
value = 2200,0
freqmul = 0.9
volume = 255
[State 2200]
type = PlaySnd
trigger1 = Time = 0
value = 2200,2
freqmul = 0.9
volume = 255
[State 2200]
type = PlaySnd
trigger1 = time = 0
value = 10000,11
volume = 255
[State 2200]
type = PlaySnd
trigger1 = time = 0
value = 10000,41
volume = 255
[State 2200]
type = PlaySnd
trigger1 = time = 0
value = 10000,20
ignorehitpause = 1
[State 2200]
type = PlaySnd
trigger1 = time = 0
value = 10000,21
ignorehitpause = 1

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

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

[state 2200]
type = changestate
trigger1 = animtime = 0
value = 2205

[Statedef 2205]
type    = S
physics = N
velset = 0,0
juggle = 0
anim = 2206
ctrl = 0

[State 23000]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1

[State 2205]
type = EnvShake
trigger1 = (GameTime%4) = 1
time = 5
ampl = -5
freq = 95
phase = 95
[State 2205]
type = PlaySnd
trigger1 = Time = 0
value = 2200,1
volume = 255
freqmul = 0.9
[State 2205]
type = PlaySnd
trigger1 = Time = 0
value = 10000,51
volume = 255
freqmul = 0.7
[State 2205]
type = PlaySnd
trigger1 = Time = 0
value = 2300,0
volume = 255
freqmul = 0.7

[State 2205]
type = Explod
trigger1 = Time = 0
anim = 10130
id = 10130
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 2205]
type = Explod
trigger1 = Time = 0
anim = 10121
id = 10121
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 2205]
type = Explod
trigger1 = Time = 0
anim = 1003
id = 1003
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 2205]
type = Explod
trigger1 = Time = 0
anim = 9898
id = 9898
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 2205]
type = Explod
trigger1 = Time = 0
anim = 10004
id = 10004
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 2205]
type = bgpalfx
trigger1 = 1
time = 10
add = 0,0,0
mul = 0,0,0
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1
[State -2]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = -1
ignorehitpause = 1
[State 2205]
type = statetypeset
trigger1 = ishelper
movetype = A
physics = N
ignorehitpause = 1
[state 2205]
type = ReversalDef
triggerall = !ishelper
trigger1 = palno = [7,12]
reversal.attr = SCA,AA,AT,AP
pausetime = 0,2
p2stateno = 1000044
ignorehitpause = 1
[state 2205]
type = targetdrop
triggerall = numtarget > 0
trigger1 = numtarget > 6
trigger2 = numtarget
trigger2 = target,stateno != 1000044
trigger2 = !target,ishelper
ignorehitpause = 1
[state 2205]
type = targetstate
triggerall = numtarget > 0
trigger1 = target,ishelper != 1
trigger1 = roundstate = 3
value = 5150
ignorehitpause = 1
[State 2205]
type = destroyself
triggerall = ishelper
trigger1 = time > 275 || root,time > 280
trigger2 = roundstate != 2
ignorehitpause = 1
[State 2205]
type = statetypeset
triggerall = !ishelper
triggerall = time = [0,280]
trigger1 = random = [0,20]
trigger2 = random = [41,60]
trigger3 = random = [81,100]
movetype = A
ignorehitpause = 1
[State 2205]
type = statetypeset
triggerall = !ishelper
triggerall = time = [0,280]
trigger1 = random = [21,40]
trigger2 = random = [61,80]
trigger3 = random = [101,120]
movetype = I
ignorehitpause = 1
[State 2205]
type = targetstate
triggerall = numtarget
trigger1 = enemy,alive=0&&!(enemy,stateno=104010||enemy,stateno=5150)
value = 104010
ignorehitpause = 1
[State 2205]
type = Turn
trigger1 = P2dist X < 0

[state 2210]
type = changestate
trigger1 = time >= 280
value = 2210

;---------------------------------------------------------------------------
;廔椆
;---------------------------------------------------------------------------

[Statedef 2210]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2211
ctrl = 0

[State 2210]
type = NotHitBy
trigger1 = 1
value = SCA,AA,AT,AP
ignorehitpause = 1

[State 2210]
type = NotHitBy
trigger1 = ishelper
value = SCA
time = -1
ignorehitpause = 1

[State 2210]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay

[state 2210]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 僽儔僢僋丒傾價僗
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[Statedef 2300]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 2300
ctrl = 0

[state 2300]
type = poweradd
trigger1 = time = 0
value = -6000
ignorehitpause = 1
[state 2300]
type = varadd
trigger1 = time = 0
var(35) = -6000
ignorehitpause = 1
[state 2300]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1
[state 2300]
type = helper
trigger1=time=2||time=6||time=10||time=14||AnimElemTime(7)=1||AnimElemTime(9)=2
id = 22101
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 22101
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = helper
trigger1= time = 0
id = 64000
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 150
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = time = 0
anim = 22172
sprpriority = -3
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = Time = 0
anim = 22173
sprpriority = 20
postype = p1
pos = 1,-129
bindtime = 1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = time = 0
anim = 22174
sprpriority = -4
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = sub
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = PlaySnd
trigger1 = Time = 0
value = 2200,0
freqmul = 0.9
volume = 255
[state 2300]
type = PlaySnd
trigger1 = Time = 0
value = 2200,2
freqmul = 0.9
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 10000,11
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 10000,41
volume = 255
[State 2300]
type = EnvColor
trigger1 = time = 0
persistent = 0
ignorehitpause = 1
time = 3
value = 0,0,0
under = 2
[State 2300]
type = EnvColor
trigger1 = time = 3
persistent = 0
ignorehitpause = 1
time = 50
value = 255,255,255
under = 2
[State 2300]
type = bgpalfx
trigger1 = 1
time = 10
add = 255,255,255
mul = 255,255,255
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1

[State 23000]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1

[state a]
type = changestate
trigger1 = animtime = 0
value = 23000

;---------------------------------------------------------------------------------
;峌寕
;---------------------------------------------------------------------------------
[Statedef 23000]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2206
ctrl = 0

[State 23000]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1

[State 23000]
type = statetypeset
triggerall = palno = [7,12]
trigger1 = !ishelper
statetype = A
movetype = I
physics = N
ignorehitpause = 1

[State 23000]
type = NotHitBy
trigger1 = 1
value = SCA

[State 23000]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,2
numhits = 0
p2facing = 1
p2stateno = 1000043
ignorehitpause = 1

[State 23000]
type = HitAdd
triggerall = numtarget > 0
trigger1 = target,stateno = 1000043 && enemynear,time = 0
value = 1
[State 23000]
type = targetdrop
triggerall = numtarget
trigger1 = target,ishelper
trigger2 = numtarget >= 8
ignorehitpause = 1
[State 23000]
type = targetLifeAdd
trigger1 = numtarget
value = -2147483647
absolute = 1
ignorehitpause = 1
[State 23000]
type = targetpowerAdd
trigger1= numtarget
value = -(enemynear,Const(data.power))
ignorehitpause = 1
[State 23000]
type = targetstate
triggerall = numtarget > 0
triggerall = !target,ishelper
triggerall = !win
trigger1 = enemy,alive
value = 1000043
ignorehitpause = 1
[State 23000]
type = targetstate
triggerall = numtarget
trigger1 = enemy,alive=0&&!(enemy,stateno=104010||enemy,stateno=1000043||enemy,stateno=5150)
value = 104010
ignorehitpause = 1
[State 23000]
type = helper
triggerall = palno = [1,6]
triggerall = numhelper(169990) = 0
trigger1 = roundstate <= 2
id = 169990
persistent = 1
name = "kill"
pos = 0,0
postype = p1
stateno = 150
helpertype = Player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = Projectile
triggerall = !ishelper
trigger1 = (GameTime%4) = 1
trigger1 = time >= 80
trigger1 = p2movetype != A
trigger2 = (GameTime%4) = 1
trigger2 = p2movetype = A&&time >= 220
attr = A, NA
projanim = 40010
projid = 40010
projpriority = 2147483647
projsprpriority = 5
projremove = 1
projremovetime = 2
postype = back
offset = 0,0
animtype  = hard
damage = 30+random%20,5+random%20
hitflag = MAFD
guardflag =
pausetime = 9,5
guard.pausetime = 9,5
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.75,-0.01
guard.velocity = -9.5
air.velocity = -0.75,-0.01
fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = Projectile
triggerall = !ishelper
trigger1 = (GameTime%3) = 1
attr = S, SP
projanim = 40020
projid =40020
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 1
projremovetime = 2
postype = p1
animtype  = hard
damage    = 10,0
getpower = 10,0
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 2,8
ground.type = low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2
air.velocity = -2,-1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 240, 2]
type = Projectile
trigger1 = time = 30
trigger2 = time = 90
trigger3 = time = 150
projanim = 166
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = 120,20
guardflag = MA
hitflag = MAFD
pausetime = 0,70
guard.pausetime = 0,70
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0
fall.damage=0
;p2stateno = 5110
;p2getp1state = 0

[State 240, 2]
type = Projectile
trigger1 = time >= 210
projanim = 166
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = gametime%2
guardflag = MA
hitflag = MAFD
pausetime = 0,2
guard.pausetime = 0,2
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = -1,0;s225,1
guardsound = -1,0;s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0

[State 23000]
type = Explod
trigger1 = Time = 0
anim = 15160
id = 15160
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = Explod
trigger1 = Time = 0
anim = 4995
id = 15160
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = Explod
trigger1 = Time = 0
anim = 10004
id = 10004
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = Explod
trigger1 = Time = 0
anim = 10121
id = 10121
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = bgpalfx
trigger1 = 1
time = 10
add = 0,0,0
mul = 0,0,0
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1

[State 23000]
type = EnvShake
trigger1 = (GameTime%4) = 1
time = 5
ampl = -5
freq = 95
phase = 95

[State 23000]
type = PlaySnd
trigger1 = Time = 0
value = 2200,1
volume = 255
freqmul = 0.9
ignorehitpause = 1

[State 23000]
type = PlaySnd
trigger1 = time = 10
value = 2563,0
volume = 255
ignorehitpause = 1

[State 23000]
type = AttackDist
trigger1 = 1
value = 0

[State 23000]
type = turn
trigger1 = P2dist X < 0
trigger1 = fvar(1) < 0
ignorehitpause = 1

[State 23000]
type = superpause
triggerall = time < 270
trigger1 = win
trigger2 = enemynear,life = 0
time = 1
movetime = 1
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
persistent = 0
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = time >= 270
time = 1
movetime = 0
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1
[State 23000]
type = pause
triggerall = !win
trigger1 = time > 270
trigger1 = (gametime%2) = 0
time = 1
movetime = 1
persistent = 0
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = !win
trigger1 = time > 270
trigger1 = (gametime%2) = 0
trigger2 = time = 280
anim = -1
time = 1
movetime = 1
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = win
trigger2 = p2life = 0
time = 2
movetime = 2
anim = -1
darken = 0
persistent = 0
ignorehitpause = 1

[State 23000]
type = changestate
trigger1 = time >= 270
value = 23001
;---------------------------------------------------------------------------------
;廔椆
;---------------------------------------------------------------------------------
[Statedef 23001]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2211
ctrl = 0

[State 23001]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay

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

;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 僽儔僢僋丒傾價僗2
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[Statedef 2302]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 2201
ctrl = 0

[state 2300]
type = poweradd
trigger1 = time = 0
value = -6000
ignorehitpause = 1
[state 2300]
type = varadd
trigger1 = time = 0
var(35) = -6000
ignorehitpause = 1
[state 2300]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1
[state 2300]
type = helper
trigger1=time=2||time=6||time=10||time=14||AnimElemTime(7)=1||AnimElemTime(9)=2
id = 22101
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 22101
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = helper
trigger1= time = 0
id = 64000
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 150
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = time = 0
anim = 22172
sprpriority = -3
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = Time = 0
anim = 22173
sprpriority = 20
postype = p1
pos = 1,-129
bindtime = 1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = time = 0
anim = 22174
sprpriority = -4
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = sub
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = PlaySnd
trigger1 = Time = 0
value = 2200,0
freqmul = 0.9
volume = 255
[state 2300]
type = PlaySnd
trigger1 = Time = 0
value = 2200,2
freqmul = 0.9
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 10000,11
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 10000,41
volume = 255
[State 2300]
type = EnvColor
trigger1 = time = 0
persistent = 0
ignorehitpause = 1
time = 3
value = 0,0,0
under = 2
[State 2300]
type = EnvColor
trigger1 = time = 3
persistent = 0
ignorehitpause = 1
time = 50
value = 255,255,255
under = 2
[State 2300]
type = bgpalfx
trigger1 = 1
time = 10
add = 255,255,255
mul = 255,255,255
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1

[State 23000]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1

[state a]
type = changestate
trigger1 = animtime = 0
value = 23002

;---------------------------------------------------------------------------------
;峌寕
;---------------------------------------------------------------------------------
[Statedef 23002]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2206
ctrl = 0

[State 23000]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1

[State 23000]
type = statetypeset
triggerall = palno = [7,12]
trigger1 = !ishelper
statetype = A
movetype = I
physics = N
ignorehitpause = 1

[State 23000]
type = NotHitBy
trigger1 = 1
value = SCA

[State 23000]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AA,AT,AP
hitflag = M-
priority = 7
pausetime = 0,2
numhits = 0
p2facing = 1
p2stateno = 1000043
ignorehitpause = 1

[State 23000]
type = HitAdd
triggerall = numtarget > 0
trigger1 = target,stateno = 1000043 && enemynear,time = 0
value = 1
[State 23000]
type = targetdrop
triggerall = numtarget
trigger1 = target,ishelper
trigger2 = numtarget >= 8
ignorehitpause = 1
[State 23000]
type = targetLifeAdd
trigger1 = numtarget
value = -2147483647
absolute = 1
ignorehitpause = 1
[State 23000]
type = targetpowerAdd
trigger1= numtarget
value = -(enemynear,Const(data.power))
ignorehitpause = 1
[State 23000]
type = targetstate
triggerall = numtarget > 0
triggerall = !target,ishelper
triggerall = !win
trigger1 = enemy,alive
value = 1000043
ignorehitpause = 1
[State 23000]
type = targetstate
triggerall = numtarget
trigger1 = enemy,alive=0&&!(enemy,stateno=104010||enemy,stateno=1000043||enemy,stateno=5150)
value = 104010
ignorehitpause = 1
[State 23000]
type = helper
triggerall = palno = [1,6]
triggerall = numhelper(169990) = 0
trigger1 = roundstate <= 2
id = 169990
persistent = 1
name = "kill"
pos = 0,0
postype = p1
stateno = 150
helpertype = Player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = Projectile
triggerall = !ishelper
trigger1 = (GameTime%4) = 1
trigger1 = time >= 80
trigger1 = p2movetype != A
trigger2 = (GameTime%4) = 1
trigger2 = p2movetype = A&&time >= 220
attr = A, NA
projanim = 40010
projid = 40010
projpriority = 2147483647
projsprpriority = 5
projremove = 1
projremovetime = 2
postype = back
offset = 0,0
animtype  = hard
damage = 30+random%20,5+random%20
hitflag = MAFD
guardflag =
pausetime = 9,5
guard.pausetime = 9,5
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.75,-0.01
guard.velocity = -9.5
air.velocity = -0.75,-0.01
fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = Projectile
triggerall = !ishelper
trigger1 = (GameTime%3) = 1
attr = S, SP
projanim = 40020
projid =40020
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 1
projremovetime = 2
postype = p1
animtype  = hard
damage    = 10,0
getpower = 10,0
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 2,8
ground.type = low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2
air.velocity = -2,-1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 240, 2]
type = Projectile
trigger1 = time = 30
trigger2 = time = 90
trigger3 = time = 150
projanim = 166
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = 120,20
guardflag = MA
hitflag = MAFD
pausetime = 0,70
guard.pausetime = 0,70
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0
fall.damage=0
;p2stateno = 5110
;p2getp1state = 0

[State 240, 2]
type = Projectile
trigger1 = time >= 210
projanim = 166
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = gametime%2
guardflag = MA
hitflag = MAFD
pausetime = 0,2
guard.pausetime = 0,2
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = -1,0;s225,1
guardsound = -1,0;s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0

[State 23000]
type = Explod
trigger1 = Time = 0
anim = 10120
id = 10120
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = Explod
trigger1 = Time = 0
anim = 10004
id = 10004
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = Explod
trigger1 = Time = 0
anim = 10121
id = 10121
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = bgpalfx
trigger1 = 1
time = 10
add = 0,0,0
mul = 0,0,0
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1

[State 23000]
type = EnvShake
trigger1 = (GameTime%4) = 1
time = 5
ampl = -5
freq = 95
phase = 95

[State 23000]
type = PlaySnd
trigger1 = Time = 0
value = 2200,1
volume = 255
freqmul = 0.9
ignorehitpause = 1

[State 23000]
type = PlaySnd
trigger1 = time = 10
value = 2563,0
volume = 255
ignorehitpause = 1

[State 23000]
type = AttackDist
trigger1 = 1
value = 0

[State 23000]
type = turn
trigger1 = P2dist X < 0
trigger1 = fvar(1) < 0
ignorehitpause = 1

[State 23000]
type = superpause
triggerall = time < 270
trigger1 = win
trigger2 = enemynear,life = 0
time = 1
movetime = 1
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
persistent = 0
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = time >= 270
time = 1
movetime = 0
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1
[State 23000]
type = pause
triggerall = !win
trigger1 = time > 270
trigger1 = (gametime%2) = 0
time = 1
movetime = 1
persistent = 0
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = !win
trigger1 = time > 270
trigger1 = (gametime%2) = 0
trigger2 = time = 280
anim = -1
time = 1
movetime = 1
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = win
trigger2 = p2life = 0
time = 2
movetime = 2
anim = -1
darken = 0
persistent = 0
ignorehitpause = 1

[State 23000]
type = changestate
trigger1 = time >= 270
value = 23003
;---------------------------------------------------------------------------------
;廔椆
;---------------------------------------------------------------------------------
[Statedef 23003]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2211
ctrl = 0

[State 23001]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay

[state 23001]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
; 僽儔僢僋丒傾價僗3
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
[Statedef 2303]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 0
anim = 2300
ctrl = 0

[state 2300]
type = poweradd
trigger1 = time = 0
value = -5000
ignorehitpause = 1
[state 2300]
type = varadd
trigger1 = time = 0
var(35) = -5000
ignorehitpause = 1
[state 2300]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1
[state 2300]
type = helper
trigger1=time=2||time=6||time=10||time=14||AnimElemTime(7)=1||AnimElemTime(9)=2
id = 22101
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 130
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = helper
trigger1= time = 0
id = 64000
persistent = 1
name = "wakka"
pos = 1,-129
postype = P1
stateno = 150
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = time = 0
anim = 22172
sprpriority = -3
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = Time = 0
anim = 22173
sprpriority = 20
postype = p1
pos = 1,-129
bindtime = 1
supermove = 1
under = 0
ownpal = 1
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = Explod
trigger1 = time = 0
anim = 22174
sprpriority = -4
postype = p1
pos = 1,-129
bindtime = -1
supermove = 1
under = 0
ownpal = 1
trans = add;sub
supermovetime = 2147483647
pausemovetime = 2147483647
[state 2300]
type = PlaySnd
trigger1 = Time = 0
value = 2200,0
freqmul = 0.9
volume = 255
[state 2300]
type = PlaySnd
trigger1 = Time = 0
value = 2200,2
freqmul = 0.9
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 10000,11
volume = 255
[state 2300]
type = PlaySnd
trigger1 = time = 0
value = 10000,41
volume = 255
[State 2300]
type = EnvColor
trigger1 = time = 0
persistent = 0
ignorehitpause = 1
time = 3
value = 0,0,0
under = 2
[State 2300]
type = EnvColor
trigger1 = time = 3
persistent = 0
ignorehitpause = 1
time = 50
value = 255,255,255
under = 2
[State 2300]
type = bgpalfx
trigger1 = 1
time = 10
add = 255,255,255
mul = 255,255,255
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1
[state a]
type = changestate
trigger1 = animtime = 0
value = 23004

;---------------------------------------------------------------------------------
;峌寕
;---------------------------------------------------------------------------------
[Statedef 23004]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 23000
ctrl = 0

[State 23000]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nofg
flag3 = nobg
ignorehitpause = 1

[State 23000]
type = statetypeset
triggerall = palno = [7,12]
trigger1 = !ishelper
statetype = A
movetype = I
physics = N
ignorehitpause = 1

[State 23000]
type = NotHitBy
trigger1 = 1
value = SCA

[State 23000]
type = ReversalDef
trigger1 = 1
reversal.attr = SCA,AT,AA,AP
hitflag = M-
priority = 7
pausetime = 0,2
numhits = 0
p2facing = 1
p2stateno = 1000043
ignorehitpause = 1

[State 23000]
type = HitAdd
triggerall = numtarget > 0
trigger1 = target,stateno = 1000043 && enemynear,time = 0
value = 1
[State 23000]
type = targetdrop
triggerall = numtarget
trigger1 = target,ishelper
trigger2 = numtarget >= 8
ignorehitpause = 1
[State 23000]
type = targetLifeAdd
trigger1 = numtarget
value = -2147483647
absolute = 1
ignorehitpause = 1
[State 23000]
type = targetpowerAdd
trigger1= numtarget
value = -(enemynear,Const(data.power))
ignorehitpause = 1
[State 23000]
type = targetstate
triggerall = numtarget > 0
triggerall = !target,ishelper
triggerall = !win
trigger1 = enemy,alive
value = 1000043
ignorehitpause = 1
[State 23000]
type = targetstate
triggerall = numtarget
trigger1 = enemy,alive=0&&!(enemy,stateno=104010||enemy,stateno=1000043||enemy,stateno=5150)
value = 104010
ignorehitpause = 1
[State 23000]
type = targetfacing
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0
value = 1-2*(random%2)
ignorehitpause = 1
[State 23000]
type = targetveladd
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y >= 0
x = 0
y = 0
ignorehitpause = 1
[State 23000]
type = targetvelset
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y >= 0
x = 0
y = 0
ignorehitpause = 1
[State 23000]
type = targetveladd
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y < 0
x = 0
y = 2147483647*2147483647
ignorehitpause = 1
[State 23000]
type = targetvelset
triggerall = numtarget
trigger1 = target,alive && target,ishelper = 0 && target,pos y < 0
x = 0
y = 2147483647*2147483647
ignorehitpause = 1
[State 23000]
type = helper
triggerall = palno = [1,6]
triggerall = numhelper(169990) = 0
trigger1 = roundstate <= 2
id = 169990
persistent = 1
name = "kill"
pos = 0,0
postype = p1
stateno = 150
helpertype = player
keyctrl = 0
ownpal = 1
ignorehitpause = 1
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = Projectile
triggerall = !ishelper
trigger1 = (GameTime%4) = 1
trigger1 = time >= 80
trigger1 = p2movetype != A
trigger2 = (GameTime%4) = 1
trigger2 = p2movetype = A&&time >= 220
attr = A, NA
projanim = 40010
projid = 40010
projpriority = 2147483647
projsprpriority = 5
projremove = 1
projremovetime = 2
postype = back
offset = 0,0
animtype  = hard
damage = 30+random%20,5+random%20
hitflag = MAFD
guardflag =
pausetime = 9,5
guard.pausetime = 9,5
ground.type = high
ground.slidetime = 18
ground.hittime  = 18
ground.velocity = -0.75,-0.01
guard.velocity = -9.5
air.velocity = -0.75,-0.01
fall = 1
fall.recover = 0
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23000]
type = Projectile
triggerall = !ishelper
trigger1 = (GameTime%3) = 1
attr = S, SP
projanim = 40020
projid =40020
projpriority = 2147483647
projsprpriority = 2147483647
projremove = 1
projremovetime = 2
postype = p1
animtype  = hard
damage    = 10,0
getpower = 10,0
givepower = 0,0
guardflag = M
hitflag = MAFD
pausetime = 2,8
ground.type = low
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -2
air.velocity = -2,-1
pausemovetime = 2147483647
supermovetime = 2147483647

[State 240, 2]
type = Projectile
trigger1 = time = 30
trigger2 = time = 90
trigger3 = time = 150
projanim = 166
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = 120,20
guardflag = MA
hitflag = MAFD
pausetime = 0,70
guard.pausetime = 0,70
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = s225,1
guardsound = s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0
fall.damage=0
;p2stateno = 5110
;p2getp1state = 0

[State 240, 2]
type = Projectile
trigger1 = time >= 210
projanim = 166
projremovetime = 1
attr = SCA, AA,AT,AP
animtype  = hard
damage    = gametime%2
guardflag = MA
hitflag = MAFD
pausetime = 0,2
guard.pausetime = 0,2
sparkno = -1;S502
guard.sparkno = -1;S506
sparkxy = 5,-50
hitsound   = -1,0;s225,1
guardsound = -1,0;s120,0
ground.type = high
ground.slidetime = 10
ground.hittime  = 15
ground.velocity = 0,0
air.velocity = 0,0
fall = 1
fall.recover = 0
yaccel = .5
getpower = 0,0
air.animtype = Up
hitonce = 0

[State 23000]
type = Explod
triggerall = palno = [7,12]
trigger1 = Time = 0
anim = 15170
id = 15170
sprpriority = 2147483647
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = none;add
pausemovetime = 2147483647
supermovetime = 2147483647

[State 23000]
type = Explod
triggerall = palno = [7,12]
trigger1 = Time = 0
anim = 4995
id = 4995
sprpriority = 2147483648
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647
removetime = 236

[State 23000]
type = Explod
triggerall = palno = [7,12]
trigger1 = Time = 0
anim = 395
id = 395
sprpriority = 2147483648
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647
removetime = 236

[State 23000]
type = Explod
triggerall = palno = [7,12]
trigger1 = Time = 0
anim = 13517
id = 13518
sprpriority = 2147483648
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add
pausemovetime = 2147483647
supermovetime = 2147483647
removetime = 236


[State 23000]
type = bgpalfx
trigger1 = 1
time = 10
add = 0,0,0
mul = 0,0,0
sinadd = 0,0,0,0
invertall = 0
color = 0
ignorehitpause = 1

[State 23000]
type = EnvShake
trigger1 = (GameTime%4) = 1
time = 5
ampl = -5
freq = 95
phase = 95

[State 23000]
type = turn
triggerall = !ishelper
trigger1 = p2dist X < 0
trigger1 = fvar(5) < 0
ignorehitpause = 1

[State 23000]
type = PlaySnd
trigger1 = Time = 0
value = 2200,1
volume = 255
freqmul = 0.9
ignorehitpause = 1

[State 23000]
type = PlaySnd
triggerall = palno != [7,12]
trigger1 = time = 10
value = 10000,51
volume = 255
channel = 5
freqmul = 0.7
ignorehitpause = 1

[State 23000]
type = PlaySnd
triggerall = palno != [7,12]
trigger1 = time = 10
value = 2300,0
volume = 255
channel = 6
freqmul = 0.7
ignorehitpause = 1





[State 23000]
type = PlaySnd
triggerall = palno = [7,12]
trigger1 = time = 10
value = 2563,0
volume = 255
channel = 5
ignorehitpause = 1





[State 23000]
type = AttackDist
trigger1 = 1
value = 0

[State 23000]
type = superpause
triggerall = time < 270
trigger1 = win
trigger2 = enemynear,life = 0
time = 1
movetime = 1
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
persistent = 0
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = time >= 270
time = 1
movetime = 0
anim = -1
darken = 0
p2defmul = 1
unhittable = 0
ignorehitpause = 1
[State 23000]
type = pause
triggerall = !win
trigger1 = time > 270
trigger1 = (gametime%2) = 0
time = 1
movetime = 1
persistent = 0
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = !win
trigger1 = time > 270
trigger1 = (gametime%2) = 0
trigger2 = time = 280
anim = -1
time = 1
movetime = 1
ignorehitpause = 1
[State 23000]
type = superpause
trigger1 = win
trigger2 = p2life = 0
time = 2
movetime = 2
anim = -1
darken = 0
persistent = 0
ignorehitpause = 1

[State 23000]
type = changestate
trigger1 = time >= 236
value = 23005
;---------------------------------------------------------------------------------
;廔椆
;---------------------------------------------------------------------------------
[Statedef 23005]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 2211
ctrl = 0

[state 23000]
type = Explod
trigger1 = time = 0
anim = 32200
sprpriority = 214748364
postype = p1
pos = 6,-159
bindtime = -1
supermove = 1
under = 0
ownpal = 1
removetime = 10
scale = 0.65,0.65
supermovetime = 2147483647
pausemovetime = 2147483647

[State 23001]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay

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