;　 　 　 　 ミ ﾐ 〃 〃 彡　
;　　 　 ミ　　　　 　 　 　 彡 　
;　　 .ミ. 　-―-　､__,　　 　 彡　
;　　ミ 　 　'叨¨ヽ　　　`ｰ-､.彡 　
;　　ミ　 　 ` ー　 　 /叨¨)　 ミ　 　 うお、けだまっ
;　　彡 　 　 　 　 　ヽ,　　　 .ミ　 　 
;　　 .彡　　｀ヽ.＿__´,　　　 .ミ 　 
;　　　　彡, 　　 `ﾆ´ 　 　 ミ　　　
;　　　　　　彡 ノ ﾉ ﾉ ミ ﾐ　　　
;-------------------------------------------------------------------------------
[Statedef 5110];ピチューン
type    = L
movetype= I
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
anim = 5110
ctrl = 0
sprpriority = 2

[State 1]
type = selfstate
triggerall = name = "kedama"
trigger1 = var(20)!=gametime + 12345
trigger1 = life >= 10
value = 0
ctrl = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 5110]
type = AssertSpecial
trigger1 = palno >= 7
flag = invisible

[State 5900]
type = Explod
triggerall = palno >= 7
trigger1 = !alive
anim = 19600
ID = 19600
pos = 0, 0
postype = p1
facing = 1
vfacing = 1
bindtime = -1
vel = 0, 0
accel = 0, 0
random = 0, 0
removetime = -2
supermovetime = 9999999
pausemovetime = 9999999
scale = 0.7, 0.7
sprpriority = 2
ontop = 0
shadow = 0, 0, 0
ownpal = 1
removeongethit = 1

[State -3]
type = Powerset
trigger1 = time = 0
trigger1 = var(50) = 1
value = Const(data.power)

[State 5110, b] 
type = PlaySnd
triggerall = !ishelper
trigger1 = time = 0
trigger1 = Life <= 1
trigger1 = palno = [1,12]
value = 5110,0

[State 5110, b] 
type = PlaySnd
triggerall = !ishelper
trigger1 = time = 0
trigger1 = palno >= 7
trigger1 = Life <= 1
value = 1500,7

[State 5110, c]
type = Lifeset
trigger1 = time = 0
trigger1 = Life <= 1
value = 0

[State 5110, d]
type = statetypeset
trigger1 = Life <= 1
movetype = I

[State 0]
type = destroyself
trigger1 = Ishelper
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 5110, e]
type = ChangeState
trigger1 = !alive
value = 5150

[State 5110, g]
type = ChangeState
trigger1 = Time >= 120
value = 0

;-------------------------------------------------------------------------------
[Statedef 5150, ];ガォン
type    = L
movetype= I
physics = N
velset = 0,0
sprpriority = -3
ctrl = 0
anim = 5150

[State 1]
type = selfstate
triggerall = name = "kedama"
trigger1 = Life > 1
trigger2 = var(20)!=gametime + 12345
value = 0
ctrl = 1
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 5110]
type = AssertSpecial
trigger1 = palno >= 7
flag = invisible

[State 0]
type = destroyself
trigger1 = Ishelper
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[State 1400, a]
type = Helper
triggerall = !ishelper
triggerall = Life = 0
trigger1 = time = 4
trigger1 = var(51) = 1
trigger1 = palno != [10,12]
Persistent = 0
name = "P"
helpertype = Normal
stateno = 1400
ID = 1400
pos = 0,-50
postype = p1
keyctrl = 0
ownpal = 1
size.xscale = 0.7
size.yscale = 0.7

[State 1400, b]
type = Helper
triggerall = !ishelper
triggerall = Life = 0
trigger1 = time = 1
trigger1 = var(51) = 1
trigger1 = palno != [10,12]
Persistent = 0
name = "P"
helpertype = Normal
stateno = 1401
ID = 1401
pos = 0,-50
postype = p1
keyctrl = 0
ownpal = 1
size.xscale = 0.7
size.yscale = 0.7

[State 1400, c]
type = Helper
triggerall = !ishelper
triggerall = Life = 0
trigger1 = time = 3
trigger1 = var(51) = 1
trigger1 = palno != [10,12]
Persistent = 0
name = "P"
helpertype = Normal
stateno = 1402
ID = 1402
pos = 0,-50
postype = p1
keyctrl = 0
ownpal = 1
size.xscale = 0.7
size.yscale = 0.7

[State 1400, d]
type = Helper
triggerall = !ishelper
triggerall = Life = 0
trigger1 = time = 2
trigger1 = var(51) = 1
trigger1 = palno != [10,12]
Persistent = 0
name = "P"
helpertype = Normal
stateno = 1403
ID = 1403
pos = 0,-50
postype = p1
keyctrl = 0
ownpal = 1
size.xscale = 0.7
size.yscale = 0.7

[State 1400, e]
type = Helper
triggerall = !ishelper
triggerall = Life = 0
trigger1 = time = 3
trigger1 = var(51) = 1
trigger1 = palno != [10,12]
Persistent = 0
name = "P"
helpertype = Normal
stateno = 1404
ID = 1404
pos = 0,-50
postype = p1
keyctrl = 0
ownpal = 1
size.xscale = 0.7
size.yscale = 0.7

[State 1400, f]
type = Helper
triggerall = !ishelper
triggerall = Life = 0
trigger1 = time = 3
trigger1 = var(51) = 1
trigger1 = palno != [10,12]
Persistent = 0
name = "P"
helpertype = Normal
stateno = 1405
ID = 1405
pos = 0,-50
postype = p1
keyctrl = 0
ownpal = 1
size.xscale = 0.7
size.yscale = 0.7

;-------------------------------------------------------------------------------
;[P]
[Statedef 1400]
type = A
movetype= A
physics = N
velset = 3.3,-3
ctrl = 0
anim = 1400
sprpriority = 5

[State 1]
type = selfstate
triggerall = !ishelper
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 0]
type = destroyself
trigger1 = !Ishelper
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state 3]
type = StateTypeSet
trigger1 = !Ishelper
statetype = S
movetype = I
physics = N

[State 1400, a]
type = HitDef
triggerall = ishelper
trigger1 = time = 0
attr = A, SA
animtype  = Light
damage    =0, 0
affectteam = B
priority  = 5
guardflag = 
givepower =1000,500
pausetime = 0,0
sparkxy = 0,0
sparkno = -1
hitsound   = s100,0
guardsound = 6,0
ground.type = High
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0
guard.velocity = 0
air.velocity = 0,0
fall = 0

[State 1400, b]
type = velset
trigger1 = Pos Y < -175
x=0
y=2

[State 1400, c]
type = DestroySelf
trigger1 = Pos Y >= 0
trigger2 = MoveContact
;--------------------------------------------------
[Statedef 1401]
type = A
movetype= A
physics = N
velset = -3.2,-3
ctrl = 0
anim = 1400
sprpriority = 5

[State 1]
type = selfstate
triggerall = !ishelper
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 0]
type = destroyself
trigger1 = !Ishelper
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state 3]
type = StateTypeSet
trigger1 = !Ishelper
statetype = S
movetype = I
physics = N

[State 1400, a]
type = HitDef
triggerall = ishelper
trigger1 = time = 0
attr = A, SA
animtype  = Light
damage    =0, 0
affectteam = B
priority  = 5
guardflag = 
givepower =1000,500
pausetime = 0,0
sparkxy = 0,0
sparkno = -1
hitsound   = s100,0
guardsound = 6,0
ground.type = High
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0
guard.velocity = 0
air.velocity = 0,0
fall = 0

[State 1400, b]
type = velset
trigger1 = Pos Y < -155
x=0
y=2

[State 1400, c]
type = DestroySelf
trigger1 = Pos Y >= 0
trigger2 = MoveContact
;----------------------------------------------------
[Statedef 1402]
type = A
movetype= A
physics = N
velset = -1.5,-3
ctrl = 0
anim = 1400
sprpriority = 5

[State 1]
type = selfstate
triggerall = !ishelper
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 0]
type = destroyself
trigger1 = !Ishelper
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state 3]
type = StateTypeSet
trigger1 = !Ishelper
statetype = S
movetype = I
physics = N

[State 1400, a]
type = HitDef
triggerall = ishelper
trigger1 = time = 0
attr = A, SA
animtype  = Light
damage    =0, 0
affectteam = B
priority  = 5
guardflag = 
givepower =1000,500
pausetime = 0,0
sparkxy = 0,0
sparkno = -1
hitsound   = s100,0
guardsound = 6,0
ground.type = High
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0
guard.velocity = 0
air.velocity = 0,0
fall = 0

[State 1400, b]
type = velset
trigger1 = Pos Y < -160
x=0
y=2

[State 1400, c]
type = DestroySelf
trigger1 = Pos Y >= 0
trigger2 = MoveContact
;----------------------------------------------------
[Statedef 1403]
type = A
movetype= A
physics = N
velset = 1,-3
ctrl = 0
anim = 1400
sprpriority = 5

[State 1]
type = selfstate
triggerall = !ishelper
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 0]
type = destroyself
trigger1 = !Ishelper
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state 3]
type = StateTypeSet
trigger1 = !Ishelper
statetype = S
movetype = I
physics = N

[State 1400, a]
type = HitDef
triggerall = ishelper
trigger1 = time = 0
attr = A, SA
animtype  = Light
damage    =0, 0
affectteam = B
priority  = 5
guardflag = 
givepower =1000,500
pausetime = 0,0
sparkxy = 0,0
sparkno = -1
hitsound   = s100,0
guardsound = 6,0
ground.type = High
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0
guard.velocity = 0
air.velocity = 0,0
fall = 0

[State 1400, b]
type = velset
trigger1 = Pos Y < -155
x=0
y=2

[State 1400, c]
type = DestroySelf
trigger1 = Pos Y >= 0
trigger2 = MoveContact
;--------------------------------------------------------
[Statedef 1404]
type = A
movetype= A
physics = N
velset = 0.5,-5
ctrl = 0
anim = 1410
sprpriority = 5

[State 1]
type = selfstate
triggerall = !ishelper
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 0]
type = destroyself
trigger1 = !Ishelper
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state 3]
type = StateTypeSet
trigger1 = !Ishelper
statetype = S
movetype = I
physics = N

[State 1400, a]
type = HitDef
triggerall = ishelper
trigger1 = time = 0
attr = A, SA
animtype  = Light
damage    =0, 0
affectteam = B
priority  = 5
guardflag = 
givepower =2500,1250
pausetime = 0,0
sparkxy = 0,0
sparkno = -1
hitsound   = s100,0
guardsound = 6,0
ground.type = High
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0
guard.velocity = 0
air.velocity = 0,0
fall = 0

[State 1400, b]
type = velset
trigger1 = Pos Y < -165
x=0
y=2

[State 1400, c]
type = DestroySelf
trigger1 = Pos Y >= 0
trigger2 = MoveContact
;--------------------------------------------------------
[Statedef 1405]
type = A
movetype= A
physics = N
velset = -1,-4
ctrl = 0
anim = 1410
sprpriority = 5

[State 1]
type = selfstate
triggerall = !ishelper
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 0]
type = destroyself
trigger1 = !Ishelper
ignorehitpause = 1
pausemovetime = 99999999
supermovetime = 99999999

[state 3]
type = StateTypeSet
trigger1 = !Ishelper
statetype = S
movetype = I
physics = N

[State 1400, a]
type = HitDef
triggerall = ishelper
trigger1 = time = 0
attr = A, SA
animtype  = Light
damage    =0, 0
affectteam = B
priority  = 5
guardflag = 
givepower =2500,1250
pausetime = 0,0
sparkxy = 0,0
sparkno = -1
hitsound   = s100,0
guardsound = 6,0
ground.type = High
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0
guard.velocity = 0
air.velocity = 0,0
fall = 0

[State 1400, b]
type = velset
trigger1 = Pos Y < -180
x=0
y=2

[State 1400, c]
type = DestroySelf
trigger1 = Pos Y >= 0
trigger2 = MoveContact
;-------------------------------------------------------------------------------
;　　　　　　　　　　　　　　　　ﾋﾟｭ ―――― ｯｯ ! ! !
;
;　　　　　　　　　　　 　　　　　　　o　　,(毛) 　 ﾟ　｡
;　　　　　　　　　　　 　　　　　　　　 ､,i, , , ,i,　
;　　　　　＿ 　　　　　　　　　　　　　ﾐ　　　 ミ　 ＝-
;　 ┌─┴┴─┐　　　　　　　　　　ﾐ　､､､ﾐミ 　＝-
;　　|.←即死　 .│　 　　　　　　(( ⊂ﾐi　､､Ξ　　＝-
;　 └─┬┬─┘　 　　　　　　　　 , '´ ￣ ヽ,　　≡＝-
;, ,､ ,, , ,,││,, ,､ ,,, ,　　　　　　　　　 ﾞﾞﾉﾌヽ.)゛゛　＝-
;　　　　￣ ￣￣　　　　　 　　　　　　 ￣ ￣￣
;-------------------------------------------------------------------------------
[Statedef 1300]
type    = U
movetype= H
physics = N
poweradd= 0
velset = -5,-3
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 1300]
type = lifeset
triggerall = name != "kedama"
trigger1 = time= 0
value = 0
ignorehitpause = 1

[State 1300,lifeadd]
type = lifeadd
triggerall = name != "kedama"
trigger1 = time = 1
value = -99999999999999999999999999999
absolute = 1
ignorehitpause = 1

[State 1300,destroyself]
type = destroyself
trigger1 = ishelper
ignorehitpause = 1

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

[State 1300,velset]
type = velset
trigger1 = !alive
x = 0
y = 0
ignorehitpause = 1

[State 1300,velset]
type = posset
trigger1 = !alive
y = 0
ignorehitpause = 1

[State 1300,changestate]
type = changestate
trigger1 = !alive
value = 5150
ignorehitpause = 1
;-------------------------------------------------------------------------------
[Statedef 1499];毛玉
type = S
movetype= I
physics = N
anim = 1530
velset = 0, 0
ctrl = 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 1499]
type = SuperPause
trigger1 = Time = 0
pos = 0, -16
anim = S6000
sound = S1500, 12
movetime = 0
time = 60
darken = 1
poweradd = -1000;ゲージの無駄遣い

[State 1499];9P用制限
type = Helper
triggerall = Numhelper(1501) < 7
triggerall = palno = 9
trigger1 = time%5 = 0
trigger1 = time >= 1
helpertype = player
ID = 1501
name = "minna"
sprpriority = 2
pos = 0, -50
postype = p1
stateno = 150
size.xscale = 1
size.yscale = 1
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State 1499]
type = ChangeState
trigger1 = time = 120
trigger2 = roundstate != 2 
value = 0
ctrl = 1

[Statedef 1500];発動
type = S
movetype= I
physics = N
anim = 1530
velset = 0, 0
ctrl = 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 1500, 1]
type = SuperPause
trigger1 = Time = 0
pos = 0, -16
anim = S6000
sound = S1500, 5
movetime = 0
time = 60
darken = 1
poweradd = -1000;ゲージの無駄遣い

[State 1500];9P用補助
type = Helper
triggerall = Numhelper(1500) < 7
triggerall = palno = 9 || palno = 12
trigger1 = time%5 = 0
trigger1 = time >= 30
helpertype = player
ID = 1500
name = "kotti"
sprpriority = 5
pos = 0, -50
postype = p1
stateno = 150
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State 1500];8P用
type = Helper
triggerall = Numhelper(1500) < 3
triggerall = palno = 8
trigger1 = time = 30
trigger2 = time = 47
helpertype = player
ID = 1500
name = "kotti"
sprpriority = 5
pos = 0, -50
postype = p1
stateno = 150
ignorehitpause = 1
pausemovetime = 99999
supermovetime = 99999

[State 1500]
type = ChangeState
trigger1 = time = 60
trigger2 = roundstate != 2 
value = 0
ctrl = 1

;-------------------------------------------------------------------------------
[Statedef 20000];グラビティ
type = S
movetype= I
physics = N
anim = 1520
ctrl = 0

[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 1100, エフェクト表示];落下中
type = Explod
trigger1 = time = 1
persistent = 0
anim = 20000
ID = 20000
postype = front
pos = ifelse(facing=-1,0,-320),0
scale = 1.1,1.1
ontop = 1
ownpal = 1
sprpriority = 0
bindtime = -1
removetime = 216
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999
ignorehitpause = 1

[State 1000]
type = AssertSpecial
trigger1 = 1
flag = noBG
flag2 = nobardisplay
ignorehitpause = 1

[State 1100, エフェクト表示];落ちてきたぞ
type = Explod
trigger1 = time = 217
persistent = 0
anim = 20001
ID = 20001
postype = front
pos = ifelse(facing=-1,0,-320),0
scale = 1.1,1.1
ontop = 1
ownpal = 1
sprpriority = 0
bindtime = -1
removetime = 381
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999
ignorehitpause = 1

[State 1510]
type = varset
trigger1 = Time = 450
var(19) = 1
ignorehitpause = 1

[State 1100, エフェクト表示];どーん
type = Explod
trigger1 = time = 598
persistent = 0
anim = 20002
ID = 20002
postype = front
pos = ifelse(facing=-1,0,-320),0
scale = 1.1,1.1
ontop = 1
ownpal = 1
sprpriority = 0
bindtime = -1
removetime = 96
removeongethit = 1
supermovetime = 9999999
pausemovetime = 9999999
ignorehitpause = 1

[State 10000, 背景];フラッシュ
type = AllPalFX
trigger1 = time = 696
time = 25
add = time*4,time*4,time*4
mul = 256,256,256
sinadd = 256,256,256,10
invertall = 0
color = 256
ignorehitpause = 1

[State 1510];闇の深遠にて
type = PlaySnd
trigger1 = time = 1
value = 1500,8
ignorehitpause = 1

[State 1510];グラビティブレス
type = PlaySnd
trigger1 = time = 520
value = 1500,9
ignorehitpause = 1

[State 1510];スパーク
type = PlaySnd
trigger1 = time = 300
trigger2 = time = 310
trigger3 = time = 360
trigger4 = time = 390
trigger5 = time = 420
trigger6 = time = 480
trigger7 = time = 510
value = 20000,0
ignorehitpause = 1

[State 1510];クラッシュ
type = PlaySnd
trigger1 = time = 555
trigger2 = time = 570
trigger3 = time = 585
trigger4 = time = 650
value = 20000,1
ignorehitpause = 1

[State 10000, どーん]
type = EnvShake
trigger1 = time = 555
trigger2 = time = 570
trigger3 = time = 585
trigger4 = time = 650
time = 12
freq = 90
ampl = -15
phase = 0
ignorehitpause = 1

[State 300 , 人操作用]
type = Changestate
triggerall = name = "kedama"
trigger1 = time = 750
value = 0
ctrl = 1
ignorehitpause = 1

[State 3000]
type = Projectile
trigger1 = time = 555
trigger2 = time = 570
trigger3 = time = 585
trigger4 = time = 650
;trigger5 = time%10 = 0
;trigger5 = time >= 500
projID = gametime + 5
projanim = 3000
projremove = 0
projpriority = 10
projhitanim = -1
projremanim = -1
projsprpriority = 8
projshadow = 0,0,0
projremovetime = 10
sparkno = -1
offset = 0,0
velocity = 0,0
attr = S, HP
animtype = Hard
damage = 17,10
guardflag = MA
hitflag = MAFD
supermovetime = 9999999
pausemovetime = 9999999
ignorehitpause = 1
ID = gametime + 5

