
;==========================================================================================
;==========================================================================================
; 12P梡旘傃摴嬶-----僿儖僷乕摦嶌
;==========================================================================================
;==========================================================================================
;  仛儊儌仛
; 
;  ///anim斣崋///
;
;    6080       僗僼傿傾
;    6081       儈僘僠-媡偝
;    6082       儈僘僠-僟僂儞
;    6083       儈僘僠-婥愨
;    6084       拞娫-媡偝
;    6085       儖僈-嫮廝
;    6086       杣婲儀僈-棫偪
;    6087       孖摢儀僈-彑偪億乕僘
;    6088       僛儘仌儀僈曻洓嬺傜偄
;    6089       杚巘-暊捝
;    6090       僀僌僯僗
;    6091       崑婼?
;    6092       僆儘僠償僅乕儖
;
;
;==========================================================================================
;==========================================================================================

[statedef 6080]
type=a
movetype=a
physics=n
juggle=0
poweradd=0
velset=0,0
sprpriority=4
ctrl=0

[state 12PH]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=!(ishelper(6080)||ishelper(6081)||ishelper(6082)||ishelper(6083)||ishelper(6084))
value=69996
ignorehitpause=1

[state 12PH]
type=changeanim
trigger1=(var(2):=ifelse(ishelper(6084),12,random%12))*0
trigger2=anim!=stateno+var(2)
value=stateno+var(2)
persistent=0
ignorehitpause=1

[state 12PH]
type=explod
trigger1=!time
anim=1951
sprpriority=6
postype=p1
pos=0,0
under=1
ownpal=1
bindtime=1
scale=0.25,0.05
ignorehitpause=1
pausemovetime=9999999
supermovetime=9999999

[state 12PH]
type=playsnd
trigger1=!time
value=4000,73
freqmul=1.1
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=!time
value=4000,42
freqmul=1.2
volume=155
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=anim=6084
trigger1=!time
value=4000,82
freqmul=1.1
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=anim=6085
trigger1=!time||movecontact=1
value=4000,79
freqmul=1.1
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=anim=[6086,6087]
trigger1=!time
value=4000,85
freqmul=1.1
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=anim=6088
trigger1=!time
value=4000,83+random%2
freqmul=1.1
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=anim=6089
trigger1=!time
value=4000,86
freqmul=1.1
volume=255
ignorehitpause=1

[state 12PH]
type=envshake
trigger1=ishelper(6084)
trigger1=vel y>0&&pos y>=0
time=5
ampl=5
freq=90
phase=90
ignorehitpause=1

[state 12PH]
type=envshake
trigger1=ishelper(6084)
trigger1=time>=2&&(pos x<-160||pos x>160)
time=5
ampl=5
freq=90
phase=90
persistent=0
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=ishelper(6084)
trigger1=time>=2&&(pos x<-160||pos x>160)
value=4000,80
freqmul=0.9
volume=255
persistent=0
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=ishelper(6084)
trigger1=vel y>0&&pos y>=0
value=4000,80
freqmul=0.9
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=!ishelper(6084)
trigger1=vel y>0&&pos y>=0
value=121,0
freqmul=1.4
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=!ishelper(6084)
trigger1=time>=2&&(pos x<-160||pos x>160)
value=121,0
freqmul=1.4
volume=255
persistent=0
ignorehitpause=1

[state 12PH]
type=offset
trigger1=ishelper(6084)&&time>=2
y=-45
ignorehitpause=1

[state 12PH]
type=angleadd
trigger1=ishelper(6084)
value=-12
ignorehitpause=1

[state 12PH]
type=angledraw
trigger1=ishelper(6084)&&time<=15
scale=0.05+0.03*time,0.05+0.03*time
ignorehitpause=1

[state 12PH]
type=angledraw
trigger1=ishelper(6084)&&time>15
scale=0.5,0.5
ignorehitpause=1

[state 12PH]
type=angledraw
trigger1=!ishelper(6084)&&time<=30
scale=0.1+0.03*time,0.1+0.03*time
ignorehitpause=1

[state 12PH]
type=velset
trigger1=time=1
x=ifelse(ishelper(6080)||ishelper(6082),-2,2)
y=ifelse(ishelper(6082)||ishelper(6083)||ishelper(6084),-9-ishelper(6084)*5,-7)
ignorehitpause=1

[state 12PH]
type=velset
trigger1=time>=2&&roundstate<3
trigger1=(pos x<-160||pos x>160)
x=ifelse(pos x<-160,4*facing,-4*facing)
y=-3
ignorehitpause=1

[state 12PH]
type=veladd
trigger1=time
y=.5
ignorehitpause=1

[state 12PH]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 12PH]
type=hitoverride
trigger1=1
attr=sca,aa,ap,at
stateno=5950
ignorehitpause=1

[state 12PH]
type=assertspecial
trigger1=1
flag=noshadow
ignorehitpause=1

[state 12PH]
type=hitdef
trigger1=ishelper(6084)&&time=15
trigger2=!ishelper(6084)&&time=30
attr=a,na
animtype=hard
damage=ceil(enemy,lifemax*0.015)+5,10
getpower=150,150
givepower=150,150
guardflag=ma
pausetime=0,2
sparkno=s2830
guard.sparkno=s2850
sparkxy=0,0
hitsound=s225,1
guardsound=s120,0
ground.type=low
ground.slidetime=17
ground.hittime=17
ground.velocity=-1,0
air.velocity=-4,-5
fall.recover=0
envshake.time=ishelper(6084)*8
envshake.ampl=ishelper(6084)*8

[state 12PH]
type=changestate
trigger1=movecontact
trigger2=vel y>0&&pos y >=0
value=6081
ignorehitpause=1

[state 12PH]
type=destroyself
trigger1=time>120
ignorehitpause=1

;==========================================================================================
;==========================================================================================
; 挼偹曉傝-1
;==========================================================================================
;==========================================================================================

[statedef 6081]
type=a
physics=n
juggle=0
poweradd=0
velset=0,0
sprpriority=4
ctrl=0

[state 12PH]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=!(ishelper(6080)||ishelper(6081)||ishelper(6082)||ishelper(6083)||ishelper(6084))
value=69996
ignorehitpause=1

[state 12PH]
type=statetypeset
trigger1=vel y<=0
movetype=i
ignorehitpause=1

[state 12PH]
type=statetypeset
trigger1=vel y>0
movetype=a
ignorehitpause=1

[state 12PH]
type=envshake
trigger1=ishelper(6084)
trigger1=vel y>0&&pos y>=0
time=5
ampl=5
freq=90
phase=90
ignorehitpause=1

[state 12PH]
type=envshake
trigger1=ishelper(6084)
trigger1=time&&(pos x<-160||pos x>160)
time=5
ampl=5
freq=90
phase=90
persistent=0
ignorehitpause=1

[state 12PH]
type=offset
trigger1=ishelper(6084)
y=-45
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=anim=[6081,6083]
trigger1=movecontact=1
value=110,102
freqmul=1.1
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=ishelper(6084)
trigger1=vel y>0&&pos y>=0
value=4000,80
freqmul=0.9
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=ishelper(6084)
trigger1=time&&(pos x<-160||pos x>160)
value=4000,80
freqmul=0.9
volume=255
persistent=0
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=!ishelper(6084)
trigger1=vel y>0&&pos y >=0
value=121,0
freqmul=1.4
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=!ishelper(6084)
trigger1=time&&(pos x<-160||pos x>160)
value=121,0
freqmul=1.4
volume=255
persistent=0
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=anim=6084
trigger1=movecontact=1
value=4000,82
freqmul=1.1
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=anim=6085
trigger1=movecontact=1
value=4000,79
freqmul=1.1
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=anim=[6086,6087]
trigger1=movecontact=1
value=4000,85
freqmul=1.1
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=anim=6088
trigger1=movecontact=1
value=4000,83+random%2
freqmul=1.1
volume=255
ignorehitpause=1

[state 12PH]
type=playsnd
trigger1=anim=6089
trigger1=movecontact=1
value=4000,86
freqmul=1.1
volume=255
ignorehitpause=1

[state 12PH]
type=angleadd
trigger1=ishelper(6084)
value=-12
ignorehitpause=1

[state 12PH]
type=angledraw
trigger1=ishelper(6084)
scale=0.5,0.5
ignorehitpause=1

[state 12PH]
type=velset
trigger1=!time
x=-1+(random%3)
y=ifelse(ishelper(6084),-14,-7)+ifelse(roundstate<3,var(0),-7)
ignorehitpause=1

[state 12PH]
type=velset
trigger1=time&&roundstate<3
trigger1=(pos x<-160||pos x>160)
x=ifelse(pos x<-160,4*facing,-4*facing)
y=-7+var(0)
ignorehitpause=1

[state 12PH]
type=veladd
trigger1=time
y=.5
ignorehitpause=1

[state 12PH]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 12PH]
type=hitoverride
trigger1=1
attr=sca,aa,ap,at
stateno=5950
ignorehitpause=1

[state 12PH]
type=assertspecial
trigger1=1
flag=noshadow
ignorehitpause=1

[state 12PH]
type=hitdef
trigger1=!time&&var(1)<6+ishelper(6084)*12
trigger1=var(1):=var(1)+1||1
attr=a,na
animtype=hard
damage=ceil(enemy,lifemax*0.045)+10,5+ishelper(6084)*20
getpower=150,150
givepower=150,150
guardflag=ma
pausetime=0,1
sparkno=s2830
guard.sparkno=s2850
sparkxy=0,0
hitsound=s225,1
guardsound=s120,0
ground.type=low
ground.slidetime=17
ground.hittime=17
ground.velocity=-1,0
air.velocity=-4,-5
fall.recover=0
envshake.time=ishelper(6084)*8
envshake.ampl=ishelper(6084)*8

[state 12PH]
type=destroyself
trigger1=time>=120&&roundstate<3
ignorehitpause=1

[state 12PH]
type=changestate
trigger1=movecontact
value=stateno
ignorehitpause=1

[state 12PH]
type=changestate
trigger1=vel y>0&&pos y>=0
trigger1=var(0):=var(0)+1||1
value=ifelse(var(0)>3+ishelper(6084)*7&&roundstate<3,stateno+1,stateno)
ignorehitpause=1

;==========================================================================================
;==========================================================================================
; 挼偹曉傝-2
;==========================================================================================
;==========================================================================================

[statedef 6082]
type=s
movetype=i
physics=n
juggle=0
poweradd=0
sprpriority=4
ctrl=0

[state 12PH]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=!(ishelper(6080)||ishelper(6081)||ishelper(6082)||ishelper(6083)||ishelper(6084))
value=69996
ignorehitpause=1

[state 12PH]
type=angleadd
trigger1=0
value=-2
ignorehitpause=1

[state 12PH]
type=offset
trigger1=ishelper(6084)
y=-45
ignorehitpause=1

[state 12PH]
type=angledraw
trigger1=ishelper(6084)
scale=0.5,0.5
ignorehitpause=1

[state 12PH]
type=velset
trigger1=!time
trigger2=time>10
x=(vel x)*!time
y=0
ignorehitpause=1

[state 12PH]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 12PH]
type=hitoverride
trigger1=1
attr=sca,aa,ap,at
stateno=5950
ignorehitpause=1

[state 12PH]
type=assertspecial
trigger1=1
flag=noshadow
ignorehitpause=1

[state 12PH]
type=assertspecial
trigger1=time>10&&!(time%2)
flag=invisible
ignorehitpause=1

[state 12PH]
type=destroyself
trigger1=time>=30
ignorehitpause=1

;==========================================================================================
;==========================================================================================
; 12P梡-----僿儖僷乕摦嶌
;==========================================================================================
;==========================================================================================

[statedef 6050]
type=a
movetype=i
physics=n

[state 12PHT]
type=changestate
trigger1=name!="G-Mizuchi-v2"
trigger2=!ishelper(99)
value=69996
ignorehitpause=1

[state 12PHT]
type=changeanim
trigger1=1
value=6144
ignorehitpause=1

[state 12PHT]
type=screenbound
trigger1=1
value=0
movecamera=0
ignorehitpause=1

[state 12PHT]
type=pause
trigger1=1
time=0
movetime=0
ignorehitpause=1

[state 12PHT]
type=superpause
trigger1=1
time=0
movetime=0
darken=0
anim=-1
p2defmul=1
unhittable=0
ignorehitpause=1

[state 12PHT]
type=envcolor
trigger1=1
time=0
under=0
invertall=1
ignorehitpause=1

[state 12PHT]
type=bgpalfx
trigger1=1
time=99999
mul=240,240,240
invertall=0
ignorehitpause=1

[state 12PHT]
type=allpalfx
trigger1=1
time=99999
ignorehitpause=1

[state 12PHT]
type=posset
trigger1=1
x=root,pos x
y=9000000000
ignorehitpause=1

[state 12PHT]
type=nothitby
trigger1=1
value=sca
ignorehitpause=1

[state 12PHT]
type=hitoverride
trigger1=1
attr=sca,aa,ap,at
stateno=5950
ignorehitpause=1

[state 12PHT]
type=destroyself
trigger1=1
ignorehitpause=1
