
;===============================================================================
[Statedef 47714]
type = S
movetype= I
physics = N
poweradd= -1000
anim = 1520
ctrl = 0

[State 5900]
type = Explod
trigger1 = time = 5
anim = 19500
ID = 19500
pos = 0, -16
postype = p1
facing = 1
vfacing = 1
bindtime = -1
vel = 0, 0
accel = 0, 0
random = 0, 0
removetime = 76
scale = 1,1
sprpriority = 2
ontop = 0
shadow = 0, 0, 0
ownpal = 1
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999

[State 1480] 
type = PlaySnd
triggerall = palno = [7,9]
trigger1 = time = 1
value = 1500,6

[State -2]
type = LifeAdd
triggerall = name = "kedama"
trigger1 = palno = 6
trigger1 = time= 1
value = (lifemax/4)
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = LifeAdd
triggerall = name = "kedama"
trigger1 = palno = 8
trigger1 = time= 1
value = (lifemax/5)
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = LifeAdd
triggerall = name = "kedama"
trigger1 = palno = 9
trigger1 = time = 1
value = (lifemax/5)
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 4771104]
type = Changestate
trigger1 = time = 90
value = 0
ctrl = 1
ignorehitpause = 1

;-------------------------------------------------------------------------------
[Statedef 1480]
type     = S
movetype = I
physics  = N
juggle   = 0
ctrl     = 0
poweradd = 110
sprpriority = 2

[State 1]
type = selfstate
triggerall = name = "kedama"
trigger1 = var(20)!=gametime + 12345
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ctrl = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = ChangeAnim
triggerall = palno = [8,9]
trigger1 = Anim = 200 && AnimTime = 0
value = 200

[State 1480] 
type = PlaySnd
trigger1 = time = 1
value = 20000,5

[State 200,弾]
type = Projectile
trigger1 = time = 1
projID = gametime*2
projanim = 1600
;projhitanim = 1
;projremanim = 1
;projcancelanim = 1
projscale = 1, 1
projremove = 0
projremovetime = -1
velocity = 7, 0
remvelocity = 0, 0
accel = 0, 0
velmul = 1, 1
projhits = 1
projmisstime = 0
projpriority = 100
projsprpriority = 5
projedgebound = 50
projstagebound = 50
projheightbound = -240, 1
offset = 0, -16
postype = p1
projshadow = 0, 0, 0
supermovetime = 0
pausemovetime = 0
attr = S, SP
damage = 20,10
animtype = medium
guardflag = MA
hitflag = MAFD
priority = 7, Hit
pausetime = 0, 2
sparkno = -1
guard.sparkno = 40
sparkxy = -10, 0
hitsound = s500,3
guardsound = s500,4
ground.type = high
ground.slidetime = 2
ground.hittime  = 10
ground.velocity = -4,4
airguard.velocity = -1,-1
air.type = Low
air.velocity = -1,-1
air.hittime = 3
id = gametime*2

[State 1480 , AI用（連射力強化）]
type = Ctrlset
triggerall = Var(59) = 1
trigger1 = time = 35
value = 1

;-------------------------------------------------------------------------------
[Statedef 19999];詠唱1
type = S
movetype= I
physics = N
poweradd= -5000
anim = 1530
ctrl = 0

[State 1480] 
type = PlaySnd
trigger1 = time = 1
value = 20000,6

[State 1114,palfx]
type = PalFX
trigger1 = time = 1
time = 180
add = 48,32,114
mul = 48,32,114
sinadd = 256,256,256,10
invertall = 0
color = 256
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999

[State 19000];擬似暗転
type = Explod
trigger1 = time = 1
persistent = 0
anim = 19010
ID = 19010
postype = front
pos = ifelse(facing=-1,0,-320),0
scale = 1.1,1.1
ontop = 1
ownpal = 1
sprpriority = 0
bindtime = -1
removetime = 180
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999
ignorehitpause = 1

[State 5900]
type = Explod
trigger1 = time = 1
anim = 19000
ID = 19000
pos = 0, -43
postype = p1
facing = 1
vfacing = 1
bindtime = -1
vel = 0, 0
accel = 0, 0
random = 0, 0
removetime = 180
scale = 0.7, 0.7
sprpriority = 2
ontop = 0
shadow = 0, 0, 0
ownpal = 1
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999

[State 19000];発動
type = Changestate
trigger1 = time = 180
value = 20000
ctrl = 0
ignorehitpause = 1

;-------------------------------------------------------------------------------
[Statedef 990];詠唱2
type = S
movetype= I
physics = N
poweradd= -4000
anim = 1530
ctrl = 0

[State 1480] 
type = PlaySnd
trigger1 = time = 1
value = 20000,6
ignorehitpause = 1

[State 600, 2] 
type = PlaySnd
trigger1 = time = 10
value = 1500,4
ignorehitpause = 1

[State 1114,palfx]
type = PalFX
trigger1 = time = 1
time = 240
add = 48,32,114
mul = 48,32,114
sinadd = 256,256,256,10
invertall = 0
color = 256
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999

[State 19000];擬似暗転
type = Explod
trigger1 = time = 1
persistent = 0
anim = 19010
ID = 19010
postype = front
pos = ifelse(facing=-1,0,-320),0
scale = 1.1,1.1
ontop = 1
ownpal = 1
sprpriority = 0
bindtime = -1
removetime = 240
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999
ignorehitpause = 1

[State 5900]
type = Explod
trigger1 = time = 1
anim = 19000
ID = 19000
pos = 0, -43
postype = p1
facing = 1
vfacing = 1
bindtime = -1
vel = 0, 0
accel = 0, 0
random = 0, 0
removetime = 240
scale = 0.7, 0.7
sprpriority = 2
ontop = 0
shadow = 0, 0, 0
ownpal = 1
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999

[State 19000];発動
type = Changestate
trigger1 = time = 240
value = 995
ctrl = 0
ignorehitpause = 1

;-------------------------------------------------------------------------------
[Statedef 181818]
type    = U
movetype= H
physics = N
poweradd= 0
velset = 0,0
ctrl = 0
facep2 = 1

[State 1]
type = selfstate
triggerall = name = "kedama"
trigger1 = 1
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ctrl = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 1]
type = PalFX
trigger1 = time = 1
time = 30
add = 0,85,210
mul = 0,85,210
sinadd = 256,256,256,5
invertall = 0
color = 256
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999

[State 181818]
type = lifeadd
triggerall = name != "kedama"
trigger1 = time = 1
value = -(lifemax/15)
absolute = 1
ignorehitpause = 1

[State 181818];ヘルパーはさようなら
type = destroyself
trigger1 = ishelper
ignorehitpause = 1

[State 181818]
type = selfstate
triggerall = time > 0
trigger1 = alive
value = 50
ignorehitpause = 1

[State 181818]
type = changestate
trigger1 = !alive
value = 5150
ignorehitpause = 1

;-------------------------------------------------------------------------------
;自爆
[Statedef 3010]
type     = S
movetype = I
physics  = N
juggle   = 0
ctrl     = 0
poweradd = 0
sprpriority = 2

[State 1]
type = selfstate
triggerall = name = "kedama"
trigger1 = var(20)!=gametime + 12345
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ctrl = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 6] 
type = PlaySnd
trigger1 = time = 1
trigger2 = time = 51
trigger3 = time = 101
value = 2000,3

[State 200] 
type = changeanim
trigger1 = palno < 7
value = 0

[State 200] 
type = changeanim
trigger1 = palno > 6
value = 3020

[State 1]
type = PalFX
trigger1 = time = 1
time = 130
add = 0,0,0
mul = 256,64,64
sinadd = 256,256,256,10
invertall = 0
color = 256

[State 10]
type = ChangeState
triggerall = palno = [1,8]
trigger1 =Time = 133
value = 3000
ctrl = 0

[State 10]
type = ChangeState
triggerall = palno = 9
trigger1 =Time = 105
value = 3123
ctrl = 0

;-------------------------------------------------------------------------------
[Statedef 3000]
type     = S
movetype = I
physics  = N
juggle   = 0
ctrl     = 0
poweradd = 0
sprpriority = 2

[State 200, 2] 
type = changeanim
trigger1 = palno < 7
value = 0

[State 200, 2] 
type = changeanim
trigger1 = palno > 6
value = 1520

[State 20];いいですとも
type = SuperPause
trigger1 = time = 1
anim = -1
poweradd = -530000000
movetime = 1860
time = 1860

[State -2];演出用１
type = assertspecial
trigger1 = 1
flag = nomusic
flag2 = nobardisplay
ignorehitpause = 1

[State 200];BGM
type = PlaySnd
trigger1 = time = 1
value = 2000,1
channel = 2

[State 200];爆発音
type = PlaySnd
trigger1 = time = 1851
value = 2000,0

[State 11]
type = PalFX
trigger1 = time = 1
time = 300
add = 0,0,0
mul = 256,64,64
sinadd = 256,256,256,10
invertall = 0
color = 256

[State 289];思い出
type = Explod
trigger1 = time = 300
persistent = 0
anim = 2000
postype = front
pos = ifelse(facing=-1,0,-320),0
ontop = 1
ownpal = 1
sprpriority = 0
bindtime = -1
removetime = 1630
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999

[State 1];フラッシュ
type = AllPalFX
trigger1 = time = 1850
time = 201
add = time*4,time*4,time*4
mul = 256,256,256
sinadd = 256,256,256,10
invertall = 0
color = 256

[State 1];震源地
type = EnvShake
trigger1 = time = 1
trigger2 = time = 1830
time = 270
freq = 90
ampl = -3
phase = 0

[State -2]
type = Helper
trigger1 = time = 1830
helpertype = player
name = "kako no eikou"
ID = 289289
stateno = 289289
supermovetime = 999999999999
pausemovetime = 999999999999
ignorehitpause = 1

[State -2]
type = changestate
trigger1 = time = 2050
value = 3001
ctrl = 0

;------------------------------------------------------------------------------
[Statedef 3001]
type     = S
movetype = I
physics  = N
juggle   = 0
ctrl     = 0
poweradd = 0
sprpriority = 2

[State 200];BGMstop
type = stopSnd
trigger1 = time = 1
channel = 2

[State -2]
type = Lifeset
triggerall = var(52) = 1
triggerall = palno = [1,7]
triggerall = Roundno = 3
trigger1 = time = 2
value = 1
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State -2]
type = Lifeadd
triggerall = var(52) = 1
triggerall = palno = 8
triggerall = Roundno = 3
trigger1 = time = 1
value = -50000
absolute = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 1] 
type = changeanim
triggerall = palno = 8
trigger1 = time = 0
trigger2 = time = 185
trigger3 = time = 205
value = 3030

[State 1] 
type = changeanim
triggerall = palno = 8
trigger1 = time = 180
trigger2 = time = 195
value = 3035

[State 1] 
type = PlaySnd
trigger1 = time = 8
trigger2 = time = 180
trigger3 = time = 195
value = 190,3

[State -2]
type = changestate
triggerall = palno = [1,7]
trigger1 = time = 2
value = 0
ctrl = 1

[State -2]
type = Varset
trigger1 = palno = 8
trigger1 = time = 299
var(52) = 0
ignorehitpause = 1

[State -2]
type = changestate
triggerall = palno = 8
trigger1 = time = 300
value = 0
ctrl = 1

;-------------------------------------------------------------------------------
[Statedef 3123]
type     = S
movetype = I
physics  = N
juggle   = 0
ctrl     = 0
poweradd = 0
sprpriority = 2

[State 1];フラッシュ
type = AllPalFX
trigger1 = time = 0
time = 20
add = 255,255,255
mul = 256,256,256
sinadd = 256,256,256,10
invertall = 0
color = 256

[State 1];
type = AllPalFX
trigger1 = time = 20
time = 50
add = time*5,time*2,0
mul = 256,100,0
sinadd = 256,100,0,10
invertall = 0
color = 256

[State 200];爆発音
type = PlaySnd
trigger1 = time = 1
value = 2000,0

[State 1];
type = EnvShake
trigger1 = time = 0
trigger2 = time = 20
trigger3 = time = 40
trigger4 = time = 50
time = 10
freq = 90
ampl = -3
phase = 0

[State 1] 
type = changeanim
triggerall = palno = 9
trigger1 = time = 0
trigger2 = time = 130
trigger3 = time = 150
value = 3030

[State 1] 
type = changeanim
triggerall = palno = 9
trigger1 = time = 120
trigger2 = time = 140
value = 3035

[State 1] 
type = PlaySnd
trigger1 = time = 120
trigger2 = time = 140
value = 190,3

[State -2]
type = Helper
trigger1 = time = 1
helpertype = player
name = "kako no eikou"
ID = 289289
stateno = 289289
supermovetime = 999999999999
pausemovetime = 999999999999
ignorehitpause = 1

[State -2]
type = changestate
triggerall = palno = 9
trigger1 = time = 180
value = 0
ctrl = 1

;-------------------------------------------------------------------------------
[Statedef 11485]
type     = S
movetype = I
physics  = N
juggle   = 0
ctrl     = 0
poweradd = 250
sprpriority = 2

[State 0]
type = Explod
trigger1 = time = 0
anim = 1200
ID = 1200
pos = 0,-16
postype = p1
facing = 1
vfacing = 1
bindtime = -1
vel = 0, 0
accel = 0, 0
random = 0, 0
removetime = 68
scale = 1, 1
sprpriority = 5
ontop = 0
shadow = 0, 0, 0
ownpal = 1
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999

[State 0]
type = Explod
trigger1 = time = 55
anim = 1212
ID = 1212
pos = 25,-16
postype = p1
facing = 1
vfacing = 1
bindtime = -1
vel = 0, 0
accel = 0, 0
random = 0, 0
removetime = -2
scale = 0.4, 2.5
sprpriority = 2
ontop = 0
shadow = 0, 0, 0
ownpal = 1
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999

[State 1] 
type = changeanim
triggerall = palno = 9
trigger1 = time = 0
value = 1520

[State 1] 
type = changeanim
triggerall = palno = 9
trigger1 = time = 48
value = 200

[State 1480] 
type = PlaySnd
trigger1 = time = 60
value = 190,2
ignorehitpause = 1

[State 2]
type = Helper
trigger1 = time = 28
helpertype = player
name = "genke"
ID = 1459
pos = 0, -16
postype = p1
facing = 1
stateno = 1459
keyctrl = 0
ownpal = 1
supermovetime = 9999999
pausemovetime = 9999999
size.xscale = 1
size.yscale = 1
size.ground.back = 0
size.ground.front = 0
size.air.back = 0
size.air.front = 0
size.height = 0
size.proj.doscale = 0
size.head.pos = 0, 0
size.mid.pos = 0, 0
size.shadowoffset = 0

[State -2]
type = changestate
triggerall = palno = 9
trigger1 = time = 150
value = 0
ctrl = 1

;-------------------------------------------------------------------------------
[Statedef 289289]
type    = A
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 3000

[State -2]
type = SelfState
triggerall = !ishelper
triggerall = name = "kedama"
trigger1 = 1
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[state 1]
type = nothitby
triggerall = ishelper(289289)
trigger1 = 1
value = SCA
time = -1
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999

[State -2]
type = HitOverride
triggerall = ishelper(289289)
trigger1 = 1
attr = SCA,NA,SA,HA,NT,ST,HT,NP,SP,HP,AA,AT,AP
stateno = 289289
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 1];攻撃
type = HitDef
triggerall = ishelper(289289)
triggerall =root,palno = [1,8]
trigger1 = time = 1
trigger2 = movecontact = 5
trigger2 = hitcount <= 19
attr = S, HA
;affectteam = B
animtype  = hard
damage    = 25,15
getpower = 0,0
guardflag = M
numhits = 1
pausetime = 0,6
guard.pausetime = 0,8
sparkxy = -2,floor(enemy,pos y)+200
ground.type = high
ground.slidetime = 19
ground.hittime  = 19
ground.velocity = ifelse(enemy,BackEdgeBodyDist <= 10,0,-8),-6
air.velocity = ifelse(enemy,BackEdgeBodyDist <= 10,0,-8),-6.5
fall = 1
air.fall = 1
fall.recover = 0
nochainid = 289289
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999

[State 1];攻撃
type = HitDef
triggerall = ishelper(289289)
triggerall =root,palno = 9
trigger1 = time = 1
trigger2 = movecontact = 2
trigger2 = hitcount <= 24
attr = S, HA
;affectteam = B
animtype  = hard
damage    = 30,15
getpower = 0,0
guardflag = 
numhits = 1
pausetime = 0,6
guard.pausetime = 0,8
sparkxy = -2,floor(enemy,pos y)+200
ground.type = high
ground.slidetime = 19
ground.hittime  = 19
ground.velocity = ifelse(enemy,BackEdgeBodyDist <= 10,0,-8),-6
air.velocity = ifelse(enemy,BackEdgeBodyDist <= 10,0,-8),-6.5
fall = 1
air.fall = 1
fall.recover = 0
nochainid = 289289
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999

[state 1];ヘルパー消去
type = destroyself
triggerall = ishelper(289289)
trigger1 = root,palno = [1,8]
trigger1 = root,stateno != 3000
trigger2 = root,palno = 9
trigger2 = root,stateno != 3123
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999

;-------------------------------------------------------------------------------
[Statedef 1459]
type    = A
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 1210
sprpriority = 5

[State -2]
type = SelfState
triggerall = !ishelper
triggerall = name = "kedama"
trigger1 = 1
value = (statetype=S)*151+(statetype=C)*153+(statetype=A)*155+(statetype=L)*151
ignorehitpause = 1
pausemovetime = 9999999
supermovetime = 9999999

[State -2]
type = Velset
triggerall = ishelper(1459)
trigger1 = time = 30
x = 5
y = 0

[State 155]
type = BindToRoot
triggerall = ishelper(1459)
trigger1 = time <= 30
pos = 0, -16
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 1];攻撃
type = HitDef
triggerall = ishelper(1459)
triggerall =root,palno = 9
trigger1 = time = 1
trigger2 = movecontact = 4
attr = S, SA
animtype  = hard
damage    = 20,5
getpower = 0,0
guardflag = M
numhits = 1
pausetime = 0,6
guard.pausetime = 0,8
sparkno = S19600
sparkxy = 0,0
ground.type = high
ground.slidetime = 13
ground.hittime  = 13
ground.velocity = ifelse(enemy,BackEdgeBodyDist <= 10,0,-8),-6
air.velocity = ifelse(enemy,BackEdgeBodyDist <= 10,0,-8),-6.5
getpower = 1,10
fall = 1
air.fall = 1
fall.recover = 0
nochainid = 1459
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999

[state 1];ヘルパー消去
type = destroyself
triggerall = ishelper(1459)
triggerall = root,palno = 9
trigger1 = time = 110
trigger2 = !ishelper
ignorehitpause = 1
supermovetime = 999999999999
pausemovetime = 999999999999

