
;==========================================================================================
;==========================================================================================
;変数使用表
;
;
;var(0) = gametime(-3)   ◆H
;var(1) = 体点滅-1       ◆H
;var(2) = 体点滅-2       ◆H
;var(3) = ボタン判定     ◆H
;var(4) = enemy(0),id
;var(5) = enemy(1),id
;var(6) = gametime(-2)
;var(7) = flag
;var(8) = 使用
;var(9) = 使用
;var(10) = 使用
;var(11) = 使用
;var(12) = 使用
;var(13) = 使用
;var(14) = 使用
;var(15) = 使用
;var(16) = 使用
;var(17) = 使用
;var(18) = 使用
;var(19) = 使用
;var(20) = 使用
;    |
;var(30) = 使用

;fvar(0) = 使用
;fvar(1) = 使用
;fvar(2) = 使用

;helper(1)
;var(10) = 使用
;var(12) = 使用
;var(13) = 使用
;var(14) = 使用
;var(15) = 使用
;var(16) = 使用
;var(17) = 使用

;fvar(0) = 使用
;fvar(1) = 使用
;fvar(2) = 使用
;fvar(3) = 使用
;fvar(4) = 使用

;helper(3)
;var(7) = life
;var(8) = d-flag


;==========================================================================================
;==========================================================================================

[Data]
life=1000
attack=90
defence=100
fall.defence_up=50
liedown.time=50
airjuggle=15
sparkno=2
guard.sparkno=40
KO.echo=0
volume=0
power=6000
IntPersistIndex=0
FloatPersistIndex=0

[Size]
xscale=1           
yscale=1           
ground.back=15     
ground.front=16    
air.back=12        
air.front=12       
height=130       
attack.dist=320 
proj.attack.dist=320
proj.doscale=0     
head.pos=0,-120
mid.pos=0,-75
shadowoffset=0     
draw.offset=0,0   

[Velocity]
walk.fwd =1.8
walk.back=-1.5
run.fwd=5.6, 0    
run.back=-5.5,-3.8 
jump.neu=0,-8.4    
jump.back=-2.55    
jump.fwd=2.5       
runjump.back=-2.55,-8.1 
runjump.fwd=4,-8.1      
airjump.neu=0,-8.1      
airjump.back=-2.55      
airjump.fwd=2.5         

[Movement]
airjump.num=0   
airjump.height=35  
yaccel=.55         
stand.friction=.85  
crouch.friction=.82 

;==========================================================================================
;==========================================================================================
; 立ち弱パンチ
;==========================================================================================
;==========================================================================================

[statedef 200]
type=s                   
movetype=a                   
physics=s                    
juggle=1                     
velset=0,0                    
ctrl=0                                                         
sprpriority=2

[state 200]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 200]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=200
ignorehitpause=1

[state 200]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=20

[state 200]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 200]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
value=4000,36
freqmul=1.4
volume=255
ignorehitpause=0

[state 200]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
value=4000,18
freqmul=2.5
volume=-40
ignorehitpause=0

[state 200]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=242
sprpriority=-50
postype=p1
pos=65,-100
bindtime=1
ownpal=1
ontop=0
scale=0.35,0.35
trans=sub
ignorehitpause=1

[state 200]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=242
sprpriority=-50
postype=p1
pos=65,-100
bindtime=1
ownpal=1
ontop=0
scale=0.35,0.125
trans=sub
ignorehitpause=1

[state 200]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=242
sprpriority=-50
postype=p1
pos=65,-100
bindtime=1
ownpal=1
ontop=0
scale=0.125,0.35
trans=sub
ignorehitpause=1

[state 200]
type=explod
triggerall=ishelper(3) && 1
trigger1=animelemtime(3)=1
anim=242
sprpriority=-50
postype=p1
pos=65,-100
bindtime=1
ownpal=1
ontop=0
scale=0.45,0.45
trans=add
ignorehitpause=1

[state 200]
type=explod
triggerall=ishelper(3) && 1
trigger1=animelemtime(3)=1
anim=242
sprpriority=-50
postype=p1
pos=65,-100
bindtime=1
ownpal=1
ontop=0
scale=0.45,0.25
trans=add
ignorehitpause=1

[state 200]
type=explod
triggerall=ishelper(3) && 1
trigger1=animelemtime(3)=1
anim=242
sprpriority=-50
postype=p1
pos=65,-100
bindtime=1
ownpal=1
ontop=0
scale=0.25,0.45
trans=add
ignorehitpause=1

[state 200]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=242
sprpriority=-50
postype=p1
pos=65,-100
bindtime=1
ownpal=1
ontop=0
scale=0.25,0.25
trans=sub
ignorehitpause=1

[state 200]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=10609
sprpriority=-55
postype=p1
pos=65,-100
bindtime=1
ownpal=1
ontop=1
trans=sub
scale=0.25,0.25
ignorehitpause=1

[state 200]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=10609
sprpriority=-55
postype=p1
pos=65,-100
bindtime=1
ownpal=1
ontop=1
trans=add
scale=0.125,0.125
ignorehitpause=1

[state 200]
type=bgpalfx
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
time=1
invertall=1
ignorehitpause=0

[state 200]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
time=4
ampl=4
freq=95
phase=95
ignorehitpause=0

[state 200]
type=hitdef
trigger1=ishelper(3)
trigger1=animelem=3
trigger2=!ishelper&&numhelper(3)
trigger2=helper(3),animelem=3
trigger2=anim=(var(7)&1024)*6
attr=s,na                  
damage=23,2           
animtype=light             
guardflag=m         
hitflag=maf          
priority=3,hit                
pausetime=0,4        
sparkno=s2825
guard.sparkno=s2845    
sparkxy=-20,-100              
hitsound=-1         
guardsound=-1             
ground.type=high               
ground.slidetime=5            
ground.hittime=10           
ground.velocity=-4            
airguard.velocity=-1.9,-.8     
air.type=high                  
air.velocity=-1.4,-3           
air.hittime=12              

[state 200]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 立ち弱パンチ
;==========================================================================================
;==========================================================================================

[statedef 201]
type=s                   
movetype=a                   
physics=s                    
juggle=2              
velset=0,0                    
ctrl=0                                                           
sprpriority=2

[state 201]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 201]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 201]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=20

[state 201]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=201
ignorehitpause=1

[state 200]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 201]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=200,random%3  

[state 201]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1
value=201,0           

[state 201]
type=hitdef
trigger1=ishelper(3)
trigger1=(animelem=5||animelem=9||animelem=13)
trigger2=!ishelper&&numhelper(3)
trigger2=(helper(3),animelem=5||helper(3),animelem=9||helper(3),animelem=13)
trigger2=anim=(var(7)&1024)*6
attr=s,na                  
damage=9,0                  
animtype=light             
guardflag=ma               
hitflag=maf                  
priority=3,hit                
pausetime=1,5              
sparkno=s2825
guard.sparkno=s2845    
sparkxy=-10,-76               
hitsound=s202,0                 
guardsound=s120,0               
ground.type=high               
ground.slidetime=5            
ground.hittime=10           
ground.velocity=-4            
airguard.velocity=-1.9,-.8     
air.type=high                  
air.velocity=-1.4,-3           
air.hittime=12              

[state 201]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 立ち強パンチ  
;==========================================================================================
;==========================================================================================

[statedef 210]
type=s
movetype=a
physics=s
juggle=4
ctrl=0
velset=0,0
sprpriority=-1

[state 210]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 210]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=210+(p2dist x>50)*5
ignorehitpause=1

[state 210]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=65

[state 210]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 210]
type=width
triggerall=ishelper(3)
trigger1=(animelemtime(2)>=0)&&(animelemtime(7)<0)
value=15,0

[state 210]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1
value=221,0

[state 210]
type=playsnd
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=anim=210&&(animelem=3)
trigger2=anim=215&&(animelem=5)
value=4000,14
freqmul=1.1+(animelem=5)*0.1
volume=255

[state 210]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=210,random%3

[state 210]
type=explod
triggerall=ishelper(3)  && 0
triggerall=root,var(45)
trigger1=anim=210&&(animelem=5)
trigger2=anim=215&&(animelem=7)
anim=211
id=211
sprpriority=4
postype=p1
pos=40,-67
ownpal=1
scale=0.5,0.5
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 210]
type=explod
triggerall=ishelper(3) && 0
triggerall=root,var(45)
trigger1=anim=210&&(animelem=5)
trigger2=anim=215&&(animelem=7)
anim=211
id=211
sprpriority=5
postype=p1
pos=50,-67
under=0
ownpal=1
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 210]
type=explod
triggerall=ishelper(3) && 0
triggerall=root,var(45)
trigger1=anim=210&&(animelem=6)
trigger2=anim=215&&(animelem=8)
anim=211
id=211
sprpriority=5
postype=p1
pos=70,-67
under=0
ownpal=1
scale=0.5,0.5
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 210]
type=null;explod
trigger1=anim=210&&(animelem=5)
trigger2=anim=215&&(animelem=7)
anim=211
id=212
sprpriority=4
postype=p1
pos=50,-67
under=1
ownpal=1
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 210]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=210&&(animelem=5)
trigger2=anim=215&&(animelem=7)
anim=211
id=212
sprpriority=6
postype=p1
pos=64,-67
under=1
ownpal=1
trans=sub
scale=0.5,0.5
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 210]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=210&&(animelem=5)
trigger2=anim=215&&(animelem=7)
anim=211
id=212
sprpriority=4
postype=p1
pos=50,-67
under=1
ownpal=1
scale=1.10,1.10
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 210]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=210&&(animelem=5)
trigger2=anim=215&&(animelem=7)
anim=213
id=213
sprpriority=6
postype=p1
pos=50,-67
under=1
ownpal=1
scale=0.5,0.5
trans=add
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 210]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=210&&(animelem=5)
trigger2=anim=215&&(animelem=7)
anim=213
id=213
sprpriority=5
postype=p1
pos=50,-67
under=1
ownpal=1
scale=0.5,0.5
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 210]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=210&&(animelem=6)
trigger2=anim=215&&(animelem=8)
anim=213
id=213
sprpriority=7
postype=p1
pos=60,-67
under=1
ownpal=1
scale=0.25,0.25
trans=add
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 210]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=210&&(animelem=6)
trigger2=anim=215&&(animelem=8)
anim=213
id=213
sprpriority=5
postype=p1
pos=60,-67
under=1
ownpal=1
scale=0.25,0.25
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 210]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=210&&(animelem=7)
trigger2=anim=215&&(animelem=9)
anim=213
id=213
sprpriority=7
postype=p1
pos=75,-67
under=1
ownpal=1
scale=0.125,0.125
trans=add
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 210]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=210&&(animelem=7)
trigger2=anim=215&&(animelem=9)
anim=213
id=213
sprpriority=5
postype=p1
pos=75,-67
under=1
ownpal=1
scale=0.125,0.125
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 210]
type=hitdef
trigger1=ishelper(3)
trigger1=anim=210&&(animelem=6)
trigger2=!ishelper&&numhelper(3)
trigger2=helper(3),anim=210&&(helper(3),animelem=6)
trigger2=anim=(var(7)&1024)*6
attr=,na
animtype=medium
damage=75
guardflag=ma
pausetime=12,12
sparkno=s2830
guard.sparkno=s2850
sparkxy=-10,-70
hitsound=s222,0                 
guardsound=s120,0  
ground.type=high
ground.slidetime=12
ground.hittime=13
ground.velocity=-5.5
air.velocity=-2.5,-4

[state 210]
type=hitdef
trigger1=ishelper(3)
trigger1=anim=215&&(animelem=8||animelem=9)
trigger2=!ishelper&&numhelper(3)
trigger2=helper(3),anim=215&&(helper(3),animelem=8||helper(3),animelem=9)
trigger2=anim=(var(7)&1024)*6
attr=,na
animtype=hard
damage=75,4
guardflag=ha
pausetime=20,24
sparkno=s2830
guard.sparkno=s2850
sparkxy=-10,-70
hitsound=s222,0                 
guardsound=s120,0  
ground.type=high
ground.slidetime=12
ground.hittime=13
ground.velocity=-5.5
air.velocity=-2.5,-4

[state 210]
type=sprpriority
triggerall=ishelper(3)
trigger1=animelem=5
value=2

[state 210]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 立ち強パンチ  
;==========================================================================================
;==========================================================================================

[statedef 216]
type=a
movetype=a
physics=s
juggle=4
ctrl=0
velset=3,-5
sprpriority=-1

[state 216]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 216]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=216
ignorehitpause=1

[state 216]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=65

[state 216]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1
value=221,0

[state 216]
type=veladd
triggerall=ishelper(3)
trigger1=1
x=0.37
y=0.37

[state 216]
type=null;playsnd
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=anim=210&&(animelem=3)
trigger2=anim=215&&(animelem=5)
value=4000,14
freqmul=1.1
volume=255

[state 216]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=210,random%3

[state 216]
type=null;explod
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=anim=210&&(animelem=5)
trigger2=anim=215&&(animelem=7)
anim=211
id=212
sprpriority=4
postype=p1
pos=50,-67
under=1
ownpal=1
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 216]
type=explod
triggerall=ishelper(3)
triggerall=!root,var(45)
trigger1=animelem=5||animelem=8
anim=2611
id=261116
sprpriority=4
postype=p1
pos=66,-68+(animelem=8)*25
under=1
bindtime=1
ownpal=1
ignorehitpause=1

[state 216]
type=explod
triggerall=ishelper(3)
triggerall=!root,var(45)
trigger1=animelem=5||animelem=8
anim=2611
id=261116
sprpriority=4
postype=p1
pos=66,-68+(animelem=8)*25
bindtime=1
ownpal=1
ontop=1
scale=0.5,0.5
trans=sub
ignorehitpause=1

[state 216]
type=playsnd
triggerall=ishelper(3)
trigger1=animelem=5||animelem=8
value=4000,5
volume=100
freqmul=1.7

[state 216]
type=hitdef
trigger1=ishelper(3)
trigger1=animelem=5
trigger2=!ishelper&&numhelper(3)
trigger2=helper(3),animelem=5
trigger2=anim=(var(7)&1024)*6
attr=,na
animtype=medium
damage=35
guardflag=ha
pausetime=1,7
sparkno=s2830
guard.sparkno=s2850
sparkxy=-10,-70
hitsound=s222,0                 
guardsound=s120,0  
ground.type=high
ground.slidetime=12
ground.hittime=13
ground.velocity=-5.5
air.velocity=-2.5,-4

[state 216]
type=hitdef
trigger1=ishelper(3)
trigger1=animelem=8
trigger2=!ishelper&&numhelper(3)
trigger2=helper(3),animelem=8
trigger2=anim=(var(7)&1024)*6
attr=,na
animtype=hard
damage=35
guardflag=ha
pausetime=20,24
sparkno=s2830
guard.sparkno=s2850
sparkxy=-10,-70
hitsound=s222,0                 
guardsound=s120,0  
ground.type=high
ground.slidetime=12
ground.hittime=13
ground.velocity=-5.5
air.velocity=-2.5,-4

[state 216]
type=selfstate
trigger1=ishelper(3)
trigger1=vel y>0&&pos y>=0
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=217
ctrl=ishelper

;==========================================================================================
;==========================================================================================
;着地
;==========================================================================================
;==========================================================================================

[statedef 217]
type=s
movetype=a
physics=n
poweradd=0
ctrl=0
velset=0,0
sprpriority=2

[state 217]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 217]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=217
ignorehitpause=1

[state 217]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
value=40,0

[state 217]
type=posset
triggerall=ishelper(3)
trigger1=!time
y=0

[state 217]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=11
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 立ち弱キック
;==========================================================================================
;==========================================================================================

[statedef 230]
type=s
movetype=a
physics=s
juggle=4
ctrl=0
velset=0,0
sprpriority=2

[state 230]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 230]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=230+!root,var(45)
ignorehitpause=1

[state 230]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=22

[state 230]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 230]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1
value=201,0

[state 230]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=200,random%2

[state 230]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper&&numhelper(3)
trigger2=anim=(var(7)&1024)*6
attr=s,na
animtype=medium
damage=26
guardflag=ma
pausetime=12-(anim=230)*9,12-(anim=230)*9
sparkno=s2825
guard.sparkno=s2845
sparkxy=-10,-42
hitsound=s224,0                 
guardsound=s120,0  
ground.type=low
ground.slidetime=10
ground.hittime=11
ground.velocity=-5
air.velocity=-2.5,-3.5

[state 230]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 立ち強キック
;==========================================================================================
;==========================================================================================

[statedef 240]
type=s
movetype=a
physics=s
juggle=5
ctrl=0
velset=0,0
sprpriority=2

[state 240]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 240]
type=null;selfstate
triggerall=ishelper(3)
triggerall=!root,var(45)
trigger1=!time
trigger1=(p2dist x>50)
value=241
ignorehitpause=1

[state 240]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=240+(p2dist x>50)*5
ignorehitpause=1

[state 240]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=65

[state 240]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 240]
type=playsnd
triggerall=ishelper(3)
trigger1=anim=245
trigger1=time=2||time=4
volume=150
freqmul=0.9+(time=4)*0.3
value=4000,35

[state 240]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1
value=210,2-(anim=245)

[state 240]
type=explod
triggerall=ishelper(3)
trigger1=anim=245
trigger1=animelemtime(3)=1
anim=2800
id=2800
sprpriority=5
postype=p1
pos=0,2
under=0
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 240]
type=hitdef
trigger1=ishelper(3)
trigger1=anim=240&&(animelem=4||animelem=10)||anim=245&&animelem=4
trigger2=!ishelper&&numhelper(3)
trigger2=helper(3),anim=240&&(helper(3),animelem=4||helper(3),animelem=10)||helper(3),anim=245&&helper(3),animelem=4
trigger2=anim=(var(7)&1024)*6
attr=s,na
animtype=medium
damage=36+(anim=245)*35
guardflag=ma
pausetime=12,12+(anim=240&&animelem=4)*6
sparkno=s2830
guard.sparkno=s2850
sparkxy=ifelse(anim=240,-30,-20-(animelem=4)*5),ifelse(anim=240,-60-(animelem=10)*30,-110)
hitsound=sifelse((anim=245),2000,225),0                 
guardsound=s120,0  
ground.type=low
ground.slidetime=12
ground.hittime=15+(anim=240&&animelem=4)*10
ground.velocity=-6+(anim=240&&animelem=4)*3
air.velocity=-2.2,-3.2

[state 240]
type=null;targetstate
triggerall=ishelper(3)
trigger1=anim=240&&animelemtime(10)>0
trigger1=movehit
trigger1=numtarget
;trigger1=target,stateno=[5001,5011]
trigger1=target,stateno!=950
value=950
ignorehitpause=1

[state 240]
type=null;playsnd
triggerall=ishelper(3)
trigger1=anim=240&&animelemtime(10)>0
trigger1=numtarget
trigger1=target,stateno=950
trigger1=!target,time
value=800,2
volume=250
ignorehitpause=1

[state 240]
type=null;changeanim
trigger1=ishelper(3)
trigger1=anim=240&&animelemtime(10)>0
trigger1=movehit
trigger1=numtarget
trigger1=target,stateno=950
value=240
elem=12
persistent=0
ignorehitpause=1

[state 240]
type=null;targetdrop
triggerall=ishelper(3)
trigger1=anim=240&&animelemtime(10)>0
ignorehitpause=1

[state 240]
type=posadd
triggerall=ishelper(3)
trigger1=anim=245&&animelem=3
x=5

[state 240]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 立ち強キック
;==========================================================================================
;==========================================================================================

[statedef 241]
type=s
movetype=a
physics=s
juggle=8
ctrl=0
velset=0,0
sprpriority=2

[state 241]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 241]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=241
ignorehitpause=1

[state 241]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=65

[state 241]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 241]
type=explod
triggerall=ishelper(3) && 1
trigger1=(animelemtime(4)=0||animelemtime(4)=3||animelemtime(4)=6)
trigger2=(animelemtime(4)=9||animelemtime(4)=12)
anim=242
sprpriority=-55
postype=p1
pos=0,-70
bindtime=1
ownpal=1
ontop=0
trans=sub
scale=0.5,0.5
ignorehitpause=1

[state 241]
type=explod
triggerall=ishelper(3) && 1
trigger1=(animelemtime(4)=0||animelemtime(4)=3||animelemtime(4)=6)
trigger2=(animelemtime(4)=9||animelemtime(4)=12)
anim=242
sprpriority=-50
postype=p1
pos=0,-70
bindtime=1
ownpal=1
ontop=0
scale=0.5,0.5
trans=sub
ignorehitpause=1

[state 241]
type=explod
triggerall=ishelper(3) && 1
trigger1=(animelemtime(4)=12||animelemtime(4)=15)
anim=242
sprpriority=-50
postype=p1
pos=0,-70
bindtime=1
ownpal=1
ontop=0
scale=0.65,0.65
trans=add;sub
ignorehitpause=1

[state 241]
type=explod
triggerall=ishelper(3)
trigger1=(animelemtime(4)=0||animelemtime(4)=5||animelemtime(4)=10)
anim=2011
id=2011
sprpriority=-99
postype=p1
pos=0,-70
bindtime=1
supermove=1
ownpal=1
ontop=0
trans=sub
;vel=1,0
scale=0.5,0.5
ignorehitpause=1

[state 241]
type=explod
triggerall=ishelper(3)
trigger1=(animelemtime(4)=0||animelemtime(4)=5||animelemtime(4)=10)
anim=2011
id=2011
sprpriority=99
postype=p1
pos=0,-70
bindtime=1
supermove=1
ownpal=1
ontop=1
scale=0.5,0.5
ignorehitpause=1

[state 241]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
trigger1=!(fvar(26):=0&&fvar(27):=0&&fvar(28):=-160)
trigger2=animelemtime(4)=3
trigger2=fvar(26):=-40&&fvar(27):=-40&&fvar(28):=-120
trigger3=animelemtime(4)=6
trigger3=fvar(26):=-80&&fvar(27):=-80&&fvar(28):=-80
trigger4=animelemtime(4)=9
trigger4=fvar(26):=-40&&fvar(27):=-120&&fvar(28):=-40
trigger5=animelemtime(4)=12
trigger5=!(fvar(26):=0&&fvar(27):=-160&&fvar(28):=0)
anim=10609
sprpriority=-55
postype=p1
pos=floor(fvar(26)),floor(fvar(27))
bindtime=1
ownpal=1
ontop=1
trans=sub
scale=0.25,0.25
ignorehitpause=1

[state 241]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
trigger2=animelemtime(4)=3
trigger3=animelemtime(4)=6
trigger4=animelemtime(4)=9
trigger5=animelemtime(4)=12
anim=10609
sprpriority=-55
postype=p1
pos=floor((fvar(26))+(abs(fvar(26))*2)),floor(fvar(28))
bindtime=1
ownpal=1
ontop=1
trans=sub
scale=0.25,0.25
ignorehitpause=1

[state 241]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
trigger2=animelemtime(4)=3
trigger3=animelemtime(4)=6
trigger4=animelemtime(4)=9
trigger5=animelemtime(4)=12
anim=10609
sprpriority=-55
postype=p1
pos=floor(fvar(26)),floor(fvar(27))
bindtime=1
ownpal=1
ontop=1
trans=add
scale=0.125,0.125
ignorehitpause=1

[state 241]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
trigger2=animelemtime(4)=3
trigger3=animelemtime(4)=6
trigger4=animelemtime(4)=9
trigger5=animelemtime(4)=12
anim=10609
sprpriority=-55
postype=p1
pos=floor((fvar(26))+(abs(fvar(26))*2)),floor(fvar(28))
bindtime=1
ownpal=1
ontop=1
trans=add
scale=0.125,0.125
ignorehitpause=1

[state 241]
type=playsnd
triggerall=ishelper(3)
trigger1=(animelemtime(4)=0||animelemtime(4)=5||animelemtime(4)=10&&0)
value=4000,76
freqmul=1.5
volume=60
ignorehitpause=1

[state 241]
type=playsnd
triggerall=ishelper(3)
trigger1=(animelemtime(4)=0||animelemtime(4)=5||animelemtime(4)=10)
value=4000,36
freqmul=1.4
volume=200
ignorehitpause=1

[state 241]
type=bgpalfx
triggerall=ishelper(3)
trigger1=(animelemtime(4)=0||animelemtime(4)=3||animelemtime(4)=6)
trigger2=(animelemtime(4)=9||animelemtime(4)=12)
time=1
invertall=1
ignorehitpause=1

[state 241]
type=envshake
triggerall=ishelper(3)
trigger1=(animelemtime(4)=0||animelemtime(4)=3||animelemtime(4)=6)
trigger2=(animelemtime(4)=9||animelemtime(4)=12)
time=5
ampl=5
freq=95
phase=95
ignorehitpause=1

[state 241]
type=hitdef
triggerall=ishelper(3)
trigger1=(animelemtime(4)=0||animelemtime(4)=3||animelemtime(4)=6)
trigger2=(animelemtime(4)=9||animelemtime(4)=12)
attr=,na
animtype=diagup
damage=22,5
guardflag=m
pausetime=0,1
guard.pausetime=0,5
sparkno=s2835
guard.sparkno=s2855
sparkxy=-40,-105
hitsound=s225,1
guardsound=s120,0  
ground.type=low
ground.slidetime=12
ground.hittime=20
ground.velocity=-2,-5
air.velocity=-4.2,-6.2
fall=1
air.fall=1
fall.recover=0

[state 241]
type=selfstate
triggerall=ishelper(3)
triggerall=ifelse(root,palno=12,1,(ifelse((var(57)=[0,2]),var(57)=2,1)))
triggerall=roundstate=2&&root,alive&&!root,var(15)&&root,var(45)
triggerall=command="WP-1"||command="WP-2"||command="WP-3"||command="WP-4"||command="CCD"||command="DTI"
triggerall=var(3):=((command="WP-1")*-120)+((command="WP-2")*-50)+((command="WP-3")*50)+((command="WP-4")*120)+((command="CCD")*608)+((command="DTI")*609)||1
trigger1=animelemtime(4)>12
value=1950

[state 241]
type=selfstate
triggerall=ishelper(3)
triggerall=root,var(15)&&(root,var(7)&1024)&&(root,var(7)&2048)
triggerall=ifelse(root,palno=12,1,(ifelse((var(57)=[0,2]),var(57)=2,1)))
triggerall=roundstate=2&&root,alive
triggerall=root,var(45)
triggerall=(root,var(26)&&root,var(27)=4||root,palno>10)
triggerall=animelemtime(4)>12
trigger1=backedgebodydist<70
trigger1=(abs(pos x+(40*facing)-enemynear(root,var(18)),pos x)<70)
trigger1=random<=ifelse((root,palno>10),400,10+(root,var(27)*root,var(27))*60)
trigger1=var(3):=ifelse(pos x<0,120,-120)||1
trigger2=(abs(pos x+(40*facing)-enemynear(root,var(18)),pos x)>200)
trigger2=enemynear(root,var(18)),statetype=s||enemynear(root,var(18)),statetype=c
trigger2=enemynear(root,var(18)),movetype=a
trigger2=random<=ifelse((root,palno>10),400,10+(root,var(27)*root,var(27))*40)
trigger2=var(3):=609
trigger3=(abs(pos x+(40*facing)-enemynear(root,var(18)),pos x)=[10,240]) && 1
trigger3=random<=ifelse((root,palno>10),255,((root,var(27)=4)*350)+2+(root,var(27)*root,var(27))*20)
trigger3=var(3):=ifelse(!(random%5),-50,ifelse(!(random%5),50,ifelse(pos x>0,-120,120)))||1
value=1950

[state 241]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 屈み弱パンチ
;==========================================================================================
;==========================================================================================

[statedef 400]
type=c
movetype=a
physics=c
juggle=5
ctrl=0
sprpriority=2

[state 400]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 400]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=400
ignorehitpause=1

[state 400]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=20

[state 400]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 400]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1
value=201,0

[state 400]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=200,random%3

[state 400]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper&&numhelper(3)
trigger2=anim=(var(7)&1024)*6
attr=c,na
damage=23
priority=3
animtype=light
hitflag=maf
guardflag=l
pausetime=10,11
sparkno=s2825
guard.sparkno=s2845  
sparkxy=-10,-38
hitsound=s202,0                 
guardsound=s120,0  
ground.type=low
ground.slidetime=4
ground.hittime=10
ground.velocity=-4
air.velocity=-1.5,-3

[state 400]
type=ctrlset
triggerall=ishelper(3)
trigger1=time=5
value=1

[state 400]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=11

;==========================================================================================
;==========================================================================================
; 屈み強パンチ
;==========================================================================================
;==========================================================================================

[statedef 410]
type=c
movetype=a
physics=c
juggle=6
ctrl=0
sprpriority=2

[state 410]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 410]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=410
ignorehitpause=1

[state 410]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=50

[state 410]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1 

[state 410]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1
value=221,0

[state 230]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=210,2

[state 410]
type=hitdef
trigger1=ishelper(3)
trigger1=animelem=6
trigger2=!ishelper&&numhelper(3)
trigger2=helper(3),animelem=6
trigger2=anim=(var(7)&1024)*6
attr=c,na
damage=37
animtype=medium
hitflag=maf
guardflag=m
pausetime=12,12
sparkno=s2830
guard.sparkno=s2850
sparkxy=-25,-65
hitsound=s222,0  
guardsound=s120,0  
ground.type=low
ground.slidetime=12
ground.hittime=15
ground.velocity=-4
air.velocity=-3,-4

[state 410]
type=hitdef
trigger1=ishelper(3)
trigger1=animelem=7
trigger2=!ishelper&&numhelper(3)
trigger2=helper(3),animelem=7
trigger2=anim=(var(7)&1024)*6
attr=c,na
damage=43
animtype=medium
hitflag=maf
guardflag=ma
pausetime=12,12
sparkno=s2830
guard.sparkno=s2850
sparkxy=-25,-72
hitsound=s222,0  
guardsound=s120,0 
ground.type=high
ground.slidetime=12
ground.hittime=15
ground.velocity=-7
air.velocity=-3,-4

[state 410]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=11
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 屈み強パンチ
;==========================================================================================
;==========================================================================================

[statedef 411]
type=c
movetype=a
physics=c
juggle=6
ctrl=0
sprpriority=2

[state 411]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 411]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 411]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=20

[state 411]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=411
ignorehitpause=1

[state 411]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1 

[state 411]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1
value=221,0

[state 411]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=4000,73
volume=255

[state 411]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=c,na
damage=75
animtype=medium
hitflag=maf
guardflag=m
pausetime=12,12
sparkno=s2830
guard.sparkno=s2850
sparkxy=-25,-110
hitsound=s222,0  
guardsound=s120,0  
ground.type=low
ground.slidetime=12
ground.hittime=15
ground.velocity=-4
air.velocity=-3,-4

[state 411]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=11
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 屈み弱キック
;==========================================================================================
;==========================================================================================

[statedef 430]
type=c
movetype=a
physics=c
juggle=5
ctrl=0
sprpriority=2

[state 430]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 430]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=445
ignorehitpause=1

[state 430]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=20

[state 430]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1 

[state 430]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1
value=201,0

[state 430]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=210,0

[state 430]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger1=fvar(22):=(prevstateno=stateno)*(fvar(22)+3)||1
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=c,na
damage=ifelse(ishelper,ceil(28-fvar(22)),20)
animtype=light
hitflag=mafd
guardflag=l
pausetime=12,12
sparkno=s2825
guard.sparkno=s2845
sparkxy=-10,-8
hitsound=s224,0                 
guardsound=s120, 0  
ground.type=low
ground.slidetime=6
ground.hittime=10
ground.velocity=-5
air.velocity=-2,-3
down.velocity=-5,0
down.hittime=20

[state 430]
type=ctrlset
triggerall=ishelper(3)
trigger1=time=10
value=1

[state 430]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=11
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 屈み強キック
;==========================================================================================
;==========================================================================================

[statedef 440]
type=c
movetype=a
physics=c
juggle=7
ctrl=0
sprpriority=2

[state 440]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 440]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=445
ignorehitpause=1

[state 440]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=70

[state 440]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1 

[state 440]
type=playsnd
triggerall=ishelper(3)
trigger1=time=2
value=221,0

[state 230]
type=playsnd
triggerall=ishelper(3)
trigger1=!time&&random%5=1
value=210,2

[state 440]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=c,na
damage=72
hitflag=mafd
guardflag=l
pausetime=12,12
sparkno=s2830
guard.sparkno=s2850
sparkxy=-30,-20
hitsound=s225,0                 
guardsound=s120,0  
ground.type=trip
ground.slidetime=10
ground.hittime=15
ground.velocity=-1.5,-2
air.velocity=-1.2,-3
guard.velocity=-5
fall=1

[state 440]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=11
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 空中弱パンチ
;==========================================================================================
;==========================================================================================

[statedef 600]
type=a
movetype=a
physics=a
juggle=2
ctrl=0
sprpriority=2

[state 600]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 600]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=15

[state 600]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=600
ignorehitpause=1

[state 600]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1
value=201,0

[state 600]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=a,na
damage=20
guardflag=ha
priority=3
pausetime=7,8
sparkno=s2825
guard.sparkno=s2845
sparkxy=-20,-75
hitsound=s202,0                 
guardsound=s120,0  
ground.type=high
ground.slidetime=5
ground.hittime=5
ground.velocity=-4
air.velocity=-1.3,-3

[state 600]
type=ctrlset
trigger1=ishelper(3)
trigger1=time=17
value=1

[state 600]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0
ctrl=0

;==========================================================================================
;==========================================================================================
; 空中強パンチ
;==========================================================================================
;==========================================================================================

[statedef 610]
type=a
movetype=a
physics=a
juggle=4
ctrl=0
sprpriority=2

[state 610]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 610]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=65

[state 610]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=610
ignorehitpause=1

[state 610]
type=playsnd
triggerall=ishelper(3)
trigger1=time=2
value=221,0

[state 610]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=a,na
damage=73
guardflag=ha
priority=4
pausetime=12,12
sparkno=s2830
guard.sparkno=s2850
sparkxy=-20,-65
hitsound=s222,0                 
guardsound=s120,0  
animtype=med
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-5
air.velocity=-3,-4

[state 610]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0
ctrl=1

;==========================================================================================
;==========================================================================================
; 空中弱キック
;==========================================================================================
;==========================================================================================

[statedef 630]
type=a
movetype=a
physics=a
juggle=3
ctrl=0
sprpriority=2

[state 630]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 630]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=20

[state 630]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=630
ignorehitpause=1 

[state 630]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1
value=201,0

[state 630]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=a,na
damage=26
guardflag=ha
priority=3
pausetime=8,8
sparkno=s2825
guard.sparkno=s2845  
sparkxy=-5,-35
hitsound=s224,0                 
guardsound=s120,0  
ground.type=high
ground.slidetime=6
ground.hittime=6
ground.velocity=-4
air.velocity=-2,-3

[state 630]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0
ctrl=1

;==========================================================================================
;==========================================================================================
; 空中強キック
;==========================================================================================
;==========================================================================================

[statedef 640]
type=a
movetype=a
physics=a
juggle=4
ctrl=0
sprpriority=2

[state 640]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 640]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=65

[state 640]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value= 640
ignorehitpause=1 

[state 640]
type=playsnd
triggerall=ishelper(3)
trigger1=time=2
value=221,0

[state 640]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=a,na
damage=77
guardflag=ha
priority=4
pausetime=12,12
sparkno=s2830
guard.sparkno=s2850
sparkxy=-20,-55
hitsound=s225,0                 
guardsound=s120,0  
animtype=med
ground.type=high
ground.slidetime=15
ground.hittime=15
ground.velocity=-5
air.velocity=-3,-4

[state 640]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0
ctrl=1

;==========================================================================================
;==========================================================================================
; 緊急回避-(前・後)
;==========================================================================================
;==========================================================================================

[statedef 700]
ctrl=0
poweradd=0
velset=0,0
movetype=i
sprpriority=2

[state 700]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
trigger4=!ishelper
value=69996
ignorehitpause=1

[state 700]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
trigger1=var(3):=(command="後転")||1
value=710+((!root,var(45))*(10+var(3)))
ignorehitpause=1 

[state 700]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 700]
type=hitby
trigger1=ishelper(3)
trigger1=1;!root,var(45)
value=sca,at
ignorehitpause=1

[state 700]
type=hitby
triggerall=ishelper(3)
trigger1=root,var(45)
trigger1=animelemtime(24)>=0
trigger2=!root,var(45)
trigger2=animelemtime(3)>=8
value=sca,aa,at,ap
ignorehitpause=1

[state 700]
type=playsnd
triggerall=ishelper(3)
trigger1=root,var(45)
trigger1=!time||time=3
value=1200,1
volume=50
freqmul=1.0
;pan=100
;abspan=10
ignorehitpause=0

[state 700]
type=playsnd
triggerall=ishelper(3)
trigger1=root,var(45)
trigger1=!time
value=4000,37
volume=100
freqmul=0.8
ignorehitpause=0

[state 700]
type=playsnd
triggerall=ishelper(3)
trigger1=root,var(45)
trigger1=animelemtime(4)=0
trigger2=animelemtime(14)=0&&0
value=240,1
volume=50
freqmul=0.4
ignorehitpause=0

[state 700]
type=playsnd
triggerall=ishelper(3)
trigger1=root,var(45)
trigger1=animelemtime(4)=2
trigger2=animelemtime(16)=0&&0
value=240,1
volume=50
freqmul=1.2
ignorehitpause=0

[state 700]
type=playsnd
triggerall=ishelper(3)
trigger1=!root,var(45)
trigger1=animelemtime(1)=1
value=40,1
volume=150
freqmul=0.9
ignorehitpause=0

[state 700]
type=playerpush
trigger1=1
value=0
ignorehitpause=1

[state 700]
type=posset
triggerall=ishelper(3)
trigger1=root,palno!=12
trigger1=!time
trigger2=root,palno=12
trigger2=animelemtime(14)=0
y=0
ignorehitpause=1

[state 700]
type=velset
trigger1=ishelper(3)
trigger1=root,var(45)
trigger1=animelemtime(13)=0||animelemtime(14)=0
x=(animelemtime(13)=0)*(ifelse(var(3),-5,5))
ignorehitpause=1

[state 700]
type=velset
trigger1=ishelper(3)
trigger1=!root,var(45)
trigger1=animelemtime(2)=0||animelemtime(3)>=10
x=(animelemtime(2)=0)*(ifelse(var(3),-7,7))
ignorehitpause=1

[State 700]
type=afterimage
trigger1=ishelper(3)
trigger1=!root,var(45)
trigger1=!time
time=20
timegap=1
framegap=2
trans=add1
length=5
paladd=5,5,5
palmul=1,1,1
palbright=8,8,8
palcontrast=250,250,250
palpostbright=0,0,0
ignorehitpause=1

[state 700] 
type=trans
trigger1=ishelper(3)
trigger1=!root,var(45)
trigger1=(gametime%2)=1
trans=add1
alpha=100,250

[state 700] 
type=turn
triggerall=ishelper(3)
triggerall=animelem=14
trigger1=root,var(45)
trigger1=p2dist x<0
ignorehitpause=1

[state 700]
type=selfstate
triggerall=ishelper(3)
trigger1=!animtime
value=0
ctrl=1

;==========================================================================================
;==========================================================================================
; ふっ飛ばし攻撃-(地・空)
;==========================================================================================
;==========================================================================================

[statedef 710]
type=u
movetype=a
physics=u
juggle=8
ctrl=0
sprpriority=2

[state 710]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 710]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=65

[state 710]
type=velset
triggerall=ishelper(3)
trigger1=!time&&statetype!=a
x=0
y=0
ignorehitpause=1

[state 710]
type=posset
triggerall=ishelper(3)
trigger1=statetype!=a
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 710]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=700+(statetype=a)*5
ignorehitpause=1 

[state 710]
type=hitdef
trigger1=ishelper(3)
trigger1=statetype=a
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=s,na
animtype=diagup
damage=98,10
getpower=136,136
guardflag=m
pausetime=14,15
sparkno=s2830
guard.sparkno=s2850
sparkxy=-15,-77
hitsound=s225,1
guardsound=s120,0
ground.type=low
ground.slidetime=17
ground.hittime=17
ground.velocity=-6,-6.5
air.velocity=-6,-6.8
fall=1
fall.recover=0
envshake.time=7
envshake.ampl=7

[state 710]
type=hitdef
trigger1=ishelper(3)
trigger1=statetype!=a
trigger1=!time
attr=s,na
animtype=diagup
damage=98,10
getpower=136,136
guardflag=m
pausetime=5,5
sparkno=s2830
guard.sparkno=s2850
sparkxy=-15,-77
hitsound=s225,1
guardsound=s120,0
ground.type=low
ground.slidetime=17
ground.hittime=17
ground.velocity=-25,-4.5
air.velocity=-25,-4.8
fall=1
fall.recover=0
envshake.time=10
envshake.ampl=10
p2stateno=960

[state 710]
type=projectile
triggerall=ishelper(3)
trigger1=statetype!=a&&root,var(45)
trigger1=anim=700&&(animelem=4)
attr=s,na
projanim=711
projhitanim=-1
projid=6080
projpriority=2147483647
projsprpriority=2147483647
projremove=1
projremovetime=2
postype=p1
offset=0,0
velocity=0
animtype=diagup
damage=98,10
getpower=136,136
guardflag=ma
pausetime=5,5
sparkno=s2830
guard.sparkno=s2850
sparkxy=30,-77
hitsound=s225,1
guardsound=s120,0
ground.type=low
ground.slidetime=17
ground.hittime=17
ground.velocity=-25,-4.5
air.velocity=-25,-4.8
guard.velocity=-9.8
airguard.velocity=-9.8,-2.5
fall=1
fall.recover=0
envshake.time=10
envshake.ampl=10
p2stateno=960

[state 710]
type=projectile
triggerall=ishelper(3)
trigger1=statetype!=a&&!root,var(45)
trigger1=anim=700&&(animelem=4)
attr=s,na
projanim=711
projhitanim=-1
projid=6080
projpriority=2147483647
projsprpriority=2147483647
projremove=1
projremovetime=2
postype=p1
offset=0,0
velocity=0
animtype=diagup
damage=98,10
getpower=136,136
guardflag=ma
pausetime=5,5
sparkno=s2830
guard.sparkno=s2850
sparkxy=30,-77
hitsound=s225,1
guardsound=s120,0
ground.type=low
ground.slidetime=17
ground.hittime=17
ground.velocity=-5,-6.5
air.velocity=-5,-6.8
guard.velocity=-9.8
airguard.velocity=-9.8,-2.5
fall=1
fall.recover=0
envshake.time=10
envshake.ampl=10

[state 710]
type=playsnd
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=anim=700&&(animelem=4)
value=4000,14
freqmul=1.2
volume=255

[state 710]
type=playsnd
triggerall=ishelper(3)
triggerall=!root,var(45)
trigger1=anim=700&&(animelem=4)
trigger2=anim=705&&(animelemtime(2)=0)
value=1200,11
freqmul=1.5
volume=50

[state 710]
type=playsnd
triggerall=ishelper(3)
triggerall=!root,var(45)
trigger1=anim=700&&(animelem=4)
trigger2=anim=705&&(animelemtime(2)=0)
value=4000,1
freqmul=1.7
volume=255

[state 710]
type=explod
triggerall=ishelper(3)
triggerall=!root,var(45)
trigger1=anim=700&&(animelem=4||animelem=5)
trigger2=anim=705&&(animelemtime(2)=0||animelemtime(2)=5)
anim=701
id=211
sprpriority=4
postype=p1
pos=0,0
ownpal=1
bindtime=1
vel=1,0
scale=1.0,1.0
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710]
type=explod
triggerall=ishelper(3)
triggerall=root,var(45) && 0
trigger1=anim=700&&(animelem=4)
anim=211
id=211
sprpriority=4
postype=p1
pos=30,-77
ownpal=1
bindtime=-1
scale=0.5,0.5
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710]
type=explod
triggerall=ishelper(3)
triggerall=root,var(45) && 0
trigger1=anim=700&&(animelem=4)
anim=211
id=211
sprpriority=5
postype=p1
pos=40,-77
under=0
ownpal=1
bindtime=-1
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710]
type=explod
triggerall=ishelper(3)
triggerall=root,var(45) && 0
trigger1=anim=700&&(animelemtime(5)=0)
anim=211
id=211
sprpriority=5
postype=p1
pos=60,-77
under=0
ownpal=1
bindtime=-1
scale=0.5,0.5
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710]
type=explod
triggerall=ishelper(3)
triggerall=root,var(45) && 0
trigger1=anim=700&&(animelem=4)
anim=211
id=212
sprpriority=4
postype=p1
pos=40,-77
under=1
ownpal=1
bindtime=-1
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710]
type=explod
triggerall=ishelper(3)
triggerall=root,var(45) && 0
trigger1=anim=700&&(animelem=4)
anim=211
id=212
sprpriority=4
postype=p1
pos=40,-77
under=1
ownpal=1
bindtime=-1
scale=1.10,1.10
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710-b-s]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=700&&(animelem=5)
anim=211
id=212
sprpriority=6
postype=p1
pos=64,-67
under=1
ownpal=1
trans=sub
scale=0.5,0.5
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710-b-l]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=700&&(animelem=4)
anim=211
id=212
sprpriority=4
postype=p1
pos=50,-67
under=1
ownpal=1
scale=1.10,1.10
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710-w-l]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=700&&(animelem=4)
anim=213
id=213
sprpriority=6
postype=p1
pos=50,-67
under=1
ownpal=1
scale=0.5,0.5
trans=add
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710-w-l]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=700&&(animelem=4)
anim=213
id=213
sprpriority=5
postype=p1
pos=50,-67
under=1
ownpal=1
scale=0.5,0.5
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710-w-s]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=700&&(animelem=5)
anim=213
id=213
sprpriority=7
postype=p1
pos=60,-67
under=1
ownpal=1
scale=0.25,0.25
trans=add
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710-w-s]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=700&&(animelem=5)
anim=213
id=213
sprpriority=5
postype=p1
pos=60,-67
under=1
ownpal=1
scale=0.25,0.25
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710-w-s2]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=700&&(animelemtime(5)=3)
anim=213
id=213
sprpriority=7
postype=p1
pos=70,-67
under=1
ownpal=1
scale=0.125,0.125
trans=add
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710-w-s2]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=700&&(animelemtime(5)=3)
anim=213
id=213
sprpriority=5
postype=p1
pos=70,-67
under=1
ownpal=1
scale=0.125,0.125
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 710]
type=selfstate
triggerall=ishelper(3)
triggerall=ifelse(root,palno=12,1,(ifelse((var(57)=[0,2]),var(57)=2,1)))
triggerall=roundstate=2&&root,alive&&!root,var(15)&&statetype!=a
triggerall=root,var(45)
triggerall=command="WP-1"||command="WP-2"||command="WP-3"||command="WP-4"||command="CCD"||command="DTI"
triggerall=var(3):=((command="WP-1")*-120)+((command="WP-2")*-50)+((command="WP-3")*50)+((command="WP-4")*120)+((command="CCD")*608)+((command="DTI")*609)||1
trigger1=animelemtime(5)>0
value=1950

[state 710]
type=selfstate
trigger1=ishelper(3)
trigger1=statetype!=a
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
trigger3=ishelper(3)
trigger3=time>100
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; ガードキャンセルふっ飛ばし攻撃
;==========================================================================================
;==========================================================================================

[statedef 715]
type=s
movetype=a
physics=s
juggle=8
ctrl=0
sprpriority=2

[state 715]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 715]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-500

[state 715]
type=velset
triggerall=ishelper(3)
trigger1=!time
x=0
y=0
ignorehitpause=1

[state 715]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 715]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=715
ignorehitpause=1

[state 715]
type=projectile
triggerall=ishelper(3)
trigger1=animelem=4&&root,var(45)
attr=s,na
projanim=711
projhitanim=-1
projid=6080
projpriority=2147483647
projsprpriority=2147483647
projremove=1
projremovetime=8
postype=p1
offset=0,0
velocity=0
animtype=diagup
damage=98,10
getpower=0,0
guardflag=m
pausetime=0,5
sparkno=s2830
guard.sparkno=s2850
sparkxy=30,-77
hitsound=s225,1
guardsound=s120,0
ground.type=low
ground.slidetime=17
ground.hittime=17
ground.velocity=-25,-4.5
air.velocity=-25,-4.8
guard.velocity=-9.8
airguard.velocity=-9.8,-2.5
fall=1
fall.recover=0
envshake.time=10
envshake.ampl=10
p2stateno=960

[state 715]
type=projectile
triggerall=ishelper(3)
trigger1=animelem=4&&!root,var(45)
attr=s,na
projanim=711
projhitanim=-1
projid=6080
projpriority=2147483647
projsprpriority=2147483647
projremove=1
projremovetime=2
postype=p1
offset=0,0
velocity=0
animtype=diagup
damage=98,10
getpower=136,136
guardflag=ma
pausetime=5,5
sparkno=s2830
guard.sparkno=s2850
sparkxy=30,-77
hitsound=s225,1
guardsound=s120,0
ground.type=low
ground.slidetime=17
ground.hittime=17
ground.velocity=-5,-6.5
air.velocity=-5,-6.8
guard.velocity=-9.8
airguard.velocity=-9.8,-2.5
fall=1
fall.recover=0
envshake.time=10
envshake.ampl=10

[state 715]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=290,0
freqmul=1.0
volume=255

[state 715]
type=playsnd
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=animelem=4
value=4000,14
freqmul=1.2
volume=255

[state 715]
type=playsnd
triggerall=ishelper(3)
triggerall=!root,var(45)
trigger1=(animelem=4)
value=1200,11
freqmul=1.5
volume=50

[state 715]
type=playsnd
triggerall=ishelper(3)
triggerall=!root,var(45)
trigger1=(animelem=4)
value=4000,1
freqmul=1.7
volume=255

[state 715]
type=explod
triggerall=ishelper(3)
triggerall=!root,var(45)
trigger1=(animelem=4||animelem=5)
anim=701
id=211
sprpriority=4
postype=p1
pos=0,0
ownpal=1
bindtime=1
vel=1,0
scale=1.0,1.0
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715]
type=explod
triggerall=ishelper(3) && 0
triggerall=root,var(45)
trigger1=animelem=4
anim=211
id=211
sprpriority=4
postype=p1
pos=30,-77
ownpal=1
bindtime=-1
scale=0.5,0.5
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=animelem=4
anim=211
id=211
sprpriority=2
postype=p1
pos=40,-77
under=0
ownpal=1
bindtime=-1
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715]
type=explod
triggerall=ishelper(3) && 0
triggerall=root,var(45)
trigger1=animelemtime(5)=0
anim=211
id=211
sprpriority=5
postype=p1
pos=60,-77
under=0
ownpal=1
bindtime=-1
scale=0.5,0.5
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715]
type=explod
triggerall=ishelper(3) && 0
triggerall=root,var(45)
trigger1=animelem=4
anim=211
id=212
sprpriority=4
postype=p1
pos=40,-77
under=1
ownpal=1
bindtime=-1
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715]
type=explod
triggerall=ishelper(3) && 0
triggerall=root,var(45)
trigger1=animelem=4
anim=211
id=212
sprpriority=4
postype=p1
pos=40,-77
under=1
ownpal=1
bindtime=-1
scale=1.10,1.10
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715-b-s]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=715&&(animelem=5)
anim=211
id=212
sprpriority=6
postype=p1
pos=64,-67
under=1
ownpal=1
trans=sub
scale=0.5,0.5
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715-b-l]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=715&&(animelem=4)
anim=211
id=212
sprpriority=4
postype=p1
pos=50,-67
under=1
ownpal=1
scale=1.10,1.10
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715-w-l]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=715&&(animelem=4)
anim=213
id=213
sprpriority=6
postype=p1
pos=50,-67
under=1
ownpal=1
scale=0.5,0.5
trans=add
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715-w-l]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=715&&(animelem=4)
anim=213
id=213
sprpriority=5
postype=p1
pos=50,-67
under=1
ownpal=1
scale=0.5,0.5
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715-w-s]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=715&&(animelem=5)
anim=213
id=213
sprpriority=7
postype=p1
pos=60,-67
under=1
ownpal=1
scale=0.25,0.25
trans=add
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715-w-s]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=715&&(animelem=5)
anim=213
id=213
sprpriority=5
postype=p1
pos=60,-67
under=1
ownpal=1
scale=0.25,0.25
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715-w-s2]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=715&&(animelemtime(5)=3)
anim=213
id=213
sprpriority=7
postype=p1
pos=70,-67
under=1
ownpal=1
scale=0.125,0.125
trans=add
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715-w-s2]
type=explod
triggerall=ishelper(3) && 1
triggerall=root,var(45)
trigger1=anim=715&&(animelemtime(5)=3)
anim=213
id=213
sprpriority=5
postype=p1
pos=70,-67
under=1
ownpal=1
scale=0.125,0.125
trans=sub
ignorehitpause=0
pausemovetime=9999999
supermovetime=9999999

[state 715]
type=targetdrop
triggerall=ishelper(3)
trigger1=1

[state 715]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 通常投げ-C
;==========================================================================================
;==========================================================================================

[statedef 800]
type=s
movetype=a
physics=s
velset=0,0
ctrl=0
sprpriority=2

[state 800]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 800]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=50

[state 800]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=800
ignorehitpause=1

[state 800]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 800]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=s,nt        
hitflag=m-  
numhits=0        
priority=1,miss    
sparkno=-1
p1sprpriority=1
p1facing=1-((command="holdback")*2)
p2facing=1        
p1stateno=810      
p2stateno=820      
guard.dist=0        
fall=1         

[state 800]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
value=210+!root,var(45)*6
ctrl=0

[state 800]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0
ctrl=0

;==========================================================================================
;==========================================================================================
; 通常投げ-C-自分
;==========================================================================================
;==========================================================================================

[statedef 810]
type=s
movetype=a
physics=n
juggle=8
sprpriority=2

[state 810]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 810]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=810
ignorehitpause=1

[state 810]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1 

[state 810]
type=playsnd
triggerall=ishelper(3)
trigger1=time=3
trigger2=animelemtime(15)=1
volume=(animelemtime(15)=1)*250
value=800+(animelemtime(15)=1)*3200,(animelemtime(15)=1)*25
ignorehitpause=1

[state 810]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(5)=1
trigger2=animelemtime(10)=1
value=225,1
ignorehitpause=1

[state 810]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(15)=1
time=4
value=200,0,0
under=1
ignorehitpause=1

[state 810]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(5)=1
trigger2=animelemtime(10)=1
trigger3=animelemtime(15)=1
time=4+(animelemtime(15)=1)*12
ampl=4+(animelemtime(15)=1)*12
freq=95
phase=95
ignorehitpause=1

[state 810]
type=hitadd
triggerall=ishelper(3)
trigger1=animelemtime(5)=1
trigger2=animelemtime(10)=1
trigger3=animelemtime(15)=1
value=1
ignorehitpause=1

[state 810]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(15)=0
anim=2800
id=2800
sprpriority=5
postype=p1
pos=0,1
under=0

[state 810]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(5)=1
trigger2=animelemtime(10)=1
trigger3=animelemtime(15)=1
anim=2835
sprpriority=3
postype=p1
velset=0,0
pos=47+(animelemtime(10)=1)*10,-69+(animelemtime(10)=1)*9-(animelemtime(15)=1)*40
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 810]
type=pause
triggerall=ishelper(3)
trigger1=animelemtime(15)=1
time=25
movetime=0

[state 810]
type=targetbind
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
pos=35,0
ignorehitpause=1

[state 810]
type=targetstate
triggerall=ishelper(3)
trigger1=animelemtime(5)=1
trigger2=animelemtime(10)=1
trigger3=animelemtime(15)=1
value=825+(animelemtime(15)=1)
ignorehitpause=1

[state 810]
type=targetlifeadd
triggerall=ishelper(3)
trigger1=animelemtime(5)=1
trigger2=animelemtime(10)=1
trigger3=animelemtime(15)=1
value=ceil(-0.005*enemy,const(data.life))
absolute=1
ignorehitpause=1

[state 810]
type=width
triggerall=ishelper(3)
trigger1=1
edge=60,0
ignorehitpause=1

[state 810] 
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 通常投げ-C-相手-1
;==========================================================================================
;==========================================================================================

[statedef 820]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 820]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 820]
type=changeanim2
trigger1=!time
value=820

[state 820]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 820] 
type=selfstate
trigger1=time>100
value=5100 

;==========================================================================================
;==========================================================================================
; 通常投げ-C-相手-2
;==========================================================================================
;==========================================================================================

[statedef 825]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 825]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 825]
type=lifeadd
trigger1=!time
value=ceil(-0.015*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 825]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 825]
type=changeanim2
trigger1=!time
value=825

[state 825]
type=changeanim
trigger1=time=30
value= 5050

[state 825] 
type=selfstate
trigger1=time>100
value=5100 

;==========================================================================================
;==========================================================================================
; 通常投げ-C-相手-3
;==========================================================================================
;==========================================================================================

[statedef 826]
type=a
movetype=h
physics=n
velset=-2,-8

[state 826]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 826]
type=lifeadd
trigger1=!time
value=ceil(-0.02*const(data.life))
absolute=1
ignorehitpause=1

[state 826]
type=lifeset
trigger1=!time&&life<=lifemax*0.01
value=0
ignorehitpause=1

[state 826]
type=veladd
trigger1=1
y=0.28

[state 826]
type=changeanim
trigger1=!time
value=5050

[state 826]
type=changeanim
trigger1=!time
trigger1=animexist(5052)=1
value=5052

[state 826]
type=changeanim
trigger1=time=15
trigger1=animexist(5061)=1
value=5061

[state 826]
type=changeanim
trigger1=time=15
trigger1=animexist(5062)=1
value=5062

[state 826]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; 通常投げ-D
;==========================================================================================
;==========================================================================================

[statedef 850]
type=s
movetype=a
physics=s
velset=0,0
ctrl=0
sprpriority=2

[state 850]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 850]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=50

[state 850]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=800
ignorehitpause=1

[state 850]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 850]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=s,nt        
hitflag=m-  
numhits=0        
priority=1,miss    
sparkno=-1
p1sprpriority=1
p1facing=1
p2facing=1        
p1stateno=860    
p2stateno=820
guard.dist=0        
fall=1         

[state 850]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=241-!root,var(45)
ctrl=0

;==========================================================================================
;==========================================================================================
; 通常投げ-D-自分-1
;==========================================================================================
;==========================================================================================

[statedef 860]
type=s
movetype=a
physics=n
juggle=8
sprpriority=2

[state 860]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 860]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=850
ignorehitpause=1

[state 860]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 860]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1||time=3||time=5
value=1200,0
ignorehitpause=1

[state 860]
type=assertspecial
triggerall=ishelper(3)
trigger1=time>=30
flag=invisible
flag2=noshadow
ignorehitpause=1

[state 860]
type=trans
triggerall=ishelper(3)
trigger1=time<=30
trans=addalpha
alpha=250-time*10,time*10

[state 860]
type=velset
triggerall=ishelper(3)
trigger1=!time
trigger2=time=30
x=2.5*!time
y=0
ignorehitpause=1

[state 860]
type=playsnd
triggerall=ishelper(3)
trigger1=time>=50
trigger1=gametime%4=0
value=225,1
ignorehitpause=1

[state 860]
type=envshake
triggerall=ishelper(3)
trigger1=time>=50
trigger1=gametime%4=0
time=5
ampl=5
freq=95
phase=95
ignorehitpause=1

[state 860]
type=hitadd
triggerall=ishelper(3)
trigger1=time>=50
trigger1=gametime%4=0
value=1
ignorehitpause=1

[state 860]
type=explod
triggerall=ishelper(3)
trigger1=time>=50
trigger1=gametime%4=0
anim=2835
sprpriority=3
postype=p2
velset=0,0
pos=-20+random%40,-20-random%100
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 860]
type=targetbind
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
pos=35,0
ignorehitpause=1

[state 860]
type=targetstate
triggerall=ishelper(3)
trigger1=time>=50
trigger1=gametime%4=0
value=866
ignorehitpause=1

[state 860] 
type=selfstate
trigger1=ishelper(3)
trigger1=time>=80
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=865
ctrl=0

;==========================================================================================
;==========================================================================================
; 通常投げ-D-自分-2
;==========================================================================================
;==========================================================================================

[statedef 865]
type=s
movetype=a
physics=n
juggle=8
sprpriority=2

[state 865]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 865]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=851
ignorehitpause=1 

[state 860]
type=trans
trigger1=ishelper(3)
trigger1=root,palno!=11&&time<=50&&!root,var(20)
trans=addalpha
alpha=time*10,250-time*10

[state 865]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=225,1
ignorehitpause=1

[state 865]
type=envshake
triggerall=ishelper(3)
trigger1=!time
time=10
ampl=10
freq=95
phase=95
ignorehitpause=1

[state 865]
type=hitadd
triggerall=ishelper(3)
trigger1=!time
value=1
ignorehitpause=1

[state 865]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=2835
sprpriority=3
postype=p2
velset=0,0
pos=0,0
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 865]
type=targetstate
triggerall=ishelper(3)
trigger1=!time
value=867
ignorehitpause=1

[state 865]
type=targetlifeadd
triggerall=ishelper(3)
trigger1=!time
value=ceil(-0.004*enemy,const(data.life))
absolute=1
ignorehitpause=1

[state 865] 
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 通常投げ-D-相手-2
;==========================================================================================
;==========================================================================================

[statedef 866]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 866]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 866]
type=lifeadd
trigger1=!time
value=ceil(-0.007*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 866]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 866]
type=changeanim2
trigger1=!time
value=866

[state 866] 
type=selfstate
trigger1=time>100
value=5100 

;==========================================================================================
;==========================================================================================
; 通常投げ-D-相手-3
;==========================================================================================
;==========================================================================================

[statedef 867]
type=a
movetype=h
physics=n
velset=1,-8

[state 867]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 867]
type=lifeadd
trigger1=!time
value=ceil(-0.02*const(data.life))
absolute=1
ignorehitpause=1

[state 867]
type=lifeset
trigger1=!time&&life<=lifemax*0.01
value=0
ignorehitpause=1

[state 867]
type=veladd
trigger1=1
y=0.28

[state 867]
type=changeanim
trigger1=!time
value=5050

[state 867]
type=changeanim
trigger1=!time
trigger1=animexist(5052)=1
value=5052

[state 867]
type=changeanim
trigger1=time=15
trigger1=animexist(5061)=1
value=5061

[state 867]
type=changeanim
trigger1=time=15
trigger1=animexist(5062)=1
value=5062

[state 867]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; 通常投げ-相手
;==========================================================================================
;==========================================================================================

[statedef 900]
physics=n
[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger3=!numhelper(3)
value=69996
ignorehitpause=1
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=i
movetype=i
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=a
movetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=h
movetype=h
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=s
statetype=s
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=c
statetype=c
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=a
statetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=l
statetype=l
[state ]
type=hitdef
triggerall=!ishelper
triggerall=numhelper(3)
trigger1=(var(7)&1024)&&anim=6144
trigger1=helper(3),hitdefattr=sca,aa,ap,at
attr=sca,aa,ap,at
animtype=medium
damage=50
guardflag=ma
pausetime=10,10
sparkno=s2825
guard.sparkno=s2845
sparkxy=-10,-37
hitsound=s224,0                 
guardsound=s120,0  
ground.type=low
ground.slidetime=10
ground.hittime=11
ground.velocity=-5
air.velocity=-2.5,-3.5
[statedef 901]
physics=n
[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger3=!numhelper(3)
value=69996
ignorehitpause=1
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=i
movetype=i
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=a
movetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=h
movetype=h
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=s
statetype=s
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=c
statetype=c
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=a
statetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=l
statetype=l
[state ]
type=hitdef
triggerall=!ishelper
triggerall=numhelper(3)
trigger1=(var(7)&1024)&&anim=6144
trigger1=helper(3),hitdefattr=sca,aa,ap,at
attr=sca,aa,ap,at
animtype=medium
damage=50
guardflag=ma
pausetime=10,10
sparkno=s2825
guard.sparkno=s2845
sparkxy=-10,-37
hitsound=s224,0                 
guardsound=s120,0  
ground.type=low
ground.slidetime=10
ground.hittime=11
ground.velocity=-5
air.velocity=-2.5,-3.5
[statedef 902]
physics=n
[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger3=!numhelper(3)
value=69996
ignorehitpause=1
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=i
movetype=i
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=a
movetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=h
movetype=h
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=s
statetype=s
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=c
statetype=c
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=a
statetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=l
statetype=l
[state ]
type=hitdef
triggerall=!ishelper
triggerall=numhelper(3)
trigger1=(var(7)&1024)&&anim=6144
trigger1=helper(3),hitdefattr=sca,aa,ap,at
attr=sca,aa,ap,at
animtype=medium
damage=50
guardflag=ma
pausetime=10,10
sparkno=s2825
guard.sparkno=s2845
sparkxy=-10,-37
hitsound=s224,0                 
guardsound=s120,0  
ground.type=low
ground.slidetime=10
ground.hittime=11
ground.velocity=-5
air.velocity=-2.5,-3.5
[statedef 903]
physics=n
[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger3=!numhelper(3)
value=69996
ignorehitpause=1
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=i
movetype=i
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=a
movetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=h
movetype=h
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=s
statetype=s
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=c
statetype=c
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=a
statetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=l
statetype=l
[state ]
type=hitdef
triggerall=!ishelper
triggerall=numhelper(3)
trigger1=(var(7)&1024)&&anim=6144
trigger1=helper(3),hitdefattr=sca,aa,ap,at
attr=sca,aa,ap,at
animtype=medium
damage=50
guardflag=ma
pausetime=10,10
sparkno=s2825
guard.sparkno=s2845
sparkxy=-10,-37
hitsound=s224,0                 
guardsound=s120,0  
ground.type=low
ground.slidetime=10
ground.hittime=11
ground.velocity=-5
air.velocity=-2.5,-3.5
[statedef 904]
physics=n
[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger3=!numhelper(3)
value=69996
ignorehitpause=1
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=i
movetype=i
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=a
movetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=h
movetype=h
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=s
statetype=s
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=c
statetype=c
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=a
statetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=l
statetype=l
[state ]
type=hitdef
triggerall=!ishelper
triggerall=numhelper(3)
trigger1=(var(7)&1024)&&anim=6144
trigger1=helper(3),hitdefattr=sca,aa,ap,at
attr=sca,aa,ap,at
animtype=medium
damage=50
guardflag=ma
pausetime=10,10
sparkno=s2825
guard.sparkno=s2845
sparkxy=-10,-37
hitsound=s224,0                 
guardsound=s120,0  
ground.type=low
ground.slidetime=10
ground.hittime=11
ground.velocity=-5
air.velocity=-2.5,-3.5
[statedef 905]
physics=n
[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger3=!numhelper(3)
value=69996
ignorehitpause=1
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=i
movetype=i
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=a
movetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=h
movetype=h
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=s
statetype=s
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=c
statetype=c
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=a
statetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=l
statetype=l
[state ]
type=hitdef
triggerall=!ishelper
triggerall=numhelper(3)
trigger1=(var(7)&1024)&&anim=6144
trigger1=helper(3),hitdefattr=sca,aa,ap,at
attr=sca,aa,ap,at
animtype=medium
damage=50
guardflag=ma
pausetime=10,10
sparkno=s2825
guard.sparkno=s2845
sparkxy=-10,-37
hitsound=s224,0                 
guardsound=s120,0  
ground.type=low
ground.slidetime=10
ground.hittime=11
ground.velocity=-5
air.velocity=-2.5,-3.5
[statedef 906]
physics=n
[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger3=!numhelper(3)
value=69996
ignorehitpause=1
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=i
movetype=i
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=a
movetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),movetype=h
movetype=h
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=s
statetype=s
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=c
statetype=c
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=a
statetype=a
[state ]
type=statetypeset
trigger1=!ishelper&&(var(7)&1024)
trigger1=numhelper(3)
trigger1=helper(3),statetype=l
statetype=l
[state ]
type=hitdef
triggerall=!ishelper
triggerall=numhelper(3)
trigger1=(var(7)&1024)&&anim=6144
trigger1=helper(3),hitdefattr=sca,aa,ap,at
attr=sca,aa,ap,at
animtype=medium
damage=50
guardflag=ma
pausetime=10,10
sparkno=s2825
guard.sparkno=s2845
sparkxy=-10,-37
hitsound=s224,0                 
guardsound=s120,0  
ground.type=low
ground.slidetime=10
ground.hittime=11
ground.velocity=-5
air.velocity=-2.5,-3.5

;==========================================================================================
;==========================================================================================
; 強制ダウン-相手
;==========================================================================================
;==========================================================================================

[statedef 950]
type=l
movetype=h
physics=n
ctrl=0
velset=0,0
sprpriority=2

[state 950]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 950]
type=nothitby
trigger1=1
value=sca

[state 950]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
absolute=1
ignorehitpause=1

[state 950]
type=changeanim
trigger1=!time
trigger1=selfanimexist(5161)
value=5161
ignorehitpause=1

[state 950]
type=changeanim
trigger1=time=14
trigger1=selfanimexist(5171)
value=5171
ignorehitpause=1

[state 950]
type=envshake
trigger1=!time
time=10
ampl=-15
freq=95
phase=95

[state 950]
type=selfstate
trigger1=time>=50
value=5120

;==========================================================================================
;==========================================================================================
; 復帰1
;==========================================================================================
;==========================================================================================

[statedef 955]
type=a
movetype=a
physics=n
ctrl=0
sprpriority=2

[state 955]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 955]
type=turn
triggerall=ishelper(3)&&animelemtime(1)=0
trigger1=pos x<enemynear(root,var(18)),pos x&&facing=-1
trigger2=pos x>enemynear(root,var(18)),pos x&&facing=1

[state 955]
type=selfstate
triggerall=ishelper(3)
trigger1=root,alive
value=956+(root,var(45)>0||root,palno>10)
ctrl=0

[state 955]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,alive
value=5050

[state 955]
type=nothitby 
trigger1=ishelper(3)
value=sca

[state 955]
type=changeanim
trigger1=ishelper(3)
trigger1=anim!=5249
value=5249

[state 955]
type=poweradd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
value=1000

[state 955]
type=velset
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
x=-2.2
y=-4.3

[state 955]
type=veladd
triggerall=ishelper(3)
trigger1=1
y=0.38

[state 955]
type=selfstate
triggerall=ishelper(3)
trigger1=vel y>0&&pos y>=0
trigger2=time>=300
value=1115
ctrl=0

[state 955]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0
ctrl=0

;==========================================================================================
;==========================================================================================
; 復帰2
;==========================================================================================
;==========================================================================================

[statedef 956]
type=a
movetype=h
ctrl=0
velset=0,0
sprpriority=-1

[state 956]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 956]
type=lifeadd
trigger1=ishelper(3)
trigger1=time=1
value=-15

[State 956]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=5070

[State 956]
type=velset
trigger1=ishelper(3)
trigger1=!time
x=-4
y=-5

[State 956]
type=veladd
trigger1=ishelper(3)
trigger1=time
y=0.47

[state 956]
type=selfstate
triggerall=ishelper(3)
trigger1=vel y>0&&pos y>=0
trigger2=time>=300
value=5100

;==========================================================================================
;==========================================================================================
; 復帰3
;==========================================================================================
;==========================================================================================

[statedef 957]
ctrl=0
velset=0,0
movetype=a
sprpriority=2

[state 957]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 957]
type=changeanim
trigger1=ishelper(3)
trigger1=anim!=970
value=970
ignorehitpause=1

[state 957]
type=poweradd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
value=1000

[state 957]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 957]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
trigger2=animelemtime(2)=0
value=1200,1
volume=50
freqmul=1.0
ignorehitpause=0

[state 957]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
trigger2=animelemtime(2)=0
value=4000,37
volume=100
freqmul=0.8
ignorehitpause=0

[state 957]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
value=240,1
volume=50
freqmul=0.4
ignorehitpause=0

[state 957]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=2
value=240,1
volume=50
freqmul=1.2
ignorehitpause=0

[state 957]
type=playerpush
triggerall=ishelper(3)
trigger1=1
value=0
ignorehitpause=1

[state 957]
type=posset
triggerall=ishelper(3)
trigger1=animelemtime(14)=0
y=0
ignorehitpause=1

[state 957]
type=velset
triggerall=ishelper(3)
trigger1=animelemtime(13)=0||animelemtime(14)=0
x=(animelemtime(13)=0)*(ifelse(var(3),-5,5))
ignorehitpause=1

[state 957] 
type=turn
triggerall=ishelper(3)
triggerall=animelem=14
trigger1=p2dist x<0
ignorehitpause=1

[state 957]
type=selfstate
triggerall=ishelper(3)
triggerall=(root,palno>6)&&(root,var(30)&512)
triggerall=numhelper(6)&&root,var(45)&&root,var(27)
triggerall=!root,var(31)&&!helper(6),var(29)
trigger1=!animtime
value=2900
ctrl=0

[state 957]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 相手状態-1
;==========================================================================================
;==========================================================================================

[statedef 960]
type=a
movetype=h
physics=n
velset=0,0

[state 960]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 960]
type=changeanim
trigger1=!time
trigger1=selfanimexist(5051)
value=5051

[state 960]
type=envcolor
trigger1=!time
time=2
value=255,255,255
under=1
ignorehitpause=1

[state 960]
type=changestate
trigger1=hitshakeover
value=961

;==========================================================================================
;==========================================================================================
; 相手状態-2
;==========================================================================================
;==========================================================================================

[statedef 961]
type=a
movetype=h
physics=n

[state 961]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 961]
type=null;poweradd
trigger1=!time
value=powermax

[state 961]
type=hitvelset
trigger1=!time
x=1
y=1

[state 961]
type=veladd
trigger1=1
y=0.36

[state 950]
type=null;envshake
triggerall=pos y<-10
trigger1=(backedgebodydist<=18||frontedgebodydist<=18)
time=10
ampl=-15
freq=95
phase=95

[state 961]
type=changestate
triggerall=pos y<-10
trigger1=(backedgebodydist<=18||frontedgebodydist<=18)
value=962

[state 961]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; 相手状態-2
;==========================================================================================
;==========================================================================================

[statedef 962]
type=a
movetype=h
physics=n

[state 962]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 962]
type=changeanim2
trigger1=!time
value=962

[state 962]
type=turn
trigger1=!time&&frontedgebodydist<=28

[state 962]
type=posadd
trigger1=!time
x=15-backedgebodydist

[state 962]
type=posfreeze
trigger1=1
x=1
y=1

[state 962]
type=changestate
trigger1=!animtime
value=963

;==========================================================================================
;==========================================================================================
; 相手状態-3
;==========================================================================================
;==========================================================================================

[Statedef 963]
type=a
movetype=h
physics=n
velset=1.5,-3

[state 963]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 963]
type=turn
trigger1=!time&&backedgedist<30

[state 963]
type=veladd
trigger1=1
y=0.37

[state 963]
type=changeanim
trigger1=!time
value=5050+selfanimexist(5052)*2

[state 963]
type=changeanim
triggerall=vel y>-2
trigger1=anim=5050
trigger1=selfanimexist(5060)
trigger2=anim=5052
trigger2=selfanimexist(5062)
value=5060+(anim=5052)*2
persistent=0

[state 963]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; 相手状態-4
;==========================================================================================
;==========================================================================================

[statedef 964]
type=a
movetype=h
physics=n
sprpriority=4
velset=-4,-6
facep2=1

[state 964]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 964]
type=changeanim
trigger1=!time
value=5070

[state 964]
type=veladd
trigger1=time
y=0.39

[state 964]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; 試合中復帰
;==========================================================================================
;==========================================================================================

[statedef 965]
type=a
movetype=i
physics=n
sprpriority=4
velset=-4,-6
facep2=1

[state 965]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 965]
type=removeexplod
trigger1=ishelper
id=-1

[state 965]
type=destroyself
trigger1=!ishelper(3)

[state 965]
type=nothitby
trigger1=ishelper(3)
value=sca

[state 965]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=5070

[state 965]
type=veladd
trigger1=ishelper(3)
trigger1=time
y=0.39

[state 965]
type=selfstate
triggerall=ishelper(3)
trigger1=vel y>0&&pos y>=0
trigger2=time>=300
value=5100

;==========================================================================================
;==========================================================================================
; 緊急回避-12
;==========================================================================================
;==========================================================================================

[statedef 970]
ctrl=0
velset=0,0
movetype=a
sprpriority=2

[state 970]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
trigger4=!ishelper
value=69996
ignorehitpause=1

[state 970]
type=destroyself
trigger1=ishelper(3)
trigger1=hitpausetime>41
ignorehitpause=1

[state 970]
type=changeanim
trigger1=ishelper(3)
trigger1=anim!=970
value=970
ignorehitpause=1

[state 970]
type=poweradd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
value=500

[state 970]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 970]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
trigger2=animelemtime(2)=0
value=1200,1
volume=50
freqmul=1.0
ignorehitpause=0

[state 970]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
trigger2=animelemtime(2)=0
value=4000,37
volume=100
freqmul=0.8
ignorehitpause=0

[state 970]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
value=240,1
volume=50
freqmul=0.4
ignorehitpause=0

[state 970]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=2
value=240,1
volume=50
freqmul=1.2
ignorehitpause=0

[state 970]
type=playerpush
trigger1=ishelper(3)
value=0
ignorehitpause=1

[state 970]
type=posset
triggerall=ishelper(3)
trigger1=root,palno!=12
trigger1=!time
trigger2=root,palno=12
trigger2=animelemtime(14)=0
y=0
ignorehitpause=1

[state 970]
type=velset
triggerall=ishelper(3)
trigger1=animelemtime(13)=0||animelemtime(14)=0
x=(animelemtime(13)=0)*(ifelse(var(3),-5,5))
ignorehitpause=1

[state 970] 
type=turn
triggerall=ishelper(3)
triggerall=animelem=14
trigger1=p2dist x<0
ignorehitpause=1

[state 970]
type=selfstate
trigger1=!animtime
value=0
ctrl=1

;==========================================================================================
;==========================================================================================
; ディメンジョンスフィア
;==========================================================================================
;==========================================================================================

[statedef 1000]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state 1000]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1000]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1000]
type=playsnd
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=animelemtime(7)=1
value=1000,4
freqmul=0.8
volume=255
ignorehitpause=1

[state 1000]
type=null;playsnd
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=animelemtime(7)=1
value=4000,36
freqmul=0.8
volume=255

[state 1000]
type=playsnd
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=animelemtime(6)=1
trigger2=animelemtime(7)=1
value=4000,42
freqmul=1.0
volume=255
ignorehitpause=1

[state 1000]
type=playsnd
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=animelemtime(7)=1||animelemtime(7)=3
value=4000,41
freqmul=1.0
volume=200
ignorehitpause=1

[state 1000]
type=envshake
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=animelemtime(7)=1
time=9
ampl=9
freq=120
phase=120
ignorehitpause=1

[state 1000]
type=bgpalfx
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=animelemtime(7)=1
time=2
invertall=1
persistent=0
ignorehitpause=1

[state 1000]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=85+(root,var(15)!=0)*55

[state 1000]
type=selfstate
triggerall=ishelper(3)
trigger1=!animtime
trigger2=!root,var(16)
trigger2=animelemtime(7)<=0
value=0
ctrl=1

[state 1000]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0
ctrl=0

[state 1000]
type=posadd
triggerall=ishelper(3)
trigger1=animelemtime(9)=0
trigger2=animelemtime(10)=0
x=-8

[state 1000]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1000+(root,palno=12||root,var(45))

;==========================================================================================
;==========================================================================================
; ディメンジョンスフィア
;==========================================================================================
;==========================================================================================

[statedef 1050]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state 1050]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1050]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state 1050]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=85+(root,var(15)!=0)*55

[state 1050]
type=posadd
triggerall=ishelper(3)
trigger1=animelemtime(9)=0
trigger2=animelemtime(10)=0
x=-6

[state 1050]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1000+(root,palno=12||root,var(45))

[state 1050]
type=playsnd
trigger1=ishelper(3)
trigger1=root,palno=[11,12]
trigger1=animelem=8
value=1000,4
freqmul=0.8
volume=255

[state 1050]
type=null;envshake
trigger1=ishelper(3)
trigger1=root,palno=[11,12]
trigger1=animelem=8
time=4
ampl=4
freq=120
phase=120
ignorehitpause=1

[state 1050]
type=playsnd
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=root,palno!=[11,12]
trigger1=animelemtime(7)=1
value=1000,4
freqmul=0.8
volume=255

[state 1050]
type=null;playsnd
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=root,palno!=[11,12]
trigger1=animelemtime(7)=1
value=4000,36
freqmul=0.8
volume=255

[state 1050]
type=playsnd
triggerall=ishelper(3)
triggerall=root,var(45)
;triggerall=root,palno!=[11,12]
trigger1=animelemtime(6)=1
trigger2=animelemtime(7)=1
value=4000,42
freqmul=1.0
volume=255
ignorehitpause=1

[state 1050]
type=playsnd
triggerall=ishelper(3)
triggerall=root,var(45)
trigger1=animelemtime(7)=1||animelemtime(7)=3
value=4000,41
freqmul=1.0
volume=200

[state 1050]
type=envshake
triggerall=ishelper(3)
triggerall=root,var(45)
;trigger1=root,palno!=[11,12]
trigger1=animelemtime(7)=1
time=9
ampl=9
freq=120
phase=120
ignorehitpause=1

[state 1050]
type=bgpalfx
triggerall=ishelper(3)
triggerall=root,var(45)
;trigger1=root,palno!=[11,12]
trigger1=animelemtime(7)=1
time=2
invertall=1
persistent=0
ignorehitpause=1

[state 1050]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; ディメンジョンスフィアΣ
;==========================================================================================
;==========================================================================================

[statedef 1060]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state 1060]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1060]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1060]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state 1060]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=70+(root,var(15)!=0)*130

[state 1060]
type=posadd
triggerall=ishelper(3)
trigger1=animelemtime(9)=0
trigger2=animelemtime(10)=0
x=-6

[state 1060]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1060

[state 1060]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
trigger2=animelemtime(8)=1
value=4000,4
freqmul=1.2+(animelemtime(8)=1)*0.2
volume=255
ignorehitpause=0

[state 1060]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(7)=1||animelemtime(8)=1
value=4000,10
freqmul=0.9
volume=250
ignorehitpause=0

[state 1060]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(7)=1||animelemtime(8)=1
value=4000,24
freqmul=1.2
volume=250
ignorehitpause=0

[state 1060]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
anim=1062
sprpriority=99
postype=p1
scale=0.5,0.5
pos=80,-105
bindtime=1
ownpal=1

[state 1060-1-u]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
anim=1062
sprpriority=99
postype=p1
scale=0.5,0.5
pos=55,-135
bindtime=1
ownpal=1

[state 1060-1-d]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
anim=1062
sprpriority=99
postype=p1
scale=0.5,0.5
pos=55,-75
bindtime=1
ownpal=1

[state 1060-2-u]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
anim=1062
sprpriority=99
postype=p1
scale=0.5,0.5
pos=25,-165
bindtime=1
ownpal=1

[state 1060-2-d]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
anim=1062
sprpriority=99
postype=p1
scale=0.5,0.5
pos=25,-45
bindtime=1
ownpal=1

[state 1060-p1]
type=projectile
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
attr=a,na
projanim=2610
projhitanim=2611
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=100
postype=p1
projscale=0.5,0.5
offset=70,-105
velocity=2
accel=0.05,0
animtype=hard
damage=20,2
getpower=20,5
givepower=6,6
guardflag=m
hitflag=maf
pausetime=0,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3
guard.velocity=-2.8
air.velocity=-3,-6
fall=0
air.fall=1
fall.recover=0

[state 1060-p2-u]
type=projectile
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
attr=a,na
projanim=2610
projhitanim=2611
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=100
postype=p1
projscale=0.5,0.5
offset=45,-135
velocity=2
accel=0.05,-0.05
animtype=hard
damage=20,2
getpower=20,5
givepower=6,6
guardflag=m
hitflag=maf
pausetime=0,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3
guard.velocity=-2.8
air.velocity=-3,-6
fall=0
air.fall=1
fall.recover=0

[state 1060-p2-d]
type=projectile
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
attr=a,na
projanim=2610
projhitanim=2611
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=100
postype=p1
projscale=0.5,0.5
offset=45,-75
velocity=2
accel=0.05,0.05
animtype=hard
damage=20,2
getpower=20,5
givepower=6,6
guardflag=m
hitflag=maf
pausetime=0,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3
guard.velocity=-2.8
air.velocity=-3,-6
fall=0
air.fall=1
fall.recover=0

[state 1060-p3-u]
type=projectile
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
attr=a,na
projanim=2610
projhitanim=2611
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=100
postype=p1
projscale=0.5,0.5
offset=15,-165
velocity=2
accel=0.05,0.05
animtype=hard
damage=20,2
getpower=20,5
givepower=6,6
guardflag=m
hitflag=maf
pausetime=0,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3
guard.velocity=-2.8
air.velocity=-3,-6
fall=0
air.fall=1
fall.recover=0

[state 1060-p3-d]
type=projectile
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
attr=a,na
projanim=2610
projhitanim=2611
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=100
postype=p1
projscale=0.5,0.5
offset=15,-45
velocity=2
accel=0.05,-0.05
animtype=hard
damage=20,2
getpower=20,5
givepower=6,6
guardflag=m
hitflag=maf
pausetime=0,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3
guard.velocity=-2.8
air.velocity=-3,-6
fall=0
air.fall=1
fall.recover=0

[state 1060]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
time=6
ampl=12
freq=120
phase=120

[state 1060]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 失敗
;==========================================================================================
;==========================================================================================

[statedef 1061]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state 1061]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1061]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1061]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state 1061]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-1000

[state 1061]
type=posadd
triggerall=ishelper(3)
trigger1=animelemtime(9)=0
trigger2=animelemtime(10)=0
x=-6

[state 1061]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1061

[state 1061]
type=playsnd
trigger1=ishelper(3)
trigger1=animelemtime(11)=1
value=110,102
freqmul=1.0
volume=255

[state 1061]
type=playsnd
trigger1=ishelper(3)
trigger1=animelemtime(12)=1
value=4000,51
freqmul=1.0
volume=255

[state 1061]
type=bgpalfx
triggerall=ishelper(3)
trigger1=animelemtime(12)=[1,80]
time=2
invertall=1
ignorehitpause=1

[state 1061]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(12)=1
anim=1063
id=1063
sprpriority=99
postype=p1
pos=0-(facing=-1)*10,0
bindtime=-1
facing=facing
removetime=75
ownpal=1

[state 1061]
type=nothitby 
triggerall=ishelper(3)
trigger1=animelemtime(12)<=20
value=sca

[state 1061]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; くるくるドリル
;==========================================================================================
;==========================================================================================

[statedef 1070]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state 1070]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1070]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1070]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state 1070]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=100+(root,palno=6)*68

[state 1070]
type=null;posadd
trigger1=ishelper(3)
trigger1=time>=4
trigger1=!(gametime%4)
x=2

[state 1070]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1070

[state 1070]
type=playsnd
trigger1=ishelper(3)
trigger1=time>=4
trigger1=!(gametime%4)
value=4000,34
freqmul=1.3
volume=255

[state 1070]
type=playsnd
triggerall=ishelper(3)
trigger1=time=4||time=8||time=12
value=1200,2
freqmul=1.0
volume=255

[state 1070]
type=explod
trigger1=ishelper(3)
trigger1=time>=4
trigger1=!(gametime%4)
anim=1072
sprpriority=99
postype=p1
pos=0,0
bindtime=-1
ownpal=1

[state 1070]
type=explod
trigger1=ishelper(3)
trigger1=time>=4
trigger1=!(gametime%4)
anim=1073
sprpriority=99
postype=p1
pos=0,0
bindtime=-1
ownpal=1

[state 1070]
type=envshake
triggerall=ishelper(3)
trigger1=time>=4
trigger1=!(gametime%4)
time=3
ampl=3
freq=120
phase=120

[state 1070]
type=nothitby 
triggerall=ishelper(3)
trigger1=time<=10
value=sca

[state 1070]
type=projectile
triggerall=ishelper(3)
trigger1=time=[4,30]
trigger1=!(gametime%4)
attr=s,sa
projanim=1071
projhitanim=-1
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=1
postype=p1
offset=0,0
velocity=0,0
animtype=hard
damage=3,1
getpower=25,10
givepower=ceil(-enemy,powermax*0.015),ceil(-enemy,powermax*0.015)
guardflag=m
hitflag=ma
pausetime=0,6
guard.pausetime=0,5
sparkno=s2835
sparkxy=ceil(p2dist x)+30,ceil(p2dist y)-50
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-2
guard.velocity=-2.8
air.velocity=-3,-5
fall=0
air.fall=1
fall.recover=0

[state 1070]
type=projectile
triggerall=ishelper(3)
trigger1=time=[30,35]
trigger1=!(gametime%4)
attr=s,sa
projanim=1071
projhitanim=-1
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=1
postype=p1
offset=0,0
velocity=0,0
animtype=diagup
damage=3,1
getpower=25,10
givepower=ceil(-enemy,powermax*0.015),ceil(-enemy,powermax*0.015)
guardflag=m
hitflag=ma
pausetime=0,6
guard.pausetime=0,5
sparkno=s2835
sparkxy=ceil(p2dist x)+30,ceil(p2dist y)-50
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-4,-8
guard.velocity=-2.8
air.velocity=-7,-9
fall=1
air.fall=1
fall.recover=0

[state 1070]
type=selfstate
triggerall=ishelper(3)
triggerall=time>=40
triggerall=1;power>=500
trigger1=command="DTI"
trigger2=root,var(15)&&!(random%(25-(root,var(27)**2)))
trigger2=root,life<=lifemax*0.7
value=1080

[state 1070]
type=selfstate
triggerall=ishelper(3)
trigger1=time>=50
value=1071

[state 1070]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

;==========================================================================================
;==========================================================================================
; ポーズ
;==========================================================================================
;==========================================================================================

[statedef 1071]
type=s
ctrl=0
movetype=a
velset=0,0

[state 1071]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1071]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1071]
type=destroyself
trigger1=!ishelper(3)

[state 1071]
type=posset
triggerall=ishelper(3)
trigger1=!time
y=0

[state 1071]
type=changeanim
triggerall=ishelper(3)
trigger1=anim!=1077
value=1077

[state 1071]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(5)=1
value=4000,75
volume=250
freqmul=1.0
ignorehitpause=1

[state 1071]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; どっかん漬物石
;==========================================================================================
;==========================================================================================

[statedef 1080]
type=s
movetype=a
physics=n
ctrl=0
velset=0,0
sprpriority=2

[state 1080]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1080]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1080]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=185+(root,palno=6)*125

[state 1080]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1080]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1080
ignorehitpause=1

[state 1080]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 1080]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
trigger2=animelemtime(1)=4
trigger3=animelemtime(1)=6
trigger4=animelemtime(1)=8
value=1200,2
volume=250
freqmul=0.9+(animelemtime(1)>=6)*0.2
ignorehitpause=1

[state 1080]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=1081
id=1401
sprpriority=10
postype=p1
pos=0,0
bindtime=-1
ownpal=0

[state 1080]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=1081
id=1402
sprpriority=10
postype=p1
pos=0,0
bindtime=-1
ownpal=0

[state 1080]
type=modifyexplod
triggerall=ishelper(3)
trigger1=numexplod(1401)
id=1401
postype=p1
pos=time,0
bindtime=-1
velset=0,0
trans=addalpha
alpha=250-time*13,time*13
ignorehitpause=1

[state 1080]
type=modifyexplod
triggerall=ishelper(3)
trigger1=numexplod(1402)
id=1402
postype=p1
pos=-time,0
bindtime=-1
velset=0,0
trans=addalpha
alpha=250-time*13,time*13
ignorehitpause=1

[state 1080]
type=trans
triggerall=ishelper(3)
trigger1=time<=20
trans=addalpha
alpha=250-time*13,time*13

[state 1080]
type=assertspecial
triggerall=ishelper(3)
trigger1=time>=20
flag=invisible
ignorehitpause=1

[state 1080]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1081

;==========================================================================================
;==========================================================================================
; 落下
;==========================================================================================
;==========================================================================================

[statedef 1081]
type=a
ctrl=0
movetype=a
physics=n

[state 1081]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1081]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1081]
type=changeanim
triggerall=ishelper(3)
trigger1=anim!=5171
value=5171

[state 1081]
type=destroyself
trigger1=!ishelper(3)

[state 1081]
type=nothitby
triggerall=ishelper(3)
trigger1=1
value=sca
time=1

[state 1081]
type=posset
trigger1=ishelper(3)
trigger1=!time
x=enemynear(root,var(18)),pos x
y=-320

[state 1081]
type=posadd
triggerall=ishelper(3)
trigger1=time
y=32

[state 1081]
type=playsnd
triggerall=ishelper(3)
trigger1=pos y>=0
value=4000,40
freqmul=0.9
volume=255

[state 1081]
type=playsnd
triggerall=ishelper(3)
trigger1=pos y>=0
value=4000,40
freqmul=0.8
volume=255

[state 1081]
type=playsnd
triggerall=ishelper(3)
trigger1=pos y>=0
value=4000,40
freqmul=0.6
volume=255

[state 1081]
type=explod
triggerall=ishelper(3)
trigger1=pos y>=0
anim=1072
sprpriority=99
postype=p1
pos=-20,0
bindtime=-1
ownpal=1

[state 1081]
type=explod
triggerall=ishelper(3)
trigger1=pos y>=0
anim=1073
sprpriority=99
postype=p1
pos=20,0
bindtime=-1
ownpal=1

[state 1081]
type=screenbound
triggerall=ishelper(3)
trigger1=1
value=1
movecamera=1

[state 1081]
type=palfx
triggerall=ishelper(3)
trigger1=1
time=1
color=0

[state 1081]
type=projectile
triggerall=ishelper(3)
trigger1=!root,numtarget(1083251)
attr=a,sa
projanim=1082
projhitanim=-1
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=1
postype=p1
offset=0,0
velocity=0,0
animtype=hard
damage=30,5
getpower=50,25
givepower=4,4
guardflag=m
hitflag=mafd
pausetime=0,6
guard.pausetime=0,5
sparkno=s2835
sparkxy=ceil(p2dist x)+30,ceil(p2dist y)-50
hitsound=-1
guard.sparkno=s2855
guardsound=-1
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-2
guard.velocity=-2.8
air.velocity=-3,-5
fall=0
air.fall=1
fall.recover=0
id=1083251
p2stateno=1083

[state 1081]
type=selfstate
trigger1=ishelper(3)
trigger1=(pos y>=0||time>=300)
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1082

;==========================================================================================
;==========================================================================================
; 起き上がり
;==========================================================================================
;==========================================================================================

[statedef 1082]
type=s
ctrl=0
movetype=a
velset=0,0

[state 1082]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1082]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1082]
type=destroyself
trigger1=!ishelper(3)

[state 1082]
type=posset
triggerall=ishelper(3)
trigger1=!time
y=0

[state 1082]
type=bgpalfx
triggerall=ishelper(3)
trigger1=!time
time=2
invertall=1
persistent=0
ignorehitpause=1

[state 1082]
type=envshake
triggerall=ishelper(3)
trigger1=!time
time=40
ampl=15
freq=120
phase=120

[state 1082]
type=explod
triggerall=ishelper(3)
trigger1=time=5
anim=1072
sprpriority=99
postype=p1
pos=10,0
bindtime=-1
ownpal=1

[state 1082]
type=explod
triggerall=ishelper(3)
trigger1=time=5
anim=1073
sprpriority=99
postype=p1
pos=-10,0
bindtime=-1
ownpal=1

[state 1082]
type=changeanim
triggerall=ishelper(3)
trigger1=time<=90
trigger1=anim!=5171
trigger2=time>=91
trigger2=anim!=5121
value=5171-(time>=91)*50

[state 1082]
type=palfx
triggerall=ishelper(3)
trigger1=time<=90
time=1
color=0

[state 1082]
type=nothitby
triggerall=ishelper(3)
trigger1=time>=90
value=sca

[state 1082]
type=screenbound
triggerall=ishelper(3)
trigger1=1
value=1
movecamera=1

[state 1082]
type=selfstate
trigger1=ishelper(3)
trigger1=anim=5121
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 相手
;==========================================================================================
;==========================================================================================

[Statedef 1083]
type=a
movetype=h
physics=n
velset=0,15

[state 1083]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1083]
type=removeexplod
trigger1=ishelper
ignorehitpause=1

[state 1083]
type=lifeadd
trigger1=!time
value=ceil(-0.14*const(data.life))
absolute=1
ignorehitpause=1

[state 1083]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 1083]
type=veladd
trigger1=1
y=0.37

[state 1083]
type=changeanim
trigger1=!time
value=5050+selfanimexist(5052)*2

[state 1083]
type=changeanim
triggerall=vel y>-2
trigger1=anim=5050
trigger1=selfanimexist(5060)
trigger2=anim=5052
trigger2=selfanimexist(5062)
value=5060+(anim=5052)*2
persistent=0

[state 1083]
type=envshake
trigger1=vel y>0&&pos y>=0
time=10
ampl=25
freq=120
phase=120

[state 1083]
type=posset
trigger1=pos y>=0
y=0

[state 1083]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; モメンタム
;==========================================================================================
;==========================================================================================

[statedef 1090]
type=s
movetype=a
physics=s
juggle=2
ctrl=0
velset=6,0
sprpriority=2

[state 1090]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1090]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=120+(root,palno=6)*68

[state 1090]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1090]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1090
ignorehitpause=1

[state 1090]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1090]
type=nothitby
trigger1=ishelper(3)
trigger1=time<=12
value=sca

[state 1090]
type=assertspecial
triggerall=ishelper(3)
trigger1=time>=15
flag=invisible
flag2=noshadow
ignorehitpause=1

[state 1090]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1||time=3||time=5
value=1200,0
ignorehitpause=1

[state 1090]
type=trans
triggerall=ishelper(3)
trigger1=time<=20
trans=addalpha
alpha=250-time*18,time*18

[state 1090]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=20
value=1091+(var(3)=2)*5

[state 1090]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

;==========================================================================================
;==========================================================================================
; 自分1
;==========================================================================================
;==========================================================================================

[statedef 1091]
type=s
movetype=a
physics=n
juggle=2
poweradd=0
ctrl=0
sprpriority=2

[state 1091]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1091]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1091]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1090
ignorehitpause=1

[state 1091]
type=turn
triggerall=ishelper(3)
trigger1=root,var(51)

[state 1091]
type=velset
triggerall=ishelper(3)
trigger1=!time
x=ifelse(root,var(51),6,-6)
ignorehitpause=1

[state 1091]
type=posset
triggerall=ishelper(3)
trigger1=!time
x=enemynear(root,var(18)),pos x+80*facing
y=0
ignorehitpause=1

[state 1091]
type=nothitby
trigger1=ishelper(3)&&0
trigger1=time<=5
value=sca

[state 1091]
type=trans
trigger1=ishelper(3)
trigger1=time<=10&&!root,var(20)
trans=addalpha
alpha=time*25,250-time*25

[state 1091]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=10
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1092
ctrl=0

;==========================================================================================
;==========================================================================================
; 自分2
;==========================================================================================
;==========================================================================================

[statedef 1092]
type=s
movetype=a
physics=n
ctrl=0
poweradd=0
velset=vel x,0
sprpriority=2

[state 1092]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1092]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1092]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1092
ignorehitpause=1

[state 1092]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1092]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=,st       
hitflag=m
numhits=0        
priority=1,miss    
sparkno=-1
p1sprpriority=1
p1facing=1
p2facing=1        
p1stateno=1093 
p2stateno=1095
guard.dist=0        
fall=1         

[state 1092]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 自分3
;==========================================================================================
;==========================================================================================

[statedef 1093]
type=s
movetype=a
physics=n
juggle=0
velset=0,0
sprpriority=2

[state 1093]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1093]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1093]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1093
ignorehitpause=1

[state 1093]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1093]
type=assertspecial
trigger1=ishelper(3)
flag=nobg
flag2=nofg
ignorehitpause=1

[state 1093]
type=palfx
triggerall=ishelper(3)
trigger1=1
time=1
mul=0,0,0
ignorehitpause=1

[state 1093]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(7)=1
trigger3=animelemtime(13)=1
trigger4=animelemtime(18)=1
trigger5=animelemtime(22)=1
volume=250
value=225,1
ignorehitpause=1

[state 1093]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(2)=1
trigger2=animelemtime(6)=1
trigger3=animelemtime(11)=1
trigger4=animelemtime(17)=1
trigger5=animelemtime(22)=1
time=3
value=255,255,255
under=1
ignorehitpause=1

[state 1093]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(7)=1
trigger3=animelemtime(13)=1
trigger4=animelemtime(18)=1
trigger5=animelemtime(22)=1
time=4
ampl=4
freq=95
phase=95
ignorehitpause=1

[state 1093]
type=hitadd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(7)=1
trigger3=animelemtime(13)=1
trigger4=animelemtime(18)=1
trigger5=animelemtime(22)=1
value=1
ignorehitpause=1

[state 1093]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(18)=1
anim=2835
sprpriority=3
postype=p1
velset=0,0
pos=47,-69-(animelemtime(18)=1)*16
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 1093]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(7)=1
trigger2=animelemtime(13)=1
anim=2835
sprpriority=3
postype=p1
velset=0,0
pos=47+(animelemtime(13)=1)*60,-19-(animelemtime(7)=1)*82
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 1093]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(22)=1
anim=2835
sprpriority=3
postype=p1
velset=0,0
pos=37+(animelemtime(23)=1)*60,-69-(animelemtime(23)=1)*62
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 1093]
type=null;explod
triggerall=ishelper(3)
trigger1=animelemtime(23)=1
anim=6085
sprpriority=3
postype=p1
velset=0,0
pos=27,-110
bindtime=1
supermove=1
under=0
ownpal=0
ignorehitpause=1

[state 1093]
type=targetbind
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
pos=55,0
ignorehitpause=1

[state 1093]
type=targetstate
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(7)=1
trigger3=animelemtime(13)=1
trigger4=animelemtime(18)=1
trigger5=animelemtime(22)=1
value=1095
ignorehitpause=1

[state 1093]
type=targetlifeadd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(7)=1
trigger3=animelemtime(13)=1
trigger4=animelemtime(18)=1
trigger5=animelemtime(22)=1
value=ceil(-0.004*enemy,const(data.life))
absolute=1
ignorehitpause=1

[state 1093]
type=width
triggerall=ishelper(3)
trigger1=1
edge=100,0
ignorehitpause=1

[state 1093] 
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1094
ctrl=0

;==========================================================================================
;==========================================================================================
; 自分3
;==========================================================================================
;==========================================================================================

[statedef 1094]
type=s
movetype=a
physics=n
juggle=8
sprpriority=2

[state 1094]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1094]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1094]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1094
ignorehitpause=1

[state 1094]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1094]
type=nothitby
trigger1=ishelper(3)
value=sca

[state 1094]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1||time=3||time=5
value=182,0
volume=250
ignorehitpause=1

[state 1094]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1||time=3
volume=250
value=4000,40
freqmul=0.9
ignorehitpause=1

[state 1094]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1||time=3
volume=50
value=4000,20
freqmul=0.6
ignorehitpause=1

[state 1094]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
time=2
value=200,0,0
under=1
ignorehitpause=1

[state 1094]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
time=35
ampl=30
freq=95
phase=95
ignorehitpause=1

[state 1094]
type=hitadd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
value=1
ignorehitpause=1

[state 1094]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=2835
sprpriority=3
postype=p1
velset=0,0
pos=57,-80
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 1094]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=1411
sprpriority=100
postype=p1
pos=67,-90
bindtime=-1
ownpal=1
trans=sub

[state 1094]
type=null;explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=3005
sprpriority=-50
postype=p1
pos=67,-100
bindtime=1
ownpal=1
ontop=0
scale=1.0,1.0
trans=add

[state 1094]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=3005
sprpriority=50
postype=p1
pos=67,-100
bindtime=1
ownpal=1
ontop=0
scale=0.5,0.5
trans=sub

[state 1094]
type=null;explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=[1,10]
anim=6101
sprpriority=50
postype=p1
pos=37+random%60,-50-random%100
bindtime=1
removetime=44
ownpal=1
ontop=1
vel=-1+random%3,1-random%3
scale=0.5,0.5

[state 1094]
type=explod
triggerall=ishelper(3)&&0
trigger1=animelemtime(1)=[1,10]
anim=6101
sprpriority=50
postype=p1
pos37+random%60,-50-random%100
bindtime=1
removetime=44
ownpal=1
ontop=1
vel=-1+random%3,1-random%3
scale=0.5,0.5

[state 1094]
type=targetstate
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
value=1405
ignorehitpause=1

[state 1094]
type=targetlifeadd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
value=ceil(-0.015*enemy,const(data.life))
absolute=1
ignorehitpause=1

[state 1094]
type=width
triggerall=ishelper(3)
trigger1=1
edge=100,0
ignorehitpause=1

[state 1094] 
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 相手
;==========================================================================================
;==========================================================================================

[statedef 1095]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1095]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1095]
type=palfx
trigger1=1
time=1
mul=0,0,0
ignorehitpause=1

[state 1095]
type=lifeadd
trigger1=!time
value=ceil(-0.005*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 1095]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1095]
type=changeanim2
trigger1=!time
value=825

[state 1095] 
type=selfstate
trigger1=time>100
value=5100

;==========================================================================================
;==========================================================================================
; 自分4
;==========================================================================================
;==========================================================================================

[statedef 1096]
type=s
movetype=i
physics=n
juggle=2
poweradd=200
ctrl=0
sprpriority=2

[state 1096]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1096]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1096]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1090
ignorehitpause=1

[state 1096]
type=velset
triggerall=ishelper(3)
trigger1=!time||time>=20
x=4*!time
ignorehitpause=1

[state 1096]
type=posset
triggerall=ishelper(3)
trigger1=!time
x=pos x-80*facing
y=0
ignorehitpause=1

[state 1096]
type=nothitby
trigger1=ishelper(3)
trigger1=time<=10
value=sca

[state 1096]
type=trans
trigger1=ishelper(3)
trigger1=time<=20&&!root,var(20)
trans=addalpha
alpha=time*12,250-time*12

[state 1096]
type=selfstate
triggerall=ishelper(3)
triggerall=time>=20
triggerall=random<=999-((root,life<=lifemax*0.25)*950)
triggerall=1;power>=500
trigger1=root,var(15)
value=1070

[state 1096]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=20
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
;エクスプローディングスフィア-X
;==========================================================================================
;==========================================================================================

[statedef 1100]
type=u
movetype=a
physics=n
juggle=8
ctrl=0
velset=0,0
sprpriority=2

[state 1100]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1100]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1100]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=(85+(root,var(15)!=0)*55)+(root,palno=6)*68

[state 1100]
type=posset
triggerall=ishelper(3)
trigger1=statetype!=a
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1100]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1100+(statetype=a)*50
ignorehitpause=1 

[state 1100]
type=nothitby 
triggerall=ishelper(3)
trigger1=animelemtime((2+(root,palno=[7,12])*5))<=0
value=sca

[state 1100]
type=reversaldef
triggerall=ishelper(3)
trigger1=1
reversal.attr=sca,aa
attr=s,st
pausetime=11,20
sparkno=s2850
sparkxy=15,0
hitsound=s121,0
numhits=0

[state 1100-1-1]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=0
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=30,-80
velocity=0
animtype=hard
damage=ceil(0.014*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1100-1-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
anim=1162
id=1162
sprpriority=99
postype=p1
pos=30,-80
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1100-1-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=0
anim=1162
id=1162
sprpriority=99
postype=p1
pos=30,-80
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1100-1-1]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=6
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=80,-80
velocity=0
animtype=hard
damage=ceil(0.014*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1100-1-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=6
anim=1162
id=1162
sprpriority=99
postype=p1
pos=60,-80
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1100-1-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=6
anim=1162
id=1162
sprpriority=99
postype=p1
pos=60,-80
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
scale=0.5,0.5
trans=sub

[state 1100-2-1]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=3
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=40,-110
velocity=0
animtype=hard
damage=ceil(0.014*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1100-2-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=3
anim=1162
id=1162
sprpriority=99
postype=p1
pos=40,-110
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1100-2-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=3
anim=1162
id=1162
sprpriority=99
postype=p1
pos=40,-110
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1100-2-2]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=3
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=40,-50
velocity=0
animtype=hard
damage=ceil(0.014*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1100-2-2-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=3
anim=1162
id=1162
sprpriority=99
postype=p1
pos=40,-50
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1100-2-2-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=3
anim=1162
id=1162
sprpriority=99
postype=p1
pos=40,-50
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1100-3-1]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=6
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=45,-140
velocity=0
animtype=hard
damage=ceil(0.012*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1100-1-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=6
anim=1162
id=1162
sprpriority=99
postype=p1
pos=45,-140
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1100-1-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=6
anim=1162
id=1162
sprpriority=99
postype=p1
pos=45,-140
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1100-3-2]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=6
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=45,-20
velocity=0
animtype=hard
damage=ceil(0.012*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1100-1-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=6
anim=1162
id=1162
sprpriority=99
postype=p1
pos=45,-20
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1100-1-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=6
anim=1162
id=1162
sprpriority=99
postype=p1
pos=45,-20
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1100-1-1]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=9
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=55,-160
velocity=0
animtype=hard
damage=ceil(0.012*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1100-1-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=9
anim=1162
id=1162
sprpriority=99
postype=p1
pos=55,-160
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1100-1-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=9
anim=1162
id=1162
sprpriority=99
postype=p1
pos=55,-160
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1100-1-1]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=9
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=55,0
velocity=0
animtype=hard
damage=ceil(0.012*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1100-1-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=9
anim=1162
id=1162
sprpriority=99
postype=p1
pos=55,0
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1100-1-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=9
anim=1162
id=1162
sprpriority=99
postype=p1
pos=55,0
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1100]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
value=1200,6

[state 1100]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
trigger2=animelemtime(4)=3
trigger3=animelemtime(4)=6
trigger4=animelemtime(4)=9
value=4000,5
freqmul=1.2

[state 1100]
type=velset
triggerall=ishelper(3)
trigger1=statetype=a
trigger1=animelemtime(4)=0
x=-2.2
y=-4.3

[state 1100]
type=veladd
triggerall=ishelper(3)
trigger1=statetype=a
trigger1=animelemtime(4)>=0
y=0.38

[state 1100]
type=selfstate
triggerall=ishelper(3)
trigger1=statetype!=a
trigger1=!animtime
trigger2=statetype=a
trigger2=vel y>0&&pos y>=0
value=statetype=a*1115
ctrl=statetype!=a

[state 1100]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

;==========================================================================================
;==========================================================================================
;エクスプローディングスフィア-Y
;==========================================================================================
;==========================================================================================

[statedef 1110]
type=u
movetype=a
physics=n
juggle=8
ctrl=0
velset=0,0
sprpriority=2

[state 1110]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1110]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1110]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=(85+(root,var(15)!=0)*55)+(root,palno=6)*68

[state 1110]
type=posset
triggerall=ishelper(3)
trigger1=statetype!=a
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1110]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1100+(statetype=a)*50
ignorehitpause=1 

[state 1110]
type=nothitby
triggerall=ishelper(3)
trigger1=animelemtime((2+(root,palno=[7,12])*5))<=0
value=sca

[state 1110]
type=reversaldef
triggerall=ishelper(3)
trigger1=1
reversal.attr=sca,aa
attr=s,st
pausetime=11,20
sparkno=s2850
sparkxy=15,0
hitsound=s121,0
numhits=0

[state 1110-1-1]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=0
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=50,-80
velocity=0
animtype=hard
damage=ceil(0.014*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1110-1-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
anim=1162
id=1162
sprpriority=99
postype=p1
pos=50,-80
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1110-1-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=0
anim=1162
id=1162
sprpriority=99
postype=p1
pos=50,-80
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1110-2-1]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=3
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=80,-100
velocity=0
animtype=hard
damage=ceil(0.014*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1110-2-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=3
anim=1162
id=1162
sprpriority=99
postype=p1
pos=80,-100
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1110-2-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=3
anim=1162
id=1162
sprpriority=99
postype=p1
pos=80,-100
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1110-2-2]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=3
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=80,-60
velocity=0
animtype=hard
damage=ceil(0.014*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1110-2-2-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=3
anim=1162
id=1162
sprpriority=99
postype=p1
pos=80,-60
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1110-2-2-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=3
anim=1162
id=1162
sprpriority=99
postype=p1
pos=80,-60
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1110-3-1]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=6
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=110,-80
velocity=0
animtype=hard
damage=ceil(0.014*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1110-3-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=6
anim=1162
id=1162
sprpriority=99
postype=p1
pos=110,-80
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1110-3-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=6
anim=1162
id=1162
sprpriority=99
postype=p1
pos=110,-80
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1110-4-1]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=9
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=140,-100
velocity=0
animtype=hard
damage=ceil(0.014*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1110-4-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=9
anim=1162
id=1162
sprpriority=99
postype=p1
pos=140,-100
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1110-4-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=9
anim=1162
id=1162
sprpriority=99
postype=p1
pos=140,-100
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1110-4-2]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=9
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=140,-60
velocity=0
animtype=hard
damage=ceil(0.014*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1110-4-2-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=9
anim=1162
id=1162
sprpriority=99
postype=p1
pos=140,-60
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1110-4-2-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=9
anim=1162
id=1162
sprpriority=99
postype=p1
pos=140,-60
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1110-5-1]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=10
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=160,-50
velocity=0
animtype=hard
damage=ceil(0.014*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1110-5-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=10
anim=1162
id=1162
sprpriority=99
postype=p1
pos=160,-50
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1110-5-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=10
anim=1162
id=1162
sprpriority=99
postype=p1
pos=160,-50
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1110-5-1]
type=projectile
trigger1=ishelper(3)
trigger1=animelemtime(4)=10
attr=sca,aa
projanim=1160
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=0
projremovetime=21
postype=p1
offset=160,-110
velocity=0
animtype=hard
damage=ceil(0.014*enemy,const(data.life)),1
getpower=40+(root,var(15)!=0)*20,20+(root,var(15)!=0)*20
givepower=8,8
guardflag=m
hitflag=maf
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-2
air.velocity=-1,-5
fall=0
air.fall=1
fall.recover=0

[state 1110-5-1-exp]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=10
anim=1162
id=1162
sprpriority=99
postype=p1
pos=160,-110
bindtime=1
scale=0.5,0.5
ownpal=1

[state 1110-5-1-exp]
type=explod
triggerall=ishelper(3)
triggerall=root,palno=6
trigger1=animelemtime(4)=10
anim=1162
id=1162
sprpriority=99
postype=p1
pos=160,-110
bindtime=1
ownpal=1
scale=0.25,0.25
ontop=1
trans=sub

[state 1110]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
value=1200,6

[state 1110]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
trigger2=animelemtime(4)=3
trigger3=animelemtime(4)=6
trigger4=animelemtime(4)=9
trigger5=animelemtime(4)=10
value=4000,5
freqmul=1.2

[state 1110]
type=velset
triggerall=ishelper(3)
trigger1=statetype=a
trigger1=animelemtime(4)=0
x=-2.2
y=-4.3

[state 1110]
type=veladd
triggerall=ishelper(3)
trigger1=statetype=a
trigger1=animelemtime(4)>=0
y=0.38

[state 1110]
type=selfstate
triggerall=ishelper(3)
trigger1=statetype!=a
trigger1=!animtime
trigger2=statetype=a
trigger2=vel y>0&&pos y>=0
value=statetype=a*1115
ctrl=statetype!=a

[state 1110]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

;==========================================================================================
;==========================================================================================
;着地
;==========================================================================================
;==========================================================================================

[statedef 1115]
type=s
movetype=a
physics=n
poweradd=0
ctrl=0
velset=0,0
sprpriority=2

[state 1115]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1115]
type=nothitby
trigger1=ishelper(3)
trigger1=prevstateno=955
value=sca

[state 1115]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1151
ignorehitpause=1

[state 1115]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
value=40,0

[state 1115]
type=posset
triggerall=ishelper(3)
trigger1=!time
y=0

[state 1115]
type=selfstate
triggerall=ishelper(3)
triggerall=(root,palno>6)&&(root,var(30)&512)
triggerall=numhelper(6)&&root,var(45)&&root,var(27)
triggerall=!root,var(31)&&!helper(6),var(29)
trigger1=prevstateno=955
trigger1=!animtime
value=2900
ctrl=0

[state 1115]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=11*ishelper
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 恐怖の(ry
;==========================================================================================
;==========================================================================================

[statedef 1150]
type=s
movetype=i
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state 1150]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
trigger4=!ishelper
value=69996
ignorehitpause=1

[state 1150]
type=turn
triggerall=ishelper(3)
trigger1=p2dist x<0
ignorehitpause=1

[state 1150]
type=helper
trigger1=ishelper(3)
trigger1=!time
trigger1=!numhelper(17)
id=17
persistent=0
name="."
pos=0,-80
postype=p1
stateno=5150
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 1150]
type=posset
triggerall=ishelper(3)
trigger1=time=1
x=enemynear(root,var(18)),pos x+60*facing
y=0
ignorehitpause=1

[state 1150]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-1000
ignorehitpause=1

[state 1150]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1170
ignorehitpause=1

[state 1150]
type=playsnd
trigger1=ishelper(3)
trigger1=animelemtime(1)=1||animelemtime(1)=5
value=4000,51
freqmul=1.0
volume=255
ignorehitpause=0

[state 1150]
type=playsnd
trigger1=ishelper(3)
trigger1=animelemtime(1)=2||animelemtime(1)=6
value=4000,51
freqmul=1.4
volume=255
ignorehitpause=0

[state 1150]
type=superpause
triggerall=ishelper(3)
trigger1=!time
time=40
movetime=40
anim=-1
darken=0
ignorehitpause=1

[state 1150]
type=bgpalfx
triggerall=ishelper(3)
trigger1=animelemtime(2)<=30
time=1
invertall=1
ignorehitpause=1

[state 1150]
type=nothitby 
triggerall=ishelper(3)
trigger1=1
value=sca
ignorehitpause=1

[state 1150]
type=selfstate
triggerall=ishelper(3)
triggerall=roundstate=2
triggerall=root,alive&&root,var(15)
triggerall=!animtime
trigger1=random<=250+((root,var(27)*root,var(27))*40)
value=ifelse((power>=2000),ifelse((root,palno=6&&power>=3000&&root,var(26)||root,palno!=6&&root,life<=lifemax*0.25),3910,2200),1750)

[state 1150]
type=selfstate
triggerall=ishelper(3)
trigger1=!animtime
value=0
ctrl=1

;==========================================================================================
;==========================================================================================
; D-スフィア
;==========================================================================================
;==========================================================================================

[statedef 1180]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state 1180]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1180]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1180]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state 1180]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=100+(root,palno=6)*68

[state 1180]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1180+(var(3)=2)*2

[state 1180]
type=playsnd
triggerall=ishelper(3)
trigger1=!animelemtime(4)
value=4000,73
freqmul=1.0
volume=255

[state 1180]
type=playsnd
triggerall=ishelper(3)
trigger1=!animelemtime(4)
value=4000,93
freqmul=1.3
volume=255

[state 1180]
type=playsnd
triggerall=ishelper(3)&&0
trigger1=!animelemtime(4)
value=800,2
freqmul=1.0
volume=255

[state 1180]
type=explod
trigger1=ishelper(3)
trigger1=!animelemtime(4)
anim=1073
sprpriority=99
postype=p1
pos=0,0
bindtime=-1
ownpal=1

[state 1180]
type=explod
trigger1=ishelper(3)
trigger1=!animelemtime(4)
anim=203
sprpriority=99
postype=p1
pos=70,15
bindtime=-1
ownpal=1

[state 1180]
type=explod
trigger1=ishelper(3)
trigger1=!animelemtime(4)
anim=203
sprpriority=99
postype=p1
pos=65,-23
bindtime=-1
ownpal=1
scale=0.5,0.5

[state 1180]
type=envshake
triggerall=ishelper(3)
trigger1=!animelemtime(4)&&0
time=5
ampl=5
freq=120
phase=120

[state 1180]
type=projectile
triggerall=ishelper(3)
trigger1=var(3)=1
trigger1=!animelemtime(4)
attr=s,sp
projanim=1181
projhitanim=1161
projremanim=1161
projid=1255
projpriority=1
projsprpriority=99
projremove=1
projremovetime=30
projhits=1+(root,palno=6)
postype=p1
projscale=1,1
offset=80,-63
velocity=2,0
animtype=hard
damage=80-(root,palno=6)*30,5
getpower=65+(root,var(15)!=0)*35,25+(root,var(15)!=0)*15
givepower=25,10
guardflag=m
hitflag=maf
pausetime=(root,palno=6)*10,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3
guard.velocity=-2.8
air.velocity=-3,-3
fall=0
air.fall=1
fall.recover=0

[state 1180]
type=projectile
triggerall=ishelper(3)
trigger1=var(3)=2
trigger1=!animelemtime(4)
attr=s,sp
projanim=1181
projhitanim=1161
projremanim=1161
projid=1255
projpriority=1
projsprpriority=99
projremove=1
projremovetime=45
postype=p1
projscale=1,1
projhits=1+(root,palno=6)
offset=80,-63
velocity=24,0
animtype=hard
damage=120-(root,palno=6)*50,10
getpower=85+(root,var(15)!=0)*35,45+(root,var(15)!=0)*15
givepower=25,10
guardflag=m
hitflag=maf
pausetime=(root,palno=6)*5,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-7,-6
guard.velocity=-2.8
air.velocity=-7,-5
fall=1
air.fall=1
fall.recover=0

[state 1180]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

[state 1180]
type=selfstate
triggerall=ishelper(3)
trigger1=!animtime
value=0
ctrl=1

;==========================================================================================
;==========================================================================================
; ディメンジョナル・プロジェクション
;==========================================================================================
;==========================================================================================

[statedef 1200]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state 1200]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1200]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 1200]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=85+(root,var(15)!=0)*55

[state 1200]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1200]
type=nothitby
triggerall=ishelper(3)&&0
trigger1=(root,palno=[7,12])&&animelemtime(6)<=0
value=sca

[state 1200]
type=selfstate
triggerall=ishelper(3)
trigger1=!animtime
trigger2=!root,var(13)
trigger2=animelemtime(6)<=31
trigger3=root,var(13)
trigger3=animelemtime(6)>=32+(root,var(13)*5)
value=0
ctrl=1

[state 1200]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

[state 1200]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1200

;==========================================================================================
;==========================================================================================
;相手
;==========================================================================================
;==========================================================================================

[statedef 1210]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1210]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1210]
type=playsnd
trigger1=!time&&!ishelper
value=11,0
volume=255

[state 1210]
type=nothitby
trigger1=1
value=sca

[state 1210]
type=assertspecial
trigger1=time<=25
flag=invisible

[state 1210]
type=assertspecial
trigger1=1
flag=noshadow

[state 1210]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1210]
type=changeanim
trigger1=!time
value=5050

[state 1210]
type=velset
trigger1=!time
x=0
y=-60

[state 1210]
type=veladd
trigger1=1
y=1.4

[state 1210]
type=lifeset
trigger1=vel y>0&&pos y>=0
value=life-(ceil(0.05*const(data.life)))

[state 1210]
type=envshake
trigger1=vel y>0&&pos y>=0
time=10
ampl=-5
freq=95
phase=95

[state 1210]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; カラミティストラック
;==========================================================================================
;==========================================================================================

[statedef 1250]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state 1250]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1250]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1250]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=(85+(root,var(15)!=0)*55)+(root,palno=6)*68

[state 1250]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1250]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1250
ignorehitpause=1

[state 1250]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(5)=1
trigger2=root,palno=6&&!root,var(45)
trigger2=animelemtime(6)=4
trigger3=root,palno=6&&!root,var(45)
trigger3=animelemtime(6)=11
time=5
ampl=5
freq=120
phase=120
ignorehitpause=1

[state 1250]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(5)=1
trigger2=root,palno=6&&!root,var(45)
trigger2=animelemtime(6)=4
trigger3=root,palno=6&&!root,var(45)
trigger3=animelemtime(6)=11
value=1200,12
volume=255
freqmul=1.2

[state 1250]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(5)=1
value=1100,var(56)
volume=255
freqmul=1.0

[state 1250]
type=projectile
triggerall=ishelper(3)
trigger1=animelemtime(5)=1
attr=s,sp
projanim=1255
projid=1255
projpriority=1
projsprpriority=5
projremove=0
projremovetime=16
postype=p1
projscale=0.5,1
offset=20+var(56)*60,0
velocity=0,0
animtype=hard
damage=ceil((0.07-(var(56)*0.01))*enemy,const(data.life)),5
getpower=65+(root,var(15)!=0)*35,25+(root,var(15)!=0)*15
givepower=25,10
guardflag=m
hitflag=mafd
pausetime=0,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,ceil(p2dist y)-40
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3,-6
guard.velocity=-2.8
air.velocity=-3,-6
fall=1
air.fall=1
fall.recover=0

[state 1250]
type=projectile
triggerall=ishelper(3)
trigger1=animelemtime(5)=1
attr=s,sp
projanim=1256
projid=1256
projhitanim=-1
projpriority=2147483647
projsprpriority=5
projremove=0
projremovetime=16
postype=p1
offset=20+var(56)*60,0
velocity=0
animtype=hard
damage=0
guardflag=
hitflag= 
sparkno=-1
sparkxy=-1
hitsound=-1
guard.sparkno=-1
guardsound=-1

[state 1250]
type=projectile
triggerall=ishelper(3)
triggerall=root,palno=6&&!root,var(45)
trigger1=animelemtime(6)=4
trigger2=animelemtime(6)=11
attr=s,sp
projanim=1255
projid=1255
projpriority=1
projsprpriority=5
projremove=0
projremovetime=16
postype=p1
projscale=0.5,1
offset=40+(animelemtime(6)=11)*30+var(56)*60,0
velocity=0,0
animtype=hard
damage=ceil((0.05-(var(56)*0.01))*enemy,const(data.life)),5
getpower=65+(root,var(15)!=0)*35,25+(root,var(15)!=0)*15
givepower=25,10
guardflag=m
hitflag=mafd
pausetime=0,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,ceil(p2dist y)-40
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3,-6
guard.velocity=-2.8
air.velocity=-3,-6
fall=1
air.fall=1
fall.recover=0

[state 1250]
type=projectile
triggerall=ishelper(3)
triggerall=root,palno=6&&!root,var(45)
trigger1=animelemtime(6)=4
trigger2=animelemtime(6)=11
attr=s,sp
projanim=1256
projid=1256
projhitanim=-1
projpriority=2147483647
projsprpriority=5
projremove=0
projremovetime=16
postype=p1
offset=40+(animelemtime(6)=11)*30+var(56)*60,0
velocity=0
animtype=hard
damage=0
guardflag=
hitflag= 
sparkno=-1
sparkxy=-1
hitsound=-1
guard.sparkno=-1
guardsound=-1

[state 1250]
type=selfstate
triggerall=ishelper(3)
triggerall=power>=1000
triggerall=animelemtime(6)>=1&&var(56)=1
trigger1=!root,var(15)&&(command="U-D-O")
trigger2=root,var(15)
trigger2=enemynear(root,var(18)),alive&&root,life>=lifemax*0.3
trigger2=(enemynear(root,var(18)),statetype=a||root,numtarget&&(enemynear(root,var(18)),stateno!=[120,152]))
trigger2=random<=10+(root,var(27)*root,var(27))*20
value=1255

[state 1250]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; カラミティストラック(超必殺)
;==========================================================================================
;==========================================================================================

[statedef 1255]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state 1255]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1255]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1255]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-1000

[state 1255]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1255]
type=changeanim
trigger1=ishelper(3)
trigger1=anim!=1260
value=1260
ignorehitpause=1

[state 1255]
type=assertspecial
trigger1=ishelper(3)
trigger1=time=[0,30]
flag=nobg
flag2=nofg
ignorehitpause=1

[state 1255]
type=nothitby
trigger1=ishelper(3)
trigger1=animelemtime(6)<=10
value=sca
ignorehitpause=1

[state 1255]
type=superpause
triggerall=ishelper(3)
trigger1=!time
trigger2=(animelemtime(6)=[1,30])
trigger2=(var(56):=var(56)+1)&&0
time=30
movetime=30
anim=-1
ignorehitpause=1

[state 1255]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3100
sprpriority=-5
postype=p1
pos=1,-100
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 1255]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3110
sprpriority=999
postype=p1
pos=1,-100
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 1255]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 1255]
type=palfx
triggerall=ishelper(3)
trigger1=(time=[1,30])&&!(time%2)
time=1
add=220,220,220
invertall=1
ignorehitpause=1

[state 1255]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=3000,0
volume=100
ignorehitpause=1

[state 1255]
type=playsnd
triggerall=ishelper(3)
trigger1=time=19
value=4000,27
volume=100
ignorehitpause=1

[state 1255]
type=playsnd
triggerall=ishelper(3)
trigger1=time=10||time=14
value=4000,43
volume=250
ignorehitpause=1

[state 1255]
type=envshake
triggerall=ishelper(3)
trigger1=(animelemtime(6)=[1,30])&&!(time%3)
time=5
ampl=5
freq=120
phase=120
ignorehitpause=1

[state 1255]
type=playsnd
triggerall=ishelper(3)
trigger1=(animelemtime(6)=[1,30])&&!(time%3)
value=4000,20
volume=250
freqmul=1.3

[state 1255]
type=playsnd
triggerall=ishelper(3)
trigger1=(animelemtime(6)=[1,30])&&!(time%3)
value=4000,16
volume=255
freqmul=1.2

[state 1255]
type=projectile
triggerall=ishelper(3)
trigger1=(animelemtime(6)=[1,30])&&!(time%3)
attr=s,sp
projanim=1255
projid=1255
projpriority=1
projsprpriority=5
projremove=0
projremovetime=16
postype=back
projscale=0.5,1
offset=20+var(56)*10,0
velocity=0,0
animtype=hard
damage=ceil(0.025*enemy,const(data.life)),7
getpower=0,0
givepower=25,10
guardflag=m
hitflag=mafd
pausetime=0,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,ceil(p2dist y)-40
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3,-5
guard.velocity=-2.8
air.velocity=-4.5,-5
fall=1
air.fall=1
fall.recover=0

[state 1255]
type=projectile
triggerall=ishelper(3)
trigger1=(animelemtime(6)=[1,30])&&!(time%3)
attr=s,sp
projanim=1255
projid=1255
projpriority=1
projsprpriority=5
projremove=0
projremovetime=16
postype=back
projscale=0.5,1
offset=300+var(56)*-10,0
velocity=0,0
animtype=hard
damage=ceil(0.025*enemy,const(data.life)),7
getpower=0,0
givepower=25,10
guardflag=m
hitflag=mafd
pausetime=0,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,ceil(p2dist y)-40
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=3,-5
guard.velocity=-2.8
air.velocity=4.5,-5
fall=1
air.fall=1
fall.recover=0

[state 1255]
type=projectile
triggerall=ishelper(3)
trigger1=(animelemtime(6)=[1,30])&&!(time%3)
attr=s,sp
projanim=1256
projid=1256
projhitanim=-1
projpriority=2147483647
projsprpriority=5
projremove=0
projremovetime=16
postype=back
offset=20+var(56)*10,0
velocity=0
animtype=hard
damage=0
guardflag=
hitflag= 
sparkno=-1
sparkxy=-1
hitsound=-1
guard.sparkno=-1
guardsound=-1

[state 1255]
type=projectile
triggerall=ishelper(3)
trigger1=(animelemtime(6)=[1,30])&&!(time%3)
attr=s,sp
projanim=1256
projid=1256
projhitanim=-1
projpriority=2147483647
projsprpriority=5
projremove=0
projremovetime=16
postype=back
offset=300+var(56)*-10,0
velocity=0
animtype=hard
damage=0
guardflag=
hitflag= 
sparkno=-1
sparkxy=-1
hitsound=-1
guard.sparkno=-1
guardsound=-1

[state 1255]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; ファントムスフィア
;==========================================================================================
;==========================================================================================

[statedef 1300]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state 1300]
type=poweradd
triggerall=ishelper(3)
triggerall=!time
trigger1=var(3):=ifelse(root,var(15),random%2,(command="F-S-b"))||1
value=85+(root,var(15)!=0)*65

[state 1300]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1300]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1300

[state 1300]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(8)=2
trigger2=animelemtime(9)=2
value=4000,9
volume=255
freqmul=1.0+(animelemtime(9)=2)*0.2

[state 1300]
type=projectile
triggerall=ishelper(3)
triggerall=!var(3)
trigger1=animelemtime(8)=2
trigger2=root,palno>10&&animelemtime(8)=3
attr=a,sp
projanim=1301
projhitanim=2616
projid=13001
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=200
postype=p1
offset=-15,-220*(animelemtime(8)=2)
velocity=0.15,1-(animelemtime(8)=3)*2
accel=0.01,ifelse((animelemtime(8)=2),-0.001,0.001)
animtype=hard
damage=ceil(0.045*enemy,const(data.life)),ceil(0.008*enemy,const(data.life))
getpower=50,50
givepower=10,10
guardflag=m
hitflag=maf
pausetime=0,25
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3,-5
guard.velocity=-2.8
air.velocity=1,-4
fall=1
air.fall=1
fall.recover=0
p2stateno=1301

[state 1300]
type=projectile
triggerall=ishelper(3)
triggerall=var(3)
trigger1=animelemtime(8)=2
trigger2=root,palno>10&&animelemtime(8)=3
attr=a,sp
projanim=1301
projhitanim=2616
projid=13001
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=200
postype=p2
offset=-70*(animelemtime(8)=3),-20-(200*(animelemtime(8)=2))
velocity=0.5*(animelemtime(8)=3),1*(animelemtime(8)=2)
accel=0,0.01*(animelemtime(8)=2)
animtype=hard
damage=ceil(0.045*enemy,const(data.life)),ceil(0.008*enemy,const(data.life))
getpower=50,50
givepower=10,10
guardflag=m
hitflag=maf
pausetime=0,25
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3,-5
guard.velocity=-2.8
air.velocity=1,-4
fall=1
air.fall=1
fall.recover=0
p2stateno=1301

[state 1300]
type=selfstate
triggerall=ishelper(3)
triggerall=ifelse(root,palno=12,1,(ifelse((var(57)=[0,2]),var(57),1)))
triggerall=roundstate=2&&root,alive
triggerall=power>=2000&&root,var(45)&&!root,var(15)
triggerall=command="E-S-x"||command="E-S-y"
trigger1=animelemtime(1)>0&&animelemtime(8)<2
value=1310

[state 1300]
type=selfstate
triggerall=ishelper(3)
triggerall=root,var(15)&&(root,var(7)&1024)&&(root,var(7)&2048)
triggerall=ifelse(root,palno=12,1,(ifelse((var(57)=[0,2]),var(57)=2,1)))
triggerall=roundstate=2&&root,alive&&power>=2000
triggerall=root,var(45)
triggerall=(!root,var(26)&&root,var(27)=4)
triggerall=animelemtime(6)>0&&animelemtime(8)<2
trigger1=(abs(pos x+(40*facing)-enemynear(root,var(18)),pos x)=[0,280]) && 1
trigger1=random<=ifelse((root,palno>10),255,((root,var(27)=4)*350)+2+(root,var(27)*root,var(27))*20)
trigger2=(abs(pos x+(40*facing)-enemynear(root,var(18)),pos x)>200)
trigger2=enemynear(root,var(18)),statetype=s||enemynear(root,var(18)),statetype=c
trigger2=enemynear(root,var(18)),movetype=a
trigger2=random<=ifelse((root,palno>10),400,10+(root,var(27)*root,var(27))*40)
trigger3=(abs(pos x+(40*facing)-enemynear(root,var(18)),pos x)>50)
trigger3=enemynear(root,var(18)),statetype=a
trigger3=random<=ifelse((root,palno>10),400,10+(root,var(27)*root,var(27))*40)
value=1310

[state 1300]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
;相手
;==========================================================================================
;==========================================================================================

[statedef 1301]
type=a
movetype=h
ctrl=0
velset=0,0
sprpriority=-1

[state 1301]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1301]
type=lifeset
trigger1=!time
value=life-(ceil(0.05*const(data.life)))

[state 1301]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1301]
type=trans
trigger1=time<50
trigger1=!(gametime%2)
trans=addalpha
alpha=80,220

[state 1301]
type=changeanim
trigger1=time<50
trigger1=selfanimexist(anim)
value=anim
elem=animelemno(-1)

[state 1301]
type=changestate
triggerall=name!="G-Mizuchi-v2"
trigger1=time>=48&&!alive
value=5150

[State 1301]
type=changeanim
trigger1=time=50
value=5070

[State 1301]
type=velset
trigger1=time=50
x=-4
y=-5

[State 1301]
type=veladd
trigger1=time>=50
y=0.47

[state 1301]
type=selfstate
trigger1=time>=50
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;//////////////////////////////////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------------------
; ファントムスフィア(EX)
;------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////////////////
;==========================================================================================

[statedef 1310]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0
sprpriority=7

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-2000
ignorehitpause=1

[state ]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1310
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1311

;---------------------------------------------------------------------------
;===========================================================================
; 攻撃
;===========================================================================
;---------------------------------------------------------------------------

[statedef 1311]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
sprpriority= 9
ctrl=0

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2701
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=time=4||time=8||time=12||time=16||time=20||time=24||time=28||time=32
trigger2=time=50||time=54||time=58||time=62||time=66
value=4000,9
volume=255
freqmul=1.2
ignorehitpause=1

[state ]
type=projectile
triggerall=ishelper(3)
trigger1=time=4||time=8||time=12||time=16||time=20||time=24||time=28||time=32
attr=a,sp
projanim=1301
projhitanim=2616
projid=13001
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=200
postype=back
offset=300-time*8,-240
velocity=0,1
accel=0,0.006
animtype=hard
damage=ceil(0.025*enemy,const(data.life)),ceil(0.004*enemy,const(data.life))
getpower=0,0
givepower=40,40
guardflag=m
hitflag=mafd
pausetime=0,25
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3,-5
guard.velocity=-2.8
air.velocity=1,-4
fall=1
air.fall=1
fall.recover=0
p2stateno=1301

[state ]
type=projectile
triggerall=ishelper(3)
trigger1=time=50||time=54||time=58||time=62||time=66
attr=a,sp
projanim=1301
projhitanim=2616
projid=13001
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=200
postype=back
offset=280,-((time-50)*15)
velocity=-1,0
accel=-0.012,0
animtype=hard
damage=ceil(0.025*enemy,const(data.life)),ceil(0.004*enemy,const(data.life))
getpower=0,0
givepower=40,40
guardflag=m
hitflag=mafd
pausetime=0,25
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3,-5
guard.velocity=-2.8
air.velocity=1,-4
fall=1
air.fall=1
fall.recover=0
p2stateno=1301

[state ]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=130
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1312

;---------------------------------------------------------------------------
;===========================================================================
; 終了
;===========================================================================
;---------------------------------------------------------------------------

[statedef 1312]
type=s
movetype=a
physics=n
velset=0,0
juggle=15
ctrl=0
sprpriority=99

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state ]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2702
ignorehitpause=1 

[state ]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
;クリティカルディザスター
;==========================================================================================
;==========================================================================================

[statedef 1400]
type=s
movetype=a
physics=n
ctrl=0
velset=0,0
sprpriority=2

[state 1400]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1400]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 1400]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=85+(root,var(15)!=0)*55

[state 1400]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1400]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1400
ignorehitpause=1

[state 1400]
type=nothitby
triggerall=ishelper(3)
triggerall=root,var(15)
trigger1=animelemtime(4)<=0
value=sca

[state 1400]
type=null;playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
trigger2=animelemtime(2)=1
value=4000,47
volume=250
freqmul=1.0
ignorehitpause=1

[state 1400]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=1
value=240,1
volume=250
freqmul=0.9
ignorehitpause=1

[state 1400]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=3
value=4000,31
volume=250
freqmul=0.8
ignorehitpause=1

[state 1400]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=3
value=4000,32
volume=250
freqmul=0.9
ignorehitpause=1

[state 1400]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
anim=1401
id=1401
sprpriority=10
postype=p1
pos=0,0
bindtime=-1

[state 1400]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
anim=1401
id=1402
sprpriority=10
postype=p1
pos=0,0
bindtime=-1
ownpal=1

[state 1400]
type=modifyexplod
triggerall=ishelper(3)
trigger1=!numexplod(1401)
trigger1=(fvar(35):=0||fvar(36):=0)
trigger2=numexplod(1401)
trigger2=(fvar(35)=[0,11])&&!fvar(36)
trigger2=fvar(35):=fvar(35)+0.5
trigger3=numexplod(1401)
trigger3=(fvar(35)>=11)&&!fvar(36)
trigger3=fvar(36):=1
trigger4=numexplod(1401)
trigger4=(fvar(35)>=0)&&fvar(36)
trigger4=fvar(35):=fvar(35)-0.5
id=1401
postype=p1
pos=floor(fvar(35)),0
bindtime=-1
velset=0,0
ignorehitpause=1

[state 1400]
type=modifyexplod
triggerall=ishelper(3)
trigger1=numexplod(1402)
id=1402
postype=p1
pos=floor(-fvar(35)),0
bindtime=-1
velset=0,0
ignorehitpause=1

[state 1400]
type=assertspecial
triggerall=ishelper(3)
trigger1=(animelemtime(4)=[1,43])&&!(time%3)
flag=invisible
ignorehitpause=1

[state 1400]
type=reversaldef
triggerall=ishelper(3)
trigger1=1
reversal.attr=sca,aa
attr=s,st
pausetime=0,0
sparkno=-1
sparkxy=15,0
hitsound=-1
numhits=0
p1stateno=1401
p2stateno=1404

[state 1400]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;---------------------------------------------------------------------------
;===========================================================================
; 自分
;===========================================================================
;---------------------------------------------------------------------------

[statedef 1401]
type=s
movetype=a
physics=n
ctrl=0
velset=0,0
sprpriority=2

[state 1401]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1401]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 1401]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1402

[state 1401]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1401]
type=bgpalfx
triggerall=ishelper(3)
trigger1=!time
time=3
invertall=1

[state 1401]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
trigger2=animelemtime(1)=4
value=4000,43
volume=250
freqmul=1.0
ignorehitpause=1

[state 1401]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
value=4000,27
volume=150
freqmul=1.2

[state 1401]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=4
value=1200,11
volume=250
freqmul=1.1

[state 1401]
type=null;playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=0
value=1200,2
volume=250

[state 1401]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)>=0&&!(time%4)
value=2000,random%3
volume=50

[state 1401]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)>=0&&!(time%4)
value=4000,29
volume=50
freqmul=1.1

[state 1401]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)>=0&&!(time%4)
value=1200,11
volume=50
freqmul=1.1

[state 1401]
type=removeexplod
trigger1=ishelper(3)
id=1401

[state 1401]
type=removeexplod
trigger1=ishelper(3)
id=1402

[state 1401]
type=width
triggerall=ishelper(3)
trigger1=1
edge=70,0

[state 1401]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)>=0&&!(time%4)
anim=2835
sprpriority=120
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x))+(random%10)-(random%20),(enemynear(root,var(18)),const(size.mid.pos.y))+(random%20)-(random%40)
facing=-1
ownpal=1
ontop=1
ignorehitpause=1

[state 1401]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)>=0&&!(time%3)
anim=1404+random%6
sprpriority=100
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x)),(enemynear(root,var(18)),const(size.mid.pos.y))
bindtime=1
ownpal=1

[state 1401]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)>=0&&!(time%6)
anim=10609
sprpriority=99
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x))+(random%10)-(random%20),(enemynear(root,var(18)),const(size.mid.pos.y))+(random%20)-(random%40)
bindtime=1
ownpal=1
scale=0.5,0.5
trans=sub

[state 1401]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(4)>=0&&!(time%4)
time=1
value=200,0,0
under=1

[state 1401]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(4)>=0&&!(time%4)
time=5
ampl=5
freq=95
phase=95

[state 1401]
type=hitadd
triggerall=ishelper(3)
trigger1=animelemtime(4)>=0&&!(time%4)
value=1

[state 1401]
type=targetstate
triggerall=ishelper(3)
trigger1=animelemtime(4)>=0&&!(time%4)
value=1402

[state 1401]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=100
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1406

;---------------------------------------------------------------------------
;===========================================================================
; 相手-1
;===========================================================================
;---------------------------------------------------------------------------

[statedef 1402]
type=a
movetype=h
physics=n
velset=0,0
facep2=1

[state 1402]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1402]
type=removeexplod
trigger1=name!="G-Mizuchi-v2"
trigger1=ishelper
id=-1

[state 1402]
type=lifeadd
trigger1=!time
value=ceil(-0.006*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 1402]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 1402]
type=screenbound
trigger1=1
value=1
movecamera=1
ignorehitpause=1

[state 1402]
type=changeanim2
trigger1=!time
value=866
ignorehitpause=1

[state 1402]
type=velset
trigger1=!time
x=ifelse((p2dist x<0),0.4,-0.4)
y=-1.6
ignorehitpause=1

[state 1402]
type=veladd
trigger1=1
y=0.002
ignorehitpause=1

[state 1402] 
type=changestate
trigger1=time>=11
value=1403

;---------------------------------------------------------------------------
;===========================================================================
; 相手-2
;===========================================================================
;---------------------------------------------------------------------------

[statedef 1403]
type=a
movetype=h
physics=n
sprpriority=4

[state 1403]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 1403]
type=removeexplod
trigger1=name!="G-Mizuchi-v2"
trigger1=ishelper
id=-1

[state 1403]
type=playerpush
trigger1=1
value=0

[state 1403]
type=nothitby
trigger1=1
value=sca

[state 1403]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1403]
type=changeanim
trigger1=!time
trigger1=selfanimexist(5050)
value=5050

[state 1403]
type=velset
trigger1=!time
x=ifelse((p2dist x<0),3.32,-3.32)
y=-2.8

[state 1403]
type=veladd
trigger1=time
y=.39

[state 1405] 
type=selfstate
trigger1=time>100
value=5100

;==========================================================================================
;==========================================================================================
; 相手-3
;==========================================================================================
;==========================================================================================

[statedef 1404]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1404]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 1404]
type=removeexplod
trigger1=name!="G-Mizuchi-v2"
trigger1=ishelper
id=-1

[state 1404]
type=nothitby
trigger1=1
value=sca

[state 1404]
type=changeanim
trigger1=selfanimexist(anim)
value=anim
elem=animelemno(-1)

[state 1404]
type=playerpush
trigger1=1
value=0

[state 1404]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1404] 
type=selfstate
trigger1=time>100
value=5100

;==========================================================================================
;==========================================================================================
; 相手-4
;==========================================================================================
;==========================================================================================

[statedef 1405]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1405]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1405]
type=removeexplod
trigger1=name!="G-Mizuchi-v2"
trigger1=ishelper
id=-1

[state 1405]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger1=ishelper
trigger1=vel y>0&&pos y>=0
value=69996
ignorehitpause=1

[state 1405]
type=lifeadd
trigger1=!time
value=ceil(-0.02*const(data.life))
absolute=1
ignorehitpause=1

[state 1405]
type=playerpush
trigger1=1
value=0

[state 1405]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1405]
type=nothitby
trigger1=1
value=sca

[state 1405]
type=changeanim2
trigger1=!time
value=1410

[state 1405]
type=velset
trigger1=!time
x=-0.7
y=-30

[state 1405]
type=veladd
trigger1=1
y=0.7

[state 1405]
type=envshake
trigger1=vel y>0&&pos y>=0
time=10
ampl=-5
freq=95
phase=95

[state 1405]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;---------------------------------------------------------------------------
;===========================================================================
; 終了
;===========================================================================
;---------------------------------------------------------------------------

[statedef 1406]
type=s
movetype=a
physics=n
velset=0,0
ctrl=0
sprpriority=99

[state 1406]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1406]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 1406]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
value=4000,40
volume=250
freqmul=1.0

[state 1406]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
volume=250
value=4000,76
freqmul=0.7
ignorehitpause=1

[state 1406]
type=explod
triggerall=ishelper(3)&&0
trigger1=animelemtime(1)=1
anim=1411
sprpriority=100
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x)),(enemynear(root,var(18)),const(size.mid.pos.y))+30
bindtime=1
ownpal=1

[state 1406]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=10609
sprpriority=110
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x)),(enemynear(root,var(18)),const(size.mid.pos.y))
bindtime=1
ownpal=1
ontop=1
scale=0.5,0.5

[state 1406]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=10609
sprpriority=101
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x)),(enemynear(root,var(18)),const(size.mid.pos.y))
bindtime=1
ownpal=1
ontop=0
scale=0.7,0.7
trans=sub

[state 1406]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=1411
sprpriority=100
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x))+40,(enemynear(root,var(18)),const(size.mid.pos.y))+30
bindtime=1
ownpal=1
trans=sub

[state 1406]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=2
anim=1411
sprpriority=100
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x))-40,(enemynear(root,var(18)),const(size.mid.pos.y))+50
bindtime=1
ownpal=1
trans=sub

[state 1406]
type=explod
triggerall=ishelper(3)&&0
trigger1=animelemtime(1)=2
anim=1411
sprpriority=100
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x)),(enemynear(root,var(18)),const(size.mid.pos.y))+30
bindtime=1
ownpal=1

[state 1406]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=3005
sprpriority=-101
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x)),(enemynear(root,var(18)),const(size.mid.pos.y))
bindtime=1
ownpal=1
ontop=0
trans=sub

[state 1406]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=3005
sprpriority=-102
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x)),(enemynear(root,var(18)),const(size.mid.pos.y))
bindtime=1
ownpal=1
ontop=0
trans=sub

[state 1406]
type=null;explod
triggerall=ishelper(3)
trigger1=animelemtime(1)<=5
anim=6101
sprpriority=10
postype=p2
scale=0.25,0.25
pos=-50+random%100,random%30
vel=-2+(random%5),-2
accel=0,0.08
removetime=42
under=0
bindtime=1
trans=sub
ownpal=1

[state 1406]
type=null;explod
triggerall=ishelper(3)
trigger1=animelemtime(1)<=5
anim=6101
sprpriority=10
postype=p2
scale=0.5,0.5
pos=-50+random%100,random%30
vel=-2+(random%5),-2
accel=0,0.08
removetime=42
under=0
trans=sub
bindtime=1
ownpal=1

[state 1406]
type=null;explod
triggerall=ishelper(3)
trigger1=animelemtime(1)<=5
anim=6101
sprpriority=10
postype=p2
scale=0.5,0.5
pos=-50+random%100,random%30
vel=-2+(random%5),-2
accel=0,0.08
removetime=42
under=0
trans=sub
bindtime=1
ownpal=1

[state 1406]
type=null;explod
triggerall=ishelper(3)
trigger1=animelemtime(1)<=5
anim=6101
sprpriority=10
postype=p2
scale=0.5,0.5
pos=-50+random%100,random%30
vel=-2+(random%5),-2
accel=0,0.08
removetime=42
under=0
bindtime=1
trans=sub
ownpal=1

[state 1406]
type=null;explod
triggerall=ishelper(3)
trigger1=animelemtime(1)<=5
anim=6101
sprpriority=10
postype=p2
scale=0.25,0.25
pos=-50+random%100,10-random%50
vel=-2+(random%5),-2
accel=0,0.09
removetime=42
under=0
bindtime=1
trans=sub
ownpal=1

[state 1406]
type=bgpalfx
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
time=3
invertall=1

[state 1406]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
time=20
ampl=20
freq=95
phase=95

[state 1406]
type=hitadd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
value=1

[state 1406]
type=targetstate
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
value=1405

[state 1406]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1403
ignorehitpause=1 

[state 1406]
type=targetdrop
triggerall=ishelper(3)
trigger1=animelemtime(4)>=0

[state 1406]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
;クリティカルディザスター(投げ-AI)
;==========================================================================================
;==========================================================================================

[statedef 1407]
type=s
movetype=a
physics=n
ctrl=0
velset=0,0
sprpriority=2

[state 1407]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1407]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 1407]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=85+(root,var(15)!=0)*80+(root,palno=[7,12])*100

[state 1407]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1407]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1420
ignorehitpause=1

[state 1407]
type=nothitby
triggerall=ishelper(3)
trigger1=animelemtime(5)<=0
value=sca

[state 1407]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=1
value=240,1
volume=250
freqmul=0.9
ignorehitpause=1

[state 1407]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=3
value=4000,31
volume=250
freqmul=0.8
ignorehitpause=1

[state 1407]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=3
value=4000,32
volume=250
freqmul=0.9
ignorehitpause=1

[state 1407]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
anim=1401
id=1401
sprpriority=10
postype=p1
pos=0,0
bindtime=-1

[state 1407]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
anim=1401
id=1402
sprpriority=10
postype=p1
pos=0,0
bindtime=-1
ownpal=1

[state 1407]
type=modifyexplod
triggerall=ishelper(3)
trigger1=!numexplod(1401)
trigger1=(fvar(35):=0||fvar(36):=0)
trigger2=numexplod(1401)
trigger2=(fvar(35)=[0,11])&&!fvar(36)
trigger2=fvar(35):=fvar(35)+0.5
trigger3=numexplod(1401)
trigger3=(fvar(35)>=11)&&!fvar(36)
trigger3=fvar(36):=1
trigger4=numexplod(1401)
trigger4=(fvar(35)>=0)&&fvar(36)
trigger4=fvar(35):=fvar(35)-0.5
id=1401
postype=p1
pos=floor(fvar(35)),0
bindtime=-1
velset=0,0
ignorehitpause=1

[state 1407]
type=modifyexplod
triggerall=ishelper(3)
trigger1=numexplod(1402)
id=1402
postype=p1
pos=floor(-fvar(35)),0
bindtime=-1
velset=0,0
ignorehitpause=1

[state 1407]
type=assertspecial
triggerall=ishelper(3)
trigger1=(animelemtime(4)=[1,43])&&!(time%3)
flag=invisible
ignorehitpause=1

[state 1407]
type=reversaldef
triggerall=ishelper(3)
trigger1=!(time%2)
reversal.attr=sca,aa
attr=s,st
pausetime=0,0
sparkno=-1
sparkxy=15,0
hitsound=-1
numhits=0
p1stateno=1401
p2stateno=1404

[state 1407]
type=hitdef
trigger1=ishelper(3)
trigger1=(time%2)
attr=s,st       
hitflag=mafd
numhits=0        
priority=1,miss    
sparkno=-1
p1sprpriority=1
p1facing=1     
p1stateno=1401 
p2stateno=1404
guard.dist=0        
fall=1  

[state 1407]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; ジェノサイド
;==========================================================================================
;==========================================================================================

[statedef 1500]
type=s
movetype=a
physics=s
juggle=6
ctrl=0
velset=0,0
sprpriority=2

[state 1500]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1500]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1500]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1500
ignorehitpause=1

[state 1500]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=(125+(root,var(15)!=0)*60)+(root,palno=6)*68

[state 1500]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1500]
type=nothitby 
triggerall=ishelper(3)
trigger1=animelemtime(5)<=0
value=sca

[state 1500]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1||animelemtime(3)=3
volume=150
freqmul=0.9+(animelemtime(3)=3)*0.3
value=4000,35

[state 1500]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=2800
id=2800
sprpriority=5
postype=p1
pos=0,2
under=0
ignorehitpause=0

[state 1500]
type=hitdef
trigger1=ishelper(3)
trigger1=(animelemtime(3)=1||animelemtime(3)=3||animelem=4)
trigger2=!ishelper&&numhelper(3)
trigger2=(helper(3),animelemtime(3)=1||helper(3),animelemtime(3)=3||helper(3),animelem=4)
trigger2=anim=(var(7)&1024)*6
attr=s,na
animtype=diagup
damage=30,5
guardflag=m
pausetime=1+(animelem=4)*4,4+(animelem=4)*4
guard.pausetime=2,2
sparkno=s2835
guard.sparkno=s2855
sparkxy=ifelse(anim=240,-30,-20-(animelem=4)*5),ifelse(anim=240,-60-(animelem=10)*30,-110)
hitsound=s2000,0  
guardsound=s120,0  
ground.type=low
ground.slidetime=12
ground.hittime=20
ground.velocity=-4,-8
air.velocity=-4.2,-6.2
fall=1
air.fall=1
fall.recover=1
envshake.time=5+(animelem=4)*5
envshake.ampl=5+(animelem=4)*5

[state 1500]
type=posadd
triggerall=ishelper(3)
trigger1=animelem=3
x=5

[state 1500]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; ジェノサイド2
;==========================================================================================
;==========================================================================================

[statedef 1550]
type=s
movetype=a
physics=s
juggle=2
ctrl=0
velset=0,0
sprpriority=2

[state 1550]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1550]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=95

[state 1550]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 1550]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1550
ignorehitpause=1

[state 1550]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1550]
type=nothitby
trigger1=ishelper(3)
value=sca

[state 1550]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1||animelemtime(3)=3
volume=150
freqmul=0.9+(animelemtime(3)=3)*0.3
value=4000,35

[state 1550]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1||animelemtime(3)=3
volume=250
freqmul=0.9
value=105,0

[state 1550]
type=playsnd
triggerall=ishelper(3)
trigger1=movehit=1
volume=150
freqmul=1.0
value=2000,1

[state 1550]
type=envcolor
triggerall=ishelper(3)
trigger1=movehit=1
time=1
value=200,0,0
under=1
ignorehitpause=1

[state 1550]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=1554
sprpriority=5
postype=p1
pos=0,-56
under=0
ownpal=1
ontop=1
ignorehitpause=1

[state 1550]
type=hitdef
trigger1=ishelper(3)
trigger1=animelemtime(4)=1
trigger2=!ishelper&&numhelper(3)
trigger2=helper(3),animelemtime(4)=1
trigger2=anim=(var(7)&1024)*6
attr=,sa
animtype=hard
damage=30,5
guardflag=m
pausetime=0,25
guard.pausetime=0,25
sparkno=s2835
guard.sparkno=s2855
sparkxy=-30,-20
hitsound=s2000,0  
guardsound=s120,0  
ground.type=low
ground.slidetime=12
ground.hittime=20
ground.velocity=-4
air.velocity=-0.2,-4.2
fall=0
air.fall=1
fall.recover=1
envshake.time=6
envshake.ampl=6

[state 1550]
type=null;assertspecial
triggerall=ishelper(3)
trigger1=time>=30
flag=invisible
flag2=noshadow
ignorehitpause=1

[state 1550]
type=null;trans
triggerall=ishelper(3)
trigger1=time<=30
trans=addalpha
alpha=250-time*10,time*10

[state 1550]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1551

;==========================================================================================
;==========================================================================================
; ジェノサイド3
;==========================================================================================
;==========================================================================================

[statedef 1551]
type=s
movetype=a
physics=s
juggle=2
ctrl=0
velset=0,0
sprpriority=2

[state 1551]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1551]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=10

[state 1551]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 1551]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1551
ignorehitpause=1

[state 1551]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1551]
type=nothitby
trigger1=ishelper(3)&&0
value=sca

[state 1551]
type=assertspecial
triggerall=ishelper(3)
trigger1=time>=15
flag=invisible
flag2=noshadow
ignorehitpause=1

[state 1551]
type=trans
triggerall=ishelper(3)
trigger1=time<=15
trans=addalpha
alpha=250-time*20,time*20

[state 1551]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1552

;==========================================================================================
;==========================================================================================
; ジェノサイド4
;==========================================================================================
;==========================================================================================

[statedef 1552]
type=s
movetype=a
physics=s
juggle=6
poweradd=125
ctrl=0
velset=0,0
sprpriority=2

[state 1552]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1552]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=15

[state 1552]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 1552]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1552
ignorehitpause=1

[state 1552]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1552]
type=nothitby 
triggerall=ishelper(3)&&0
trigger1=animelemtime(6)<=0
value=sca

[state 1552]
type=trans
trigger1=ishelper(3)
trigger1=root,palno!=11&&time<=30&&!root,var(20)
trans=addalpha
alpha=time*12,250-time*12

[state 1552]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1||animelemtime(3)=3
volume=150
freqmul=0.9+(animelemtime(3)=3)*0.3
value=4000,35

[state 1552]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=2800
id=2800
sprpriority=5
postype=p1
pos=0,2
under=0
ignorehitpause=0

[state 1552]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1||animelemtime(3)=3&&0
volume=250
freqmul=1.0
value=1200,3

[state 1552]
type=envcolor
triggerall=ishelper(3)
trigger1=hitpausetime=2
time=1
value=200,0,0
under=1
ignorehitpause=1

[state 1552]
type=hitdef
trigger1=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=!ishelper&&numhelper(3)
trigger2=helper(3),animelemtime(3)=1
trigger2=anim=(var(7)&1024)*6
attr=,na
animtype=diagup
damage=30,5
guardflag=m
pausetime=5,5
guard.pausetime=0,2
sparkno=s2835
guard.sparkno=s2855
sparkxy=ifelse(anim=240,-30,-20-(animelem=4)*5),ifelse(anim=240,-60-(animelem=10)*30,-110)
hitsound=s2000,0
guardsound=s120,0  
ground.type=low
ground.slidetime=12
ground.hittime=20
ground.velocity=-4,-8
air.velocity=-4.2,-6.2
fall=1
air.fall=1
fall.recover=1
envshake.time=15
envshake.ampl=15

[state 1552]
type=posadd
triggerall=ishelper(3)
trigger1=animelem=3
x=5

[state 1552]
type=selfstate
triggerall=ishelper(3)
triggerall=root,var(45)
triggerall=animelemtime(4)>=1
trigger1=command="E-S-x"||command="E-S-y"
trigger2=root,var(15)
value=1560

[state 1552]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; へリックスインパクト
;==========================================================================================
;==========================================================================================

[statedef 1560]
type=s
movetype=a
physics=s
juggle=2
ctrl=0
velset=0,0
sprpriority=2

[state 1560]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1560]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=70

[state 1560]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 1560]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1560
ignorehitpause=1

[state 1560]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1560]
type=nothitby
trigger1=ishelper(3)&&0
trigger1=animelemtime(4)<=0
value=sca

[state 1560]
type=reversaldef
triggerall=ishelper(3)&&0
trigger1=animelemtime(3)=[5,15]
reversal.attr=sca,aa,ap,at
pausetime=0,0
sparkno=-1;s2835
sparkxy=ceil(p2dist x)-40-random%40,ceil(p2dist y)+random%20
hitsound=-1
numhits=0
p2stateno=1561

[state 1560]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
volume=250
value=4000,40
freqmul=1.0
ignorehitpause=1

[state 1560]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
volume=250
value=4000,76
freqmul=1.0
ignorehitpause=1

[state 1560]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
time=1
value=250,250,250
under=1
invertall=1
ignorehitpause=1

[state 1560]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
time=10
ampl=20
freq=150
phase=150
ignorehitpause=1

[state 1560]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=3005
sprpriority=-50
postype=p1
pos=80,-120
bindtime=1
ownpal=1
ontop=0
scale=1.0,1.0
trans=add

[state 1560]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=3005
sprpriority=50
postype=p1
pos=80,-120
bindtime=1
ownpal=1
ontop=0
scale=0.5,0.5
trans=sub

[state 1560]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=3005
sprpriority=50
postype=p1
pos=80,-120
bindtime=1
ownpal=1
ontop=0
scale=0.5,0.5
trans=sub

[state 1560]
type=explod
triggerall=ishelper(3)&&0
trigger1=animelemtime(3)=1
anim=1561
sprpriority=50
postype=p1
pos=80,-140
bindtime=1
ownpal=1
ontop=1
scale=0.5,0.5

[state 1560]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=1562
sprpriority=50
postype=p1
pos=60,-80
bindtime=1
ownpal=1
ontop=1
scale=0.5,0.5

[state 1560]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=1562
sprpriority=50
postype=p1
pos=60,-160
bindtime=1
ownpal=1
ontop=1
scale=0.5,0.5

[state 1560]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=1562
sprpriority=50
postype=p1
pos=60,-120
bindtime=1
ownpal=1
ontop=1
scale=1.0,1.0

[state 1560]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=1564
sprpriority=50
postype=p1
pos=100,-80
bindtime=1
ownpal=1
ontop=1
scale=0.5,0.5

[state 1560]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=1564
sprpriority=50
postype=p1
pos=100,-160
bindtime=1
ownpal=1
ontop=1
scale=0.5,0.5

[state 1560]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=0
anim=1564
sprpriority=50
postype=p1
pos=80,-120
bindtime=1
ownpal=1
ontop=1
scale=1.0,1.0

[state 1560]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=0
anim=10609
sprpriority=110
postype=p1
pos=80,-120
bindtime=1
ownpal=1
ontop=1
scale=0.5,0.5

[state 1560]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=10609
sprpriority=101
postype=p1
pos=70,-120
bindtime=1
ownpal=1
ontop=0
scale=0.7,0.7
trans=sub

[state 1560]
type=projectile
triggerall=ishelper(3)
trigger1=animelemtime(3)=[1,15]
attr=a,at
projanim=1565
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=1
projremovetime=1
postype=p1
offset=80,-120
velocity=0
numhit=0
animtype=diagup
damage=ceil(0.03*enemy,const(data.life)),ceil(0.002*enemy,const(data.life))
getpower=10,5
givepower=5,5
guardflag=h
hitflag=maf
pausetime=0,4
guard.pausetime=0,4
sparkno=s2835
sparkxy=ceil(p2dist x)-40-random%40,ceil(p2dist y)+random%20
hitsound=-1
guard.sparkno=s2855
guardsound=-1
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=0,30
air.velocity=0,30
fall=1
air.fall=1
fall.recover=0
p2stateno=1562

[state 1560]
type=projectile
triggerall=ishelper(3)
trigger1=(animelemtime(3)=[1,15])&&!(gametime%2)
attr=sca,aa,at,ap
projanim=1566
projid=6080
projhitanim=-1
projpriority=2147483647
projsprpriority=5
projremove=1
projremovetime=2
postype=p1
offset=80,-120
velocity=0
animtype=hard
damage=0
guardflag=
hitflag= 
sparkno=-1
sparkxy=-1
hitsound=-1
guard.sparkno=-1
guardsound=-1

[state 1560]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 相手
;==========================================================================================
;==========================================================================================

[statedef 1561]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1561]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1561]
type=lifeadd
trigger1=!time
value=ceil(-0.11*const(data.life))
absolute=1
ignorehitpause=1

[state 1561]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 1561]
type=changeanim
trigger1=!time
value=5170

[state 1561]
type=velset
trigger1=!time
x=0
y=15

[state 1561]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1561]
type=envshake
trigger1=vel y>0&&pos y>=0
time=10
ampl=25
freq=120
phase=120

[state 1561]
type=selfstate
trigger1=time>100
trigger2=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; 相手状態-3
;==========================================================================================
;==========================================================================================

[Statedef 1562]
type=a
movetype=h
physics=n
velset=0,15

[state 1562]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1562]
type=lifeadd
trigger1=!time
value=ceil(-0.08*const(data.life))
absolute=1
ignorehitpause=1

[state 1562]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 1562]
type=veladd
trigger1=1
y=0.37

[state 1562]
type=changeanim
trigger1=!time
value=5050+selfanimexist(5052)*2

[state 1562]
type=changeanim
triggerall=vel y>-2
trigger1=anim=5050
trigger1=selfanimexist(5060)
trigger2=anim=5052
trigger2=selfanimexist(5062)
value=5060+(anim=5052)*2
persistent=0

[state 1562]
type=envshake
trigger1=vel y>0&&pos y>=0
time=10
ampl=25
freq=120
phase=120

[state 1562]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; シーズイグニッション
;==========================================================================================
;==========================================================================================

[statedef 1600]
type=s
movetype=a
physics=s
velset=0,0
ctrl=0
sprpriority=2

[state 1600]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1600]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=50

[state 1600]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 1600]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1600
ignorehitpause=1

[state 1600]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1600]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=,st       
hitflag=m
numhits=0        
priority=1,miss    
sparkno=-1
p1sprpriority=1
p1facing=1
p2facing=1        
p1stateno=1601 
p2stateno=1602 
guard.dist=0        
fall=1

[state 1600]
type=selfstate
trigger1=ishelper(3)
trigger1=root,var(15)&&root,var(27)=4
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1560
ctrl=ishelper        

[state 1600]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=710
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 自分
;==========================================================================================
;==========================================================================================

[statedef 1601]
type=s
movetype=a
physics=n
juggle=8
sprpriority=2

[state 1601]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1601]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 1601]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1601
ignorehitpause=1

[state 1601]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1 

[state 1601]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1||time=4||time=6
volume=200
value=800,4
freqmul=1.0+(time!=1)*0.1
ignorehitpause=1

[state 1601]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1||time=4||time=6
volume=250
value=1200,2
freqmul=0.9+(time!=1)*0.1
ignorehitpause=1

[state 1601]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=40
trigger3=animelemtime(6)=47
trigger4=animelemtime(6)=57
trigger5=animelemtime(6)=90
trigger6=animelemtime(6)=98
trigger7=animelemtime(6)=108
trigger8=animelemtime(6)=118
trigger9=animelemtime(6)=128
trigger10=animelemtime(6)=168
volume=150
value=4000,40
freqmul=1.0
ignorehitpause=1

[state 1601]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=40
trigger3=animelemtime(6)=47
trigger4=animelemtime(6)=57
trigger5=animelemtime(6)=90
trigger6=animelemtime(6)=98
trigger7=animelemtime(6)=108
trigger8=animelemtime(6)=118
trigger9=animelemtime(6)=128
trigger10=animelemtime(6)=168
volume=250
value=4000,76
freqmul=1.0
ignorehitpause=1

[state 1601]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=40
trigger3=animelemtime(6)=47
trigger4=animelemtime(6)=57
trigger5=animelemtime(6)=90
trigger6=animelemtime(6)=98
trigger7=animelemtime(6)=108
trigger8=animelemtime(6)=118
trigger9=animelemtime(6)=128
trigger10=animelemtime(6)=168
time=1
value=250,250,250
under=1
invertall=1
ignorehitpause=1

[state 1601]
type=null;allpalfx
triggerall=ishelper(3)
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=40
trigger3=animelemtime(6)=47
trigger4=animelemtime(6)=57
trigger5=animelemtime(6)=90
trigger6=animelemtime(6)=98
trigger7=animelemtime(6)=108
trigger8=animelemtime(6)=118
trigger9=animelemtime(6)=128
trigger10=animelemtime(6)=168
time=1
mul=250,250,250
invertall=1
ignorehitpause=1

[state 1601]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=40
trigger3=animelemtime(6)=47
trigger4=animelemtime(6)=57
trigger5=animelemtime(6)=90
trigger6=animelemtime(6)=98
trigger7=animelemtime(6)=108
trigger8=animelemtime(6)=118
trigger9=animelemtime(6)=128
trigger10=animelemtime(6)=168
time=10
ampl=20
freq=150
phase=150
ignorehitpause=1

[state 1601]
type=hitadd
triggerall=ishelper(3)
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=40
trigger3=animelemtime(6)=47
trigger4=animelemtime(6)=57
trigger5=animelemtime(6)=90
trigger6=animelemtime(6)=98
trigger7=animelemtime(6)=108
trigger8=animelemtime(6)=118
trigger9=animelemtime(6)=128
trigger10=animelemtime(6)=168
value=1
ignorehitpause=1

[state 1601]
type=targetbind
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(1)=0
pos=35,0
ignorehitpause=1

[state 1601]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=40
trigger3=animelemtime(6)=47
trigger4=animelemtime(6)=57
trigger5=animelemtime(6)=90
value=1603+(animelemtime(6)=40)+(animelemtime(6)=47)*2+(animelemtime(6)=57)*3+(animelemtime(6)=90)*4
ignorehitpause=1

[state 1601]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(6)=98
trigger2=animelemtime(6)=108
trigger3=animelemtime(6)=118
trigger4=animelemtime(6)=128
trigger5=animelemtime(6)=168
value=1608+(animelemtime(6)=108)+(animelemtime(6)=118)*2+(animelemtime(6)=128)*3+(animelemtime(6)=168)*4
ignorehitpause=1

[state 1601]
type=targetlifeadd
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=40
trigger3=animelemtime(6)=47
trigger4=animelemtime(6)=57
trigger5=animelemtime(6)=90
trigger6=animelemtime(6)=98
trigger7=animelemtime(6)=108
trigger8=animelemtime(6)=118
trigger9=animelemtime(6)=128
trigger10=animelemtime(6)=168
value=ceil(-0.004*enemy,const(data.life))
absolute=1
ignorehitpause=1

[state 1601]
type=explod
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=40
trigger3=animelemtime(6)=47
trigger4=animelemtime(6)=57
trigger5=animelemtime(6)=90
trigger6=animelemtime(6)=98
trigger7=animelemtime(6)=108
trigger8=animelemtime(6)=118
trigger9=animelemtime(6)=128
trigger10=animelemtime(6)=168
anim=3005
id=30050
sprpriority=-50
postype=p2
pos=(target,const(size.mid.pos.x)),(target,const(size.mid.pos.y))
bindtime=1
ownpal=1
ontop=0
scale=1.0,1.0
trans=add

[state 1601]
type=explod
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=40
trigger3=animelemtime(6)=47
trigger4=animelemtime(6)=57
trigger5=animelemtime(6)=90
trigger6=animelemtime(6)=98
trigger7=animelemtime(6)=108
trigger8=animelemtime(6)=118
trigger9=animelemtime(6)=128
trigger10=animelemtime(6)=168
anim=3005
id=30050
sprpriority=50
postype=p2
pos=(target,const(size.mid.pos.x)),(target,const(size.mid.pos.y))
bindtime=1
ownpal=1
ontop=1
scale=0.5,0.5
trans=sub

[state 1601]
type=explod
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(6)>=1
trigger1=numexplod(30050)
anim=3201
sprpriority=50
postype=p2
pos=(target,const(size.mid.pos.x)-80+random%160),(target,const(size.mid.pos.y)+80-random%160)
bindtime=1
ownpal=1
ontop=1
vel=-1+(random%3),-1+(random%3)
scale=0.5,0.5
trans=sub

[state 1601]
type=explod
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(6)>=1
trigger1=numexplod(30050)
anim=3201
sprpriority=50
postype=p2
pos=(target,const(size.mid.pos.x)-80+random%160),(target,const(size.mid.pos.y)+80-random%160)
bindtime=1
ownpal=1
ontop=1
vel=-1+(random%3),-1+(random%3)
scale=0.5,0.5
trans=sub

[state 1601]
type=explod
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(6)>=1
trigger1=numexplod(30050)
anim=3201
sprpriority=50
postype=p2
pos=(target,const(size.mid.pos.x)-80+random%160),(target,const(size.mid.pos.y)+80-random%160)
bindtime=1
ownpal=1
ontop=1
vel=-1+(random%3),-1+(random%3)
scale=0.5,0.5
trans=sub

[state 1601]
type=explod
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=40
trigger3=animelemtime(6)=47
trigger4=animelemtime(6)=57
trigger5=animelemtime(6)=90
trigger6=animelemtime(6)=98
trigger7=animelemtime(6)=108
trigger8=animelemtime(6)=118
trigger9=animelemtime(6)=128
trigger10=animelemtime(6)=168
anim=10609
sprpriority=110
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x)),(enemynear(root,var(18)),const(size.mid.pos.y))
bindtime=1
ownpal=1
ontop=1
scale=0.5,0.5

[state 1601]
type=explod
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=40
trigger3=animelemtime(6)=47
trigger4=animelemtime(6)=57
trigger5=animelemtime(6)=90
trigger6=animelemtime(6)=98
trigger7=animelemtime(6)=108
trigger8=animelemtime(6)=118
trigger9=animelemtime(6)=128
trigger10=animelemtime(6)=168
anim=10609
sprpriority=101
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x)),(enemynear(root,var(18)),const(size.mid.pos.y))
bindtime=1
ownpal=1
ontop=0
scale=0.7,0.7
trans=sub

[state 1601]
type=width
triggerall=ishelper(3)
trigger1=1
edge=60,0
ignorehitpause=1

[state 1601]
type=bgpalfx
triggerall=ishelper(3)
trigger1=time<=20
time=1
mul=250-time*12,250-time*12,250-time*12
under=2
ignorehitpause=1

[state 1601]
type=null;bgpalfx
triggerall=ishelper(3)
trigger1=time<=40
time=1
mul=time*6,time*6,time*6
under=2
ignorehitpause=1

[state 1601]
type=assertspecial
trigger1=ishelper(3)
trigger1=time>=20
flag=nobg
flag2=nofg
ignorehitpause=1

[state 1601]
type=selfstate
triggerall=ishelper(3)
trigger1=time>=250
trigger2=time>=50&&!numtarget
value=1613

[state 1601]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

;==========================================================================================
;==========================================================================================
; 相手-1
;==========================================================================================
;==========================================================================================

[statedef 1602]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1602]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 1602]
type=changeanim2
trigger1=!time
value=1602

[state 1602]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1602]
type=velset
trigger1=time=18
x=-4.0
y=-4.5

[state 1602]
type=velset
trigger1=time=50
x=0
y=0

[state 1602]
type=veladd
trigger1=vel x<0
x=0.11

[state 1602]
type=veladd
trigger1=vel y<0
y=0.11

[state 1602]
type=selfstate
trigger1=time>100
value=5100

;==========================================================================================
;==========================================================================================
; 相手-2
;==========================================================================================
;==========================================================================================

[statedef 1603]
type=a
movetype=h
physics=n
sprpriority=1

[state 1603]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1603]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 1603]
type=changeanim2
trigger1=!time
value=825

[state 1603]
type=velset
trigger1=!time
x=-4
y=7

[state 1603]
type=velset
trigger1=time=7
x=0
y=0

[state 1603]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1603]
type=selfstate
trigger1=time>100
value=5100

;==========================================================================================
;==========================================================================================
; 相手-3
;==========================================================================================
;==========================================================================================

[statedef 1604]
type=a
movetype=h
physics=n
sprpriority=1

[state 1604]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1604]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 1604]
type=changeanim2
trigger1=!time
value=825

[state 1604]
type=velset
trigger1=!time
x=5
y=7

[state 1604]
type=velset
trigger1=time=7
x=0
y=0

[state 1604]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1604]
type=selfstate
trigger1=time>100
value=5100 

;==========================================================================================
;==========================================================================================
; 相手-4
;==========================================================================================
;==========================================================================================

[statedef 1605]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1604]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1605]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 1605]
type=changeanim2
trigger1=!time
value=825

[state 1605]
type=velset
trigger1=!time
x=5
y=-9

[state 1605]
type=velset
trigger1=time=7
x=0
y=0

[state 1605]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1605]
type=selfstate
trigger1=time>100
value=5100

;==========================================================================================
;==========================================================================================
; 相手-5
;==========================================================================================
;==========================================================================================

[statedef 1606]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1606]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1606]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 1606]
type=changeanim2
trigger1=!time
value=825

[state 1606]
type=velset
trigger1=!time
x=-5
y=-8

[state 1606]
type=velset
trigger1=time=7
x=0
y=0

[state 1606]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1606]
type=selfstate
trigger1=time>100
value=5100 

;==========================================================================================
;==========================================================================================
; 相手-6
;==========================================================================================
;==========================================================================================

[statedef 1607]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1607]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1607]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 1607]
type=changeanim2
trigger1=!time
value=825

[state 1607]
type=velset
trigger1=!time
x=-5
y=8

[state 1607]
type=velset
trigger1=time=8
x=0
y=0

[state 1607]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1607]
type=selfstate
trigger1=time>100
;trigger2=vel y>0&&pos y>=0
value=5100 

;==========================================================================================
;==========================================================================================
; 相手-7
;==========================================================================================
;==========================================================================================

[statedef 1608]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1608]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1608]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 1608]
type=changeanim2
trigger1=!time
value=825

[state 1608]
type=velset
trigger1=!time
x=12
y=-3

[state 1608]
type=velset
trigger1=time=8
x=0
y=0

[state 1608]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1608]
type=selfstate
trigger1=time>100
;trigger2=vel y>0&&pos y>=0
value=5100 

;==========================================================================================
;==========================================================================================
; 相手-8
;==========================================================================================
;==========================================================================================

[statedef 1609]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1609]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1609]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 1609]
type=changeanim2
trigger1=!time
value=825

[state 1609]
type=velset
trigger1=!time
x=-16
y=7

[state 1609]
type=velset
trigger1=time=8
x=0
y=0

[state 1609]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1609]
type=selfstate
trigger1=time>100
;trigger2=vel y>0&&pos y>=0
value=5100 

;==========================================================================================
;==========================================================================================
; 相手-9
;==========================================================================================
;==========================================================================================

[statedef 1610]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1610]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1610]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 1610]
type=changeanim2
trigger1=!time
value=825

[state 1610]
type=velset
trigger1=!time
x=12
y=-9

[state 1610]
type=velset
trigger1=time=8
x=0
y=0

[state 1610]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1610]
type=selfstate
trigger1=time>100
;trigger2=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; 相手-9
;==========================================================================================
;==========================================================================================

[statedef 1611]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1611]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1611]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state 1611]
type=changeanim2
trigger1=!time
value=825

[state 1611]
type=velset
trigger1=!time
x=-6
y=-13

[state 1611]
type=velset
trigger1=time=8
x=0
y=0

[state 1611]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1611]
type=selfstate
trigger1=time>100
;trigger2=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; 相手-11
;==========================================================================================
;==========================================================================================

[statedef 1612]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1612]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1612]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
absolute=1
ignorehitpause=1

[state 1612]
type=playsnd
trigger1=!time&&!ishelper
value=11,0
volume=255

[state 1612]
type=changeanim2
trigger1=!time
value=825

[state 1612]
type=velset
trigger1=!time
x=0
y=18

[state 1612]
type=velset
trigger1=time=15
x=0
y=0

[state 1612]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1612]
type=envshake
trigger1=vel y>0&&pos y>=0
time=10
ampl=25
freq=120
phase=120

[state 1612]
type=selfstate
trigger1=time>100
trigger2=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; 自分
;==========================================================================================
;==========================================================================================

[statedef 1613]
type=s
movetype=a
physics=n
juggle=8
sprpriority=2

[state 1613]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1613]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 1613]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1603
ignorehitpause=1

[state 1613]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1 

[state 1613]
type=playsnd
triggerall=ishelper(3)
trigger1=0
volume=250
value=4000,40
freqmul=1.0
ignorehitpause=1

[state 1613]
type=playsnd
triggerall=ishelper(3)
trigger1=!time||time=2
volume=254
value=4000,48
freqmul=1.0
ignorehitpause=1

[state 1613]
type=bgpalfx
triggerall=ishelper(3)
trigger1=time<=40
time=1
mul=time*6,time*6,time*6
under=2
ignorehitpause=1

[state 1613]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; マグネティックスフィア
;==========================================================================================
;==========================================================================================

[statedef 1700]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state 1700]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1700]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1700]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state 1700]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=(85+(root,var(15)!=0)*55)+(root,palno=6)*68

[state 1700]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1700+(prevstateno=[1100,1110])*9

[state 1700]
type=playsnd
trigger1=ishelper(3)
trigger1=animelem=4
value=1000,4
freqmul=1.0
volume=255

[state 1700]
type=envshake
trigger1=ishelper(3)
trigger1=animelem=4
time=6
ampl=10
freq=120
phase=120
ignorehitpause=1

[state 1700]
type=explod
trigger1=ishelper(3)
trigger1=animelem=4
anim=1701
sprpriority=9
postype=p1
pos=0,0
bindtime=1
ownpal=1

[state 1700]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 相手1
;==========================================================================================
;==========================================================================================

[statedef 1701]
type=a
movetype=h
physics=n
velset=0,0
facep2=1

[state 1701]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1701]
type=playsnd
triggerall=alive
trigger1=time=1
value=11,0
freqmul=1.0
volume=250

[state 1701]
type=removeexplod
trigger1=name!="G-Mizuchi-v2"
trigger1=ishelper
id=-1

[state 1702]
type=nothitby
trigger1=time<=2
value=sca
ignorehitpause=1

[state 1701]
type=lifeset
trigger1=time=1||!(time%2)
value=ceil(life-lifemax*(0.001+(0.001*(time=1))))
ignorehitpause=1

[state 1701]
type=angledraw
trigger1=1
scale=0.9+0.1*!(gametime%4),0.9+0.1*!(gametime%4)
ignorehitpause=1

[state 1701]
type=playerpush
trigger1=1
value=-1
ignorehitpause=1

[state 1701]
type=screenbound
trigger1=1
value=1
movecamera=1
ignorehitpause=1

[state 1701]
type=changeanim2
trigger1=!time
value=1704
ignorehitpause=1

[state 1701]
type=trans
trigger1=1
trans=add1
alpha=200,150
ignorehitpause=1

[state 1701]
type=changestate
trigger1=time>=350||roundstate>=3||!alive
value=1702
ignorehitpause=1

;==========================================================================================
;==========================================================================================
; 相手2
;==========================================================================================
;==========================================================================================

[statedef 1702]
type=a
movetype=h
physics=n
sprpriority=4

[state 1702]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 1702]
type=removeexplod
trigger1=name!="G-Mizuchi-v2"
trigger1=ishelper
id=-1

[state 1702]
type=playerpush
trigger1=1
value=-1
ignorehitpause=1

[state 1702]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 1702]
type=screenbound
trigger1=1
value=1
movecamera=1
ignorehitpause=1

[state 1702]
type=changeanim
trigger1=!time
value=5050
ignorehitpause=1

[state 1702]
type=velset
trigger1=!time
y=-2.8
ignorehitpause=1

[state 1702]
type=veladd
trigger1=time
y=0.39
ignorehitpause=1

[state 1702]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100
ignorehitpause=1

;==========================================================================================
;==========================================================================================
; クリミナルプレス
;==========================================================================================
;==========================================================================================

[statedef 1750]
type=s
movetype=a
physics=n
ctrl=0
velset=0,0
sprpriority=2

[state 1750]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1750]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1750]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1750
ignorehitpause=1

[state 1750]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=(85+(root,var(15)!=0)*55)+(root,palno=6)*68

[state 1750]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1750]
type=velset
triggerall=ishelper(3)
trigger1=animelem=3
x=12
ignorehitpause=1

[state 1750]
type=playsnd
triggerall=ishelper(3)
trigger1=animelem=3
value=40,2
freqmul=0.7
volume=255

[state 1750]
type=explod
triggerall=ishelper(3)
trigger1=animelem=3
anim=1073
sprpriority=99
postype=p1
pos=0,0
bindtime=1
ownpal=1

[state 1750]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=s,st       
hitflag=maf
guardflag=m
pausetime=0,0
guard.pausetime=0,10      
priority=1,miss    
sparkno=-1
guard.sparkno=-1
p1sprpriority=1
p1facing=1
p2facing=1        
p1stateno=1753;1752-1754
p2stateno=1755       
fall=1

[state 1750]
type=selfstate
triggerall=ishelper(3)
trigger1=time>=15
value=1751
ctrl=1

[state 1750]
type=selfstate
trigger1=ishelper(3)
trigger1=movecontact
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1752*ishelper
ignorehitpause=1

;==========================================================================================
;==========================================================================================
; 自分1
;==========================================================================================
;==========================================================================================

[statedef 1751]
type=s
movetype=a
physics=s
ctrl=0
poweradd=0
sprpriority=2

[state 1751]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1751]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1751]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1751
ignorehitpause=1

[state 1751]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1751]
type=velset
triggerall=ishelper(3)
trigger1=time>=3
x=0
ignorehitpause=1

[state 1751]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=11
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 自分2
;==========================================================================================
;==========================================================================================

[statedef 1752]
type=a
movetype=a
physics=n
ctrl=0
poweradd=0
sprpriority=2

[state 1752]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1752]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1752]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1752
ignorehitpause=1

[state 1752]
type=velset
triggerall=ishelper(3)
trigger1=!time
x=-5
y=-4
ignorehitpause=1

[state 1752]
type=veladd
triggerall=ishelper(3)
trigger1=1
x=-0.03
y=0.37
ignorehitpause=1

[state 1752]
type=selfstate
trigger1=ishelper(3)
trigger1=vel y>0&&pos y>=0
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=217*ishelper

;==========================================================================================
;==========================================================================================
; 自分3
;==========================================================================================
;==========================================================================================

[statedef 1753]
type=s
movetype=a
physics=n
ctrl=0
poweradd=0
sprpriority=2

[state 1753]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1753]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1753]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1753
ignorehitpause=1

[state 1753]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1753]
type=velset
triggerall=ishelper(3)
trigger1=!time
x=15
ignorehitpause=1

[state 1753]
type=width
triggerall=ishelper(3)
trigger1=1
edge=62,0
ignorehitpause=1

[State 1753]
type=targetbind
triggerall=ishelper(3)
trigger1=numtarget
pos=-40,-65

[state 1753]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=target,stateno!=1755
value=1755

[state 1753]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1||time=3||time=5
value=1200,2
volume=250
freqmul=0.9+(time=5)*0.2
ignorehitpause=1

[state 1753]
type=selfstate
triggerall=ishelper(3)
triggerall=time>=5
trigger1=frontedgedist<=62
trigger2=!numtarget
value=1754-!numtarget*2

[state 1753]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

;==========================================================================================
;==========================================================================================
; 自分4
;==========================================================================================
;==========================================================================================

[statedef 1754]
type=s
movetype=a
physics=n
ctrl=0
poweradd=0
sprpriority=2

[state 1754]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 1754]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 1754]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1754
ignorehitpause=1

[state 1754]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 1754]
type=velset
triggerall=ishelper(3)
trigger1=!time
x=0
ignorehitpause=1

[state 1754]
type=width
triggerall=ishelper(3)
trigger1=1
edge=42,0
ignorehitpause=1

[state 1754]
type=targetbind
triggerall=ishelper(3)
trigger1=animelemtime(1)>=0&&animelemtime(2)<0
trigger1=numtarget
pos=-40,-65

[state 1754]
type=targetbind
triggerall=ishelper(3)
trigger1=animelemtime(2)>=0&&animelemtime(3)<0
trigger1=numtarget
pos=0,-65

[state 1754]
type=targetbind
triggerall=ishelper(3)
trigger1=animelemtime(3)>=0&&animelemtime(4)<0
trigger1=numtarget
pos=60,-85

[state 1754]
type=targetstate
triggerall=ishelper(3)
trigger1=animelemtime(4)=1
trigger1=numtarget
value=1756

[state 1754]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(4)=1
time=15
ampl=20
freq=120
phase=120

[state 1754]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=1
value=4000,16
freqmul=1.0
volume=255

[state 1754]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=1
value=4000,40
freqmul=0.7
volume=255

[state 1754]
type=bgpalfx
triggerall=ishelper(3)
trigger1=animelemtime(4)=1
time=2
invertall=1
ignorehitpause=1

[state 1754]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=1
anim=3005
sprpriority=50
postype=p1
pos=67,-100
bindtime=1
ownpal=1
ontop=0
scale=0.5,0.5
trans=sub

[state 1754]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1752

;==========================================================================================
;==========================================================================================
; 相手-1
;==========================================================================================
;==========================================================================================

[statedef 1755]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=99

[state 1755]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 1755]
type=removeexplod
trigger1=name!="G-Mizuchi-v2"
trigger1=ishelper
id=-1

[state 1755]
type=playerpush
trigger1=1
value=0

[state 1755]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1755]
type=nothitby
trigger1=1
value=sca

[state 1755]
type=changeanim2
trigger1=!time
value=1755

[state 1755]
type=velset
trigger1=!time
x=0
y=0

[state 1756]
type=selfstate
trigger1=time>=300
value=5050

;==========================================================================================
;==========================================================================================
; 相手-2
;==========================================================================================
;==========================================================================================

[statedef 1756]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=1

[state 1756]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 1756]
type=lifeadd
trigger1=!time
value=ceil(-0.08*const(data.life))
absolute=1
ignorehitpause=1

[state 1756]
type=removeexplod
trigger1=name!="G-Mizuchi-v2"
trigger1=ishelper
id=-1

[state 1756]
type=playerpush
trigger1=1
value=0

[state 1756]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 1756]
type=nothitby
trigger1=1
value=sca

[state 1756]
type=changeanim2
trigger1=!time
value=1410

[state 1756]
type=velset
trigger1=!time
x=-0.7
y=-12

[state 1756]
type=veladd
trigger1=1
y=0.52

[state 1756]
type=envshake
trigger1=vel y>0&&pos y>=0
time=10
ampl=-5
freq=95
phase=95

[state 1756]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;//////////////////////////////////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------------------
; ソウル・ディストラクション
;------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////////////////
;==========================================================================================

[statedef 2300]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0

[state 2300]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2300]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-1000

[state 2300]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 2300]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=2100

[state 2300]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2300]
type=nothitby 
triggerall=ishelper(3)
trigger1=animelemtime(19)<=0
value=sca

[state 2300]
type=superpause
triggerall=ishelper(3)
trigger1=!time
time=30
movetime=30
anim=-1

[state 2300]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3100
sprpriority=-5
postype=p1
pos=0,-102
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 2300]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3110
sprpriority=99
postype=p1
pos=0,-102
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 2300]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 2300]
type=assertspecial
triggerall=ishelper(3)
trigger1=time=[0,25]
flag=nobg
flag2=nofg

[state 2300]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=3000,0
volume=100

[state 2600]
type=playsnd
triggerall=ishelper(3)
trigger1=time=19
value=4000,27
volume=100

[state 2300]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
trigger2=time=3
value=1200,0
volume=200

[state 2300]
type=selfstate
triggerall=ishelper(3)
triggerall=animelemtime(4)>=1
trigger1=numhelper(10)
trigger1=helper(10),var(29)>=1
value=2301

[state 2300]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; ヒット
;==========================================================================================
;==========================================================================================

[statedef 2301]
type=s
movetype=a
physics=n
velset=0,0
juggle=8
poweradd=0
ctrl=0

[state 2301]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2301]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 2301]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=2101

[state 2301]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2301]
type=width
triggerall=ishelper(3)
trigger1=1
value=90,0

[state 2301]
type=assertspecial
triggerall=ishelper(3)
trigger1=animelemtime(18)<=0
flag=nobg
flag2=nofg
ignorehitpause=1

[state 2301]
type=assertspecial
triggerall=ishelper(3)
trigger1=animelemtime(7)>=20
trigger1=animelemtime(7)<=35
flag=invisible
ignorehitpause=1

[state 2301]
type=trans
triggerall=ishelper(3)
trigger1=animelemtime(7)>=0
trigger1=animelemtime(7)<=21
trans=addalpha
alpha=250-animelemtime(7)*10,animelemtime(7)*10
ignorehitpause=1

[state 2301]
type=trans
trigger1=ishelper(3)
trigger1=animelemtime(8)>=0
trigger1=animelemtime(8)<=20
trans=addalpha
alpha=animelemtime(8)*12,250-animelemtime(8)*12
ignorehitpause=1

[state 2301]
type=posadd
triggerall=ishelper(3)
trigger1=animelemtime(7)=20
x=100
ignorehitpause=1

[state 2301]
type=turn
trigger1=ishelper(3)
trigger1=animelemtime(7)=20
ignorehitpause=1

[state 2301]
type=playsnd
triggerall=ishelper(3)
trigger1=animelem=7
trigger2=animelem=17
trigger3=animelem=18
value=2000-(animelem=17)*800,(animelem=17)*3+(animelem=18)
volume=50

[state 2301]
type=pause
triggerall=ishelper(3)
trigger1=animelem=18
time=16
movetime=16

[state 2301]
type=envcolor
triggerall=ishelper(3)
trigger1=animelem=7
trigger2=animelem=18
time=2
value=255,0,0
under=3
ignorehitpause=1

[state 2301]
type=envshake
triggerall=ishelper(3)
trigger1=animelem=7
trigger2=animelem=18
time=14
ampl=-14
freq=95
phase=95
ignorehitpause=1

[state 2301]
type=explod
triggerall=ishelper(3)
trigger1=animelem=7
anim=2835
sprpriority=7
postype=p1
pos=50,-65
bindtime=1
supermove=1
under=0
ownpal=1
pausemovetime=99999999
supermovetime=99999999

[state 2301]
type=explod
triggerall=ishelper(3)
trigger1=animelem=18
anim=2835
sprpriority=7
postype=p1
pos = 58,-83
bindtime=1
supermove=1
under=0
ownpal=1
pausemovetime=99999999
supermovetime=99999999

[state 2301]
type=explod
triggerall=ishelper(3)
trigger1=animelem=8
anim=2105
sprpriority=8
postype=p1
pos=0,0
bindtime=1
supermove=1
under=0
ownpal=1
pausemovetime=99999999
supermovetime=99999999

[state 2301]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
;相手動作1
;==========================================================================================
;==========================================================================================

[statedef 2302]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=-1

[state 2302]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 2302]
type=changeanim2
trigger1=!time
value=2102

[state 2302]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2302]
type=selfstate
trigger1=time>=200
value=5050

;==========================================================================================
;==========================================================================================
;相手動作2
;==========================================================================================
;==========================================================================================

[statedef 2303]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=-1

[state 2303]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 2303]
type=changeanim2
trigger1=!time
value=2103

[state 2303]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2303]
type=selfstate
trigger1=time>=200
value=5050

;==========================================================================================
;==========================================================================================
;相手動作3
;==========================================================================================
;==========================================================================================

[statedef 2304]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=-1

[state 2304]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 2304]
type=changeanim2
trigger1=!time
value=2104

[state 2304]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2304]
type=selfstate
trigger1=time>=200
value=5050

;==========================================================================================
;==========================================================================================
;相手動作4
;==========================================================================================
;==========================================================================================

[statedef 2305]
type=a
movetype=h
physics=n
velset=7,-7

[state 2305]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 2305]
type=lifeset
trigger1=!time&&life<=lifemax*0.01
value=0
ignorehitpause=1

[state 2305]
type=changeanim
trigger1=!time
value= 5050

[state 2305]
type=changeanim
trigger1=!time
trigger1=animexist(5052) = 1
value=5052

[state 2305]
type=veladd
trigger1=1
y=0.3

[state 2305]
type=nothitby 
trigger1=1
value=sca

[state 2305]
type=changeanim
trigger1=time=15
trigger1=animexist(5061)=1
value= 5061

[state 2305]
type=changeanim
trigger1=time=15
trigger1=animexist(5062)=1
value=5062

[state 2305]
type=selfstate
trigger1=vel y>0&&pos y>=0
value= 5100

;==========================================================================================
;//////////////////////////////////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------------------
;バニッシュ
;------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////////////////
;==========================================================================================

[statedef 2400]
type=s
movetype=a
physics=n
velset=0,0
ctrl=0

[state 2400]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2400]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-1000

[state 2400]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2400]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1900
ignorehitpause=1 

[state 2400]
type=nothitby
triggerall=ishelper(3)
trigger1=!root,var(45)
trigger1=animelemtime(13)<=4
trigger2=root,var(45)||(root,palno=[11,12])
value=sca

[state 2400]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(13)=0
trigger2=animelemtime(13)=3
value=4000,12
freqmul=1.2+(animelemtime(13)=3)*0.2
volume=150

[state 2400]
type=assertspecial
triggerall=ishelper(3)
trigger1=animelemtime(13)>=0&&animelemtime(13)<=30
trigger1=(gametime%2)=1
flag=invisible

[state 2400]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; クリミナルプレッシャー
;==========================================================================================
;==========================================================================================

[statedef 2200]
type=s
movetype=a
physics=n
ctrl=0
juggle=0
velset=0,0
sprpriority=2

[state 2200]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2200]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 2200]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2200
ignorehitpause=1

[state 2200]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-2000

[state 2200]
type=assertspecial
triggerall=ishelper(3)
trigger1=time<=32
flag=nobg
flag2=nofg
ignorehitpause=1

[state 2200]
type=nothitby 
triggerall=ishelper(3)
trigger1=time<=40
value=sca
ignorehitpause=1

[state 2200]
type=superpause
triggerall=ishelper(3)
trigger1=!time
time=32
movetime=32
anim=-1
ignorehitpause=1

[state 2200]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3120
sprpriority=-5
postype=p1
pos=1,-40
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 2200]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3130
sprpriority=999
postype=p1
pos=1,-40
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 2200]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 2200]
type=envcolor
triggerall=ishelper(3)
trigger1=time=3
time=30
value=0,0,0
under=2
ignorehitpause=1

[state 2200]
type=palfx
triggerall=ishelper(3)
trigger1=(time=[1,30])&&!(time%2)
time=1
add=150,!(prevstateno=[2852,2854])*150,!(prevstateno=[2852,2854])*150
invertall=1
ignorehitpause=1

[state 2200]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=3000,1
volume=100
ignorehitpause=1

[state 2200]
type=playsnd
triggerall=ishelper(3)
trigger1=time=19
value=4000,18
volume=100
ignorehitpause=1

[state 2200]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2200]
type=velset
triggerall=ishelper(3)
trigger1=animelem=3
x=15
ignorehitpause=1

[state 2200]
type=playsnd
triggerall=ishelper(3)
trigger1=animelem=3
value=40,2
freqmul=0.7
volume=255

[state 2200]
type=explod
triggerall=ishelper(3)
trigger1=animelem=3
anim=1073
sprpriority=99
postype=p1
pos=0,0
bindtime=1
ownpal=1

[state 2200]
type=hitdef
trigger1=ishelper(3)
trigger1=!time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=s,ht  
hitflag=mafd
guardflag=m
pausetime=0,0
guard.pausetime=0,10       
priority=1,miss    
sparkno=-1
guard.sparkno=-1
p1sprpriority=1
p1facing=1
p2facing=1        
p1stateno=2203;1752-1754
p2stateno=2205     
fall=1

[state 2200]
type=selfstate
triggerall=ishelper(3)
trigger1=animelemtime(3)>0
trigger1=prevstateno=[2852,2854]
trigger1=numtarget(28500)
value=2203

[state 2200]
type=selfstate
triggerall=ishelper(3)
trigger1=time>=50
value=2201
ctrl=1

[state 2200]
type=selfstate
trigger1=ishelper(3)
trigger1=movecontact
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=2202
ignorehitpause=1

;==========================================================================================
;==========================================================================================
; 自分1
;==========================================================================================
;==========================================================================================

[statedef 2201]
type=s
movetype=a
physics=s
ctrl=0
poweradd=0
sprpriority=2

[state 2201]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2201]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 2201]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1751
ignorehitpause=1

[state 2201]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2201]
type=null;velset
triggerall=ishelper(3)
trigger1=time
x=0
ignorehitpause=1

[state 2201]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=11
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 自分2
;==========================================================================================
;==========================================================================================

[statedef 2202]
type=a
movetype=a
physics=n
ctrl=0
poweradd=0
sprpriority=2

[state 2202]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2202]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 2202]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1752
ignorehitpause=1

[state 2202]
type=velset
triggerall=ishelper(3)
trigger1=!time
x=-5
y=-4
ignorehitpause=1

[state 2202]
type=veladd
triggerall=ishelper(3)
trigger1=1
x=-0.03
y=0.37
ignorehitpause=1

[state 2202]
type=afterimage
triggerall=ishelper(3)
trigger1=1
time=0
ignorehitpause=1

[state 2202]
type=selfstate
trigger1=ishelper(3)
trigger1=vel y>0&&pos y>=0
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=217

;==========================================================================================
;==========================================================================================
; 自分3
;==========================================================================================
;==========================================================================================

[statedef 2203]
type=s
movetype=a
physics=n
ctrl=0
poweradd=0
sprpriority=2

[state 2203]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2203]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 2203]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1753
ignorehitpause=1

[state 2203]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2203]
type=velset
triggerall=ishelper(3)
trigger1=!time
x=15
ignorehitpause=1

[state 2203]
type=width
triggerall=ishelper(3)
trigger1=1
edge=62,0
ignorehitpause=1

[state 2203]
type=targetbind
triggerall=ishelper(3)
trigger1=numtarget
pos=-40,-65

[state 2203]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=target,stateno!=2205
value=2205

[state 2203]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1||time=3||time=5
value=1200,2
volume=250
freqmul=0.9+(time=5)*0.2
ignorehitpause=1

[state 2203]
type=selfstate
triggerall=ishelper(3)
triggerall=time>=5
trigger1=frontedgedist<=62
trigger2=!numtarget
value=2204-!numtarget*2

[state 2203]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

;==========================================================================================
;==========================================================================================
; 自分4
;==========================================================================================
;==========================================================================================

[statedef 2204]
type=s
movetype=a
physics=n
ctrl=0
poweradd=0
sprpriority=2

[state 2204]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2204]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 2204]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2204
ignorehitpause=1

[state 2204]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2204]
type=velset
triggerall=ishelper(3)
trigger1=!time
x=0
ignorehitpause=1

[state 2204]
type=afterimage
triggerall=ishelper(3)
trigger1=1
time=0
ignorehitpause=1

[state 2204]
type=width
triggerall=ishelper(3)
trigger1=1
edge=42,0
ignorehitpause=1

[state 2204]
type=targetbind
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(1)>=0&&animelemtime(2)<0
trigger2=animelemtime(6)>=0&&animelemtime(7)<0
trigger3=animelemtime(10)>=0&&animelemtime(11)<0
trigger4=animelemtime(14)>=0&&animelemtime(15)<0
trigger5=animelemtime(18)>=0&&animelemtime(19)<0
pos=-40,-65

[state 2204]
type=targetbind
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(2)>=0&&animelemtime(3)<0
trigger2=animelemtime(5)>=0&&animelemtime(6)<0
trigger3=animelemtime(7)>=0&&animelemtime(8)<0
trigger4=animelemtime(9)>=0&&animelemtime(10)<0
trigger5=animelemtime(11)>=0&&animelemtime(12)<0
trigger6=animelemtime(13)>=0&&animelemtime(14)<0
trigger7=animelemtime(15)>=0&&animelemtime(16)<0
trigger8=animelemtime(17)>=0&&animelemtime(18)<0
trigger9=animelemtime(19)>=0&&animelemtime(20)<0
pos=0,-65

[state 2204]
type=targetbind
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)>=0&&animelemtime(5)<0
trigger2=animelemtime(8)>=0&&animelemtime(9)<0
trigger3=animelemtime(12)>=0&&animelemtime(13)<0
trigger4=animelemtime(16)>=0&&animelemtime(17)<0
trigger5=animelemtime(20)>=0&&animelemtime(20)<90
pos=60,-85

[state 2204]
type=bgpalfx
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
trigger18=animelemtime(20)=90
time=2
invertall=1
ignorehitpause=1

[state 2204]
type=envshake
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
trigger18=animelemtime(20)=90
time=8+(animelemtime(20)=90)*12
ampl=16+(animelemtime(20)=90)*14
freq=150
phase=150
ignorehitpause=1

[state 2204]
type=sprpriority
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=35
trigger13=animelemtime(20)=40
trigger14=animelemtime(20)=45
trigger15=animelemtime(20)=50
trigger16=animelemtime(20)=55
trigger17=animelemtime(20)=60
trigger18=animelemtime(20)=90
value=120

[state 2204]
type=sprpriority
triggerall=ishelper(3)
trigger1=animelemtime(2)>=0&&animelemtime(3)<0
trigger2=animelemtime(5)>=0&&animelemtime(6)<0
trigger3=animelemtime(7)>=0&&animelemtime(8)<0
trigger4=animelemtime(9)>=0&&animelemtime(10)<0
trigger5=animelemtime(11)>=0&&animelemtime(12)<0
trigger6=animelemtime(13)>=0&&animelemtime(14)<0
trigger7=animelemtime(15)>=0&&animelemtime(16)<0
trigger8=animelemtime(17)>=0&&animelemtime(18)<0
trigger9=animelemtime(19)>=0&&animelemtime(20)<0
trigger10=animelemtime(1)>=0&&animelemtime(2)<0
trigger11=animelemtime(6)>=0&&animelemtime(7)<0
trigger12=animelemtime(10)>=0&&animelemtime(11)<0
trigger13=animelemtime(14)>=0&&animelemtime(15)<0
trigger14=animelemtime(18)>=0&&animelemtime(19)<0
value=10

[state 2204]
type=hitadd
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
trigger18=animelemtime(20)=90
value=1
ignorehitpause=1

[state 2204]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
value=2208-(animelemtime(20)>=0)

[state 2204]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(20)=90
value=2206

[state 2204]
type=targetlifeadd
triggerall=ishelper(3)
triggerall=root,palno=6
triggerall=numtarget
triggerall=fvar(11):=ceil(target,lifemax*0.007)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
value=-ceil(fvar(11))
absolute=1
ignorehitpause=1

[state 2204]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
trigger18=animelemtime(20)=90
value=4000,16
freqmul=1.0
volume=150

[state 2204]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
trigger18=animelemtime(20)=90
value=4000,40
freqmul=0.7
volume=150

[state 2204]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(20)=50
trigger2=animelemtime(20)=54
value=1200,6
freqmul=1.0
volume=250

[state 2204]
type=null;helper
triggerall=ishelper(3)
trigger1=animelemtime(18)=10
trigger2=animelemtime(18)=14
trigger3=animelemtime(18)=18
trigger4=animelemtime(18)=22
id=16
persistent=1
name="."
pos=-34,-43
postype=p1
stateno=2951
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 2204]
type=null;envcolor
triggerall=ishelper(3)
trigger1=animelemtime(18)=10
trigger2=animelemtime(18)=14
trigger3=animelemtime(18)=18
trigger4=animelemtime(18)=22
time=1
value=250,250,250
under=1
invertall=1
ignorehitpause=1

[state 2204]
type=null;playsnd
triggerall=ishelper(3)
trigger1=animelemtime(18)=1
value=4000,72
freqmul=1.3
volume=255

[state 2204]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
anim=1411
sprpriority=100
postype=p1
pos=67,-90
bindtime=-1
ownpal=1
trans=sub

[state 2204]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
anim=1411
sprpriority=100
postype=p1
pos=67,-60
bindtime=-1
ownpal=1
ontop=1
trans=sub

[state 2204]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(20)=1
trigger2=animelemtime(20)=5
trigger3=animelemtime(20)=10
trigger4=animelemtime(20)=15
trigger5=animelemtime(20)=20
trigger6=animelemtime(20)=25
trigger7=animelemtime(20)=30
trigger8=animelemtime(20)=32
trigger9=animelemtime(20)=34
trigger10=animelemtime(20)=36
trigger11=animelemtime(20)=38
trigger12=animelemtime(20)=40
trigger13=animelemtime(20)=60&&0
anim=1411
sprpriority=140
postype=p1
pos=10+random%80,-20-random%120
bindtime=1
ownpal=1
trans=sub
ontop=0

[state 2204]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(20)=90
anim=1411
sprpriority=50
postype=p1
pos=67,-70
bindtime=1
ownpal=1
ontop=1
scale=1.0,1.0
trans=sub

[state 2204]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(20)=90
anim=3005
sprpriority=50
postype=p1
pos=67,-100
bindtime=1
ownpal=1
ontop=0
scale=0.5,0.5
trans=sub

[state 2204]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=2202

;==========================================================================================
;==========================================================================================
; 相手-1
;==========================================================================================
;==========================================================================================

[statedef 2205]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=99

[state 2205]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 2205]
type=selfstate
trigger1=name="G-Mizuchi-v2"
trigger1=!ishelper
value=0

[state 2205]
type=playerpush
trigger1=1
value=0

[state 2205]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2205]
type=nothitby
trigger1=1
value=sca

[state 2205]
type=changeanim2
trigger1=!time
value=1755

[state 2205]
type=velset
trigger1=!time
x=0
y=0

[state 2205]
type=selfstate
trigger1=time>=300
value=5050

;==========================================================================================
;==========================================================================================
; 相手-2
;==========================================================================================
;==========================================================================================

[statedef 2206]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=99

[state 2206]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 2206]
type=lifeadd
trigger1=!time
value=ceil(-0.1*const(data.life))
absolute=1
ignorehitpause=1

[state 2206]
type=playsnd
triggerall=alive
trigger1=!time||time=4
value=11,0
volume=255

[state 2206]
type=playerpush
trigger1=1
value=0

[state 2206]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2206]
type=nothitby
trigger1=1
value=sca

[state 2206]
type=changeanim2
trigger1=!time
value=1410

[state 2206]
type=velset
trigger1=!time
x=-0.7
y=-12

[state 2206]
type=veladd
trigger1=1
y=0.52

[state 2206]
type=changestate
triggerall=name!="G-Mizuchi-v2"
triggerall=ishelper
trigger1=vel y>0&&pos y>=0
trigger2=time>=100
value=69996
ignorehitpause=1

[state 2206]
type=envshake
trigger1=vel y>0&&pos y>=0
time=10
ampl=-5
freq=95
phase=95

[state 2206]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; 相手-3
;==========================================================================================
;==========================================================================================

[statedef 2207]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=99

[state 2207]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 2207]
type=lifeadd
trigger1=!time
value=ceil(-0.014*const(data.life))
kill=0
absolute=1
ignorehitpause=1

[state 2207]
type=playerpush
trigger1=1
value=0

[state 2207]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2207]
type=nothitby
trigger1=1
value=sca

[state 2207]
type=changeanim2
trigger1=!time
value=1755

[state 2207]
type=selfstate
trigger1=time>=800
value=5050

;==========================================================================================
;==========================================================================================
; 相手-4
;==========================================================================================
;==========================================================================================

[statedef 2208]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=99

[state 2208]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 2208]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
kill=0
absolute=1
ignorehitpause=1

[state 2208]
type=playsnd
trigger1=!time&&0
value=11,0
volume=255

[state 2208]
type=playerpush
trigger1=1
value=0

[state 2208]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2208]
type=nothitby
trigger1=1
value=sca

[state 2208]
type=changeanim2
trigger1=!time
value=1755

[state 2208]
type=selfstate
trigger1=time>=800
value=5050

;==========================================================================================
;//////////////////////////////////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------------------
; ユニバース・ディストーション
;------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////////////////
;==========================================================================================

[statedef 2000]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0
sprpriority=7

[state 2000]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2000]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=2750
ignorehitpause=1

[state 2000]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-2000

[state 2000]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2000
ignorehitpause=1

[state 2000]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2000]
type=assertspecial
triggerall=ishelper(3)
trigger1=!time
trigger1=(var(3):=(root,var(45)!=0))||1
;trigger1=!time&&!root,var(15)
;trigger1=(var(3):=(command="U-D-N"))||1
;trigger2=!time&&root,var(15)
;trigger2=(var(3):=(enemynear(root,var(18)),stateno!=[120,155]))||1
trigger2=1
flag=nobardisplay
flag2=nobg
flag3=nofg
ignorehitpause=1

[state 2000]
type=nothitby
triggerall=ishelper(3)
trigger1=1
value=sca
ignorehitpause=1

[state 2000]
type=superpause
triggerall=ishelper(3)
trigger1=!time
time=32
movetime=32
anim=-1
darken=0
ignorehitpause=1

[state 2000]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3140;-(!root,var(45)&&root,palno<7)*20
sprpriority=-5
postype=p1
pos=1,-119;-(!root,var(45)&&root,palno<7)*10
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 2000]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3150;-(!root,var(45)&&root,palno<7)*20
sprpriority=999
postype=p1
pos=1,-119;-(!root,var(45)&&root,palno<7)*10
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 2000]
type=helper
trigger1=ishelper(3)
trigger1=root,var(45)||root,palno>6
trigger1=time=10||time=14
id=12
persistent=1
name="."
pos=1,-129
postype=p1
stateno=2950
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 2000]
type=helper
trigger1=ishelper(3)
trigger1=root,var(45)||root,palno>6
trigger1=!time||time=4
id=16
persistent=1
name="."
pos=1,-129
postype=p1
stateno=2951
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 2000]
type=envcolor
triggerall=ishelper(3)
trigger1=root,var(45)||root,palno>6
trigger1=time=10||time=14||time=16
time=1
value=255,255,255
under=2
ignorehitpause=1

[state 2000]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 2000]
type=envcolor
triggerall=ishelper(3)
trigger1=time=3
time=30
value=0,0,0
under=2
ignorehitpause=1

[state 2000]
type=playsnd
triggerall=ishelper(3)
trigger1=root,var(45)||root,palno>6
trigger1=time=30||!animtime
value=4000,27
volume=150
freqmul=1.3
ignorehitpause=1

[state 2000]
type=playsnd
triggerall=ishelper(3)
trigger1=root,var(45)||root,palno>6
trigger1=!time||time=3
value=4000,90
volume=250
freqmul=1.2
ignorehitpause=1

[state 2000]
type=playsnd
triggerall=ishelper(3)
trigger1=!root,var(45)&&root,palno<7
trigger1=!time
value=3000,1
volume=100
ignorehitpause=1

[state 2000]
type=playsnd
triggerall=ishelper(3)
trigger1=!root,var(45)&&root,palno<7
trigger1=time=19
value=4000,18
volume=100
ignorehitpause=1

[state 2000]
type=playsnd
triggerall=ishelper(3)
trigger1=root,var(45)||root,palno>6
trigger1=!time||time=3
value=4000,28
volume=250
freqmul=1.1
ignorehitpause=1

[state 2000]
type=playsnd
triggerall=ishelper(3)
trigger1=time=10
trigger2=time=13
value=1200,0
volume=250
ignorehitpause=1

[state 2000]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=2010

;---------------------------------------------------------------------------
;===========================================================================
; 攻撃
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2010]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
sprpriority= 9
ctrl=0

[state 2010]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2010]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2010
ignorehitpause=1

[state 2010]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2010]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobardisplay
flag2=nobg
flag3=nofg
ignorehitpause=1

[state 2010]
type=nothitby
triggerall=ishelper(3)
trigger1=root,var(45)||root,palno>5
value=sca
ignorehitpause=1

[state 2010]
type=playsnd
triggerall=ishelper(3)
trigger1=time=50
value=1200,1
volume=200
ignorehitpause=1

[state 2010]
type=playsnd
triggerall=ishelper(3)
trigger1=time=90
value=1200,2
volume=200
ignorehitpause=1

[state 2010]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=4000,7
volume=250
freqmul=1.3-!root,var(45)*0.2
channel=8
ignorehitpause=1

[state 2010]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3300;+(var(3)=1||root,var(45))*10
id=2010
sprpriority=99;ifelse((var(3)=1||root,var(45)),99,-5)
postype=back
scale=0.5,0.5
pos=0,0
bindtime=-1
removetime=-1
supermove=1
ownpal=1
ontop=(var(3)=1)
ignorehitpause=1

[state 2010]
type=projectile
triggerall=ishelper(3)
trigger1=(time=[10,190])&&!(time%10)
attr=a,na
projanim=2015
projhitanim=-1
projid=2015
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=5
postype=p1
offset=0,0
velocity=0
animtype=hard
damage=ceil((0.07)*enemy,const(data.life)),ceil((0.002)*enemy,const(data.life))
getpower=0,0
givepower=0,0
guardflag=m
hitflag=mafd
pausetime=0,5
guard.pausetime=0,5
sparkno=-1
sparkxy=-10,floor(enemy,pos y)-60
hitsound=s225,1
guard.sparkno=-1
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-1,-2
guard.velocity=-9.8
air.velocity=-1,-2
fall=1
air.fall=1
fall.recover=0
id=2030
p2stateno=2030

[state 2010]
type=projectile
triggerall=ishelper(3)
trigger1=gametime%2=0
attr=sca,aa,at,ap
projanim=2016
projid=6080
projhitanim=-1
projpriority=2147483647
projsprpriority=5
projremove=1
projremovetime=2
postype=p1
offset=0,0
velocity=0
animtype=hard
damage=0
guardflag=
hitflag= 
sparkno=-1
sparkxy=-1
hitsound=-1
guard.sparkno=-1
guardsound=-1

[state 2010]
type=reversaldef
triggerall=ishelper(3)
trigger1=0
reversal.attr=sca,aa,at,ap
hitflag=m-
priority=7
pausetime=0,0
sparkno=-1
hitsound=-1
p2stateno=2030
ignorehitpause=1

[state 2010]
type=targetstate
triggerall=ishelper(3)
trigger1=numtarget
trigger1=target,stateno=[2030,2070]
trigger1=(time=[10,190])&&!(time%10)
value=2030
ignorehitpause=1

[state 2010]
type=explod
triggerall=ishelper(3)
trigger1=enemynear(root,var(18)),stateno=150||enemynear(root,var(18)),stateno=152
trigger1=enemynear(root,var(18)),time=1
trigger2=numtarget
trigger2=(target,stateno=2030&&target,time=1)
anim=ifelse((enemynear(root,var(18)),stateno=[150,152]),2855,2835)
sprpriority=120
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x)),(enemynear(root,var(18)),const(size.mid.pos.y))
facing=-1
ownpal=1
ontop=1
ignorehitpause=1

[state 2010]
type=hitadd
trigger1=ishelper(3)
trigger1=numtarget
trigger1=target,stateno=2030&&target,time=1
value=1
ignorehitpause=1

[state 2010]
type=playsnd
trigger1=ishelper(3)
trigger1=numtarget
trigger1=target,stateno=2030&&target,time=1
value=225,1
ignorehitpause=1

[state 2010]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=201
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=2020

;---------------------------------------------------------------------------
;===========================================================================
; 終了
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2020]
type=s
movetype=a
physics=n
velset=0,0
juggle=15
ctrl=0
sprpriority=99

[state 2020]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2020]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2025
ignorehitpause=1

[state 2020]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2020]
type=nothitby
triggerall=ishelper(3)
trigger1=!time
value=sca
time=15
ignorehitpause=1

[state 2020]
type=assertspecial
triggerall=ishelper(3)
trigger1=time<=14
flag=nobardisplay
flag2=nobg
flag3=nofg
ignorehitpause=1

[state 2020]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=14
value=0,0,0
under=2
ignorehitpause=1

[state 2020]
type=removeexplod
triggerall=ishelper(3)
trigger1=!time
id=2010
ignorehitpause=1

[state 2020]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3310
id=2020
sprpriority=99;ifelse((var(3)=1||root,var(45)),99,-5)
postype=back
scale=0.5+!root,var(45)*0.5,0.5+!root,var(45)*0.5
pos=0,0
bindtime=-1
supermove=1
ownpal=1
ontop=1
ignorehitpause=1

[state 2020]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;---------------------------------------------------------------------------
;===========================================================================
; 相手-1
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2030]
type=a
movetype=h
physics=n
velset=0,0
facep2=1

[state 2030]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 2030]
type=lifeset
trigger1=time=1
value=life-(ceil((0.005+((enemynear,name="G-Mizuchi-v2"&&(enemynear,var(3)||enemynear,palno=6))*0.003))*const(data.life)))
ignorehitpause=1

[state 2030]
type=lifeset
trigger1=time=1
trigger1=(numpartner=1||enemynear,name="G-Mizuchi-v2"&&enemynear,palno>10)
value=life-(ceil((0.004+((enemynear,name="G-Mizuchi-v2"&&enemynear,var(3))*0.002))*const(data.life)))
ignorehitpause=1

[state 2030]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 2030]
type=screenbound
trigger1=1
value=1
movecamera=1
ignorehitpause=1

[state 2030]
type=changeanim2
trigger1=!time
value=2030
ignorehitpause=1

[state 2030]
type=trans
trigger1=1
trans=add1
alpha=250,70+(animelemtime(2)>=0)*110
ignorehitpause=1

[state 2030]
type=velset
trigger1=!time
x=ifelse((p2dist x<0),0.3,-0.3)
y=-0.25
ignorehitpause=1

[state 2030]
type=veladd
trigger1=1
y=0.002
ignorehitpause=1

[state 2030] 
type=changestate
trigger1=time>=11
value=2040

;---------------------------------------------------------------------------
;===========================================================================
; 相手-2
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2040]
type=a
movetype=h
physics=n
sprpriority=4

[state 2040]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 2040]
type=lifeset
trigger1=life<=(ceil(0.01*const(data.life)))
value=0
ignorehitpause=1

[state 2040]
type=playerpush
trigger1=1
value=0
ignorehitpause=1

[state 2040]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 2040]
type=screenbound
trigger1=1
value=1
movecamera=1
ignorehitpause=1

[state 2040]
type=changeanim
trigger1=!time
trigger1=selfanimexist(5050)
value=5050
ignorehitpause=1

[state 2040]
type=velset
trigger1=!time
x=ifelse((p2dist x<0),3.32,-3.32)
y=-2.8
ignorehitpause=1

[state 2040]
type=veladd
trigger1=time
y=.39
ignorehitpause=1

[state 2040]
type=changestate
trigger1=vel y>0&&pos y>=0
value=2050

;---------------------------------------------------------------------------
;===========================================================================
; 相手地面-1
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2050]
type=l
movetype=h
physics=n

[state 2050]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 2050]
type=velset
trigger1=!time
trigger1=gethitvar(fall.yvel)=0&&vel x>1
x=1

[state 2050]
type=posset
trigger1=!time
y=0

[state 2050]
type=velset
trigger1=!time
y=0

[state 2050]
type=velmul
trigger1=!time
x=0.75

[state 2050]
type=fallenvshake
trigger1=!time

[state 2050]
type=varset
trigger1=!time
sysvar(1)=floor(vel y)

[state 2050]
type=changeanim
triggerall=!time
trigger1=(anim!=[5051,5059])&&(anim!=[5061,5069])
trigger2=!selfanimexist(5100+(anim%10))
value= 5100

[state 2050]
type=changeanim
trigger1=!time
trigger1=(anim=[5051,5059])||(anim=[5061,5069])
trigger1=selfanimexist(5100+(anim%10))
value=5100+(anim%10)

[state 2050]
type=screenbound
trigger1=1
value= 1
movecamera=1

[state 2050]
type=gamemakeanim
trigger1=time=1
value= 60+(sysvar(1)>5)+(sysvar(1)>14)
pos=0,0
under=sysvar(1)<=14

[state 2050]
type=playsnd
trigger1=time=1
value= F7,(sysvar(1)>5)+(sysvar(1)>14)

[state 2050]
type=posfreeze
trigger1=1

[state 2050]
type=changestate
trigger1=!time&&gethitvar(fall.yvel)=0
trigger2=!animtime
value=2060+(!time&&gethitvar(fall.yvel)=0)*10

;---------------------------------------------------------------------------
;===========================================================================
; 相手地面-2
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2060]
type=l
movetype=h
physics=n

[state 2060]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 2060]
type=posset
trigger1=!time
y=20

[state 2060]
type=veladd
trigger1=1
y=.4

[state 2060]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2060]
type=changeanim
triggerall=!time
trigger1=anim!=[5101,5109]
trigger2=!selfanimexist(5160+(anim%10))
value=5160

[state 2060]
type=changeanim
triggerall=!time
trigger1=anim=[5101,5109]
trigger1=selfanimexist(5160+(anim%10))
value=5160+(anim%10)

[state 2060]
type=hitfallvel
trigger1=!time

[state 2060]
type=changestate
trigger1=vel y>0&&pos y>=12
value=2070

;---------------------------------------------------------------------------
;===========================================================================
; 相手地面-3
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2070]
type=l
movetype=h
physics=n

[state 2070]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 2070]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2070]
type=playerpush
trigger1=1
value=0

[state 2070]
type=fallenvshake
trigger1=!time

[state 2070]
type=changeanim
trigger1=selfanimexist(5110+(anim%10))
trigger1=anim=[5081,5089]
value=5110+(anim%10)
persistent=0

[state 2070]
type=changeanim
triggerall=!time
triggerall=anim!=[5110,5119]
trigger1=anim!=[5161,5169]
trigger2=!selfanimexist(5170+(anim%10))
value=5170

[state 2070]
type=changeanim
triggerall=!time
triggerall=anim!=[5110,5119]
trigger1=anim=[5161,5169]
trigger1=selfanimexist(5170+(anim % 10))
value=5170+(anim%10)

[state 2070]
type=posset
trigger1=!time
y=0

[state 2070]
type=velset
trigger1=!time
y=0

[state 2070]
type=velmul
trigger1= 1
x=0.85

[state 2070]
type=varset
trigger1=!time
trigger1=sysvar(0)
sysvar(0)=0

[state 2070]
type= varset
trigger1=!time
trigger1=gethitvar(fall.yvel)!=0
sysvar(1)=floor(vel y)

[state 2070]
type=playsnd
trigger1=!time
trigger1=!sysvar(0)
value= F7,(sysvar(1)>5)+(sysvar(1)>14)

[state 2070]
type=gamemakeanim
trigger1=!time
trigger1=!sysvar(0)
value=60+(sysvar(1)>5)+(sysvar(1)>14)
pos=0,0
under=sysvar(1)<=14

[state 2070]
type=changeanim
triggerall=anim=[5171,5179]
triggerall=selfanimexist(5110+(anim%10))
trigger1=!animtime
trigger2=sysvar(0)
value=5110+(anim%10)
persistent=0

[state 2070]
type=changeanim
triggerall=anim!=[5111,5119]
trigger1=!animtime
trigger2=sysvar(0)
value=5110
persistent=0

[state 2070]
type=changestate
triggerall=!alive
trigger1=!animtime
trigger2=sysvar(0)
trigger3=anim=[5110,5119]
value=5150

[state 2070]
type=changestate
triggerall=alive
trigger1=time>=100
value=2080

;---------------------------------------------------------------------------
;===========================================================================
; 相手起き上がり-1
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2080]
type=l
movetype=i
physics=n

[state 2080]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 2080]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2080] 
type=changeanim
triggerall=!time
trigger1=anim!=[5111,5119]
trigger2=!selfanimexist(5120+(anim%10))
value=5120

[state 2080]
type=changeanim
triggerall=!time
trigger1=anim=[5111,5119]
trigger1=selfanimexist(5120+(anim%10))
value=5120+(anim%10)

[state 2080]
type=velset
trigger1=!time
x=0

[state 2080]
type=nothitby
trigger1=1
value=sca
time=1

[state 2080]
type=nothitby
trigger1= !animtime
value=,nt,st,ht
time=12

[state 2080]
type=nothitby
trigger1=!animtime
value2=sca
time=3

[state 2080]
type=hitfallset
trigger1=!animtime
value=1

[state 2080]
type=selfstate
trigger1=!animtime
value=0
ctrl=1

;==========================================================================================
;//////////////////////////////////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------------------
; フォーラウト・ストライク
;------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////////////////
;==========================================================================================

[statedef 2600]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0
sprpriority=7

[state 2600]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2600]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-1000

[state 2600]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 2600]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2700
ignorehitpause=1

[state 2600]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2600]
type=nothitby
triggerall=ishelper(3)
trigger1=1
value=sca
ignorehitpause=1

[state 2600]
type=superpause
triggerall=ishelper(3)
trigger1=!time
time=30
movetime=30
anim=-1
ignorehitpause=1

[state 2600]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3100
sprpriority=-5
postype=p1
pos=1,-129
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 2600]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3110
sprpriority=999
postype=p1
pos=1,-129
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 2600]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 2600]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
ignorehitpause=1

[state 2600]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=3000,0
volume=100
ignorehitpause=1

[state 2600]
type=playsnd
triggerall=ishelper(3)
trigger1=time=19
value=4000,27
volume=100
ignorehitpause=1

[state 2600]
type=playsnd
triggerall=ishelper(3)
trigger1=time=10
value=1200,0
volume=200
ignorehitpause=1

[state 2600]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=30
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=2610

;---------------------------------------------------------------------------
;===========================================================================
; 攻撃
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2610]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
sprpriority= 9
ctrl=0

[state 2610]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2610]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2701
ignorehitpause=1

[state 2610]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2610]
type=playsnd
triggerall=ishelper(3)
trigger1=(time=[0,100])&&!(time%10)
trigger2=(time=[80,110])&&!(time%4)
value=4000,10
volume=100
ignorehitpause=1

[state 2610]
type=playsnd
triggerall=ishelper(3)
trigger1=(time=[0,100])&&!(time%10)
trigger2=(time=[80,110])&&!(time%4)
value=4000,4
freqmul=1.2
volume=100
ignorehitpause=1

[state 2610]
type=playsnd
triggerall=ishelper(3)
trigger1=(time=[0,100])&&!(time%12)
trigger2=(time=[80,110])&&!(time%7)
value=4000,4
freqmul=1.4
volume=100
ignorehitpause=1

[state 2610]
type=projectile
triggerall=ishelper(3)
trigger1=(time=[0,5])
attr=a,na
projanim=2610
projhitanim=2611
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=150
postype=p1
projscale=0.5,0.5
offset=80+time*15,-320-random%10
velocity=2,22+random%10
animtype=hard
damage=1+random%2,1
getpower=0,0
givepower=0,0
guardflag=m
hitflag=maf
pausetime=0,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=0,-2
guard.velocity=-2.8
air.velocity=1,-4
fall=1
air.fall=1
fall.recover=0

[state 2610]
type=projectile
triggerall=ishelper(3)
trigger1=(time=[0,100])&&!(time%12)
attr=a,na
projanim=2610
projhitanim=2611
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=150
postype=p1
projscale=0.5,0.5
offset=50+random%150,-320-random%10
velocity=2,10+random%4
animtype=hard
damage=random%10+!(random%30)*100,random%5
getpower=0,0
givepower=0,0
guardflag=m
hitflag=maf
pausetime=0,5
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=0,-4
guard.velocity=-2.8
air.velocity=1,-4
fall=1
air.fall=1
fall.recover=0

[state 2610]
type=projectile
triggerall=ishelper(3)
trigger1=(time=[0,100])&&!(time%17)
attr=a,na
projanim=2615
projhitanim=2616
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=150
postype=p1
projscale=0.5,0.5
offset=50+random%150,-320-random%10
velocity=2,10+random%4
animtype=hard
damage=random%10+!(random%30)*100,random%8
getpower=0,0
givepower=0,0
guardflag=m
hitflag=maf
pausetime=0,7
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=0,-4
guard.velocity=-2.8
air.velocity=-1,-6
fall=1
air.fall=1
fall.recover=0

[state 2610]
type=projectile
triggerall=ishelper(3)
trigger1=(time=[90,110])&&!(time%2)
attr=a,na
projanim=2610
projhitanim=2611
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=150
postype=p1
projscale=0.5,0.5
offset=50+random%150,-320-random%10
velocity=2,10+random%4
animtype=diagup
damage=5+random%10,random%5
getpower=0,0
givepower=0,0
guardflag=m
hitflag=maf
pausetime=0,6
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=0,-4
guard.velocity=-2.8
air.velocity=4,-5
fall=1
air.fall=1
fall.recover=0

[state 2610]
type=projectile
triggerall=ishelper(3)
trigger1=(time=[90,110])&&!(time%3)
attr=a,na
projanim=2615
projhitanim=2616
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=150
postype=p1
projscale=0.5,0.5
offset=50+random%150,-320-random%10
velocity=2,10+random%4
animtype=diagup
damage=5+random%20,random%8
getpower=0,0
givepower=0,0
guardflag=m
hitflag=maf
pausetime=0,7
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=0,-4
guard.velocity=-2.8
air.velocity=-4,-7
fall=1
air.fall=1
fall.recover=0

[state 2610]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=141
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=2620

;---------------------------------------------------------------------------
;===========================================================================
; 終了
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2620]
type=s
movetype=a
physics=n
velset=0,0
juggle=15
ctrl=0
sprpriority=99

[state 2620]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2620]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2620]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2702
ignorehitpause=1 

[state 2620]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;//////////////////////////////////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------------------
; ハイパーアリエンビーム
;------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////////////////
;==========================================================================================

[statedef 2750]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0
sprpriority=7

[state 2750]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2750]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970
ignorehitpause=1

[state 2750]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-2000

[state 2750]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2750
ignorehitpause=1

[state 2750]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2750]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
ignorehitpause=1

[state 2750]
type=nothitby
triggerall=ishelper(3)
trigger1=1
value=sca
ignorehitpause=1

[state 2750]
type=superpause
triggerall=ishelper(3)
trigger1=!time
time=32
movetime=32
anim=-1
darken=0
ignorehitpause=1

[state 2750]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3120
sprpriority=-5
postype=p1
pos=6,-70
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 2750]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3130
sprpriority=999
postype=p1
pos=6,-70
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 2750]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 2750]
type=envcolor
triggerall=ishelper(3)
trigger1=time=3
time=30
value=0,0,0
under=2
ignorehitpause=1

[state 2750]
type=palfx
triggerall=ishelper(3)
trigger1=(time=[1,20])&&!(time%2)
time=1
add=220,220,220
invertall=1
ignorehitpause=1

[state 2750]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=3000,1
volume=100
ignorehitpause=1

[state 2750]
type=playsnd
triggerall=ishelper(3)
trigger1=time=19
value=4000,18
volume=100
ignorehitpause=1

[state 2750]
type=playsnd
triggerall=ishelper(3)&&0
trigger1=time=10
trigger2=time=13
value=1200,0
volume=250
ignorehitpause=1

[state 2750]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=2751

;---------------------------------------------------------------------------
;===========================================================================
; 攻撃
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2751]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
sprpriority= 9
ctrl=0

[state 2751]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2751]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970
ignorehitpause=1

[state 2751]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2751
ignorehitpause=1

[state 2751]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2751]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
ignorehitpause=1

[state 2751]
type=nothitby
triggerall=ishelper(3)
trigger1=root,palno>5
value=sca
ignorehitpause=1

[state 2751]
type=nothitby
triggerall=ishelper(3)
trigger1=!time
trigger1=root,palno<6
value=sca
time=20
ignorehitpause=1

[state 2751]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=1200,6
volume=200
ignorehitpause=1

[state 2751];bi-mu
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=4000,26
volume=250
freqmul=1.2
channel=8
ignorehitpause=1

[state 2751];bi-mu
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=4000,94
volume=250
freqmul=1.2
channel=8
ignorehitpause=1

[state 2751]
type=explod
trigger1=ishelper(3)
trigger1=(time=[5,(90+(root,palno=6)*30)])&&!(time%4)
anim=1073
sprpriority=99
postype=p1
pos=0,0
bindtime=-1
ownpal=1

[state 2751]
type=helper
trigger1=ishelper(3)           &&     1  ;ｸﾞﾗﾌｨｯｸ用
trigger1=!numhelper(2753)
trigger1=!time
id=2753
persistent=0
name="."
pos=0,0
postype=p1
stateno=2753
helpertype=normal
keyctrl=0
ownpal=1
ignorehitpause=1

[state 2751]
type=envshake
triggerall=ishelper(3)
trigger1=(time=[5,(90+(root,palno=6)*30)])&&!(time%2)
time=4
ampl=4
freq=95
phase=95
ignorehitpause=0

[state 2751]
type=projectile
triggerall=ishelper(3)
trigger1=(time=[5,(90+(root,palno=6)*30)])&&!(time%2)
attr=s,hp
projanim=2757                          ;攻撃判定
projhitanim=-1
projid=6080
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=5
postype=p1
offset=20,0
velocity=0
animtype=hard
damage=ceil((0.007)*enemy,const(data.life)),ceil((0.002)*enemy,const(data.life))
getpower=0,0
givepower=0,0
guardflag=m
hitflag=mafd
pausetime=0,5
guard.pausetime=0,5
sparkno=-1
sparkxy=-10,floor(enemy,pos y)-60
hitsound=-1
guard.sparkno=-1
guardsound=-1
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-1,-2
guard.velocity=-9.8
air.velocity=-1,-2
fall=1
air.fall=1
fall.recover=0
id=2754
p2stateno=2754

[state 2751]
type=projectile
triggerall=ishelper(3)
trigger1=(time=[5,(90+(root,palno=6)*30)])&&!(time%2)
attr=sca,aa,at,ap
projanim=2758                              ;相殺用
projid=6080
projhitanim=-1
projpriority=2147483647
projsprpriority=5
projremove=1
projremovetime=2
postype=p1
offset=20,0
velocity=0
animtype=hard
damage=0
guardflag=
hitflag= 
sparkno=-1
sparkxy=-1
hitsound=-1
guard.sparkno=-1
guardsound=-1

[state 2751]
type=targetstate
triggerall=!ishelper&&0
trigger1=numtarget
trigger1=target,stateno=[2030,2070]
trigger1=(time=[5,(90+(palno=6)*30)])&&!(time%2)
value=2030
ignorehitpause=1

[state 2751]
type=envcolor
triggerall=!ishelper&&0
trigger1=numtarget
trigger1=target,stateno=2754&&target,time=1
time=1
value=255,255,255
under=2
ignorehitpause=1

[state 2751]
type=explod
triggerall=!ishelper
trigger1=enemynear(var(18)),stateno=150||enemynear(var(18)),stateno=152
trigger1=enemynear(var(18)),time=1
trigger2=numtarget
trigger2=(target,stateno=2754&&target,time=1)
anim=ifelse((enemynear(var(18)),stateno=[150,152]),2855,2835)
sprpriority=120
postype=p2
pos=(enemynear(var(18)),const(size.mid.pos.x)),(enemynear(var(18)),const(size.mid.pos.y))
facing=-1
ownpal=1
ontop=1
ignorehitpause=1

[state 2751]
type=hitadd
trigger1=!ishelper&&0
trigger1=numtarget
trigger1=target,stateno=2030&&target,time=1
value=1
ignorehitpause=1

[state 2751]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=(100+(root,palno=6)*30)
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=2752

;---------------------------------------------------------------------------
;===========================================================================
; 終了
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2752]
type=s
movetype=a
physics=n
velset=0,0
juggle=15
ctrl=0
sprpriority=99

[state 2752]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2752]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970
ignorehitpause=1

[state 2752]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2752
ignorehitpause=1

[state 2752]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2752]
type=nothitby
triggerall=ishelper(3)
trigger1=!time
value=sca
time=15
ignorehitpause=1

[state 2752]
type=assertspecial
triggerall=ishelper(3)
trigger1=time<=14
flag=nobg
flag2=nofg
ignorehitpause=1

[state 2752]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=14
value=0,0,0
under=2
ignorehitpause=1

[state 2752]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; ヘルパー動作
;==========================================================================================
;==========================================================================================

[statedef 2753]
type=a
movetype=i
physics=n

[state 2753]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=!ishelper(2753)
value=69996
ignorehitpause=1

[state 2753]
type=changeanim
trigger1=1
value=6144
ignorehitpause=1

[state 2753]
type=screenbound
trigger1=1
value=0
movecamera=0
ignorehitpause=1

[state 2753]
type=posset
trigger1=1
x=parent,pos x
y=parent,pos y
ignorehitpause=1

[state 2753]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 2753]
type=hitoverride
trigger1=1
attr=sca,aa,ap,at
stateno=5950
ignorehitpause=1

[state 2753]
type=palfx
triggerall=ishelper(2753)
trigger1=root,palno=1
trigger1=var(52):=255&&var(53):=255&&var(54):=255
trigger2=root,palno=2
trigger2=var(52):=250&&var(53):=200&&var(54):=50
trigger3=root,palno=3
trigger3=var(52):=50&&var(53):=250&&var(54):=40
trigger4=root,palno=4
trigger4=var(52):=250&&var(53):=50&&var(54):=50
trigger5=root,palno=5
trigger5=var(52):=250&&var(53):=100&&var(54):=250
trigger6=root,palno=6
trigger6=var(52):=250&&var(53):=250&&var(54):=250
time=1
mul=var(52),var(53),var(54)
add=10,10,10
color=(!(root,palno=1||root,palno=6))*256
ignorehitpause=1

[state 2753];わっか部分
type=explod
triggerall=ishelper(2753)
trigger1=parent,stateno=2751&&parent,movetype=a
trigger1=time<=(90+(root,palno=6)*30)&&!(time%5)
anim=2753
id=27530
sprpriority=100
postype=p1
pos=80,-60
bindtime=-1
ownpal=0
ontop=0
scale=1.0,1.0
trans=add

[state 2753];波動-大
type=explod
triggerall=ishelper(2753)
trigger1=parent,stateno=2751&&parent,movetype=a
trigger1=time=8
anim=2754
id=27540
sprpriority=101
removetime=(72+(root,palno=6)*30)
postype=p1
pos=80,-63
bindtime=-1
ownpal=0
ontop=0
scale=1.0,0.5
trans=add

[state 2753];波動-中
type=explod
triggerall=ishelper(2753)
trigger1=parent,stateno=2751&&parent,movetype=a
trigger1=!time
anim=2755
id=27550
sprpriority=100
removetime=(80+(root,palno=6)*30)
postype=p1
pos=80,-63
bindtime=-1
ownpal=0
ontop=0
scale=1.0,1.0
trans=add

[state 2753];波動-中-1-6
type=explod
triggerall=ishelper(2753)
trigger1=root,palno=6||root,palno=1
trigger1=parent,stateno=2751&&parent,movetype=a
trigger1=!time
anim=2759;55
id=27550
sprpriority=104
removetime=(80+(root,palno=6)*30)
postype=p1
pos=80,-63
bindtime=-1
ownpal=1
ontop=0
scale=1.0,0.1
trans=add

[state 2753];波動-中-1-6
type=explod
triggerall=ishelper(2753)
trigger1=root,palno=6||root,palno=1
trigger1=parent,stateno=2751&&parent,movetype=a
trigger1=!time
anim=2759;55
id=27550
sprpriority=103
removetime=(80+(root,palno=6)*30)
postype=p1
pos=80,-63
bindtime=-1
ownpal=1
ontop=0
scale=1.0,0.4
trans=sub

[state 2753];波動-中-1-6
type=explod
triggerall=ishelper(2753)
trigger1=root,palno=6||root,palno=1
trigger1=parent,stateno=2751&&parent,movetype=a
trigger1=!time
anim=2759;55
id=27550
sprpriority=102
removetime=(80+(root,palno=6)*30)
postype=p1
pos=80,-63
bindtime=-1
ownpal=1
ontop=0
scale=1.0,0.6
trans=add

[state 2753];波動-中-1-6
type=explod
triggerall=ishelper(2753)
trigger1=root,palno=6||root,palno=1
trigger1=parent,stateno=2751&&parent,movetype=a
trigger1=!time
anim=2759;55
id=27550
sprpriority=101
removetime=(80+(root,palno=6)*30)
postype=p1
pos=80,-63
bindtime=-1
ownpal=1
ontop=0
scale=1.0,0.7
trans=sub

[state 2753];波動-中
type=explod
triggerall=ishelper(2753)
trigger1=!(root,palno=1||root,palno=6)
trigger1=parent,stateno=2751&&parent,movetype=a
trigger1=!time
anim=2755
id=27550
sprpriority=102
removetime=(80+(root,palno=6)*30)
postype=p1
pos=80,-63
bindtime=-1
ownpal=1
ontop=0
scale=1.0,0.8
trans=add

[state 2753];波動-中-終了
type=explod
triggerall=ishelper(2753)
trigger1=parent,stateno=2751&&parent,movetype=a
trigger1=time=(80+(root,palno=6)*30)
anim=2756
id=27560
sprpriority=100
postype=p1
pos=80,-63
bindtime=-1
ownpal=0
ontop=0
scale=1.0,1.0
trans=add

[state 2753];波動-中-終了
type=explod
triggerall=ishelper(2753)
trigger1=!(root,palno=1||root,palno=6)
trigger1=parent,stateno=2751&&parent,movetype=a
trigger1=time=(80+(root,palno=6)*30)
anim=2756
id=27560
sprpriority=102
postype=p1
pos=80,-63
bindtime=-1
ownpal=1
ontop=0
scale=1.0,0.8
trans=add

[state 2753];波動-中-終了-1-6
type=explod
triggerall=ishelper(2753)
trigger1=root,palno=6||root,palno=1
trigger1=parent,stateno=2751&&parent,movetype=a
trigger1=time=(80+(root,palno=6)*30)
anim=2760;56
id=27560
sprpriority=102
postype=p1
pos=80,-63
bindtime=-1
ownpal=1
ontop=0
scale=1.0,0.25
trans=sub

[state 2753];波動-中-終了-1-6
type=explod
triggerall=ishelper(2753)
trigger1=root,palno=6||root,palno=1
trigger1=parent,stateno=2751&&parent,movetype=a
trigger1=time=(80+(root,palno=6)*30)
anim=2760;56
id=27560
sprpriority=103
postype=p1
pos=80,-63
bindtime=-1
ownpal=1
ontop=0
scale=1.0,0.1
trans=add

[state 2753]
type=removeexplod
triggerall=ishelper(2753)
trigger1=parent,stateno!=2751
trigger2=parent,movetype=h
ignorehitpause=1

[state 2753]
type=destroyself
triggerall=ishelper(2753)
triggerall=!numexplod
trigger1=parent,stateno!=2751
trigger2=parent,movetype=h
ignorehitpause=1

;---------------------------------------------------------------------------
;===========================================================================
; 相手-1
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2754]
type=u
movetype=h
physics=n
velset=0,0
facep2=1

[state 2754]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 2754]
type=envcolor
trigger1=!time
time=1
value=255,255,255
under=2
ignorehitpause=1

[state 2754]
type=lifeset
trigger1=time=1
value=life-(ceil(0.006*const(data.life)))
ignorehitpause=1

[state 2754]
type=hitby 
trigger1=1
value=sca,aa,at,ap
ignorehitpause=1

[state 2754]
type=screenbound
trigger1=1
value=1
movecamera=1
ignorehitpause=1

[state 2754]
type=playerpush
trigger1=1
value=0
ignorehitpause=1

[state 2754]
type=changeanim2
trigger1=!time
value=4006+random%2
ignorehitpause=1

[state 2754]
type=changestate
trigger1=time>=4-!(statetype=s||statetype=c)*2
value=2755

;---------------------------------------------------------------------------
;===========================================================================
; 相手-2
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2755]
type=a
movetype=h
physics=n
sprpriority=4

[state 2755]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 2755]
type=lifeset
trigger1=life<=(ceil(0.01*const(data.life)))
value=0
ignorehitpause=1

[state 2755]
type=playerpush
trigger1=1
value=0
ignorehitpause=1

[state 2755]
type=hitby 
trigger1=1
value=sca,aa,at,ap
ignorehitpause=1

[state 2755]
type=screenbound
trigger1=1
value=1
movecamera=1
ignorehitpause=1

[state 2755]
type=changeanim
trigger1=!time
trigger1=animexist(5050)
value=5050
ignorehitpause=1

[state 2755]
type=changeanim
trigger1=!time
trigger1=animexist(5052)
value=5052

[state 2755]
type=changeanim
trigger1=time=15
trigger1=animexist(5061)
value=5061

[state 2755]
type=changeanim
trigger1=time=15
trigger1=animexist(5062)
value=5062

[state 2755]
type=velset
trigger1=!time
x=ifelse((p2dist x<0),10.32,-10.32)
y=-4.8
ignorehitpause=1

[state 2755]
type=veladd
trigger1=time
y=.28
ignorehitpause=1

[state 2755]
type=selfstate
trigger1=vel y>0&&pos y>=0
trigger2=time>200
value=5100

;==========================================================================================
;//////////////////////////////////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------------------
; ルミネス・フレア
;------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////////////////
;==========================================================================================

[statedef 2900]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0
sprpriority=7

[state 2900]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2900]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 2900]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2700
ignorehitpause=1

[state 2900]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 2900]
type=poweradd
trigger1=!time
trigger1=ishelper(3)
trigger1=root,palno>6
value=-3000
ignorehitpause=1 

[state 2900]
type=assertspecial
trigger1=ishelper(3)
flag=nobardisplay
flag2=nobg
flag3=nofg
ignorehitpause=1

[state 2900]
type=nothitby
triggerall=ishelper(3)
trigger1=1
value=sca
ignorehitpause=1

[state 2900]
type=superpause
triggerall=ishelper(3)
trigger1=!time
time=32
movetime=32
anim=-1
darken=0
ignorehitpause=1

[state 2900]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3140
sprpriority=-5
postype=p1
pos=1,-129
bindtime=1
supermove=1
under=0
ownpal=1
trans=add
ignorehitpause=1

[state 2900]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3150
sprpriority=999
postype=p1
pos=1,-129
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 2900]
type=explod
triggerall=ishelper(3)
trigger1=time=10
anim=3160
sprpriority=-8
postype=p1
pos=1,-129
bindtime=1
supermove=1
under=0
ownpal=1
;trans=addalpha
;alpha=170,200
ignorehitpause=1

[state 2900]
type=helper
trigger1=ishelper(3)
trigger1=time=10||time=15||time=25||time=30
id=12
persistent=1
name="."
pos=-3,-139;-14
postype=p1
stateno=2950
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 2900]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 2900]
type=envcolor
triggerall=ishelper(3)
trigger1=time=3
time=30
value=0,0,0
under=2
ignorehitpause=1

[state 2900]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=1200,7
volume=100
ignorehitpause=1

[state 2900]
type=playsnd
triggerall=ishelper(3) && 1
trigger1=time=1
value=4000,28
volume=100
ignorehitpause=1

[state 2900]
type=playsnd
triggerall=ishelper(3)
trigger1=time=2
value=4000,19
volume=100
ignorehitpause=1

[state 2900]
type=playsnd
triggerall=ishelper(3) && 1
trigger1=time=6
value=4000,18
volume=100
freqmul=1.0
ignorehitpause=1

[state 2900]
type=playsnd
triggerall=ishelper(3) && 0
trigger1=time=4
value=4000,38
volume=100
freqmul=1.7
ignorehitpause=1

[state 2900]
type=playsnd
triggerall=ishelper(3) && 0
trigger1=time=8
value=4000,66
volume=50
freqmul=1.0
ignorehitpause=1

[state 2900]
type=varset
triggerall=ishelper(3)
trigger1=!time
v=51
value=255
ignorehitpause=1

[state 2900]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=2901

;---------------------------------------------------------------------------
;===========================================================================
; 攻撃
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2901]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
sprpriority= 9
ctrl=0

[state 2901]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2901]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 2901]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2701
ignorehitpause=1

[state 2901]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1 

[state 2901]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobardisplay
flag2=nobg
flag3=nofg
ignorehitpause=1

[state 2901]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nokoslow
ignorehitpause=1

[state 2901]
type=varset
triggerall=ishelper(3)
trigger1=(time=[15,35])&&var(51)>=0
v=51
value=var(51)-12
ignorehitpause=1

[state 2901]
type=allpalfx
triggerall=ishelper(3)
trigger1=(time=[15,35])&&var(51)>=0
add=var(51),var(51),var(51)
time=1
ignorehitpause=1

[state 2901]
type=envshake
triggerall=ishelper(3)
trigger1=!(gametime%4)
time=4
ampl=-4
freq=95
phase=95

[state 2901]
type=nothitby
triggerall=ishelper(3)
trigger1=1
value=sca
ignorehitpause=1

[state 2901]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=1200,8
volume=200
ignorehitpause=1

[state 2901]
type=playsnd
triggerall=ishelper(3)
trigger1=!time||time=4
value=4000,91
volume=250-(time=4)*100
freqmul=0.7+(time=4)*0.5
channel=15
ignorehitpause=1

[state 2901]
type=playsnd
triggerall=ishelper(3)
trigger1=!time||time=4
value=4000,91
volume=250-(time=4)*100
freqmul=0.7+(time=4)*0.5
channel=15
ignorehitpause=1

[state 2901]
type=playsnd
triggerall=ishelper(3)&&1
trigger1=time=16||time=24
value=4000,26
volume=200-(time=24)*100
freqmul=0.9+(time=24)*0.3
ignorehitpause=1

[state 2901]
type=playsnd
triggerall=ishelper(3)&&1
trigger1=time=32||time=40
value=4000,26
volume=200-(time=40)*100
freqmul=1.0+(time=40)*0.3
ignorehitpause=1

[state 2901]
type=playsnd
triggerall=ishelper(3)&&1
trigger1=time=48||time=56
value=4000,26
volume=200-(time=56)*100
freqmul=1.0+(time=56)*0.3
ignorehitpause=1

[state 2901]
type=playsnd
triggerall=ishelper(3)&&1
trigger1=time=64||time=72
value=4000,26
volume=100-(time=72)*50
freqmul=1.0+(time=72)*0.3
ignorehitpause=1

[state 2901]
type=playsnd
triggerall=ishelper(3)&&1
trigger1=time=82||time=92
value=4000,26
volume=50-(time=92)*25
freqmul=1.0+(time=92)*0.3
ignorehitpause=1

[state 2901]
type=playsnd
triggerall=ishelper(3)&&1
trigger1=time=102||time=112
value=4000,26
volume=50-(time=112)*25
freqmul=1.0+(time=112)*0.3
ignorehitpause=1

[state 2901]
type=playsnd
triggerall=ishelper(3)&&1
trigger1=time=180||time=190
value=4000,92
volume=250
freqmul=1.0+(time=190)*0.3
ignorehitpause=1

[state 2901]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=2901
id=3290
sprpriority=99
postype=back
pos=0,0
bindtime=-1
supermove=1
ownpal=1
ontop=1
ignorehitpause=1

[state 2901]
type=explod
triggerall=ishelper(3)
trigger1=time=17
anim=2902
id=3290
sprpriority=99
postype=back
pos=0,0
bindtime=-1
removetime=-1
supermove=1
scale=0.5,0.5
ownpal=1
ontop=1
ignorehitpause=1

[state 2901]
type=projectile
triggerall=ishelper(3)
trigger1=(time=[20,220])&&!(time%2)
attr=a,na
projanim=2015
projhitanim=-1
projid=2015
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=5
postype=p1
offset=0,0
velocity=0
animtype=hard
damage=ceil(0.003*enemy,const(data.life)),ceil(0.0014*enemy,const(data.life))
getpower=0,0
givepower=0,0
guardflag=m
hitflag=mafd
pausetime=0,5
guard.pausetime=0,5
sparkno=-1
sparkxy=-10,floor(enemy,pos y)-60
hitsound=-1
guard.sparkno=-1
guardsound=-1
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-1,-2
guard.velocity=-9.8
air.velocity=-1,-2
fall=1
air.fall=1
fall.recover=0
id=2903
p2stateno=2903

[state 2901]
type=projectile
triggerall=ishelper(3)
trigger1=gametime%2=0
attr=sca,aa,at,ap
projanim=2016
projid=6080
projhitanim=-1
projpriority=2147483647
projsprpriority=5
projremove=1
projremovetime=2
postype=p1
offset=0,0
velocity=0
animtype=hard
damage=0
guardflag=
hitflag= 
sparkno=-1
sparkxy=-1
hitsound=-1
guard.sparkno=-1
guardsound=-1

[state 2901]
type=reversaldef
triggerall=ishelper(3)
trigger1=0
reversal.attr=sca,aa,at,ap
hitflag=m-
priority=7
pausetime=0,0
sparkno=-1
hitsound=-1
p2stateno=2905
ignorehitpause=1

[state 2901]
type=targetdrop
triggerall=ishelper(3)
trigger1=1

[state 2901]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=250
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=2902

;---------------------------------------------------------------------------
;===========================================================================
; 終了
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2902]
type=s
movetype=a
physics=n
velset=0,0
juggle=15
ctrl=0
sprpriority=99

[state 2902]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2902]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 2902]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2702
ignorehitpause=1

[state 2902]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1 

[state 2902]
type=nothitby
triggerall=ishelper(3)
trigger1=1
value=sca
ignorehitpause=1

[state 2902]
type=assertspecial
triggerall=ishelper(3)
trigger1=time<=14
flag=nobardisplay
ignorehitpause=1

[state 2902]
type=removeexplod
triggerall=ishelper(3)
trigger1=!time
id=3290
ignorehitpause=1

[state 2902]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;---------------------------------------------------------------------------
;===========================================================================
; 相手-1
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2903]
type=a
movetype=h
physics=n
velset=0,0
facep2=1

[state 2903]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 2903]
type=lifeset
trigger1=!time
value=life-(ceil(0.0015*const(data.life)))
ignorehitpause=1

[state 2903]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2903]
type=playerpush
trigger1=1
value=0

[state 2903]
type=changeanim
trigger1=!time
value=5070

[state 2903]
type=trans
trigger1=1
trans=add1
alpha=250,70

[state 2903]
type=changestate
trigger1=time>=12
value=2904

;---------------------------------------------------------------------------
;===========================================================================
; 相手-2
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2904]
type=a
movetype=h
physics=n
sprpriority=4

[state 2904]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 2904]
type=lifeset
trigger1=!time
value=life-(ceil(0.035*const(data.life)))
ignorehitpause=1

[state 2904]
type=lifeset
trigger1=life<=(ceil(0.01*const(data.life)))
value=0
ignorehitpause=1

[state 2904]
type=playerpush
trigger1=1
value=0

[state 2904]
type=nothitby
trigger1=1
value=sca

[state 2904]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2904]
type=changeanim
trigger1=!time
value=5050

[state 2904]
type=velset
trigger1=!time
x=ifelse((p2dist x<0),3.32,-3.32)
y=-2.8

[state 2904]
type=veladd
trigger1=time
y=0.39

[state 2904]
type=changestate
trigger1=vel y>0&&pos y>=0
value=2050

;---------------------------------------------------------------------------
;===========================================================================
; 相手-3
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2905]
type=a
movetype=h
physics=n
velset=0,0
facep2=1

[state 2905]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 2905]
type=powerset
trigger1=!time
value=0
ignorehitpause=1

[state 2905]
type=lifeset
trigger1=!time
value=life-(ceil(0.25*const(data.life)))
ignorehitpause=1

[state 2905]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 2905]
type=playerpush
trigger1=1
value=0

[state 2905]
type=changeanim
trigger1=!time
value=5070

[state 2905]
type=trans
trigger1=1
trans=add1
alpha=250,70

[state 2905]
type=changestate
trigger1=time>=8
value=2904

;---------------------------------------------------------------------------
;===========================================================================
; リング
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2950]
type=a
movetype=i
physics=n
juggle=0
poweradd=0
velset=0,0
ctrl=0
sprpriority=99

[state 2950]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=!ishelper(12)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2950]
type=changeanim
trigger1=ishelper(12)
trigger1=anim!=2950
value=2950

[state 2950]
type=nothitby
trigger1=ishelper(12)
value=sca
time=-1

[state 2950]
type=varset
trigger1=ishelper(12)
v=1
value=var(1)+1

[state 2950]
type=hitoverride
trigger1=ishelper(12)
time=-1
slot=3
attr=sca,na,sa,ha,nt,st,ht,np,sp,hp,aa,at,ap
stateno=2950

[state 2950]
type=assertspecial
trigger1=ishelper(12)
flag=noshadow

[state 2950]
type=trans
trigger1=ishelper(12)
;trans=add
trans=addalpha
alpha=190,254

[state 2950]
type=angledraw
trigger1=ishelper(12)
scale=0.2+var(1)/15.0,0.2+var(1)/15.0

[state 2950]
type=null;angleadd
trigger1=ishelper(12)
value=-30

[state 2950]
type=screenbound
trigger1=ishelper(12)
value=0
movecamera=0

[state 2950]
type=playerpush
trigger1=ishelper(12)
value=0

[state 2950]
type=destroyself
triggerall=ishelper(12)
trigger1=var(1)>=25
trigger2=animelemtime(1)>=40

;---------------------------------------------------------------------------
;===========================================================================
; リング2
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2951]
type=a
movetype=i
physics=n
juggle=0
poweradd=0
velset=0,0
ctrl=0
sprpriority=99

[state 2951]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=!ishelper(16)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2951]
type=changeanim
trigger1=ishelper(16)
trigger1=anim!=2950
value=2950

[state 2951]
type=nothitby
trigger1=ishelper(16)
value=sca
time=-1

[state 2951]
type=varset
trigger1=ishelper(16)
v=1
value=var(1)+1

[state 2951]
type=hitoverride
trigger1=ishelper(16)
time=-1
slot=3
attr=sca,na,sa,ha,nt,st,ht,np,sp,hp,aa,at,ap
stateno=2951

[state 2951]
type=assertspecial
trigger1=ishelper(16)
flag=noshadow

[state 2951]
type=trans
trigger1=ishelper(16)
;trans=add
trans=addalpha
alpha=190,254

[state 2951]
type=angledraw
trigger1=ishelper(16)
scale=1.5-var(1)/15.0,1.5-var(1)/15.0

[state 2951]
type=null;angleadd
trigger1=ishelper(16)
value=-30

[state 2951]
type=screenbound
trigger1=ishelper(16)
value=0
movecamera=0

[state 2951]
type=playerpush
trigger1=ishelper(16)
value=0

[state 2951]
type=destroyself
triggerall=ishelper(16)
trigger1=var(1)>=25
trigger2=animelemtime(1)>=40

;==========================================================================================
;==========================================================================================
; 相手状態-1
;==========================================================================================
;==========================================================================================

[statedef 2990]
type=u
movetype=h
physics=n
velset=0,0

[state 2990]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 2990]
type=veladd
trigger1=statetype=a
trigger1=!time
y=0.5

[state 2990]
type=velset
trigger1=statetype=a
trigger1=!time
x=-1
y=-2

[state 2990]
type=velset
trigger1=statetype!=a
trigger1=!time
x=-1

[state 2990]
type=changeanim
trigger1=statetype!=a
trigger1=!time
value=5000+(statetype=c)*20

[state 2990]
type=changeanim2
trigger1=statetype=a
trigger1=!time
value=2990

[state 2990]
type=changestate
trigger1=!animtime
value=2991

;==========================================================================================
;==========================================================================================
; 相手状態-2
;==========================================================================================
;==========================================================================================

[statedef 2991]
type=u
movetype=h
physics=n
velset=0,0

[state 2991]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 2991]
type=veladd
trigger1=statetype=a
y=0.5

[state 2991]
type=velset
trigger1=statetype=a
trigger1=time=1
x=-1
y=-1

[state 2991]
type=changeanim
trigger1=statetype!=a
trigger1=!time
value=5005+(statetype=c)*20

[state 2991]
type=changeanim2
trigger1=statetype=a
trigger1=!time
value=5050

[state 2991]
type=changestate
trigger1=statetype!=a
trigger1=!alive
value=964

[state 2991]
type=selfstate
trigger1=statetype!=a
trigger1=time>=5
value=(statetype=c)*11
ctrl=1

[state 2990]
type=selfstate
trigger1=statetype=a&&time
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; インサニティパニッシュメント
;==========================================================================================
;==========================================================================================

[statedef 3000]
type=s
movetype=a
physics=s
ctrl=0
juggle=0
velset=0,0
sprpriority=-2

[state 3000]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3000]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 3000]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state 3000]
type=poweradd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
value=-1000

[state 3000]
type=changeanim
trigger1=ishelper(3)
trigger1=anim!=3000
value=3000

[state 3000]
type=nothitby 
triggerall=ishelper(3)
trigger1=1
value=sca

[state 3000]
type=superpause
trigger1=ishelper(3)
trigger1=!time
time=50
movetime=50
anim=-1
darken=0
ignorehitpause=1

[state 3000]
type=assertspecial
trigger1=ishelper(3)
trigger1=time>=20
flag=nobg
flag2=nofg
ignorehitpause=1

[state 3000]
type=assertspecial
trigger1=ishelper(3)
trigger1=time>=30
flag=invisible
ignorehitpause=1

[state 3000]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
trigger2=animelemtime(1)=4
value=4000,47
volume=100
freqmul=1.0
ignorehitpause=1

[state 3000]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
value=4000,38
volume=100
freqmul=1.1
ignorehitpause=1

[state 3000]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
value=4000,38
volume=100
freqmul=1.3
ignorehitpause=1

[state 3000]
type=trans
triggerall=ishelper(3)
trigger1=time<=30
trans=addalpha
alpha=250-time*10,time*10

[state 3000]
type=bgpalfx
triggerall=ishelper(3)
trigger1=time<=20
time=1
mul=250-time*12,250-time*12,250-time*12
under=2
ignorehitpause=1

[state 3000]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3003
sprpriority=10
postype=p1
ontop=1
pos=0,0
bindtime=1
ownpal=1
trans=add
pausemovetime=9999999
supermovetime=9999999

[state 3000]
type=explod
triggerall=ishelper(3)
trigger1=!animtime
anim=3008
sprpriority=10
postype=p1
ontop=1
pos=-60,-5
bindtime=1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3000]
type=explod
triggerall=ishelper(3)
trigger1=!time||time=10||time=20
anim=2011
id=2011
sprpriority=99
postype=p1
pos=0,-30
bindtime=1
supermove=1
ownpal=1
ontop=1
vel=0,-3
scale=0.5,0.5
ignorehitpause=1

[state 3000]
type=null;explod
triggerall=ishelper(3)
trigger1=(time=[5,20])
anim=3607
id=2011
sprpriority=99
postype=p1
pos=-50+random%100,-random%140
bindtime=1
ownpal=1
ontop=1
vel=0,-1
scale=0.5,0.5
pausemovetime=9999999
supermovetime=9999999
ignorehitpause=1

[state 3000]
type=explod
triggerall=ishelper(3)&&0
trigger1=time=30
anim=1951
sprpriority=50
postype=p1
pos=-10,-15
bindtime=1
ontop=1
ownpal=1
pausemovetime=9999999
supermovetime=9999999
ignorehitpause=1

[state 3000]
type=explod
triggerall=ishelper(3)&&0
trigger1=time=10
anim=1953
sprpriority=-50
postype=p1
pos=-10,-15
bindtime=1
ontop=0
ownpal=1
pausemovetime=9999999
supermovetime=9999999
ignorehitpause=1

[state 3000]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3001

;==========================================================================================
;==========================================================================================
; 攻撃
;==========================================================================================
;==========================================================================================

[statedef 3001]
type=s
movetype=a
physics=s
ctrl=0
juggle=0
velset=50,0
sprpriority=-2

[state 3001]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3001]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 3001]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state 3001]
type=changeanim
trigger1=ishelper(3)
trigger1=anim!=3001
value=3001

[state 3001]
type=nothitby 
triggerall=ishelper(3)
trigger1=1
value=sca

[state 3001]
type=assertspecial
trigger1=ishelper(3)
;flag=nobardisplay
flag=nobg
flag2=nofg
ignorehitpause=1

[state 3001]
type=envshake
triggerall=ishelper(3)
trigger1=time=16||time=18||time=20||time=22||time=24||time=17
trigger2=time=26||time=28||time=30||time=32||time=34||time=35
time=6
ampl=6
freq=120
phase=120
ignorehitpause=1

[state 3001]
type=playsnd
triggerall=ishelper(3)
trigger1=time=15||time=18||time=20||time=22
value=4000,76
volume=250
freqmul=0.9
ignorehitpause=1

[state 3001]
type=playsnd
triggerall=ishelper(3)&&0
trigger1=(time=[15,20])&&!(time%(6-(time>=30)*4))&&0
trigger2=time=30||time=35
value=4000,16;36 40 16
volume=250;-(time>=20)*340
freqmul=1.3
ignorehitpause=1

[state 3001]
type=playsnd
triggerall=ishelper(3) && 1
trigger1=time=25
value=4000,26
volume=120
freqmul=1.5
ignorehitpause=1

[state 3001]
type=null;explod
triggerall=ishelper(3)
trigger1=(time>=40)&&!(time%(6-(time>=60)*4))
trigger2=time=30||time=35
anim=3005
sprpriority=10
postype=p1
pos=-40-random%240,-40-random%100
bindtime=-1
ownpal=1
trans=add

;----------------------

[state 3001]
type=explod
triggerall=ishelper(3)
trigger1=time=16
anim=10609
sprpriority=50
postype=p1
pos=floor(fvar(26):=-230),floor(fvar(27):=-150)
bindtime=1
ownpal=1
ontop=1
vel=0,0
scale=0.5,0.5

[state 3001]
type=explod
triggerall=ishelper(3)
trigger1=time=17
anim=10609
sprpriority=50
postype=p1
pos=floor(fvar(26):=-250),floor(fvar(27):=-20)
bindtime=1
ownpal=1
ontop=1
vel=0,0
scale=0.5,0.5

[state 3001]
type=explod
triggerall=ishelper(3)
trigger1=time=18
anim=10609
sprpriority=50
postype=p1
pos=floor(fvar(26):=-190),floor(fvar(27):=-100)
bindtime=1
ownpal=1
ontop=1
vel=0,0
scale=0.5,0.5

[state 3001]
type=explod
triggerall=ishelper(3)
trigger1=time=20
anim=10609
sprpriority=50
postype=p1
pos=floor(fvar(26):=-160),floor(fvar(27):=40)
bindtime=1
ownpal=1
ontop=1
vel=0,0
scale=0.5,0.5


;----------------------

[state 3001]
type=explod
triggerall=ishelper(3)
trigger1=time=22
anim=10609
sprpriority=50
postype=p1
pos=floor(fvar(26):=-200),floor(fvar(27):=-160)
bindtime=1
ownpal=1
ontop=1
vel=0,0
scale=0.5,0.5

[state 3001]
type=explod
triggerall=ishelper(3)
trigger1=time=24
anim=10609
sprpriority=50
postype=p1
pos=floor(fvar(26):=-160),floor(fvar(27):=-80)
bindtime=1
ownpal=1
ontop=1
vel=0,0
scale=0.5,0.5

[state 3001]
type=explod
triggerall=ishelper(3)
trigger1=time=26
anim=10609
sprpriority=50
postype=p1
pos=floor(fvar(26):=-120),floor(fvar(27):=0)
bindtime=1
ownpal=1
ontop=1
vel=0,0
scale=0.5,0.5

;----------------------

[state 3001]
type=explod
triggerall=ishelper(3)
trigger1=time=28
anim=10609
sprpriority=50
postype=p1
pos=floor(fvar(26):=-100),floor(fvar(27):=-120)
bindtime=1
ownpal=1
ontop=1
vel=0,0
scale=0.5,0.5

[state 3001]
type=explod
triggerall=ishelper(3)
trigger1=time=30
anim=10609
sprpriority=50
postype=p1
pos=floor(fvar(26):=-60),floor(fvar(27):=-80)
bindtime=1
ownpal=1
ontop=1
vel=0,0
scale=0.5,0.5

[state 3001]
type=explod
triggerall=ishelper(3)
trigger1=time=32
anim=10609
sprpriority=50
postype=p1
pos=floor(fvar(26):=-10),floor(fvar(27):=-20)
bindtime=1
ownpal=1
ontop=1
vel=0,0
scale=0.5,0.5

[state 3001]
type=explod
triggerall=ishelper(3)
trigger1=time=34
anim=10609
sprpriority=50
postype=p1
pos=floor(fvar(26):=20),floor(fvar(27):=-120)
bindtime=1
ownpal=1
ontop=1
vel=0,0
scale=0.5,0.5

[state 3001]
type=explod
triggerall=ishelper(3)
trigger1=time=35
anim=10609
sprpriority=50
postype=p1
pos=floor(fvar(26):=50),floor(fvar(27):=-90)
bindtime=1
ownpal=1
ontop=1
vel=0,0
scale=0.5,0.5

;----------------------

[state 3001]
type=projectile
trigger1=ishelper(3)
trigger1=(time<=10);&&!(time%2)
attr=a,aa
projanim=3006
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=1
projremovetime=2
postype=p1
offset=10,0
velocity=0
animtype=hard
damage=ceil(0.022*enemy,const(data.life)),ceil(0.006*enemy,const(data.life))
getpower=0,0
givepower=8,8
guardflag=m
hitflag=mafd
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,ceil(p2dist y)-35-random%85
hitsound=-1
guard.sparkno=s2855
guardsound=-1
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-4,-7
air.velocity=-1,-5
fall=1
air.fall=1
fall.recover=0
p2stateno=2903

[state 3001]
type=projectile
triggerall=ishelper(3)
trigger1=time=16||time=18||time=20||time=22||time=24||time=17
trigger2=time=26||time=28||time=30||time=32||time=34||time=35
attr=a,aa
projanim=3007
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=1
projremovetime=8
postype=p1
offset=floor(fvar(26)),floor(fvar(27))
velocity=0
animtype=hard
damage=ceil(0.0018*enemy,const(data.life)),ceil(0.004*enemy,const(data.life))
getpower=0,0
givepower=8,8
guardflag=m
hitflag=mafd
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,ceil(p2dist y)-35
hitsound=-1
guard.sparkno=s2855
guardsound=-1
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-3,-7
air.velocity=-1,-5
fall=1
air.fall=1
fall.recover=0
p2stateno=2903

[state 3001]
type=envcolor
triggerall=ishelper(3)
trigger1=time=16||time=18||time=20||time=22||time=24||time=17
trigger2=time=26||time=28||time=30||time=32||time=34||time=35
time=1
invertall=1
ignorehitpause=1

[state 3001]
type=velset
trigger1=time>=10
x=0

[state 3001]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=80
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3002

;==========================================================================================
;==========================================================================================
; 終了
;==========================================================================================
;==========================================================================================

[statedef 3002]
type=s
movetype=a
physics=s
ctrl=0
juggle=0
velset=0,0
sprpriority=-2

[state 3002]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3002]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 3002]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state 3002]
type=changeanim
trigger1=ishelper(3)
trigger1=anim!=3002
value=3002

[state 3002]
type=nothitby 
triggerall=ishelper(3)
trigger1=time<=10
value=sca

[state 3002]
type=null;assertspecial
trigger1=ishelper(3)
trigger1=time<=20
flag=nobg
flag2=nofg
ignorehitpause=1

[state 3002]
type=playsnd
triggerall=ishelper(3)
trigger1=0
value=4000,20
volume=250
freqmul=1.1
ignorehitpause=1

[state 3000]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=24
trigger2=animelemtime(1)=28&&roundstate=2
value=4000,46
volume=250
freqmul=1.0-(animelemtime(1)=38)*0.2
ignorehitpause=1

[state 3002]
type=trans
trigger1=ishelper(3)
trigger1=root,palno!=11&&time<=50&&!root,var(20)
trans=addalpha
alpha=time*10,250-time*10

[state 3002]
type=bgpalfx
triggerall=ishelper(3)
trigger1=time<=40
time=1
mul=time*6,time*6,time*6
under=2
ignorehitpause=1

[state 3002]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3004
sprpriority=10
postype=p1
ontop=1
pos=0,0
bindtime=-1
ownpal=1
trans=add

[state 3002]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; カーズ
;==========================================================================================
;==========================================================================================

[statedef 3100]
type=s
movetype=a
physics=s
ctrl=0
juggle=0
velset=0,0
sprpriority=-2

[state 3100]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3100]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 3100]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state 3100]
type=poweradd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
value=-1000

[state 3100]
type=changeanim
trigger1=ishelper(3)
trigger1=anim!=3600
value=3600

[state 3100]
type=nothitby 
triggerall=ishelper(3)
trigger1=1
value=sca

[state 3100]
type=superpause
trigger1=ishelper(3)
trigger1=!time
time=240
movetime=240
anim=-1
darken=0
ignorehitpause=1

[state 3100]
type=assertspecial
trigger1=ishelper(3)
trigger1=time>=50
flag=nobg
flag2=nofg
ignorehitpause=1

[state 3100]
type=null;assertspecial
trigger1=ishelper(3)
trigger1=time>=30
flag=invisible
ignorehitpause=1

[state 3100]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
trigger2=animelemtime(1)=4
value=4000,49
volume=200
freqmul=1.4
ignorehitpause=1

[state 3100]
type=trans
triggerall=ishelper(3)
trigger1=animelemtime(6)>=16
trigger1=animelemtime(6)<=175
trans=addalpha
alpha=50,240

[state 3100]
type=bgpalfx
triggerall=ishelper(3)
trigger1=time<=50
time=1
mul=250-time*5,250-time*5,250-time*5
under=2
ignorehitpause=1

[state 3100]
type=envshake
triggerall=ishelper(3)
trigger1=time>=8&&!(gametime%6)
time=3
ampl=2
freq=120
phase=120
ignorehitpause=1

[state 3100]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(6)=100
trigger2=animelemtime(6)=105
trigger3=animelemtime(6)>=130
trigger3=!(gametime%(4-(animelemtime(6)>=160)*2))
time=1
value=250,250,250
under=1
invertall=1
ignorehitpause=1

[state 3100]
type=palfx
triggerall=ishelper(3)
trigger1=animelemtime(6)>=130
trigger1=!(gametime%(4-(animelemtime(6)>=160)*2))
time=1
add=150,150,250
invertall=1
ignorehitpause=1

[state 3100]
type=helper
triggerall=ishelper(3)
trigger1=animelemtime(6)=100
trigger2=animelemtime(6)=105
trigger3=animelemtime(6)=130
trigger4=animelemtime(6)=140
trigger5=animelemtime(6)=145
trigger6=animelemtime(6)=150
trigger7=animelemtime(6)=155
id=16
persistent=1
name="."
pos=-38,-124;-14
postype=p1
stateno=2951
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=explod
triggerall=ishelper(3)&&0
trigger1=animelemtime(6)=1
anim=3603
sprpriority=10
postype=p1
ontop=1
pos=0,0
bindtime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=1
anim=3603
sprpriority=10
postype=p1
ontop=1
pos=0,0
bindtime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=16
anim=3605
sprpriority=10
postype=p1
ontop=1
pos=0,0
bindtime=-1
ownpal=1
removetime=164
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=explod
triggerall=ishelper(3)&&0
trigger1=animelemtime(6)=16
anim=3605
sprpriority=10
postype=p1
ontop=1
pos=0,0
bindtime=-1
ownpal=1
removetime=164
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=16
anim=3605
sprpriority=-5
postype=p1
ontop=0
pos=0,0
bindtime=-1
ownpal=1
trans=sub
removetime=164
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=16
anim=3605
sprpriority=-200
postype=p1
ontop=0
pos=0,0
bindtime=-1
ownpal=1
removetime=164
scale=1.00,1.00
trans=sub
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=16
anim=3605
sprpriority=-210
postype=p1
ontop=0
pos=0,0
bindtime=-1
ownpal=1
removetime=164
scale=1.00,1.00
trans=sub
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=16
anim=3607
sprpriority=15
postype=p1
ontop=1
pos=-32,-115
bindtime=-1
ownpal=1
removetime=164
scale=1.05,1.05
trans=sub
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=16
anim=3607
sprpriority=200
postype=p1
ontop=1
pos=-32,-115
bindtime=-1
ownpal=1
removetime=164
scale=1.0,1.0
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=16
anim=3606
sprpriority=-102
postype=p1
ontop=0
pos=-38,-110
bindtime=-1
ownpal=1
removetime=164
trans=addalpha
alpha=50,230
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=175
anim=3604
sprpriority=10
postype=p1
ontop=1
pos=0,0
bindtime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=null;explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=[1,60]
;trigger1=var(3):=50
trigger1=!(gametime%15)
trigger2=animelemtime(6)=[61,100]
;trigger2=var(3):=30
trigger2=!(gametime%10)
trigger3=animelemtime(6)=[101,130]
;trigger3=var(3):=15
trigger3=!(gametime%5)
trigger4=animelemtime(6)=[130,175]
;trigger4=var(3):=0||1
anim=6101
sprpriority=10
postype=p1
ontop=1
pos=-(80-var(3))+random%(130-var(3)),-random%20
bindtime=1
ownpal=1
trans=add
removetime=44
vel=-1+random%3,-1-random%3
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=[1,175]
anim=6101
sprpriority=10
postype=p1
ontop=1
pos=-50+random%90,-random%20
bindtime=1
ownpal=1
trans=add
removetime=44
scale=0.5,0.5
vel=-1+random%3,-1-random%3
pausemovetime=9999999
supermovetime=9999999

[state 3100]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=192
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3101

;==========================================================================================
;==========================================================================================
; 攻撃
;==========================================================================================
;==========================================================================================

[statedef 3101]
type=s
movetype=a
physics=s
ctrl=0
juggle=0
velset=0,0
sprpriority=-2

[state 3101]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3101]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 3101]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state 3101]
type=changeanim
trigger1=ishelper(3)
trigger1=anim!=3601
value=3601

[state 3101]
type=nothitby 
triggerall=ishelper(3)
trigger1=1
value=sca

[state 3101]
type=assertspecial
trigger1=ishelper(3)
flag=nobg
flag2=nofg
ignorehitpause=1

[state 3101]
type=envshake
triggerall=ishelper(3)
trigger1=time=54
trigger2=animelemtime(6)=1
time=12
ampl=12
freq=120
phase=120
ignorehitpause=1

[state 3101]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(6)=1
trigger2=animelemtime(6)=4
value=4000,50
volume=250
freqmul=1.1
ignorehitpause=1

[state 3101]
type=playsnd
triggerall=ishelper(3)
trigger1=time=54
trigger2=time=55
value=4000,40-(time=55)*20
volume=250-(time=54)*100
freqmul=0.9+(time=54)*0.4
ignorehitpause=1

[state 3101]
type=envcolor
triggerall=ishelper(3)
trigger1=time=54
trigger2=animelemtime(6)=1
time=2
value=250,250,250
under=1
invertall=1
ignorehitpause=1

[state 3101]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)<=0
anim=6101
sprpriority=10
postype=p1
ontop=1
pos=-27+time*10,-120+time*3
bindtime=1
ownpal=1
trans=add
vel=-1+(random%3),-1+(random%3)
pausemovetime=9999999
supermovetime=9999999

[state 3101]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)<=0
anim=6101
sprpriority=10
postype=p1
ontop=1
pos=-27+time*10,-110+time*4
bindtime=1
ownpal=1
trans=add
vel=-1+(random%3),-1+(random%3)
pausemovetime=9999999
supermovetime=9999999

[state 3101]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)<=0
anim=6101
sprpriority=10
postype=p1
ontop=1
pos=-27+time*10,-120+time*4
bindtime=1
ownpal=1
trans=add
vel=-1+(random%3),-1+(random%3)
pausemovetime=9999999
supermovetime=9999999

[state 3101]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)<=0
anim=6101
sprpriority=10
postype=p1
ontop=1
pos=-27+time*10,-120+time*4
bindtime=1
ownpal=1
trans=add
vel=-1+(random%3),-1+(random%3)
pausemovetime=9999999
supermovetime=9999999

[state 3101]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=1&&0
anim=3607
sprpriority=10
postype=p1
ontop=1
pos=52,-96
bindtime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3101]
type=explod
triggerall=ishelper(3)
trigger1=time=54
anim=3608
sprpriority=10
postype=back
ontop=1
pos=0,0
bindtime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3101]
type=explod
triggerall=ishelper(3)
trigger1=time=56
anim=3608
sprpriority=10
postype=back
ontop=1
pos=0,0
bindtime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3101]
type=null;explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=3200
sprpriority=200
postype=p1
ontop=1
pos=25,-105
bindtime=-1
ownpal=1
scale=0.5,0.5
pausemovetime=9999999
supermovetime=9999999

[state 3101]
type=null;explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=3200
sprpriority=200
postype=p1
ontop=1
pos=52,-85
bindtime=-1
ownpal=1
scale=0.5,0.5
pausemovetime=9999999
supermovetime=9999999

[state 3101]
type=null;helper
triggerall=ishelper(3)
trigger1=animelemtime(6)=1
id=12
persistent=1
name="."
pos=80,-70
postype=p1
stateno=2950
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3101]
type=null;explod
triggerall=ishelper(3)
trigger1=(time>=40)&&!(time%(6-(time>=60)*4))
trigger2=time=30||time=35
anim=3005
sprpriority=10
postype=p1
pos=-40-random%240,-40-random%100
bindtime=-1
ownpal=1
trans=add

[state 3101]
type=null;explod
triggerall=ishelper(3)
trigger1=(time>=40)
anim=3201
sprpriority=50
postype=p1
pos=-random%320,-random%240
bindtime=1
ownpal=1
ontop=1
vel=-1+(random%3),-1+(random%3)
scale=0.5,0.5
trans=sub

[state 3101]
type=reversaldef
triggerall=ishelper(3)
trigger1=0
reversal.attr=sca,aa,at,ap
hitflag=m-
priority=7
pausetime=0,0
sparkno=-1
hitsound=-1
p2stateno=2030
ignorehitpause=1

[state 3101]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=80
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3102

;==========================================================================================
;==========================================================================================
; 終了
;==========================================================================================
;==========================================================================================

[statedef 3102]
type=s
movetype=a
physics=s
ctrl=0
juggle=0
velset=0,0
sprpriority=-2

[state 3102]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3102]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state 3102]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state 3102]
type=changeanim
trigger1=ishelper(3)
trigger1=anim!=3602
value=3602

[state 3102]
type=nothitby 
triggerall=ishelper(3)&&0
trigger1=animelemtime(1)<=0
value=sca

[state 3100]
type=null;playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=24
trigger2=animelemtime(1)=28&&roundstate=2
value=4000,46
volume=250
freqmul=1.0-(animelemtime(1)=38)*0.2
ignorehitpause=1

[state 3102]
type=null;trans
trigger1=ishelper(3)
trigger1=root,palno!=11&&time<=50&&!root,var(20)
trans=addalpha
alpha=time*10,250-time*10

[state 3102]
type=bgpalfx
triggerall=ishelper(3)
trigger1=time<=40
time=1
mul=time*6,time*6,time*6
under=2
ignorehitpause=1

[state 3102]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
;相手
;==========================================================================================
;==========================================================================================

[statedef 3103]
type=a
movetype=h
ctrl=0
velset=0,0
sprpriority=-1

[state 3103]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 3103]
type=lifeset
trigger1=!time
value=life-(ceil(0.05*const(data.life)))

[state 3103]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 3103]
type=palfx
trigger1=time<160
time=1
;add=250,250,250
color=0

[state 3103]
type=null;trans
trigger1=time<160
trigger1=!(gametime%2)
trans=addalpha
alpha=80,220

[state 3103]
type=changeanim
trigger1=time<160
trigger1=selfanimexist(anim)
value=anim
elem=animelemno(-1)

[state 3103]
type=changestate
triggerall=name!="G-Mizuchi-v2"
trigger1=time>=158&&!alive
value=5150

[State 3103]
type=changeanim
trigger1=time=160
value=5070

[State 3103]
type=velset
trigger1=time=160
x=-4
y=-5

[State 3103]
type=veladd
trigger1=time>=160
y=0.47

[state 3103]
type=selfstate
trigger1=time>=160
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; メテオストリーム
;==========================================================================================
;==========================================================================================

[statedef 3700]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0

[state 3700]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3700]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3700]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=3700

[state 3700]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-2000-(root,palno=6)*1000

[state 3700]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 3700]
type=nothitby 
trigger1=ishelper(3)
value=sca

[state 3700]
type=superpause
trigger1=ishelper(3)
trigger1=!time
time=20
movetime=20
anim=-1
darken=0

[state 3700]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3140
sprpriority=-5
postype=p1
pos=-3,-92
bindtime=1
supermove=1
under=0
ownpal=1
trans=add
ignorehitpause=1

[state 3700]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3150
sprpriority=999
postype=p1
pos=-3,-96
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 3700]
type=null;explod
triggerall=ishelper(3)
trigger1=!time
anim=3100
sprpriority=-5
postype=p1
pos=0,-102
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 3700]
type=palfx
triggerall=ishelper(3)
trigger1=(time=[1,20])&&!(time%2)
time=1
add=220,220,220
invertall=1
ignorehitpause=1

[state 3700]
type=helper
trigger1=ishelper(3)
trigger1=time=10||time=14
id=12
persistent=1
name="."
pos=-3,-92
postype=p1
stateno=2950
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3700]
type=helper
trigger1=ishelper(3)
trigger1=!time||time=4
id=16
persistent=1
name="."
pos=-3,-92
postype=p1
stateno=2951
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3700]
type=helper
trigger1=ishelper(3)
trigger1=!numhelper(21)
trigger1=!time
id=21
name="vr"
pos=0,0
postype=p1
stateno=3820
helpertype=player
persistent=0
keyctrl=0 
ownpal=1
ignorehitpause = 1
pausemovetime=99999
supermovetime=99999

[state 3700]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 3700]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1

[state 3700]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=4000,66
volume=255

[state 3700]
type=playsnd
triggerall=ishelper(3)
trigger1=time=14||time=16
value=4000,69
volume=250
freqmul=1.0
ignorehitpause=1

[state 3700]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3701

;==========================================================================================
;==========================================================================================
; ワープ
;==========================================================================================
;==========================================================================================

[statedef 3701]
type=s
movetype=a
physics=n
ctrl=0
velset=0,0
sprpriority=2

[state 3701]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3701]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3701]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1

[state 3701]
type=helper
trigger1=ishelper(3)
trigger1=!numhelper(20)
id=20
persistent=1
name="."
pos=0,0
postype=p1
stateno=3800
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3701]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 3701]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1080
ignorehitpause=1

[state 3701]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 3701]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=1081
id=1401
sprpriority=10
postype=p1
pos=0,0
bindtime=-1
ownpal=0

[state 3701]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=1081
id=1402
sprpriority=10
postype=p1
pos=0,0
bindtime=-1
ownpal=0

[state 3701]
type=modifyexplod
triggerall=ishelper(3)
trigger1=numexplod(1401)
id=1401
postype=p1
pos=time,0
bindtime=-1
velset=0,0
trans=addalpha
alpha=250-time*13,time*13
ignorehitpause=1

[state 3701]
type=modifyexplod
triggerall=ishelper(3)
trigger1=numexplod(1402)
id=1402
postype=p1
pos=-time,0
bindtime=-1
velset=0,0
trans=addalpha
alpha=250-time*13,time*13
ignorehitpause=1

[state 3701]
type=trans
triggerall=ishelper(3)
trigger1=time<=20
trans=addalpha
alpha=250-time*13,time*13

[state 3701]
type=assertspecial
triggerall=ishelper(3)
trigger1=time>=20
flag=invisible
ignorehitpause=1

[state 3701]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3702

;==========================================================================================
;==========================================================================================
; 落下1
;==========================================================================================
;==========================================================================================

[statedef 3702]
type=s
movetype=a
physics=n
ctrl=0
velset=0,0
sprpriority=2

[state 3702]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3702]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3702]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=invisible
flag2=nobardisplay
ignorehitpause=1

[state 3702]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 3702]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=6000
ignorehitpause=1

[state 3702]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 3702]
type=helper
triggerall=ishelper(3)
trigger1=time<=50&&!(time%(6-(time>=25)*3))
id=19
persistent=1
name="ariri"
pos=time*6,-280
postype=left
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3702]
type=helper
triggerall=ishelper(3)
trigger1=time<=50&&!(time%(6-(time>=25)*3))
id=19
persistent=1
name="ariri"
pos=time*-6,-280
postype=right
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=-1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3702]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=50
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3705

;==========================================================================================
;==========================================================================================
; 落下1
;==========================================================================================
;==========================================================================================

[statedef 3705]
type=s
movetype=a
physics=n
ctrl=0
velset=0,0
sprpriority=2

[state 3705]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3705]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3705]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=invisible
flag2=nobardisplay
ignorehitpause=1

[state 3705]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 3705]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=6000
ignorehitpause=1

[state 3705]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time<=10&&!(time%2)
id=19
persistent=1
name="ariri"
pos=time*12,-280
postype=left
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time<=10&&!(time%2)
id=19
persistent=1
name="ariri"
pos=time*-12,-280
postype=right
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=-1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time=12
id=19
persistent=1
name="ariri"
pos=140,-280
postype=left
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time=12
id=19
persistent=1
name="ariri"
pos=-140,-280
postype=right
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=-1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time=13
id=19
persistent=1
name="ariri"
pos=120,-280
postype=left
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time=13
id=19
persistent=1
name="ariri"
pos=-120,-280
postype=right
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=-1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time=14
id=19
persistent=1
name="ariri"
pos=100,-280
postype=left
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time=14
id=19
persistent=1
name="ariri"
pos=-100,-280
postype=right
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=-1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time=14
id=19
persistent=1
name="ariri"
pos=80,-280
postype=left
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time=14
id=19
persistent=1
name="ariri"
pos=-80,-280
postype=right
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=-1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time=14
id=19
persistent=1
name="ariri"
pos=60,-280
postype=left
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time=14
id=19
persistent=1
name="ariri"
pos=-60,-280
postype=right
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=-1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time=15
id=19
persistent=1
name="ariri"
pos=40,-280
postype=left
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=helper
triggerall=ishelper(3)
trigger1=time=15
id=19
persistent=1
name="ariri"
pos=-40,-280
postype=right
stateno=2952
helpertype=player
keyctrl=0
ownpal=1
faceing=-1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3705]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=15
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3703

;==========================================================================================
;==========================================================================================
; 落下2
;==========================================================================================
;==========================================================================================

[statedef 3703]
type=s
ctrl=0
movetype=a
physics=n

[state 3703]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3703]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3703]
type=destroyself
trigger1=!ishelper(3)

[state 3703]
type=turn
triggerall=ishelper(3)
trigger1=root,var(51)

[state 3703]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=3704
ignorehitpause=1

[state 3703]
type=nothitby
triggerall=ishelper(3)
trigger1=1
value=sca
time=1

[state 3703]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobardisplay
ignorehitpause=1

[state 3703]
type=posset
trigger1=ishelper(3)
trigger1=!time
x=enemynear(root,var(18)),pos x
y=-320

[state 3703]
type=posadd
triggerall=ishelper(3)
trigger1=time
y=32

[state 3703]
type=playsnd
triggerall=ishelper(3)
trigger1=pos y>=0
value=4000,40
freqmul=0.9
volume=255

[state 3703]
type=playsnd
triggerall=ishelper(3)
trigger1=pos y>=0
value=4000,40
freqmul=0.8
volume=255

[state 3703]
type=playsnd
triggerall=ishelper(3)
trigger1=pos y>=0
value=4000,40
freqmul=0.6
volume=255

[state 3703]
type=explod
triggerall=ishelper(3)
trigger1=pos y>=0
anim=1072
sprpriority=99
postype=p1
pos=-20,0
bindtime=-1
ownpal=1

[state 3703]
type=explod
triggerall=ishelper(3)
trigger1=pos y>=0
anim=1073
sprpriority=99
postype=p1
pos=20,0
bindtime=-1
ownpal=1

[state 3703]
type=screenbound
triggerall=ishelper(3)
trigger1=1
value=1
movecamera=1

[state 3703]
type=palfx
triggerall=ishelper(3)
trigger1=1
time=1
color=0

[state 3703]
type=projectile
triggerall=ishelper(3)
trigger1=!root,numtarget(1083237)
attr=s,sa
projanim=3706
projhitanim=-1
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=1
postype=p1
offset=0,0
velocity=0,0
animtype=hard
damage=ceil(0.15*enemy,const(data.life)),ceil(0.02*enemy,const(data.life))
getpower=0,0
givepower=ceil(-enemy,powermax*0.02),ceil(-enemy,powermax*0.02)
guardflag=h
hitflag=mafd
pausetime=0,6
guard.pausetime=0,5
sparkno=s2835
sparkxy=ceil(p2dist x)+30,ceil(p2dist y)-50
hitsound=-1
guard.sparkno=s2855
guardsound=-1
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-2
guard.velocity=-2.8
air.velocity=-3,-5
fall=0
air.fall=1
fall.recover=0
id=1083237
p2stateno=1083

[state 3703]
type=selfstate
trigger1=ishelper(3)
trigger1=(pos y>=0||time>=300)
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3704

;==========================================================================================
;==========================================================================================
; 起き上がり
;==========================================================================================
;==========================================================================================

[statedef 3704]
type=s
ctrl=0
movetype=a
velset=0,0

[state 3704]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3704]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3704]
type=destroyself
trigger1=!ishelper(3)

[state 3704]
type=posset
triggerall=ishelper(3)
trigger1=!time
y=0

[state 3704]
type=assertspecial
triggerall=ishelper(3)
trigger1=0
flag=nobardisplay
ignorehitpause=1

[state 3704]
type=bgpalfx
triggerall=ishelper(3)
trigger1=!time
time=2
invertall=1
persistent=0
ignorehitpause=1

[state 3704]
type=envshake
triggerall=ishelper(3)
trigger1=!time
time=40
ampl=15
freq=120
phase=120

[state 3704]
type=explod
triggerall=ishelper(3)
trigger1=time=5
anim=1072
sprpriority=99
postype=p1
pos=10,0
bindtime=-1
ownpal=1

[state 3704]
type=explod
triggerall=ishelper(3)
trigger1=time=5
anim=1073
sprpriority=99
postype=p1
pos=-10,0
bindtime=-1
ownpal=1

[state 3704]
type=changeanim
triggerall=ishelper(3)
trigger1=time<=90
trigger1=anim!=3704
trigger2=time>=91
trigger2=anim!=3705
value=3704+(time>=91)

[state 3704]
type=palfx
triggerall=ishelper(3)
trigger1=time<=90
time=1
color=0

[state 3704]
type=nothitby
triggerall=ishelper(3)
trigger1=time>=90
value=sca

[state 3704]
type=screenbound
triggerall=ishelper(3)
trigger1=1
value=1
movecamera=1

[state 3704]
type=selfstate
trigger1=ishelper(3)
trigger1=anim=3705
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;---------------------------------------------------------------------------
;===========================================================================
; 天から降り注ぐ100億のありり
;===========================================================================
;---------------------------------------------------------------------------

[statedef 2952]
type=a
movetype=a
physics=n
juggle=0
poweradd=0
velset=0,0
ctrl=0
sprpriority=99

[state 2952]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=!ishelper(19)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 2952]
type=changeanim
trigger1=ishelper(19)
trigger1=anim!=2952
value=2952

[state 2952]
type=null;palfx
trigger1=ishelper(19)
time=1
color=0

[state 2952]
type=nothitby
trigger1=ishelper(19)
trigger1=var(50):=var(50)+1||1
value=sca
time=-1

[state 2952]
type=hitoverride
trigger1=ishelper(19)
time=-1
slot=3
attr=sca,na,sa,ha,nt,st,ht,np,sp,hp,aa,at,ap
stateno=2952

[state 2952]
type=assertspecial
trigger1=ishelper(19)
flag=noshadow

[state 2952]
type=screenbound
trigger1=ishelper(19)
value=0
movecamera=0

[state 2952]
type=playerpush
trigger1=ishelper(19)
value=0

[state 2952]
type=envshake
triggerall=ishelper(19)
trigger1=var(51)=1
time=8
ampl=8
freq=120
phase=120

[state 2952]
type=null;playsnd
triggerall=ishelper(19)
trigger1=var(50)=1
value=110,102
freqmul=1.0
volume=20

[state 2952]
type=null;playsnd
triggerall=ishelper(19)
trigger1=var(51)=1
value=4000,40
freqmul=0.9
volume=-100

[state 2952]
type=playsnd
triggerall=ishelper(19)
trigger1=var(51)=1
value=4000,40
freqmul=0.8
volume=-100

[state 2952]
type=null;playsnd
triggerall=ishelper(19)
trigger1=var(51)=1
value=4000,40
freqmul=0.6
volume=-50

[state 2952]
type=null;playsnd
triggerall=ishelper(19)
trigger1=var(51)=1
value=110,102
freqmul=1.0
volume=50

[state 2952]
type=explod
triggerall=ishelper(19)
trigger1=var(51)=1
anim=1072
sprpriority=99
postype=p1
pos=-20,0
bindtime=-1
ownpal=1
ontop=1

[state 2952]
type=explod
triggerall=ishelper(19)
trigger1=var(51)=1
anim=1073
sprpriority=99
postype=p1
pos=20,0
bindtime=-1
ownpal=1
ontop=1

[state 2952]
type=posset
triggerall=ishelper(19)
trigger1=pos y>=0||var(51)
trigger1=var(51):=var(51)+1||1
trigger2=var(50)&&!var(51)
y=ifelse((var(50)&&!var(51)),pos y+32,0)

[state 2952]
type=trans
triggerall=ishelper(19)
trigger1=var(51)
trans=addalpha
alpha=250-var(51)*13,var(51)*13

[state 2952]
type=varset
trigger1=ishelper(19)
fv=10
value=(((ifelse((enemy,const(data.defence))>=101,enemy,const(data.defence),100))*(ifelse((enemy,const(data.life))>=1001,enemy,const(data.life),1000))))/100000

[state 2952]
type=hitdef
triggerall=ishelper(19)
trigger1=!numtarget
attr=,ha
animtype=hard
damage=ceil((6+(root,palno=6)*3)*fvar(10)),ceil((4+(root,palno=6)*3)*fvar(10))
getpower=0,0
givepower=ceil(-enemy,powermax*0.02),ceil(-enemy,powermax*0.02)
guardflag=h
hitflag=mafd
pausetime=0,16
guard.pausetime=0,5
sparkno=s2835
sparkxy=0,-40
hitsound=-1
guard.sparkno=s2855
guardsound=-1
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=0,1
guard.velocity=0
air.velocity=0,2
fall=1
air.fall=1
fall.recover=0

[state 2952]
type=targetlifeadd
triggerall=ishelper(19)
trigger1=numtarget
trigger1=target,stateno!=[120,155]
trigger1=!target,time
trigger1=fvar(11):=ceil(target,lifemax*(0.001+(root,palno=6)*0.003))
value=-ceil(fvar(11))
absolute=1
ignorehitpause=1

[state 2952]
type=destroyself
triggerall=ishelper(19)
trigger1=var(50)>=120||var(51)>=20

;---------------------------------------------------------------------------
;===========================================================================
; スクリーン
;===========================================================================
;---------------------------------------------------------------------------

[Statedef 3800]
type=s
movetype=i
physics=n
velset=0,0
ctrl=0

[state 3800]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=!ishelper(20)
trigger3=!numhelper(3)&&0
value=69996
ignorehitpause=1

[state 3800]
type=changeanim
trigger1=ishelper(20)
trigger1=(var(55):=var(55)+1)||1
trigger1=anim!=6000
value=6000

[state 3800]
type=screenbound
trigger1=ishelper(20)
value=0
movecamera=0

[state 3800]
type=playerpush
trigger1=ishelper(20)
value=0

[state 3800]
type=nothitby
trigger1=ishelper(20)
value=sca
time=-1

[state 3800]
type=hitoverride
trigger1=ishelper(20)
time=-1
slot=3
attr=sca,na,sa,ha,nt,st,ht,np,sp,hp,aa,at,ap
stateno=3800

[state 3800]
type=assertspecial
triggerall=ishelper(20)
trigger1=!var(56)
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3801
id=3800
postype=back
pos=0,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3801
id=3800
postype=back
pos=-320,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3802
id=3800
postype=back
pos=0,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3802
id=3800
postype=back
pos=-320,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3803
id=3800
postype=back
pos=0,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3803
id=3800
postype=back
pos=-320,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3804
id=3800
postype=back
pos=0,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3804
id=3800
postype=back
pos=-320,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3805
id=3800
postype=back
pos=0,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3805
id=3800
postype=back
pos=-320,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3806
id=3800
postype=back
pos=0,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3806
id=3800
postype=back
pos=-320,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3807
id=3800
postype=back
pos=0,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(55)=1
anim=3807
id=3800
postype=back
pos=-320,0
sprpriority=-999
bindtime=-1
removetime=-1
ownpal=1
pausemovetime=9999999
supermovetime=9999999

[state 3800]
type=null
triggerall=ishelper(20)
triggerall=numhelper(3)
trigger1=!var(56)
trigger1=!((helper(3),stateno=[3700,3705])||(helper(3),stateno=[3900,3905])||helper(3),stateno=3911||(helper(3),stateno=[3914,3920])||helper(3),stateno=3950)
trigger1=(var(56):=var(56)+1)&&0
trigger2=!var(56)
trigger2=helper(3),stateno=3704
trigger2=helper(3),time>=60
trigger2=(var(56):=var(56)+1)&&0
trigger3=var(56)
trigger3=(var(56):=var(56)+1)||1

[state 3800]
type=bgpalfx
triggerall=ishelper(20)
trigger1=var(56)>1
trigger1=(var(57):=var(57)+8)||1
time=1
mul=var(57),var(57),var(57)

[state 3800]
type=playsnd
triggerall=ishelper(20)
trigger1=var(56)=6
value=4000,67
volume=255

[state 3800]
type=explod
triggerall=ishelper(20)
trigger1=var(56)=6
anim=3810
id=3810
postype=back
pos=0,0
bindtime=-1
sprpriority=-999
supermovetime=999
trans=addalpha
alpha=245,150

[state 3800]
type=removeexplod
triggerall=ishelper(20)
trigger1=var(56)=6
id=3800

[state 3800]
type=destroyself
triggerall=ishelper(20)
trigger1=var(56)>=32

;---------------------------------------------------------------------------
;===========================================================================
; カットイン1
;===========================================================================
;---------------------------------------------------------------------------

[Statedef 3820]
type=s
ctrl=0
movetype=i
physics=n
velset=0,0
sprpriority=-99

[state 3820]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=!ishelper(21)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3820]
type=changeanim
trigger1=ishelper(21)
trigger1=anim!=3820
value=3820

[state 3820]
type=screenbound
trigger1=ishelper(21)
value=0
movecamera=0

[state 3820]
type=playerpush
trigger1=ishelper(21)
value=0

[state 3820]
type=nothitby
trigger1=ishelper(21)
value=sca
time=-1

[state 3820]
type=hitoverride
trigger1=ishelper(21)
time=-1
slot=3
attr=sca,na,sa,ha,nt,st,ht,np,sp,hp,aa,at,ap
stateno=3820

[state 3820]
type=posset
trigger1=ishelper(21)
trigger1=var(56):=var(56)+1||1
x=160*-facing
y=pos y-screenpos y+92

[state 3820]
type=angledraw
trigger1=ishelper(21)
trigger1=animelemtime(23)>=0
scale=1.0,1.0-(var(55):=var(55)+1)*0.1

[state 3820]
type=helper
trigger1=ishelper(21)
trigger1=!numhelper(22)
trigger1=var(56)=1
id=22
name="face"
pos=0,0
postype=p1
stateno=3830
helpertype=player
persistent=0
keyctrl=0 
ownpal=1
ignorehitpause = 1
pausemovetime=99999
supermovetime=99999

[state 3820]
type=destroyself
triggerall=ishelper(21)
trigger1=!animtime||var(56)>=150
trigger2=numhelper(3)
trigger2=helper(3),movetype=h

;---------------------------------------------------------------------------
;===========================================================================
; カットイン2
;===========================================================================
;---------------------------------------------------------------------------

[Statedef 3830]
type=s
movetype=i
physics=n
ctrl=0
velset=0,0
sprpriority=-90

[state 3830]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=!ishelper(22)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3830]
type=changeanim
trigger1=ishelper(22)
trigger1=(var(55):=var(55)+1)||1
trigger1=anim!=3830
value=3830

[state 3830]
type=screenbound
trigger1=ishelper(22)
value=0
movecamera=0

[state 3830]
type=playerpush
trigger1=ishelper(22)
value=0

[state 3830]
type=nothitby
trigger1=ishelper(22)
value=sca
time=-1

[state 3830]
type=hitoverride
trigger1=ishelper(22)
time=-1
slot=3
attr=sca,na,sa,ha,nt,st,ht,np,sp,hp,aa,at,ap
stateno=3830

[state 3830]
type=posset
triggerall=ishelper(22)
trigger1=var(55)=1
trigger1=(var(56):=60)&&0
trigger2=animelemtime(5)>0
trigger2=(var(56):=var(56)+1+(animelem=5)*320)||1
trigger3=1
x=(160*-facing)+(var(56)*facing)*0.2
y=pos y-screenpos y+92

[state 3830]
type=angledraw
triggerall=ishelper(22)
trigger1=animelemtime(6)>=0
scale=1.0,1.0-(var(57):=var(57)+1)*0.1

[state 3830]
type=destroyself
triggerall=ishelper(22)
trigger1=!animtime
trigger2=numhelper(3)||var(55)>=150
trigger2=helper(3),movetype=h

;==========================================================================================
;==========================================================================================
; クリミナルプレッシャー(MAX2)
;==========================================================================================
;==========================================================================================

[statedef 3910]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0

[state 3910]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3910]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3910]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
trigger1=fvar(20):=0||1
value=3910

[state 3910]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-2000-(root,palno=6)*1000

[state 3910]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 3910]
type=nothitby 
trigger1=ishelper(3)
value=sca

[state 3910]
type=superpause
trigger1=ishelper(3)
trigger1=!time
time=48
movetime=48
anim=-1
darken=0

[state 3910]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3140
sprpriority=-5
postype=p1
pos=-1,-40
bindtime=1
supermove=1
under=0
ownpal=1
trans=add
ignorehitpause=1

[state 3910]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3150
sprpriority=999
postype=p1
pos=-1,-40
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 3910]
type=null;explod
triggerall=ishelper(3)
trigger1=!time
anim=3100
sprpriority=-5
postype=p1
pos=0,-102
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 3910]
type=palfx
triggerall=ishelper(3)
trigger1=(time=[1,20])&&!(time%2)
time=1
add=220,220,220
invertall=1
ignorehitpause=1

[state 3910]
type=helper
trigger1=ishelper(3)
trigger1=time=10||time=14
id=12
persistent=1
name="."
pos=-1,-40
postype=p1
stateno=2950
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3910]
type=helper
trigger1=ishelper(3)
trigger1=!time||time=4
id=16
persistent=1
name="."
pos=-1,-40
postype=p1
stateno=2951
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3910]
type=helper
trigger1=ishelper(3)
trigger1=!numhelper(21)
trigger1=!time
id=21
name="vr"
pos=0,0
postype=p1
stateno=3820
helpertype=player
persistent=0
keyctrl=0 
ownpal=1
ignorehitpause = 1
pausemovetime=99999
supermovetime=99999

[state 3910]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 3910]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1

[state 3910]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=4000,66
volume=255

[state 3910]
type=playsnd
triggerall=ishelper(3)
trigger1=time=14||time=16
value=4000,69
volume=250
freqmul=1.0
ignorehitpause=1

[state 3910]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3911

;==========================================================================================
;==========================================================================================
; ワープ
;==========================================================================================
;==========================================================================================

[statedef 3911]
type=s
movetype=a
physics=n
ctrl=0
velset=0,0
sprpriority=2

[state 3911]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3911]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3911]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1

[state 3911]
type=helper
trigger1=ishelper(3)
trigger1=!numhelper(20)
id=20
persistent=1
name="."
pos=0,0
postype=p1
stateno=3800
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3911]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 3911]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1753
ignorehitpause=1

[state 3911]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 3911]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=3911
id=1401
sprpriority=10
postype=p1
pos=0,0
bindtime=-1
ownpal=0
pausemovetime=9999999
supermovetime=9999999

[state 3911]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(1)=1
anim=3911
id=1402
sprpriority=10
postype=p1
pos=0,0
bindtime=-1
ownpal=0
pausemovetime=9999999
supermovetime=9999999

[state 3911]
type=modifyexplod
triggerall=ishelper(3)
trigger1=numexplod(1401)
id=1401
postype=p1
pos=time,0
bindtime=-1
velset=0,0
trans=addalpha
alpha=250-time*17,time*17
ignorehitpause=1

[state 3911]
type=modifyexplod
triggerall=ishelper(3)
trigger1=numexplod(1402)
id=1402
postype=p1
pos=-time,0
bindtime=-1
velset=0,0
trans=addalpha
alpha=250-time*17,time*17
ignorehitpause=1

[state 3911]
type=trans
triggerall=ishelper(3)
trigger1=time<=20
trans=addalpha
alpha=250-time*13,time*13

[state 3911]
type=assertspecial
triggerall=ishelper(3)
trigger1=time>=20
flag=invisible
ignorehitpause=1

[state 3911]
type=selfstate
trigger1=ishelper(3)
trigger1=time>=21
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3900

;==========================================================================================
;==========================================================================================
; 突進
;==========================================================================================
;==========================================================================================

[statedef 3900]
type=s
movetype=a
physics=n
ctrl=0
velset=0,0
sprpriority=2

[state 3900]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3900]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3900]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=3900
ignorehitpause=1

[state 3900]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1

[state 3900]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 3900]
type=posset
triggerall=ishelper(3)
trigger1=time
x=enemynear(root,var(18)),pos x-40*facing
y=0
ignorehitpause=1

[state 3900]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=40,2
freqmul=0.7
volume=255

[state 3900]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=1073
sprpriority=99
postype=p1
pos=0,0
bindtime=1
ownpal=1

[state 3900]
type=hitdef
trigger1=ishelper(3)
trigger1=time
trigger2=!ishelper
trigger2=anim=(var(7)&1024)*6
attr=,ht   
hitflag=mafd
guardflag=m
pausetime=0,0
guard.pausetime=0,15     
priority=1,miss    
sparkno=-1
guard.sparkno=-1
p1sprpriority=1
p1facing=1
p2facing=1        
p1stateno=3903;1752-1754
p2stateno=3905       
fall=1

[state 3900]
type=selfstate
triggerall=ishelper(3)
trigger1=time>=16+(root,palno=6)*24
value=3901
ctrl=1

[state 3900]
type=selfstate
trigger1=ishelper(3)
trigger1=movecontact
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3902
ignorehitpause=1

;==========================================================================================
;==========================================================================================
; 自分1
;==========================================================================================
;==========================================================================================

[statedef 3901]
type=s
movetype=a
physics=s
ctrl=0
poweradd=0
sprpriority=2

[state 3901]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3901]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3901]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=3901
ignorehitpause=1

[state 3901]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1

[state 3901]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 3901]
type=trans
trigger1=ishelper(3)
trigger1=time<=20&&!root,var(20)
trans=addalpha
alpha=time*12,250-time*12

[state 3901]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 3901]
type=null;velset
triggerall=ishelper(3)
trigger1=time
x=0
ignorehitpause=1

[state 3901]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=11
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 自分2
;==========================================================================================
;==========================================================================================

[statedef 3902]
type=a
movetype=a
physics=n
ctrl=0
poweradd=0
sprpriority=2

[state 3902]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3902]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3902]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1752
ignorehitpause=1

[state 3902]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1

[state 3902]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 3902]
type=velset
triggerall=ishelper(3)
trigger1=time=10
x=-5
y=-5
ignorehitpause=1

[state 3902]
type=veladd
triggerall=ishelper(3)
trigger1=time>=10
x=-0.03
y=0.37
ignorehitpause=1

[state 3902]
type=afterimage
triggerall=ishelper(3)
trigger1=1
time=0
ignorehitpause=1

[state 3902]
type=trans
trigger1=ishelper(3)
trigger1=time<=20&&!root,var(20)
trans=addalpha
alpha=time*12,250-time*12

[state 3902]
type=selfstate
trigger1=ishelper(3)
trigger1=vel y>0&&pos y>=0
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=217

;==========================================================================================
;==========================================================================================
; 自分3
;==========================================================================================
;==========================================================================================

[statedef 3903]
type=s
movetype=a
physics=n
ctrl=0
poweradd=0
sprpriority=2

[state 3903]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3903]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3903]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1753
ignorehitpause=1

[state 3903]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1

[state 3903]
type=trans
trigger1=ishelper(3)
trigger1=time<=20&&!root,var(20)
trans=addalpha
alpha=time*12,250-time*12

[state 3903]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 3903]
type=velset
triggerall=ishelper(3)
trigger1=!time
x=15
ignorehitpause=1

[state 3903]
type=width
triggerall=ishelper(3)
trigger1=1
edge=32,0
ignorehitpause=1

[state 3903]
type=targetbind
triggerall=ishelper(3)
trigger1=numtarget
pos=-40,-65

[state 3903]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 3903]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=target,stateno!=3905
value=3905

[state 3903]
type=playsnd
triggerall=ishelper(3)
trigger1=time=1||time=3||time=5
value=1200,2
volume=250
freqmul=0.9+(time=5)*0.2
ignorehitpause=1

[state 3903]
type=selfstate
triggerall=ishelper(3)
triggerall=time>=20
trigger1=frontedgedist<=92
trigger2=!numtarget
value=3914-!numtarget*12

[state 3903]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

;==========================================================================================
;==========================================================================================
; 自分3
;==========================================================================================
;==========================================================================================

[statedef 3914]
type=s
movetype=a
physics=n
ctrl=0
poweradd=0
sprpriority=2

[state 3914]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3914]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3914]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
trigger1=fvar(20):=fvar(20)+1||1
value=3914
ignorehitpause=1

[state 3914]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1

[state 3914]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 3914]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 3914]
type=velset
triggerall=ishelper(3)
trigger1=animelemtime(7)=3
x=25+fvar(20)*25+(fvar(20)>=5)*100
ignorehitpause=1

[state 3914]
type=turn
triggerall=ishelper(3)
trigger1=animelemtime(6)=1
ignorehitpause=1

[state 3914]
type=width
triggerall=ishelper(3)
trigger1=1
edge=32,0
ignorehitpause=1

[state 3914]
type=targetbind
triggerall=ishelper(3)
trigger1=numtarget
pos=-40,-65

[state 3914]
type=targetbind
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(1)>=0&&animelemtime(2)<0
trigger2=animelemtime(7)>=0
pos=-40,-65

[state 3914]
type=targetbind
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(2)>=0&&animelemtime(3)<0
trigger2=animelemtime(5)>=0&&animelemtime(7)<0
pos=0,-65

[state 3914]
type=targetbind
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)>=0&&animelemtime(5)<0
pos=60,-85

[state 3914]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(7)>=0
trigger1=target,stateno!=3925
value=3925

[state 3914]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
time=1
invertall=1
ignorehitpause=1

[state 3914]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
time=8
ampl=16
freq=150
phase=150
ignorehitpause=1

[state 3914]
type=sprpriority
triggerall=ishelper(3)
trigger1=animelemtime(3)>=0&&animelemtime(5)<0
value=120

[state 3914]
type=sprpriority
triggerall=ishelper(3)
trigger1=animelemtime(1)>=0&&animelemtime(3)<0
trigger2=animelemtime(5)>=0
value=10

[state 3914]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=1411
sprpriority=100
postype=back
pos=340,165
bindtime=-1
ownpal=1
ontop=1
scale=0.5,0.5
trans=sub

[state 3914]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=3005
sprpriority=50
postype=back
pos=340,145
bindtime=-1
ownpal=1
ontop=0
scale=0.5,0.5
trans=sub

[state 3914]
type=hitadd
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)=1
value=1
ignorehitpause=1

[state 3914]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)=1
value=3908

[state 3914]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
value=4000,16
freqmul=1.0
volume=150

[state 3914]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
value=4000,40
freqmul=0.7
volume=150

[state 3914]
type=projectile
trigger1=ishelper(3)
trigger1=root,palno=6
attr=sca,aa,at
projanim=3006
projid=6080
projhitanim=-1
projremanim=-1
projcancelanim=-1
projpriority=2147483647
projsprpriority=2147483647
projremove=1
projremovetime=1
postype=p1
offset=10,0
velocity=0
animtype=hard
damage=ceil(0.1*enemy,const(data.life))
getpower=0,0
givepower=ceil(-0.1*enemy,const(data.power)),ceil(-0.1*enemy,const(data.power))
guardflag=
hitflag=mafd
pausetime=0,4
guard.pausetime=0,0
sparkno=s2835
sparkxy=0,ceil(p2dist y)-random%35
hitsound=-1
guard.sparkno=s2855
guardsound=-1
ground.type=high
ground.slidetime=17
ground.hittime=17
ground.velocity=-4,-7
air.velocity=-1,-5
fall=1
air.fall=1
fall.recover=0
p2stateno=2903

[state 3914]
type=selfstate
triggerall=ishelper(3)
triggerall=animelemtime(7)>=0
trigger1=frontedgedist<=132-(fvar(20)>=5)*80
trigger2=!numtarget
value=ifelse(!numtarget,3902,3914-(fvar(20)>=5)*10)

[state 3914]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

;==========================================================================================
;==========================================================================================
; 自分4
;==========================================================================================
;==========================================================================================

[statedef 3904]
type=s
movetype=a
physics=n
ctrl=0
poweradd=0
sprpriority=2

[state 3904]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3904]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state 3904]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=3904
ignorehitpause=1

[state 3904]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 3904]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1

[state 3904]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 3904]
type=velset
triggerall=ishelper(3)
trigger1=!time
x=0
ignorehitpause=1

[state 3904]
type=afterimage
triggerall=ishelper(3)
trigger1=1
time=0
ignorehitpause=1

[state 3904]
type=width
triggerall=ishelper(3)
trigger1=1
edge=42,0
ignorehitpause=1

[state 3904]
type=targetbind
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(1)>=0&&animelemtime(2)<0
trigger2=animelemtime(6)>=0&&animelemtime(7)<0
trigger3=animelemtime(10)>=0&&animelemtime(11)<0
trigger4=animelemtime(14)>=0&&animelemtime(15)<0
trigger5=animelemtime(18)>=0&&animelemtime(19)<0
pos=-40,-65

[state 3904]
type=targetbind
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(2)>=0&&animelemtime(3)<0
trigger2=animelemtime(5)>=0&&animelemtime(6)<0
trigger3=animelemtime(7)>=0&&animelemtime(8)<0
trigger4=animelemtime(9)>=0&&animelemtime(10)<0
trigger5=animelemtime(11)>=0&&animelemtime(12)<0
trigger6=animelemtime(13)>=0&&animelemtime(14)<0
trigger7=animelemtime(15)>=0&&animelemtime(16)<0
trigger8=animelemtime(17)>=0&&animelemtime(18)<0
trigger9=animelemtime(19)>=0&&animelemtime(20)<0
pos=0,-65

[state 3904]
type=targetbind
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)>=0&&animelemtime(5)<0
trigger2=animelemtime(8)>=0&&animelemtime(9)<0
trigger3=animelemtime(12)>=0&&animelemtime(13)<0
trigger4=animelemtime(16)>=0&&animelemtime(17)<0
trigger5=animelemtime(20)>=0&&animelemtime(20)<90
pos=60,-85

[state 3904]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
trigger18=animelemtime(20)=90
trigger19=animelemtime(20)=42
trigger20=animelemtime(20)=44
trigger21=animelemtime(20)=46
trigger22=animelemtime(20)=48
trigger23=animelemtime(20)=50
trigger24=animelemtime(20)=52
time=1
invertall=1
ignorehitpause=1

[state 3904]
type=envshake
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
trigger18=animelemtime(20)=90
trigger19=animelemtime(20)=42
trigger20=animelemtime(20)=44
trigger21=animelemtime(20)=46
trigger22=animelemtime(20)=48
trigger23=animelemtime(20)=50
trigger24=animelemtime(20)=52
time=8+(animelemtime(20)=90)*12
ampl=16+(animelemtime(20)=90)*14
freq=150
phase=150
ignorehitpause=1

[state 3904]
type=sprpriority
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=35
trigger13=animelemtime(20)=40
trigger14=animelemtime(20)=45
trigger15=animelemtime(20)=50
trigger16=animelemtime(20)=55
trigger17=animelemtime(20)=60
trigger18=animelemtime(20)=90
trigger19=animelemtime(20)=42
trigger20=animelemtime(20)=44
trigger21=animelemtime(20)=46
trigger22=animelemtime(20)=48
trigger23=animelemtime(20)=50
trigger24=animelemtime(20)=52
value=120

[state 3904]
type=sprpriority
triggerall=ishelper(3)
trigger1=animelemtime(2)>=0&&animelemtime(3)<0
trigger2=animelemtime(5)>=0&&animelemtime(6)<0
trigger3=animelemtime(7)>=0&&animelemtime(8)<0
trigger4=animelemtime(9)>=0&&animelemtime(10)<0
trigger5=animelemtime(11)>=0&&animelemtime(12)<0
trigger6=animelemtime(13)>=0&&animelemtime(14)<0
trigger7=animelemtime(15)>=0&&animelemtime(16)<0
trigger8=animelemtime(17)>=0&&animelemtime(18)<0
trigger9=animelemtime(19)>=0&&animelemtime(20)<0
trigger10=animelemtime(1)>=0&&animelemtime(2)<0
trigger11=animelemtime(6)>=0&&animelemtime(7)<0
trigger12=animelemtime(10)>=0&&animelemtime(11)<0
trigger13=animelemtime(14)>=0&&animelemtime(15)<0
trigger14=animelemtime(18)>=0&&animelemtime(19)<0
value=10

[state 3904]
type=hitadd
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
trigger18=animelemtime(20)=90
trigger19=animelemtime(20)=42
trigger20=animelemtime(20)=44
trigger21=animelemtime(20)=46
trigger22=animelemtime(20)=48
trigger23=animelemtime(20)=50
trigger24=animelemtime(20)=52
value=1
ignorehitpause=1

[state 3904]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
trigger18=0
trigger19=animelemtime(20)=42
trigger20=animelemtime(20)=44
trigger21=animelemtime(20)=46
trigger22=animelemtime(20)=48
trigger23=animelemtime(20)=50
trigger24=animelemtime(20)=52
value=3908-(animelemtime(20)>=0)

[state 3904]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(20)=90
value=3906

[state 3904]
type=targetlifeadd
triggerall=ishelper(3)
triggerall=root,palno=6
triggerall=numtarget
triggerall=fvar(11):=ceil(target,lifemax*0.008)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
trigger18=0
trigger19=animelemtime(20)=42
trigger20=animelemtime(20)=44
trigger21=animelemtime(20)=46
trigger22=animelemtime(20)=48
trigger23=animelemtime(20)=50
trigger24=animelemtime(20)=52
value=-ceil(fvar(11))
absolute=1
ignorehitpause=1

[state 3904]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
trigger18=animelemtime(20)=90
trigger19=animelemtime(20)=42
trigger20=animelemtime(20)=44
trigger21=animelemtime(20)=46
trigger22=animelemtime(20)=48
trigger23=animelemtime(20)=50
trigger24=animelemtime(20)=52
value=4000,16
freqmul=1.0
volume=150

[state 3904]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
trigger5=animelemtime(20)=1
trigger6=animelemtime(20)=5
trigger7=animelemtime(20)=10
trigger8=animelemtime(20)=15
trigger9=animelemtime(20)=20
trigger10=animelemtime(20)=25
trigger11=animelemtime(20)=30
trigger12=animelemtime(20)=32
trigger13=animelemtime(20)=34
trigger14=animelemtime(20)=36
trigger15=animelemtime(20)=38
trigger16=animelemtime(20)=40
trigger17=animelemtime(20)=60&&0
trigger18=animelemtime(20)=90
trigger19=animelemtime(20)=42
trigger20=animelemtime(20)=44
trigger21=animelemtime(20)=46
trigger22=animelemtime(20)=48
trigger23=animelemtime(20)=50
trigger24=animelemtime(20)=52
value=4000,40
freqmul=0.7
volume=150

[state 3904]
type=null;helper
triggerall=ishelper(3)
trigger1=animelemtime(18)=10
trigger2=animelemtime(18)=14
trigger3=animelemtime(18)=18
trigger4=animelemtime(18)=22
id=16
persistent=1
name="."
pos=-34,-43
postype=p1
stateno=2951
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3904]
type=null;envcolor
triggerall=ishelper(3)
trigger1=animelemtime(18)=10
trigger2=animelemtime(18)=14
trigger3=animelemtime(18)=18
trigger4=animelemtime(18)=22
time=1
value=250,250,250
under=1
invertall=1
ignorehitpause=1

[state 3904]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(18)=1
value=4000,72
freqmul=1.3
volume=255

[state 3904]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
anim=1411
sprpriority=100
postype=p1
pos=67,-90
bindtime=-1
ownpal=1
trans=sub

[state 3904]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
trigger2=animelemtime(8)=1
trigger3=animelemtime(12)=1
trigger4=animelemtime(16)=1
anim=1411
sprpriority=100
postype=p1
pos=67,-60
bindtime=-1
ownpal=1
ontop=1
trans=sub

[state 3904]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(20)=1
trigger2=animelemtime(20)=5
trigger3=animelemtime(20)=10
trigger4=animelemtime(20)=15
trigger5=animelemtime(20)=20
trigger6=animelemtime(20)=25
trigger7=animelemtime(20)=30
trigger8=animelemtime(20)=32
trigger9=animelemtime(20)=34
trigger10=animelemtime(20)=36
trigger11=animelemtime(20)=38
trigger12=animelemtime(20)=40
trigger13=animelemtime(20)=60&&0
trigger14=0
trigger15=0
trigger16=0
trigger17=0
trigger18=0
trigger19=animelemtime(20)=42
trigger20=animelemtime(20)=44
trigger21=animelemtime(20)=46
trigger22=animelemtime(20)=48
trigger23=animelemtime(20)=50
trigger24=animelemtime(20)=52
anim=1411
sprpriority=140
postype=p1
pos=10+random%80,-20-random%120
bindtime=1
ownpal=1
trans=sub
ontop=0

[state 3904]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(20)=90
anim=3005
sprpriority=50
postype=p1
pos=67,-100
bindtime=1
ownpal=1
ontop=0
scale=0.5,0.5
trans=sub

[state 3904]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=2202

;==========================================================================================
;==========================================================================================
; 相手-1
;==========================================================================================
;==========================================================================================

[statedef 3905]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=99

[state 3905]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 3905]
type=playerpush
trigger1=1
value=0

[state 3905]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 3905]
type=nothitby
trigger1=1
value=sca

[state 3905]
type=changeanim2
trigger1=!time
value=1755

[state 3905]
type=velset
trigger1=!time
x=0
y=0

[state 3905]
type=selfstate
trigger1=time>=300
value=5050

;==========================================================================================
;==========================================================================================
; 相手-1-2
;==========================================================================================
;==========================================================================================

[statedef 3925]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=99

[state 3925]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 3925]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
kill=0
absolute=1
ignorehitpause=1

[state 3925]
type=playerpush
trigger1=1
value=0

[state 3925]
type=playsnd
trigger1=!time
value=11,0
volume=255

[state 3925]
type=turn
trigger1=!time
value=0

[state 3925]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 3925]
type=nothitby
trigger1=1
value=sca

[state 3925]
type=changeanim2
trigger1=!time
value=1755

[state 3925]
type=velset
trigger1=!time
x=0
y=0

[state 3925]
type=selfstate
trigger1=time>=300
value=5050

;==========================================================================================
;==========================================================================================
; 相手-2
;==========================================================================================
;==========================================================================================

[statedef 3906]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=99

[state 3906]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 3906]
type=lifeadd
trigger1=!time
value=ceil(-0.14*const(data.life))
absolute=1
ignorehitpause=1

[state 3906]
type=playsnd
triggerall=alive
trigger1=!time||time=4
value=11,0
volume=255

[state 3906]
type=playerpush
trigger1=1
value=0

[state 3906]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 3906]
type=nothitby
trigger1=1
value=sca

[state 3906]
type=changeanim2
trigger1=!time
value=1410

[state 3906]
type=velset
trigger1=!time
x=-0.7
y=-12

[state 3906]
type=veladd
trigger1=1
y=0.52

[state 3906]
type=removeexplod
trigger1=ishelper
id=-1

[state 3906]
type=changestate
triggerall=name!="G-Mizuchi-v2"
triggerall=ishelper
trigger1=vel y>0&&pos y>=0
trigger2=time>=100
value=69996
ignorehitpause=1

[state 3906]
type=envshake
trigger1=vel y>0&&pos y>=0
time=10
ampl=-5
freq=95
phase=95

[state 3906]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; 相手-3
;==========================================================================================
;==========================================================================================

[statedef 3907]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=99

[state 3907]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 3907]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
kill=0
absolute=1
ignorehitpause=1

[state 3907]
type=playerpush
trigger1=1
value=0

[state 3907]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 3907]
type=nothitby
trigger1=1
value=sca

[state 3907]
type=changeanim2
trigger1=!time
value=1755

[state 3907]
type=selfstate
trigger1=time>=800
value=5050

;==========================================================================================
;==========================================================================================
; 相手-4
;==========================================================================================
;==========================================================================================

[statedef 3908]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=99

[state 3908]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 3908]
type=lifeadd
trigger1=!time
value=ceil(-0.01*const(data.life))
kill=0
absolute=1
ignorehitpause=1

[state 3908]
type=playsnd
trigger1=!time&&0
value=11,0
volume=255

[state 3908]
type=playerpush
trigger1=1
value=0

[state 3908]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 3908]
type=nothitby
trigger1=1
value=sca

[state 3908]
type=changeanim2
trigger1=!time
value=1755

[state 3908]
type=selfstate
trigger1=time>=800
value=5050

;==========================================================================================
;==========================================================================================
;相手-5
;==========================================================================================
;==========================================================================================

[statedef 3909]
type=a
movetype=h
ctrl=0
velset=0,0
sprpriority=-1

[state 3909]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state 3909]
type=removeexplod
trigger1=name!="G-Mizuchi-v2"
trigger1=ishelper
id=-1

[state 3909]
type=nothitby
triggerall=name!="G-Mizuchi-v2"
trigger1=ishelper&&time<=1
value=sca
ignorehitpause=1

[state 2206]
type=changestate
triggerall=name!="G-Mizuchi-v2"
triggerall=ishelper
trigger1=time
value=69996
ignorehitpause=1

[state 3909]
type=lifeset
trigger1=!time
value=life-(ceil(0.25*const(data.life)))

[state 3909]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 3909]
type=trans
trigger1=time<50
trigger1=!(gametime%2)
trans=addalpha
alpha=80,220

[state 3909]
type=changeanim
trigger1=time<50
trigger1=selfanimexist(anim)
value=anim
elem=animelemno(-1)

[State 3909]
type=changeanim
trigger1=time=50
value=5070

[State 3909]
type=velset
trigger1=time=50
x=-4
y=-5

[State 3909]
type=veladd
trigger1=time>=50
y=0.47

[state 3909]
type=selfstate
trigger1=time>=50
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
;相手-6
;==========================================================================================
;==========================================================================================

[statedef 3912]
type=a
movetype=h
ctrl=0
velset=0,0
sprpriority=-1

[state 3912]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state 3912]
type=removeexplod
trigger1=name!="G-Mizuchi-v2"
trigger1=ishelper
id=-1

[state 3912]
type=nothitby
triggerall=name!="G-Mizuchi-v2"
trigger1=ishelper&&time<=1
value=sca
ignorehitpause=1

[state 3912]
type=changestate
triggerall=name!="G-Mizuchi-v2"
triggerall=ishelper
trigger1=time
value=69996
ignorehitpause=1

[state 3912]
type=screenbound
trigger1=1
value=1
movecamera=1

[state 3912]
type=changeanim
trigger1=time<50
trigger1=selfanimexist(anim)
value=anim
elem=animelemno(-1)

[State 3912]
type=changeanim
trigger1=time=50
value=5070

[State 3912]
type=velset
trigger1=time=50
x=-4
y=-5

[State 3912]
type=veladd
trigger1=time>=50
y=0.47

[state 3912]
type=selfstate
trigger1=time>=50
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;==========================================================================================
; カースド・コントラクト
;==========================================================================================
;==========================================================================================

[statedef 3950]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0

[state 3950]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3950]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
trigger1=!time
value=970

[state 3950]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=3950

[state 3950]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-2000-(root,palno=6)*1000

[state 3950]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 3950]
type=nothitby 
trigger1=ishelper(3)
value=sca

[state 3950]
type=superpause
trigger1=ishelper(3)
trigger1=!time
time=20
movetime=20
anim=-1
darken=0

[state 3950]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3140
sprpriority=-5
postype=p1
pos=-3,-92
bindtime=1
supermove=1
under=0
ownpal=1
trans=add
ignorehitpause=1

[state 3950]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3150
sprpriority=999
postype=p1
pos=-3,-96
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 3950]
type=null;explod
triggerall=ishelper(3)
trigger1=!time
anim=3100
sprpriority=-5
postype=p1
pos=0,-102
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 3950]
type=palfx
triggerall=ishelper(3)
trigger1=(time=[1,20])&&!(time%2)
time=1
add=220,220,220
invertall=1
ignorehitpause=1

[state 3950]
type=helper
trigger1=ishelper(3)
trigger1=time=10||time=14
id=12
persistent=1
name="."
pos=-3,-92
postype=p1
stateno=2950
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3950]
type=helper
trigger1=ishelper(3)
trigger1=!time||time=4
id=16
persistent=1
name="."
pos=-3,-92
postype=p1
stateno=2951
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3950]
type=helper
trigger1=ishelper(3)
trigger1=!numhelper(21)
trigger1=!time
id=21
name="vr"
pos=0,0
postype=p1
stateno=3820
helpertype=player
persistent=0
keyctrl=0 
ownpal=1
ignorehitpause = 1
pausemovetime=99999
supermovetime=99999

[state 3950]
type=helper
trigger1=ishelper(3)
trigger1=time=20
trigger1=!numhelper(20)
id=20
persistent=1
name="."
pos=0,0
postype=p1
stateno=3800
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3950]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 3950]
type=assertspecial
triggerall=ishelper(3)
trigger1=1
flag=nobg
flag2=nofg
flag3=nobardisplay
ignorehitpause=1

[state 3950]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=4000,66
volume=255

[state 3950]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(2)=1||animelemtime(3)=1
value=1200,0
volume=250
freqmul=1.0

[state 3950]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=1
anim=3951
sprpriority=5
postype=p1
pos=0,0
under=0
bindtime=-1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3950]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 解除
;==========================================================================================
;==========================================================================================

[statedef 3951]
ctrl=0
velset=0,0
movetype=a
sprpriority=2

[state 3951]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3951]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
trigger1=!time
value=970

[state 3951]
type=changeanim
trigger1=ishelper(3)
trigger1=anim!=3953
value=3953
ignorehitpause=1

[state 3951]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state 3951]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
trigger2=animelemtime(2)=0
value=1200,1
volume=50
freqmul=1.0
ignorehitpause=0

[state 3951]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=0
trigger2=animelemtime(2)=0
value=4000,37
volume=100
freqmul=0.8
ignorehitpause=0

[state 3951]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
value=240,1
volume=50
freqmul=0.4
ignorehitpause=0

[state 3951]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=2
value=240,1
volume=50
freqmul=1.2
ignorehitpause=0

[state 3951]
type=playerpush
triggerall=ishelper(3)
trigger1=1
value=0
ignorehitpause=1

[state 3951]
type=posset
triggerall=ishelper(3)
trigger1=animelemtime(14)=0
y=0
ignorehitpause=1

[state 3951]
type=turn 
triggerall=ishelper(3)
triggerall=animelem=14
trigger1=p2dist x<0
ignorehitpause=1

[state 3951]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=3952

;==========================================================================================
;==========================================================================================
; 解除2
;==========================================================================================
;==========================================================================================

[statedef 3952]
type=c
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0

[state 3952]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state 3952]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
trigger1=!time
value=970

[state 3952]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=3952

[state 3952]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state 3952]
type=nothitby 
trigger1=ishelper(3)
trigger1=animelemtime(6)<=85
value=sca

[state 3952]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=0
anim=3140
sprpriority=-5
postype=p1
pos=-3,-20
bindtime=1
supermove=1
under=0
ownpal=1
trans=add
ignorehitpause=1

[state 3952]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=0
anim=3150
sprpriority=999
postype=p1
pos=-3,-24
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 3952]
type=null;explod
triggerall=ishelper(3)
trigger1=!time
anim=3100
sprpriority=-5
postype=p1
pos=0,-102
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state 3952]
type=palfx
triggerall=ishelper(3)
trigger1=animelemtime(6)=[1,80]
trigger1=!(time%2)
time=1
add=220,220,220
invertall=1
ignorehitpause=1

[state 3952]
type=helper
trigger1=ishelper(3)
trigger1=animelemtime(6)=10||animelemtime(6)=14
id=12
persistent=1
name="."
pos=-3,-20
postype=p1
stateno=2950
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3952]
type=helper
trigger1=ishelper(3)
trigger1=animelemtime(6)=0||animelemtime(6)=4
id=16
persistent=1
name="."
pos=-3,-20
postype=p1
stateno=2951
helpertype=player
keyctrl=0
ownpal=1
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 3952]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(6)=0||animelemtime(6)=4
value=4000,67
volume=255
freqmul=0.9

[state 3952]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(6)=1
time=10
ampl=14
freq=180
phase=180
ignorehitpause=1

[state 3952]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(6)=0
anim=3810
id=3810
postype=back
pos=0,0
bindtime=-1
trans=addalpha
alpha=245,150
sprpriority=-999
pausemovetime=9999999
supermovetime=9999999

[state 3952]
type=bgpalfx
triggerall=ishelper(3)
trigger1=animelemtime(6)=[1,20]
trigger1=!(time%2)
time=1
invertall=1
ignorehitpause=1

[state 3952]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(6)=0
time=3
value=255,255,255
under=2
ignorehitpause=1

[state 3952]
type=null;playsnd
triggerall=ishelper(3)
trigger1=animelemtime(6)=0
value=4000,66
volume=255

[state 3952]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;//////////////////////////////////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------------------
; ストーム・ネガ
;------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////////////////
;==========================================================================================

[statedef 2850]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0
sprpriority=7

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=-1000

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state ]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2851
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state ]
type=nothitby
triggerall=ishelper(3)
trigger1=time<=32||root,palno=6
value=sca
ignorehitpause=1

[state ]
type=superpause
triggerall=ishelper(3)
trigger1=!time
time=30
movetime=30
anim=-1
ignorehitpause=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3100
sprpriority=-5
postype=p1
pos=-28,-114
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=3110
sprpriority=999
postype=p1
pos=-28,-114
bindtime=1
supermove=1
under=0
ownpal=1
ignorehitpause=1

[state ]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
trigger1=!(fvar(11):=0)
time=3
value=255,255,255
under=2
ignorehitpause=1

[state ]
type=assertspecial
triggerall=ishelper(3)
trigger1=time<=30
flag=nobg
flag2=nofg
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=!time
value=3000,0
volume=100
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=time=19
value=4000,27
volume=100
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=time=30||time=34
value=1100,2
volume=200
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=0||animelemtime(5)=4
value=1200,11
freqmul=1.5
volume=150
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=0||animelemtime(5)=4
value=4000,1
freqmul=1.7
volume=255
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
value=800,2
freqmul=1.2
volume=255
ignorehitpause=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(4)=0||animelemtime(5)=4
anim=701
id=211
sprpriority=4
ontop=1
postype=p1
pos=30,-30
ownpal=1
bindtime=1
vel=1,0
scale=1.0,1.0
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state ]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
time=7
ampl=7
freq=120
phase=120
ignorehitpause=1

[state ]
type=hitdef
trigger1=ishelper(3)
trigger1=root,palno<6
trigger1=!time
attr=s,ht        
hitflag=m
guardflag=m
priority=1,miss       
fall=1
guard.pausetime=0,5
sparkno=s2835
guard.sparkno=s2855
sparkxy=-20,-100
hitsound=s225,1
guardsound=s120,0
p1sprpriority=1
p1facing=1
p2facing=1        
p1stateno=2851 
p2stateno=2860
id=28500

[state ]
type=hitdef
trigger1=ishelper(3)
trigger1=root,palno=6
trigger1=!time
attr=,ht        
hitflag=mafd
guardflag=m
priority=1,miss       
fall=1
guard.pausetime=0,25
sparkno=s2835
guard.sparkno=s2855
sparkxy=-20,-100
hitsound=s225,1
guardsound=s120,0
guard.velocity=-8.8
p1sprpriority=1
p1facing=1
p2facing=1        
p1stateno=2851 
p2stateno=2860
id=28500

[state ]
type=projectile
triggerall=ishelper(3)
triggerall=root,palno=6
triggerall=!(time%2)
trigger1=fvar(11):=moveguarded
trigger2=animelemtime(4)>0
trigger2=(abs(pos x+(40*facing)-enemynear(root,var(18)),pos x)>70)
attr=a,na
projanim=2610
projhitanim=2611
projid=2510
projpriority=9999999999
projsprpriority=5
projremove=1
projremovetime=100
postype=p1
projscale=0.5,0.5
offset=55,-55-random%75
velocity=10
accel=0.2,0
animtype=hard
damage=16,6
getpower=20,5
givepower=6,6
guardflag=m
hitflag=maf
pausetime=0,1
guard.pausetime=0,1
sparkno=s2835
sparkxy=0,0
hitsound=s225,1
guard.sparkno=s2855
guardsound=s121,0
ground.type=high
ground.slidetime=18
ground.hittime=18
ground.velocity=-3
guard.velocity=-8.8
air.velocity=-3,-6
fall=0
air.fall=1
fall.recover=0

[state ]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; 自分1
;==========================================================================================
;==========================================================================================

[statedef 2851]
type=s
movetype=a
physics=n
ctrl=0
poweradd=0
sprpriority=2

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state ]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2852
ignorehitpause=1

[state ]
type=envcolor
triggerall=ishelper(3)
trigger1=!time
time=1
value=250,250,250
under=1
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state ]
type=width
triggerall=ishelper(3)
trigger1=1
edge=90,0
ignorehitpause=1

[state ]
type=targetbind
triggerall=ishelper(3)
trigger1=numtarget
pos=70,0

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(5)=0
value=4000,75
volume=250
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=0||animelemtime(5)=0
value=1200,0
volume=250
freqmul=0.9+(animelemtime(5)=0)*0.2
ignorehitpause=1

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=!animtime
trigger2=!numtarget
value=2852*!animtime

[state ]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

;==========================================================================================
;==========================================================================================
; 自分2
;==========================================================================================
;==========================================================================================

[statedef 2852]
type=s
movetype=a
physics=n
ctrl=0
poweradd=0
sprpriority=2

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state ]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=2853
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state ]
type=velset
triggerall=ishelper(3)
trigger1=!time
x=0
ignorehitpause=1

[state ]
type=width
triggerall=ishelper(3)
trigger1=1
edge=90,0
ignorehitpause=1

[state ]
type=null;targetbind
triggerall=ishelper(3)
trigger1=numtarget
pos=60,0

[state ]
type=posadd
triggerall=ishelper(3)
trigger1=animelemtime(12)=0
trigger2=animelemtime(13)=0
trigger3=animelemtime(14)=0
x=8

[state ]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(3)=0
trigger2=animelemtime(9)=0
anim=2835
sprpriority=50
postype=p1
pos=67,-70
bindtime=-1
ontop=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(16)=0
anim=2835
sprpriority=50
postype=p1
pos=50,-70
bindtime=-1
ontop=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(19)=0
trigger2=animelemtime(21)=0
trigger3=animelemtime(23)=0
anim=2835
sprpriority=50
postype=p1
pos=55+!animelemtime(23)*30,-60-!animelemtime(23)*50
bindtime=-1
ontop=1
ownpal=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(23)=0||animelemtime(23)=3
anim=701
id=211
sprpriority=4
ontop=1
postype=p1
pos=20,-50
ownpal=1
bindtime=1
vel=1.8,0
scale=1.0,1.0
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state ]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(3)=0
trigger2=animelemtime(9)=0
trigger3=animelemtime(16)=0
trigger4=animelemtime(19)=0
trigger5=animelemtime(21)=0
trigger6=animelemtime(23)=0
time=1
value=250,250,250
under=1
ignorehitpause=1

[state ]
type=envshake
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)=0
trigger2=animelemtime(9)=0
trigger3=animelemtime(16)=0
trigger4=animelemtime(19)=0
trigger5=animelemtime(21)=0
trigger6=animelemtime(23)=0
time=8
ampl=8
freq=150
phase=150
ignorehitpause=1

[state ]
type=sprpriority
trigger1=ishelper(3)
value=120

[state ]
type=hitadd
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)=0
trigger2=animelemtime(9)=0
trigger3=animelemtime(16)=0
trigger4=animelemtime(19)=0
trigger5=animelemtime(21)=0
trigger6=animelemtime(23)=0
value=1
ignorehitpause=1

[state ]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(3)=0
trigger2=animelemtime(9)=0
trigger3=animelemtime(16)=0
trigger4=animelemtime(19)=0
trigger5=animelemtime(21)=0
trigger6=animelemtime(23)=0
value=2861

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=0
trigger2=animelemtime(9)=0
trigger3=animelemtime(16)=0
trigger4=animelemtime(19)=0
trigger5=animelemtime(21)=0
trigger6=animelemtime(23)=0
value=225,1
freqmul=1.0
volume=255

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=!numtarget
value=0

[state ]
type=selfstate
triggerall=ishelper(3)
triggerall=power>=2000
triggerall=animelemtime(16)>0
trigger1=!root,var(15)
trigger1=command="C-PM"
value=2200

[state ]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=2853

;==========================================================================================
;==========================================================================================
; 自分2
;==========================================================================================
;==========================================================================================

[statedef 2853]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state ]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state ]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=2854

[state ]
type=envcolor
triggerall=ishelper(3)
trigger1=time>=4&&!(time%(4-(root,palno=6&&0)*2))
time=1
value=250,250,250
under=1

[state ]
type=playsnd
trigger1=ishelper(3)
trigger1=time>=4&&0
trigger1=!(time%4)
value=4000,34
freqmul=1.3
volume=255

[state ]
type=explod
trigger1=ishelper(3)
trigger1=time>=4
trigger1=!(time%(4-(root,palno=6&&0)*2))
anim=1072
sprpriority=99
postype=p1
pos=0,0
bindtime=-1
ownpal=1

[state ]
type=explod
trigger1=ishelper(3)
trigger1=time>=4
trigger1=!(time%(4-(root,palno=6&&0)*2))
anim=1073
sprpriority=99
postype=p1
pos=0,0
bindtime=-1
ownpal=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=time>=4
trigger1=!(time%(4-(root,palno=6&&0)*2))
anim=2835
sprpriority=50
postype=p2
pos=30+random%30,-30-random%30
bindtime=-1
ontop=1
ownpal=1

[state ]
type=hitadd
triggerall=ishelper(3)
trigger1=time>=4
trigger1=!(time%(4-(root,palno=6&&0)*2))
value=1
ignorehitpause=1

[state ]
type=envshake
triggerall=ishelper(3)
trigger1=time>=4
trigger1=!(time%(4-(root,palno=6&&0)*2))
time=3
ampl=3
freq=120
phase=120

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=!time||time=4||time=8
volume=250
value=4000,72
freqmul=1.1
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=!time||time=4||time=8
volume=250
value=4000,26
freqmul=1.2
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=time>=4&&!(time%4)&&0
value=2000,random%3
volume=-250

[state ]
type=targetbind
triggerall=ishelper(3)
trigger1=(time=[4,79])&&!(time%(4-(root,palno=6&&0)*2))
trigger1=numtarget
pos=60-random%120,0

[state ]
type=targetbind
triggerall=ishelper(3)
trigger1=time>=80
trigger1=numtarget
pos=60,0

[state ]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=time>=4&&!(time%(4-(root,palno=6&&0)*2))
value=2862

[state ]
type=targetlifeadd
triggerall=ishelper(3)
triggerall=root,palno=6
triggerall=numtarget
triggerall=fvar(11):=ceil(target,lifemax*0.005)
trigger1=time>=4&&!(time%(4-(root,palno=6&&0)*2))
value=-ceil(fvar(11))
absolute=1
ignorehitpause=1

[state ]
type=nothitby 
triggerall=ishelper(3)
trigger1=1
value=sca

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=!numtarget
value=0

[state ]
type=selfstate
triggerall=ishelper(3)
triggerall=power>=2000
triggerall=time>=4
trigger1=!root,var(15)
trigger1=command="C-PM"
value=2200

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=time>=80
value=2854

[state ]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

;==========================================================================================
;==========================================================================================
; 自分3
;==========================================================================================
;==========================================================================================

[statedef 2854]
type=s
movetype=a
physics=s
ctrl=0
velset=0,0
sprpriority=2

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state ]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0

[state ]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=2857

[state ]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(7)=0
trigger2=animelemtime(8)=0
trigger3=animelemtime(8)=30
time=1
value=200,0,0
under=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(7)=0
trigger2=animelemtime(8)=0
trigger3=animelemtime(8)=30
anim=2835
sprpriority=50
postype=p1
pos=60,-60
bindtime=-1
ontop=1
ownpal=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=animelemtime(8)=30
anim=3005
sprpriority=50
postype=p1
pos=67,-100
bindtime=1
ownpal=1
ontop=0
scale=0.5,0.5
trans=sub

[state ]
type=explod
triggerall=ishelper(3)&&0
trigger1=animelemtime(8)=30
anim=1411
sprpriority=100
postype=p2
pos=(enemynear(root,var(18)),const(size.mid.pos.x)),(enemynear(root,var(18)),const(size.mid.pos.y))+30
bindtime=1
ownpal=1

[state ]
type=hitadd
triggerall=ishelper(3)
trigger1=animelemtime(7)=0
trigger2=animelemtime(8)=0
trigger3=animelemtime(8)=30
value=1
ignorehitpause=1

[state ]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(7)=0
trigger2=animelemtime(8)=0
trigger3=animelemtime(8)=30
time=(8-(animelemtime(8)=0)*4)+(animelemtime(8)=30)*20
ampl=(8-(animelemtime(8)=0)*4)+(animelemtime(8)=30)*20
freq=120
phase=120

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(7)=0
value=2000,0
volume=255

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(8)=0
value=2000,1
volume=255

[state ]
type=null;playsnd
triggerall=ishelper(3)
trigger1=animelemtime(8)=30
value=4000,16
volume=255

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(8)=31
trigger2=animelemtime(8)=33
volume=250
value=4000,40
freqmul=0.9
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(8)=31
trigger2=animelemtime(8)=33
volume=50
value=4000,20
freqmul=0.6
ignorehitpause=1

[state ]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(7)=0
trigger2=animelemtime(8)=0
value=2861

[state ]
type=targetstate
triggerall=ishelper(3)
triggerall=numtarget
trigger1=animelemtime(8)=30
value=2863

[state ]
type=nothitby 
triggerall=ishelper(3)
trigger1=1
value=sca

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=!numtarget
value=0

[state ]
type=selfstate
triggerall=ishelper(3)
triggerall=power>=2000
triggerall=animelemtime(7)>0&&animelemtime(8)<30
trigger1=!root,var(15)
trigger1=command="C-PM"
value=2200

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=!animtime
value=0

[state ]
type=selfstate
trigger1=!ishelper
trigger1=numhelper(3)
trigger1=helper(3),stateno!=stateno
value=0

;==========================================================================================
;==========================================================================================
; 相手-1
;==========================================================================================
;==========================================================================================

[statedef 2860]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=99

[state ]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state ]
type=lifeadd
trigger1=!time
value=ceil(-0.008*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state ]
type=playerpush
trigger1=1
value=0

[state ]
type=screenbound
trigger1=1
value=1
movecamera=1

[state ]
type=nothitby
trigger1=1
value=sca

[state ]
type=changeanim2
trigger1=anim!=2860
value=2860

[state ]
type=velset
trigger1=!time
x=0
y=0

[state ]
type=selfstate
trigger1=time>=150
value=5050

;==========================================================================================
;==========================================================================================
; 相手-2
;==========================================================================================
;==========================================================================================

[statedef 2861]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=1

[state ]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state ]
type=lifeadd
trigger1=!time
value=ceil(-0.013*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state ]
type=changeanim2
trigger1=!time
value=2861

[state ]
type=screenbound
trigger1=1
value=1
movecamera=1

[state ] 
type=selfstate
trigger1=time>100
value=5100 

;==========================================================================================
;==========================================================================================
; 相手-2
;==========================================================================================
;==========================================================================================

[statedef 2862]
type=s
movetype=h
physics=n
velset=0,0
sprpriority=1

[state ]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
value=69996
ignorehitpause=1

[state ]
type=lifeadd
trigger1=!time
value=ceil(-0.005*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state ]
type=changeanim2
trigger1=!time
value=2861

[state ]
type=screenbound
trigger1=1
value=0
movecamera=0

[state ] 
type=selfstate
trigger1=time>100
value=5100 

;==========================================================================================
;==========================================================================================
;相手3
;==========================================================================================
;==========================================================================================

[statedef 2863]
type=a
movetype=h
physics=n
velset=-15,-6

[state ]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state ]
type=lifeadd
trigger1=!time
value=ceil(-0.05*const(data.life))
absolute=1
kill=0
ignorehitpause=1

[state ]
type=lifeset
trigger1=!time&&life<=lifemax*0.01
value=0
ignorehitpause=1

[state ]
type=changeanim
trigger1=!time
value= 5050

[state ]
type=changeanim
trigger1=!time
trigger1=animexist(5052) = 1
value=5052

[state ]
type=veladd
trigger1=1
y=0.3

[state ]
type=nothitby 
trigger1=1
value=sca

[state ]
type=changeanim
trigger1=time=15
trigger1=animexist(5061)=1
value= 5061

[state ]
type=changeanim
trigger1=time=15
trigger1=animexist(5062)=1
value=5062

[state ]
type=selfstate
trigger1=vel y>0&&pos y>=0
value= 5100

;==========================================================================================
;//////////////////////////////////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------------------
; スーパーアリエンキック(AI用)
;------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////////////////
;==========================================================================================

[statedef 1800]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0
sprpriority=7

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state ]
type=nothitby
triggerall=ishelper(3)
trigger1=animelemtime(7)<0||root,palno=6
value=sca
ignorehitpause=1

[state ]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=350

[state ]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1800
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=0
trigger2=animelemtime(9)=0
value=40,1
freqmul=0.8
volume=255
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=0
value=1200,6
freqmul=1.0
volume=255
ignorehitpause=1

[state ]
type=hitdef
trigger1=ishelper(3)
trigger1=animelem=9||animelem=10
attr=s,sa
animtype=hard
damage=15,4
hitflag=maf
guardflag=ha
getpower=150,150
givepower=6,6
pausetime=7,10
sparkno=s2835
guard.sparkno=s2855
sparkxy=-30,-70
hitsound=s225,1               
guardsound=s121,0  
ground.type=high
ground.slidetime=12
ground.hittime=13
ground.velocity=-5.5
air.velocity=-2.5,-4
envshake.time=6
envshake.ampl=6

[state ]
type=hitdef
trigger1=ishelper(3)
trigger1=animelem=11
attr=s,sa
damage=30,5
hitflag=maf
guardflag=ha
getpower=200,200
givepower=6,6
pausetime=12,12
sparkno=s2835
guard.sparkno=s2855
sparkxy=-30,-30
hitsound=s225,1                
guardsound=s121,0  
ground.type=trip
ground.slidetime=10
ground.hittime=15
ground.velocity=-1.0,20
air.velocity=-1.0,20
guard.velocity=-5
fall=1
envshake.time=6
envshake.ampl=6

[state ]
type=hitdef
trigger1=ishelper(3)
trigger1=animelemtime(7)<0
attr=s,st
hitflag=mafd
guardflag=m
priority=7,hit     
fall=1
damage=35,8
guard.pausetime=0,5
getpower=350,100
givepower=1,1
sparkno=s2835
guard.sparkno=s2855
sparkxy=-20,-100
hitsound=s225,1
guardsound=s120,0
p1sprpriority=1
p1facing=1
p2facing=1        
;p1stateno=2851 
p2stateno=1802
id=18000

[state ]
type=envcolor
triggerall=ishelper(3)
trigger1=animelemtime(7)<0
trigger1=movehit=1
time=1
value=250,250,250
under=1
ignorehitpause=1

[state ]
type=envshake
triggerall=ishelper(3)
trigger1=animelemtime(7)<0
trigger1=movehit=1
trigger2=animelemtime(3)=0
time=30-!animelemtime(3)*26
ampl=30-!animelemtime(3)*26
freq=120
phase=120
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(7)<0
trigger1=movehit=[1,2]
value=4000,40
freqmul=1.5
volume=255
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3) && 0
trigger1=animelemtime(3)=0
trigger2=animelemtime(4)=0
value=4000,50
freqmul=1.3
volume=255
ignorehitpause=1

[state ]
type=explod
triggerall=ishelper(3) && 1
trigger1=animelemtime(2)=0
anim=1073   ;1802
sprpriority=50
postype=p1
pos=20,0;pos=0,30
bindtime=-1
ownpal=1
ontop=1
ignorehitpause=1

[state ]
type=explod
triggerall=ishelper(3) && 0
trigger1=animelemtime(1)=0
anim=1802
sprpriority=50
postype=p1
pos=35,12
bindtime=-1
ownpal=1
ontop=1
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(3)
trigger1=numtarget(18000)
trigger1=target(18000),stateno=1802
trigger1=animelemtime(6)>=2
value=1801
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;//////////////////////////////////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------------------
; ポーズ
;------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////////////////
;==========================================================================================

[statedef 1801]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0
sprpriority=7

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=0

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state ]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1801
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(13)=0
value=4000,75
freqmul=1.0
volume=255
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
;相手
;==========================================================================================
;==========================================================================================

[statedef 1802]
type=a
movetype=h
physics=n
velset=0,0
sprpriority=1

[state ]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper
trigger1=!ishelper(3)
trigger2=!ishelper
trigger3=ishelper(3)
trigger3=root,palno=12
value=69996
ignorehitpause=1

[state ]
type=playsnd
trigger1=!time&&!ishelper
value=11,0
volume=255

[state ]
type=nothitby
trigger1=1
value=sca

[state ]
type=assertspecial
trigger1=time<=25
flag=invisible

[state ]
type=assertspecial
trigger1=1
flag=noshadow

[state ]
type=screenbound
trigger1=1
value=1
movecamera=1

[state ]
type=changeanim
trigger1=!time
value=5050

[state ]
type=velset
trigger1=!time
x=-100
y=-60

[state ]
type=veladd
trigger1=1
y=1.4

[state ]
type=lifeset
trigger1=vel y>0&&pos y>=0
value=life-(ceil(0.04*const(data.life)))

[state ]
type=envshake
trigger1=vel y>0&&pos y>=0
time=10
ampl=-8
freq=95
phase=95

[state ]
type=selfstate
trigger1=vel y>0&&pos y>=0
value=5100

;==========================================================================================
;//////////////////////////////////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------------------
; ハリケーンキック
;------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////////////////
;==========================================================================================

[statedef 1901]
type=s
movetype=a
physics=n
velset=0,0
juggle=5
ctrl=0
sprpriority=7

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state ]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=75+(root,palno=6)*48

[state ]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1901
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0&&!time
y=0
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(3)=0
value=1200,6
freqmul=1.0
volume=255
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
value=4000,77
freqmul=1.0
volume=255
ignorehitpause=1

[state ]
type=statetypeset
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
statetype=a
ignorehitpause=1

[state ]
type=veladd
triggerall=ishelper(3)
trigger1=animelemtime(4)>=0
y=0.38
ignorehitpause=1

[state ]
type=velset
triggerall=ishelper(3)
trigger1=animelemtime(4)=0
x=4
y=-8
ignorehitpause=1

[state ]
type=hitdef
trigger1=ishelper(3)
trigger1=animelem=5||animelem=8
attr=s,sa
animtype=hard
damage=10,4
hitflag=maf
guardflag=ha
getpower=25,10
givepower=6,6
pausetime=0,3
sparkno=s2835
guard.sparkno=s2855
sparkxy=-30,-70
hitsound=s225,1               
guardsound=s121,0  
ground.type=high
ground.slidetime=12
ground.hittime=13
ground.velocity=-4.5,-7
air.velocity=-2.5,-5
fall=1
air.fall=1
fall.recover=0
envshake.time=6
envshake.ampl=6

[state ]
type=null;envshake
triggerall=ishelper(3)
trigger1=animelemtime(7)<0
trigger1=movehit=1
trigger2=animelemtime(3)=0
time=30-!animelemtime(3)*26
ampl=30-!animelemtime(3)*26
freq=120
phase=120
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(3)
trigger1=vel y>0&&pos y>=0
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1902
ctrl=ishelper

;==========================================================================================
;//////////////////////////////////////////////////////////////////////////////////////////
;------------------------------------------------------------------------------------------
; 
;------------------------------------------------------------------------------------------
;//////////////////////////////////////////////////////////////////////////////////////////
;==========================================================================================

[statedef 1902]
type=s
movetype=a
physics=n
velset=0,0
juggle=0
ctrl=0
sprpriority=7

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=0

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=root,var(45)
value=970

[state ]
type=changeanim
trigger1=!time
trigger1=ishelper(3)
value=1902
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=pos y!=0
y=0
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; サムウェアホール
;==========================================================================================
;==========================================================================================

[statedef 1950]
type=a
movetype=a
physics=n
ctrl=0
juggle=0
velset=0,0
sprpriority=-2

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state ]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1950
ignorehitpause=1

[state ]
type=poweradd
triggerall=ishelper(3)
trigger1=!time
value=120-!root,var(15)*60
ignorehitpause=1

[state ]
type=nothitby
trigger1=ishelper(3)
value=sca
ignorehitpause=1

[state ]
type=trans
triggerall=ishelper(3)
trigger1=time<=14
trans=addalpha
alpha=250-time*19,time*19
ignorehitpause=1

[state ]
type=assertspecial
trigger1=ishelper(3)
trigger1=time>14
flag=invisible
ignorehitpause=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=1951
sprpriority=50
postype=p1
pos=0,0
bindtime=1
ontop=1
ownpal=1
ignorehitpause=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=1951
sprpriority=51
postype=p1
pos=0,0
bindtime=1
ontop=0
ownpal=1
trans=sub
ignorehitpause=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=1951
sprpriority=51
postype=p1
pos=0,0
bindtime=1
ontop=0
ownpal=1
trans=sub
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=6
value=4000,37
freqmul=1.2
volume=255
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=!animtime
trigger1=var(3)=608||var(3)=609
x=enemy,pos x
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=!animtime
trigger1=var(3)=50||var(3)=-50||var(3)=120||var(3)=-120
x=var(3)
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=1951

;==========================================================================================
;==========================================================================================
; 終了
;==========================================================================================
;==========================================================================================

[statedef 1951]
type=s
movetype=a
physics=n
ctrl=0
juggle=0
velset=0,0
sprpriority=-2

[state ]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=ishelper
trigger2=!ishelper(3)
trigger3=!numhelper(3)
value=69996
ignorehitpause=1

[state ]
type=selfstate
triggerall=ishelper(3)
trigger1=!root,var(45)
value=970

[state ]
type=changeanim
trigger1=ishelper(3)
trigger1=!time
value=1952
ignorehitpause=1

[state ]
type=nothitby
triggerall=ishelper(3)
trigger1=animelemtime(1)<4
value=sca
ignorehitpause=1

[state ]
type=trans
trigger1=ishelper(3)
trigger1=time<=15
trans=addalpha
alpha=time*20,250-time*20
ignorehitpause=1

[state ] 
type=turn
triggerall=ishelper(3)
trigger1=p2dist x<0 
value=1
ignorehitpause=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=1953
sprpriority=50
postype=p1
pos=0,0
bindtime=1
ontop=1
ownpal=1
ignorehitpause=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=1953
sprpriority=51
postype=p1
pos=0,0
bindtime=1
ontop=0
ownpal=1
trans=sub
ignorehitpause=1

[state ]
type=explod
triggerall=ishelper(3)
trigger1=!time
anim=1953
sprpriority=51
postype=p1
pos=0,0
bindtime=1
ontop=0
ownpal=1
trans=sub
ignorehitpause=1

[state ]
type=playsnd
triggerall=ishelper(3)
trigger1=animelemtime(1)=6
value=4000,37
freqmul=1.2
volume=255
ignorehitpause=1

[state ]
type=posset
triggerall=ishelper(3)
trigger1=!time
y=0
ignorehitpause=1

[state ]
type=posadd
triggerall=ishelper(3)
trigger1=!time
trigger1=var(3)=608||var(3)=609
x=ifelse(var(3)=608,-20,20)
ignorehitpause=1

[state ]
type=selfstate
trigger1=ishelper(3)
trigger1=!animtime
trigger1=!(var(3):=0)
trigger2=!ishelper
trigger2=numhelper(3)
trigger2=helper(3),stateno!=stateno
value=0
ctrl=ishelper

;==========================================================================================
;==========================================================================================
; emp
;==========================================================================================
;==========================================================================================

[statedef 69996]
type=s
movetype=i
physics=n
velset=0,0
sprpriority=1

[state 69996]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper(12)||ishelper(16)||ishelper(19)||ishelper(20)||ishelper(21)||ishelper(22)
value=2950+ishelper(16)+ishelper(19)*2+ishelper(20)*850+ishelper(21)*870+ishelper(22)*880
ignorehitpause=1

[state 69996]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper(13)||ishelper(14)||ishelper(15)||ishelper(17)||ishelper(18)
trigger2=ishelper(5)||ishelper(7)||ishelper(8)||ishelper(4)||ishelper(9)||ishelper(11)
trigger3=ishelper(10)||ishelper(6)
value=5150
ignorehitpause=1

[state 69996]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper(1)||ishelper(2)
value=152
ignorehitpause=1

[state 69996]
type=selfstate
triggerall=name="G-Mizuchi-v2"
trigger1=ishelper(3)
trigger2=!ishelper
value=0
ignorehitpause=1

[state 69996]
type=selfstate
triggerall=name!="G-Mizuchi-v2"
trigger1=!ishelper
value=50
ignorehitpause=1

[state 69996]
type=removeexplod
trigger1=name!="G-Mizuchi-v2"
id=-1
ignorehitpause=1

[state 69996]
type=destroyself
trigger1=1
ignorehitpause=1

[state 69996]
type=nothitby
trigger1=1
value=sca

[state 69996]
type=playerpush
trigger1=1
value=0

[state 69996]
type=screenbound
trigger1=1
value=0
movecamera=0

;==========================================================================================
;==========================================================================================
;==========================================================================================
;==========================================================================================



