;本体サポートヘルパー
[statedef 3000]
type=S
movetype=I
physics=N
[state ]
type=changeanim
trigger1=anim!=3000||anim!=3001
value=3000
ignorehitpause=1
[state ]
type=nothitby
trigger1=1
value=SAC
ignorehitpause=1
[state ]
type=bindtoroot
trigger1=1
ignorehitpause=1
[state ]
type=turn
trigger1=parent,facing!=facing
ignorehitpause=1
[state ]
type=superpause
trigger1=roundstate!=2
time=0
movetime=0
anim=-1
Sound=-1
Darken=0
ignorehitpause=1
[state ]
type=pause
trigger1=roundstate!=2
time=0
movetime=0 
ignorehitpause=1
[state ]
type = superpause
trigger1=root,palno!=12
trigger1=enemy,life=0
trigger1=gametime%10=0
trigger1=!win
time=2
movetime=2
anim=-1
Sound=-1
Darken=0
ignorehitpause=1
[state 1]
type = explod
trigger1=!root,loseko
trigger1=!numexplod(20020)
postype = p1
bindtime = -1
pos = 0,-70
anim = 20020
id = 20020
sprpriority = 2
removetime = -2
scale = 1.2,1.2
ownpal = 1
trans = add
supermovetime=2147483647
pausemovetime=2147483647
[state ]
type=changeanim
trigger1=!numtarget
value=3000
[state ]
type=reversaldef
trigger1=1
reversal.attr=SCA,AA,AT,AP
hitflag=M-
priority=7
pausetime=0,0
numhits = 0
sparkno=-1
hitsound=-1
[state ]
type=targetdrop
trigger1=numtarget
trigger1=target,ishelper
;=========================================================================
;ヘルパージェネレーター
[state ]
type=helper
trigger1=!numhelper(99998)
trigger1=root,hitpausetime>20
helpertype=player
postype=p1
pos=0,0
id=99998
stateno=99998
ownpal=1
ignorehitpause=1
supermovetime=2147483647
pausemovetime=2147483647
[state ]
type=helper
trigger1=root,anim=1100
trigger1=root,animelemtime(1)=20
helpertype=normal
name="ball"
id=1101
postype=p1
pos=0,-80
stateno=1101
ownpal=1
[state ]
type=helper
trigger1=root,anim=1100
trigger1=root,animelemtime(1)=20
helpertype=normal
name="ball"
id=1102
postype=p1
pos=0,-80
stateno=1101
ownpal=1
[state ]
type=helper
trigger1=root,anim=1100
trigger1=root,animelemtime(1)=20
helpertype=normal
name="ball"
id=1103
postype=p1
pos=0,-80
stateno=1101
ownpal=1
[state ]
type=helper
trigger1=root,anim=1100
trigger1=root,animelemtime(1)=20
helpertype=normal
name="ball"
id=1104
postype=p1
pos=0,-80
stateno=1101
ownpal=1
[state ]
type=helper
trigger1=root,anim=1200
trigger1=root,animelem=5
postype=p1
pos=0,0
id=1201
stateno=1201
ownpal=1
keyctrl=0
[state ]
type=helper
trigger1=root,anim=1210
trigger1=root,animelem=6
postype=p1
pos=0,0
id=1211
stateno=1211
ownpal=1
keyctrl=0
;=========================================================================
[state ]
type=changestate
trigger1=root,anim=2000&&root,animelemtime(1)>52
value=3001
[statedef 3001]
[state ]
type=superpause
trigger1=roundstate!=2
time=0
movetime=0
anim=-1
Sound=-1
Darken=0
ignorehitpause=1
[state ]
type=pause
trigger1=roundstate!=2
time=0
movetime=0
ignorehitpause=1
[state ]
type=reversaldef
trigger1=1
reversal.attr=SCA,AA,AT,AP
hitflag=M-
priority=7
pausetime=0,2
numhits = 0
sparkno=-1
hitsound=-1
p2stateno=2003
[state ]
type=targetdrop
trigger1=numtarget
trigger1=target,ishelper
[state ]
type=hitby
trigger1=root,anim=2000
value=C,HP
[state ]
type=helper
trigger1=!numhelper(2002)
helpertype=normal
postype=p1
pos=0,0
id=2002
stateno=2002
ownpal=1
ignorehitpause=1
[state ]
type=changestate
trigger1=!(root,anim=2000&&root,animelemtime(1)>52)
value=3000
;=========================================================================
;凍結解除hitdefヘルパー
[statedef 99998]
type=S
movetype=A
physics=N
anim=99998
[state ]
type=bindtoroot
trigger1=1
ignorehitpause=1
[state ]
type=hitby
trigger1=1
value= C,HP
ignorehitpause=1
[State ]
type = HitDef
trigger1 = 1
attr = S,NA
damage = 0
getpower = 0
givepower = 0
hitflag = MAFD
sparkno = -1
guard.sparkno = -1
pausetime = 1,0
guard.pausetime = 1,0
affectteam = F
ignorehitpause = 1
[state ]
type=destroyself
trigger1=root,hitpausetime=0
ignorehitpause=1
;=========================================================================
;ライトニングボール
[statedef 1101]
type=S
movetype=A
physics=N
anim=1101
[state ]
type=assertspecial
trigger1=1
flag=noshadow
[state 1]
type = explod
trigger1=!time
postype=p1
bindtime=-1
pos=0,0
anim=20020
id=20020
sprpriority=2
removetime=1
scale = 0.7,0.7
ownpal = 1
trans = add
[state 1]
type = explod
trigger1=!time
postype=p1
bindtime=-1
pos=0,0
anim=1102
id=1102
sprpriority=2
removetime=1
ownpal = 1
[state ]
type=modifyexplod
trigger1=1
removetime=time+1
[state ]
type=turn
trigger1=fvar(7):=abs(enemynear,pos x-pos x) ||1
trigger1=var(3):=((pos x<enemynear,pos x&&facing=1)||(enemynear,pos x<pos x&&facing=-1))||1
trigger1=!var(3)
trigger1=time<15
[state ]
type=velset
trigger1=!time
x=6-(ishelper(1103)||ishelper(1104))*12
y=-6+(ishelper(1102)||ishelper(1104))*12
[state ]
type=velset
trigger1=time=10
x=0
y=0
[state ]
type=veladd
trigger1=time>15
trigger1=vel x<7
x=0.35
[state ]
type=veladd
trigger1=time>15
trigger1=enemy,pos y-80>pos y
y=0.2
[state ]
type=veladd
trigger1=time>15
trigger1=enemy,pos y-80<pos y
y=-0.2
[state ]
type=velset
trigger1=time>15
trigger1=vel y>2
y=2
[state ]
type=velset
trigger1=time>15
trigger1=vel y<-2
y=-2
[state ]
type=changestate
trigger1=fvar(7)<30&&(enemynear,pos y-80<pos y+30)&&(enemynear,pos y-80>pos y-120)
value=1102
[state ]
type=destroyself
trigger1=time=90
[statedef 1102]
movetype=I
[state ]
type=projectile
trigger1=!time
projid=1101
projanim=1101
projremove=0
projremovetime=25
projhitanim=-1
postype=p1
offset=0,0
attr=S,SA
damage=38, 0
getpower=61,61
animtype=light
guardflag=MA
hitflag=MAF
priority=3,hit
pausetime=0,10
sparkno=-1
sparkxy=-5,-89
hitsound=-1;s5030,5
guard.sparkno=-1
guardsound=-1;s120,0
ground.type=high
ground.slidetime=9
ground.hittime=9
ground.velocity=-6
airguard.velocity=-1.9,-2
air.type=low
air.velocity=-1.4,-3
air.hittime=12
[state ]
type=velset
trigger1=1
x=0
y=0
[state ]
type=playsnd
trigger1=!time
value=s5020,9
[state ]
type=removeexplod
trigger1=!time
[state ]
type = explod
trigger1=!time
postype=p1
bindtime=-1
pos=0,0
anim=1103
id=1103
sprpriority=2
removetime=-2
ownpal = 1
trans = add
[state ]
type = explod
trigger1=!time
postype=p1
bindtime=-1
pos=0,0
anim=9998
id=9998
sprpriority=2
removetime=-2
ownpal=1
trans =add
[state ]
type=modifyexplod
trigger1=numexplod(1103)
id=1103
scale=1+time*0.05,1+time*0.05
[state ]
type=destroyself
trigger1=time=20
;==========================================================================
;スタンショック
[statedef 1201]
type=S
movetype=A
physics=N
anim=1201
[state 240, 2]
type=hitdef
trigger1=!time
attr=S,SA
animtype=hard
damage=96
getpower=30,30
guardflag=MA
pausetime=0,10
sparkno=-1;s7001
sparkxy=-25,-55
hitsound=-1;s340,random%3
guard.sparkno=-1;s7011
guardsound=-1;s120,0
ground.type=low
ground.slidetime=27
ground.hittime=27
ground.velocity=-3,-8
air.velocity=-3,-5.2
[state ]
type=changestate
trigger1=movecontact||movereversed
value=1202
[state ]
type=destroyself
trigger1=time=120
[statedef 1202]
movetype=I
anim=1202
[state ]
type=playsnd
trigger1=!time
value=s1150,0
[state ]
type=playsnd
trigger1=time=2
value=s5010,2
[state ]
type=playsnd
trigger1=time=2
value=s5020,8
[state ]
type=destroyself
trigger1=animtime=0
;=========================================================================
;オーバースタンショック
[statedef 1211]
type=S
movetype=A
physics=N
anim=1211
[state 240, 2]
type=hitdef
trigger1=!time
attr=S,SA
animtype=hard
damage=96
getpower=30,30
guardflag=MA
pausetime=0,10
sparkno=-1;s7001
sparkxy=-25,-55
hitsound=-1;s340,random%3
guard.sparkno=-1;s7011
guardsound=-1;s120,0
ground.type=low
ground.slidetime=27
ground.hittime=27
ground.velocity=-3,-8
air.velocity=-6,-5.2
[state ]
type=changestate
trigger1=movecontact||movereversed
value=1212
[state ]
type=destroyself
trigger1=time=120
[statedef 1212]
movetype=I
anim=1212
[state ]
type=playsnd
trigger1=!time
value=s1150,0
[state ]
type=playsnd
trigger1=time=2
value=s5010,2
[state ]
type=playsnd
trigger1=time=2
value=s5020,8
[state ]
type=destroyself
trigger1=animtime=0