
;昁嶦媄偺cns

;僔儏儚儖僣僼儗僀儉
[Statedef 1000]
type=U
movetype=U
physics=N
movehitpersist=1
hitdefpersist=1
[State ]
type=sprpriority
trigger1=!ishelper
value=1
ignorehitpause=1
[State ]
type=Ctrlset
trigger1=!ishelper
value=0
ignorehitpause=1
[State ]
type=LifeSet
trigger1=name!="Kain"
value=0
ignorehitpause=1
[State ]
type=ChangeState
trigger1=!alive
trigger2=name!="Kain"
value=5150
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=A
physics=N
ignorehitpause=1
[State ]
type=changeanim
triggerall=name="Kain"
triggerall=!ishelper
trigger1=Anim!=1000
value=1000
ignorehitpause=1
[State ]
type=Posset
trigger1=!ishelper
y=0
ignorehitpause=1
[State ]
type=velset
triggerall=name="Kain"
triggerall=!ishelper
trigger1=Anim!=1000
x=0
y=0
ignorehitpause=1
[State ]
type=NotHitby
triggerall=!ishelper
trigger1=AnimElem=1
time=30
value=SCA
[State ]
type=PowerAdd
triggerall=!ishelper
trigger1=Animelem=1
value=180
[State ]
type=velset
triggerall=!ishelper
trigger1=AnimElem=12,=1
x=-3
[State ]
type=Projectile
triggerall=!ishelper
trigger1=AnimElem=10
projanim=6062
projscale=1,1
projhits=1
guardflag=MA
projID=1005
projremovetime=-1
projsprpriority=1
projheightbound=-500,500
projedgebound=500
projstagebound=500
offset=0,-50
velocity=6
attr=S,SP
hitflag=MAF
hitsound=-1
ground.hittime=21
ground.slidetime=21
ground.velocity=-11,-3
pasusetime=14,21
hitsound=S1,0
guardsound=S3,1
animtype=Hard
ground.type=High
ground.slidetime=20
ground.hittime=22
guard.slidetime=20
guard.hittime=22
guard.velocity=-6
ground.velocity=-6
damage=60+random%5+palno,10+random%5+palno
priority=7,hit
projpriority=99999999999
sparkno=S-1
guard.sparkno=S8010
fall=1
fall.recover=0
fall.damage=10
palfx.time=28
palfx.invertall=1 
palfx.mul=142,142,142
palfx.sinadd=88,88,88,14
palfx.add=80,30,180
palfx.color=1
supermovetime=9999999999999
pausemovetime=9999999999999
ignorehitpause=1
[State ]
type=Projectile
triggerall=!ishelper
trigger1=AnimElem=10
projanim=6064
projscale=1,1
projhits=1
guardflag=M
projID=1010
projremovetime=-1
projsprpriority=1
projheightbound=-500,500
projedgebound=500
projstagebound=500
offset=20,-50
velocity=3,-3
attr=S,SP
hitflag=MAF
hitsound=S1,0
guardsound=S3,1
ground.slidetime=20
ground.hittime=22
guard.slidetime=20
guard.hittime=22
guard.velocity=-6
ground.velocity=-6
pasusetime=14,21
damage=60
priority=7,hit
projpriority=99999999999
animtype=heavy
sparkno=S-1
guard.sparkno=S8010
fall=1
fall.recover=0
fall.damage=1
palfx.time=28
palfx.invertall=1 
palfx.mul=142,142,142
palfx.sinadd=88,88,88,14
palfx.add=80,30,180
palfx.color=1
supermovetime=9999999999999
pausemovetime=9999999999999
ignorehitpause=1
[state ]
type=Reversaldef
triggerall=!ishelper
trigger1=AnimElem=17
trigger2=AnimElem=18
trigger3=AnimElem=19
reversal.attr=SCA,AA,AT,AP
priority=9999999999999999999999999999999
pausetime=0,10
p2stateno=830
sparkno=-1
guard.sparkno=-1
ignorehitpause=1
[State ]
type=Targetlifeadd
triggerall=!ishelper
triggerall=numtarget
trigger1=enemynear,movetype!=H
value=-5
absolute=1
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=10
value=1000, 0
chanel=0
ignorehitpause=1
[State ]
type=Explod
triggerall=!ishelper
trigger1=AnimElem=12
anim=6060
id=6060
sprpriority=3
postype=p1
pos=0,0
bindtime=1
ignorehitpause=0
removeongethit=1
scale=1,1
under=0
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=1
value=0,5
channel=4
[State ]
type=SelfState
triggerall=!ishelper
trigger1=AnimTime=0
value=105
ctrl=1
;---------------------------------------------------------------------------
;僔儏儚儖僣儔儞僣僃
[Statedef 1200]
type=U
movetype=U
physics=N
movehitpersist=1
hitdefpersist=1
[State ]
type=sprpriority
trigger1=!ishelper
value=2
ignorehitpause=1
[State ]
type=Ctrlset
trigger1=!ishelper
value=0
ignorehitpause=1
[State ]
type=LifeSet
trigger1=name!="Kain"
value=0
ignorehitpause=1
[State ]
type=ChangeState
trigger1=!alive
trigger2=name!="Kain"
value=5150
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=A
physics=N
ignorehitpause=1
[State ]
type=changeanim
triggerall=name="Kain"
triggerall=!ishelper
trigger1=Anim!=1220
value=1220
ignorehitpause=1
[State ]
type=posset
trigger1=!ishelper
y=0
ignorehitpause=1
[State ]
type=NotHitby
trigger1=!ishelper
trigger1=AnimElem=1
time=10
value=SCA
ignorehitpause=1
[State ]
type=velset
trigger1=AnimElem=1
x=3
ignorehitpause=1
[State ]
type=PlaySnd
trigger1=AnimElem=7
value=0,7
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
trigger1=AnimElem=5
value=1200, 0
channel=0
ignorehitpause=1
[State ]
type=Explod
trigger1=AnimElem=7
anim=6065
postype=p1
pos=0,0
sprpriority=0
ownpal=1
bindtime=1
shadow=0
vel=0,0
removeongethit=1
scale=1.3,1.2
ID=6065
ignorehitpause=1
[State ]
type=HitDef
trigger1=AnimElem=7
attr=,SA
animtype=Up
id=1220
damage=120,18
hitflag=MAF
guardflag=M
priority=7,Hit
pausetime=13,21
sparkno=S6040
guard.sparkno=S8000
sparkxy=-10,-51
hitsound=S1,0
getpower=50,20
givepower=50,50
guardsound=S3,1
ground.type=Low
ground.slidetime=20
ground.hittime =20
guard.slidetime=20
guard.hittime=26
guard.velocity=11
ground.velocity=-2,-9
air.type=Low
air.velocity=-2,-9
guard.cornerpush.veloff=5
fall=1
fall.recover=1
fall.damage=24
palfx.time=42
palfx.invertall=1 
palfx.mul=142,142,142
palfx.sinadd=88,88,88,14
palfx.add=80,30,180
palfx.color=1
[State ]
type=HitDef
trigger1=AnimElem=8
attr=,SA
animtype=Up
id=1220
damage=61,14
hitflag=MA
guardflag=M
priority=6, Hit
pausetime=13,21
sparkno=S6040
guard.sparkno=S8000
sparkxy=-10, -51
hitsound  =S1, 0
getpower=50,20
givepower=50,50
guardsound=S3, 1
ground.type=Low
ground.slidetime=20
ground.hittime =20
guard.slidetime=20
guard.hittime=26
guard.velocity=11
ground.velocity=-2,-9
air.type=Low
air.velocity=-2,-9
guard.cornerpush.veloff=5
fall=1
fall.recover=1
fall.damage=14
palfx.time=42
palfx.invertall=1 
palfx.mul=142,142,142
palfx.sinadd=88,88,88,14
palfx.add=80,30,180
palfx.color=1
[State ]
type=Projectile
triggerall=!ishelper
trigger1=enemynear,stateno=[120,155]
projanim=12201220
projscale=1,1
projhits=1
guardflag=MA
projID=12201220
projremovetime=1
projsprpriority=1
projheightbound=-500,500
projedgebound=500
projstagebound=500
offset=30,0
velocity=0
attr=S,SP
hitflag=MAF
hitsound=-1
damage=1,2
pasusetime=14,21
fall.damage=20
priority=7,hit
projpriority=99999999999
animtype=heavy
sparkno=-1
guard.sparkno=-1
supermovetime=9999999999999
pausemovetime=9999999999999
ignorehitpause=1
[State ]
type=Selfstate
trigger1=!ishelper
trigger1=AnimTime=0
trigger1=moveguarded
value=1280
ignorehitpause=1
[State ]
type=SelfState
trigger1=AnimTime=0
value=100
ctrl=1
ignorehitpause=1
;------------------------------------------
; 傾僔僗僩丗僌儔儞僩
[Statedef 195]
type=U
movetype=U
physics=N
movehitpersist=1
hitdefpersist=1
[State ]
type=Selfstate
trigger1=numhelper(9632)
trigger2=enemynear,pos Y !=0
value=ifelse(numhelper(9635)=1,197,196)
ignorehitpause=1
[State ]
type=sprpriority
trigger1=!ishelper
value=1
ignorehitpause=1
[State ]
type=Ctrlset
trigger1=!ishelper
value=0
ignorehitpause=1
[State ]
type=LifeSet
trigger1=name!="Kain"
value=0
ignorehitpause=1
[State ]
type=SelfState
trigger1=!alive
trigger2=name!="Kain"
value=5150
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=I
physics=S
ignorehitpause=1
[State ]
type=changeanim
triggerall=!ishelper
trigger1=Anim!=195
value=195
ignorehitpause=1
[State ]
type=NotHitby
trigger1=!ishelper
time=2
value=SCA
[State ]
type=Playsnd
trigger1=AnimElem=1
value=0,ifelse(random>500,1,0)
ignorehitpause=1
[State ]
type=Helper
triggerall=!ishelper
triggerall=!numhelper(9632)
trigger1=AnimElem=1
ID=9632
name="grant-1"
postype=p2
pos=-60,0
stateno=9632
ownpal=1
helpertype=normal
size.xscale=0.97
size.yscale=1.1
sprpriority=7
ignorehitpause=1
[State ]
type=SelfState
trigger1=AnimTime=0
value=ifelse(random>500,100,105)
ctrl=1
ignorehitpause=1
;---------------------------------------------------------------------------
;傾僔僗僩丒儘僢僋
[Statedef 196]
type=U
movetype=U
physics=N
movehitpersist=1
hitdefpersist=1
[State ]
type=sprpriority
trigger1=!ishelper
value=1
ignorehitpause=1
[State ]
type=Ctrlset
trigger1=!ishelper
value=0
ignorehitpause=1
[State ]
type=LifeSet
trigger1=name!="Kain"
value=0
ignorehitpause=1
[State ]
type=SelfState
trigger1=!alive
trigger2=name!="Kain"
value=5150
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=I
physics=S
ignorehitpause=1
[State ]
type=changeanim
triggerall=!ishelper
trigger1=Anim!=195
value=195
ignorehitpause=1
[State ]
type=NotHitby
trigger1=!ishelper
time=2
value=SCA
[State ]
type=Playsnd
trigger1=AnimElem=1
value=0,ifelse(random>500,1,0)
ignorehitpause=1
[State ]
type=Helper
triggerall=!ishelper
triggerall=!numhelper(9635)
trigger1=AnimElem=1
ID=9635
name="Kaede"
postype=p1
helpertype=normal
pos=-60,0
stateno=9635
ownpal=1
size.xscale=1
size.yscale=0.95
sprpriority=4
ignorehitpause=1
[State ]
type=SelfState
trigger1=AnimTime=0
value=ifelse(random>500,100,105)
ctrl=1
ignorehitpause=1
;---------------------------------------------------------------------------
; 傾僔僗僩丒僛乕儗
[Statedef 197]
type=U
movetype=U
physics=N
movehitpersist=1
hitdefpersist=1
[State ]
type=sprpriority
trigger1=!ishelper
value=1
ignorehitpause=1
[State ]
type=Ctrlset
trigger1=!ishelper
value=0
ignorehitpause=1
[State ]
type=LifeSet
trigger1=name!="Kain"
value=0
ignorehitpause=1
[State ]
type=SelfState
trigger1=!alive
trigger2=name!="Kain"
value=5150
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=I
physics=S
ignorehitpause=1
[State ]
type=changeanim
triggerall=!ishelper
trigger1=Anim!=195
value=195
ignorehitpause=1
[State ]
type=NotHitby
trigger1=!ishelper
time=2
value=SCA
[State ]
type=Playsnd
trigger1=AnimElem=1
value=0,ifelse(random>500,1,0)
ignorehitpause=1
[State ]
type=Helper
triggerall=!ishelper
triggerall=!numhelper(1801)
trigger1=AnimElem=1
ID=1801
name="jirai"
postype=p1
pos=30,-40
stateno=1801
ownpal=1
helpertype=player
size.xscale=1
size.yscale=0.95
sprpriority=4
ignorehitpause=1
[State ]
type=SelfState
trigger1=AnimTime=0
value=100
ctrl=1
ignorehitpause=1

;------------------------------------------------

;旘墠摤晳

[Statedef 1280]
type=U
movetype=U
physics=S
movehitpersist=1
hitdefpersist=1
[State ]
type=sprpriority
trigger1=!ishelper
value=1
ignorehitpause=1
[State ]
type=Ctrlset
trigger1=!ishelper
value=0
ignorehitpause=1
[State ]
type=LifeSet
trigger1=name!="Kain"
value=0
ignorehitpause=1
[State ]
type=ChangeState
trigger1=!alive
trigger2=name!="Kain"
value=5150
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=A
physics=S
ignorehitpause=1
[State ]
type=changeanim
triggerall=name="Kain"
triggerall=!ishelper
trigger1=Anim!=280
value=280
ignorehitpause=1
[State ]
type=NotHitby
triggerall=!ishelper
trigger1=Time=0
time=3
value=SCA,AP
[State ]
type=NotHitby
triggerall=!ishelper
trigger1=Time=0
time=30
value=SCA,AT
[State ]
type=PowerAdd
triggerall=!ishelper
trigger1=Animelem=1
value=100
ignorehitpause=1
[State ]
type=velset
trigger1=!ishelper
x=3.5
ignorehitpause=1
[State ]
type=veladd
trigger1=!ishelper
trigger1=AnimElem=46
x=30
ignorehitpause=1
[State ]
type=Turn
triggerall=!ishelper
triggerall=AnimElem=1
trigger1=pos x < enemynear,pos x &&facing=-1
trigger2=enemynear,pos x < pos x &&facing=1
ignorehitpause=1

[State ]
type=HitDef
trigger1=!ishelper
trigger1=AnimElem=8
attr=S,SA
animtype=Hard
damage=15+random%3,7+random%5 
hitflag=MAF
guardflag=M
pausetime=11+random%4,22
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,7
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=19
ground.hittime=20
ground.velocity=-6.5
air.type=Low
air.velocity=-4,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9

[State ]
type=HitDef
trigger1=!ishelper
trigger1=AnimElem=17
attr=S,SA
animtype=Hard
damage=15+random%3,7+random%5 
hitflag=MAF
guardflag=M
pausetime=10+random%4,25
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,7
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=19
ground.hittime=20
ground.velocity=-4.5,-2
air.type=Low
air.velocity=-4,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9

[State ]
type=HitDef
trigger1=!ishelper
trigger1=AnimElem=27
attr=S,SA
animtype=Hard
damage=15+random%3,7+random%5 
hitflag=MAFD
guardflag=M
pausetime=11+random%4,21
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,7
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=60
ground.hittime=60
ground.velocity=-4.5,-2
air.type=Low
air.velocity=-4,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9

[State ]
type=HitDef
trigger1=!ishelper
trigger1=AnimElem=36
attr=C,SA
animtype=Hard
damage=15+random%3,7+random%5 
hitflag=MAFD
guardflag=M
pausetime=11+random%4,25
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-25
hitsound=S2,7
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=19
ground.hittime=20
ground.velocity=-5.5,-2
air.type=Low
air.velocity=-4,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9

[State ]
type=HitDef
trigger1=!ishelper
trigger1=AnimElem=49
attr=S,NA
animtype=Hard
damage=45,15
hitflag=MAFD
guardflag=M
pausetime=10+random%4,20
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,8
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=19
ground.hittime=20
ground.velocity=-5.5,-2
air.type=Low
air.velocity=-4,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9
p2stateno=830


[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=6
value=0,1
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=15
value=0,1
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=26
value=0,2
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=35
value=0,3
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=46
value=0,9
channel=4
ignorehitpause=1
[State ]
type=SelfState
triggerall=!ishelper
trigger1=AnimTime=0
trigger1=moveguarded
value=1200
ignorehitpause=1
[State ]
type=SelfState
triggerall=!ishelper
trigger1=AnimTime=0
trigger1=movecontact
value=105
ignorehitpause=1
[State ]
type=SelfState
triggerall=!ishelper
trigger1=AnimTime=0
trigger1=movecontact
trigger1=power>=2000
value=3550
ignorehitpause=1
[State ]
type=SelfState
triggerall=!ishelper
trigger1=AnimTime=0
value=ifelse(random>500,100,105)
ctrl=1
ignorehitpause=1

;---------------------------------

;旘墠摤晳丒擉

[Statedef 1284]
type=U
movetype=U
physics=S
movehitpersist=1
hitdefpersist=1
[State ]
type=sprpriority
trigger1=!ishelper
value=1
ignorehitpause=1
[State ]
type=Ctrlset
trigger1=!ishelper
value=0
ignorehitpause=1
[State ]
type=LifeSet
trigger1=name!="Kain"
value=0
ignorehitpause=1
[State ]
type=ChangeState
trigger1=!alive
trigger2=name!="Kain"
value=5150
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=A
physics=S
ignorehitpause=1
[State ]
type=changeanim
triggerall=name="Kain"
triggerall=!ishelper
trigger1=Anim!=284
value=284
ignorehitpause=1
[State ]
type=NotHitby
triggerall=!ishelper
trigger1=Time=0
time=3
value=SCA,AP
[State ]
type=NotHitby
triggerall=!ishelper
trigger1=Time=0
time=30
value=SCA,AT
[State ]
type=PowerAdd
triggerall=!ishelper
trigger1=Animelem=1
value=100
ignorehitpause=1
[State ]
type=velset
trigger1=!ishelper
x=2.5
ignorehitpause=1
[State ]
type=Turn
triggerall=!ishelper
triggerall=AnimElem=1
trigger1=pos x < enemynear,pos x &&facing=-1
trigger2=enemynear,pos x < pos x &&facing=1
ignorehitpause=1
[State ]
type=HitDef
triggerall=!ishelper
trigger1=AnimElem=6
attr=S,SA
animtype=Hard
damage=31+random%3,7+random%5 
hitflag=MAFD
guardflag=M
pausetime=10+random%4,24
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,7
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=19
ground.hittime=20
ground.velocity=-6.5
air.type=Low
air.velocity=-4,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9

[State ]
type=HitDef
triggerall=!ishelper
trigger1=AnimElem=16
attr=A,SA
animtype=Hard
damage=30+random%3,7+random%5 
hitflag=MAFD
guardflag=M
pausetime=10+random%4,24
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,7
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=19
ground.hittime=20
ground.velocity=-6.5
air.type=Low
air.velocity=-4,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9


[State ]
type=HitDef
triggerall=!ishelper
trigger1=AnimElem=27
attr=S,SA
animtype=Hard
damage=33+random%3,7+random%5 
hitflag=MAFD
guardflag=M
pausetime=9+random%4,25
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,7
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=23
ground.hittime=25
ground.velocity=-6.5,-2
air.type=Low
air.velocity=-4,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9

[State ]
type=HitDef
trigger1=!ishelper
trigger1=AnimElem=38
attr=S,SA
animtype=up
damage=55,15
hitflag=MAFD
guardflag=M
pausetime=10+random%4,26
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,8
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=19
ground.hittime=20
ground.velocity=-2.5,-8
air.type=High
air.velocity=-4,-8
fall=1
fall.recover=0
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9


[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=5
value=0,0
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=15
value=0,2
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=27
value=0,1
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=36
value=0,13
channel=4
ignorehitpause=1
[State ]
type=SelfState
triggerall=!ishelper
trigger1=AnimTime=0
trigger1=movehit
trigger1=power>=5000
trigger1=random<40*var(9)
value=3400
ignorehitpause=1
[State ]
type=SelfState
triggerall=!ishelper
trigger1=AnimTime=0
trigger1=movecontact
trigger1=power>=2000
trigger1=random<60*var(9)
value=3550
ignorehitpause=1
[State ]
type=Selfstate
triggerall=!ishelper
trigger1=AnimTime=0
trigger1=movecontact
trigger1=power>=1000
trigger1=random<60*var(9)
value=3100
ignorehitpause=1
[State ]
type=SelfState
triggerall=!ishelper
trigger1=AnimTime=0
trigger1=random<120*var(9)
value=1000
ignorehitpause=1
[State ]
type=SelfState
triggerall=!ishelper
trigger1=AnimTime=0
value=ifelse(random>500,100,105)
ctrl=1
ignorehitpause=1
;-------------------------------------------

;旘墠摤晳丒嶲

[Statedef 1285]
type=U
movetype=U
physics=S
movehitpersist=1
hitdefpersist=1
[State ]
type=sprpriority
trigger1=!ishelper
value=1
ignorehitpause=1
[State ]
type=Ctrlset
trigger1=!ishelper
value=0
ignorehitpause=1
[State ]
type=LifeSet
trigger1=name!="Kain"
value=0
ignorehitpause=1
[State ]
type=ChangeState
trigger1=!alive
trigger2=name!="Kain"
value=5150
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=A
physics=S
ignorehitpause=1
[State ]
type=changeanim
triggerall=name="Kain"
triggerall=!ishelper
trigger1=Anim!=285
value=285
ignorehitpause=1
[State ]
type=NotHitby
triggerall=!ishelper
trigger1=Time=0
time=3
value=SCA,AP
[State ]
type=NotHitby
triggerall=!ishelper
trigger1=Time=0
time=30
value=SCA,AT

[State ]
type=PowerAdd
triggerall=!ishelper
trigger1=Animelem=1
value=100
ignorehitpause=1
[State ]
type=velset
trigger1=!ishelper
x=2.85
ignorehitpause=1

[State ]
type=veladd
trigger1=!ishelper
trigger1=AnimElem=20
x=15
ignorehitpause=1

[State ]
type=Turn
triggerall=!ishelper
triggerall=AnimElem=1
trigger1=pos x < enemynear,pos x &&facing=-1
trigger2=enemynear,pos x < pos x &&facing=1
ignorehitpause=1

[State ]
type=HitDef
triggerall=!ishelper
trigger1=AnimElem=8
attr=S,SA
animtype=Hard
damage=31+random%3,7+random%5 
hitflag=MAF
guardflag=M
pausetime=10+random%4,21
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,7
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=19
ground.hittime=20
ground.velocity=-6.5
air.type=Low
air.velocity=-4,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9

[State ]
type=HitDef
triggerall=!ishelper
trigger1=AnimElem=15
attr=S,SA
animtype=up
damage=30+random%3,7+random%5 
hitflag=MAF
guardflag=M
pausetime=11+random%4,24
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,7
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=19
ground.hittime=20
ground.velocity=-6.5,-8
fall=1
fall.recover=0
air.type=Low
air.velocity=-4,-6
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9


[State ]
type=HitDef
triggerall=!ishelper
trigger1=AnimElem=28
attr=S,SA
animtype=Hard
damage=33+random%3,7+random%5 
hitflag=MAF
guardflag=M
pausetime=10+random%4,24
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,7
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=23
ground.hittime=25
ground.velocity=-3.5,-1
air.type=Low
air.velocity=-2,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9

[State ]
type=HitDef
triggerall=!ishelper
trigger1=AnimElem=39
trigger2=AnimElem=40
trigger3=AnimElem=41
attr=A,SA
animtype=up
damage=55,15
hitflag=MAF
guardflag=M
pausetime=11+random%4,23
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,8
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=19
ground.hittime=20
ground.velocity=-1.5,-8
air.type=High
air.velocity=-2,-8
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9


[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=5
value=0,0
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=15
value=0,2
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=27
value=0,1
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=36
value=0,13
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=39
value=10004,0
channel=4
ignorehitpause=1
[State ]
type=SelfState
triggerall=!ishelper
trigger1=AnimTime=0
value=ifelse(random>500,100,105)
ctrl=1
ignorehitpause=1


;-------------------------------------------

;旘墠捘壺

[Statedef 1286]
type=U
movetype=U
physics=S
movehitpersist=1
hitdefpersist=1
[State ]
type=sprpriority
trigger1=!ishelper
value=1
ignorehitpause=1
[State ]
type=Ctrlset
trigger1=!ishelper
value=0
ignorehitpause=1
[State ]
type=LifeSet
trigger1=name!="Kain"
value=0
ignorehitpause=1
[State ]
type=ChangeState
trigger1=!alive
trigger2=name!="Kain"
value=5150
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=A
physics=S
ignorehitpause=1
[State ]
type=changeanim
triggerall=name="Kain"
triggerall=!ishelper
trigger1=Anim!=286
value=286
ignorehitpause=1

[State ]
type=NotHitby
triggerall=!ishelper
trigger1=Time=0
time=3
value=SCA,AA,AP

[State ]
type=PowerAdd
triggerall=!ishelper
trigger1=Animelem=1
value=100
ignorehitpause=1

[State ]
type=Turn
triggerall=!ishelper
triggerall=AnimElem=1
trigger1=pos x < enemynear,pos x &&facing=-1
trigger2=enemynear,pos x < pos x &&facing=1
ignorehitpause=1

[State ]
type=HitDef
triggerall=!ishelper
trigger1=AnimElem=4
trigger2=AnimElem=5
trigger3=AnimElem=6
attr=A,SA
animtype=Hard
damage=31+random%3,7+random%5 
hitflag=MA
guardflag=M
pausetime=6+random%4,12
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-65
hitsound=S2,7
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=19
ground.hittime=20
ground.velocity=-6.5
air.type=Low
air.velocity=-4,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9

[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=5
value=0,13
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=5
value=10004,0
channel=4
ignorehitpause=1
[State ]
type=SelfState
triggerall=!ishelper
trigger1=AnimTime=0
value=0
ctrl=1
ignorehitpause=1

;--------------------------------

;旘墠暁掍

[Statedef 1288]
type=U
movetype=U
physics=S
movehitpersist=1
hitdefpersist=1
[State ]
type=sprpriority
trigger1=!ishelper
value=1
ignorehitpause=1
[State ]
type=Ctrlset
trigger1=!ishelper
value=0
ignorehitpause=1
[State ]
type=LifeSet
trigger1=name!="Kain"
value=0
ignorehitpause=1
[State ]
type=ChangeState
trigger1=!alive
trigger2=name!="Kain"
value=5150
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=A
physics=S
ignorehitpause=1
[State ]
type=changeanim
triggerall=name="Kain"
triggerall=!ishelper
trigger1=Anim!=288
value=288
ignorehitpause=1
[State ]
type=NotHitby
triggerall=!ishelper
trigger1=AnimElem=1
time=5
value=SCA,AA,AP
[State ]
type=NotHitby
trigger1=!ishelper
time=15
value=SCA,AT
[State ]
type=PowerAdd
triggerall=!ishelper
trigger1=AnimElem=1
trigger2=AnimElem=2
value=200
ignorehitpause=1
[State ]
type=Turn
triggerall=!ishelper
triggerall=AnimElem=1
trigger1=pos x < enemynear,pos x &&facing=-1
trigger2=enemynear,pos x < pos x &&facing=1
ignorehitpause=1
[State ]
type=HitDef
triggerall=!ishelper
trigger1=AnimElem=3
trigger2=AnimElem=8
trigger3=AnimElem=11
attr=C,SA
animtype=Hard
damage=31+random%3,7+random%5 
hitflag=MAFDL
guardflag=M
pausetime=6+random%4,23
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-20
hitsound=S2,2
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=30
ground.hittime=30
ground.velocity=-1.5
air.type=Low
air.velocity=-4,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9

[State ]
type=HitDef
triggerall=!ishelper
trigger1=AnimElem=19
attr=C,SA
animtype=Hard
damage=61+random%3,7+random%5 
hitflag=MAD
guardflag=M
pausetime=11+random%4,20
sparkno=S7010
guard.sparkno=S8000
sparkxy=-10,-20
hitsound=S2,3
getpower=35,10
givepower=30,30
fall.damage=10
guardsound=S3,1
ground.type=High
ground.slidetime=25
ground.hittime=28
ground.velocity=-9.5
air.type=Low
air.velocity=-9,-3
ground.cornerpush.veloff=-9
guard.cornerpush.veloff=-9

[State ]
type=Velset
triggerall=!ishelper
trigger1=AnimElem=19
x=12
ignorehitpause=1

[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=3
trigger2=AnimElem=8
trigger3=AnimElem=11
value=0,ifelse(random>500,0,1)
channel=4
ignorehitpause=1
[State ]
type=PlaySnd
triggerall=!ishelper
trigger1=AnimElem=19
value=0,ifelse(random>500,2,3)
channel=4
ignorehitpause=1
[State ]
type=SelfState
triggerall=!ishelper
trigger1=AnimTime=0
value=100
ctrl=1
ignorehitpause=1


;-------------------------

;旘墠揝捚
[Statedef 1291]
type=U
movetype=U
physics=N
movehitpersist=1
hitdefpersist=1
[State ]
type=sprpriority
trigger1=!ishelper
value=1
ignorehitpause=1
[State ]
type=Ctrlset
trigger1=!ishelper
value=0
ignorehitpause=1
[State ]
type=LifeSet
trigger1=name!="Kain"
value=0
ignorehitpause=1
[State ]
type=SelfState
trigger1=!alive
trigger2=name!="Kain"
value=5150
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=A
physics=N
ignorehitpause=1
[State ]
type=changeanim
triggerall=name="Kain"
triggerall=!ishelper
trigger1=Anim!=295
value=295
ignorehitpause=1
[State ]
type=NotHitby
trigger1=!ishelper
time=5
value=SCA
[State ]
type=Turn
triggerall=!ishelper
triggerall=AnimElem=1
trigger1=pos x < enemynear,pos x &&facing=-1
trigger2=enemynear,pos x < pos x &&facing=1
ignorehitpause=1
[State ]
type=Velset
trigger1=!ishelper
x=0
ignorehitpause=1
[State ]
type=Projectile
triggerall=!ishelper
trigger1=AnimElem=10
projanim=6080
projremove=0
projscale=1,1
projhits=1
projID=9876
projremovetime=-1
projsprpriority=1
projheightbound=-500,500
projedgebound=500
projstagebound=500
offset=65,-380
velocity=0,20
pausetime=2,6
Accel=0,1
attr=S,SP
hitflag=MAF
hitsound=-1
damage=150
priority=7,hit
projpriority=99999999999
animtype=heavy
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10,-5
hitsound=S3000,7
fall=1
fall.rocover=0
yaccel=99999999999999999
guardsound=S3,1
ground.type=High
ground.slidetime=25
ground.hittime=25
guard.slidetime=20
guard.hittime=22
ground.velocity=-2
air.type=High
air.velocity=-3,-6
air.fall=1
ground.cornerpush.veloff = 0
guard.cornerpush.veloff = 0
supermovetime=9999999999999
pausemovetime=9999999999999
ignorehitpause=1

[State ]
type=Projectile
triggerall=!ishelper
trigger1=AnimElem=10
projanim=6080
projremove=0
projscale=1,1
projhits=1
projID=9876
projremovetime=-1
projsprpriority=1
projheightbound=-500,500
projedgebound=500
projstagebound=500
offset=145,-400
velocity=0,20
pausetime=2,6
Accel=0,1
attr=S,SP
hitflag=MAF
hitsound=-1
damage=150
priority=7,hit
projpriority=99999999999
animtype=heavy
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10,-5
hitsound=S3000,7
fall=1
fall.rocover=0
yaccel=99999999999999999
guardsound=S3,1
ground.type=High
ground.slidetime=25
ground.hittime=25
guard.slidetime=20
guard.hittime=22
ground.velocity=-2
air.type=High
air.velocity=-3,-6
air.fall=1
ground.cornerpush.veloff = 0
guard.cornerpush.veloff = 0
supermovetime=9999999999999
pausemovetime=9999999999999
ignorehitpause=1

[State ]
type=Projectile
triggerall=!ishelper
trigger1=AnimElem=10
projanim=6080
projremove=0
projscale=1,1
projhits=1
projID=9876
projremovetime=-1
projsprpriority=1
projheightbound=-500,500
projedgebound=500
projstagebound=500
offset=205,-440
velocity=0,20
pausetime=2,6
Accel=0,1
attr=S,SP
hitflag=MAF
hitsound=-1
damage=150
priority=7,hit
projpriority=99999999999
animtype=heavy
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10,-5
hitsound=S3000,7
fall=1
fall.rocover=0
yaccel=99999999999999999
guardsound=S3,1
ground.type=High
ground.slidetime=25
ground.hittime=25
guard.slidetime=20
guard.hittime=22
ground.velocity=-2
air.type=High
air.velocity=-3,-6
air.fall=1
ground.cornerpush.veloff = 0
guard.cornerpush.veloff = 0
supermovetime=9999999999999
pausemovetime=9999999999999
ignorehitpause=1

[State ]
type=PlaySnd
trigger1=AnimElem=10
value=0,8
channel=4
ignorehitpause=1

[State ]
type=PlaySnd
trigger1=AnimElem=10
value=1200,1
ignorehitpause=1

[State ]
type=SelfState
trigger1=AnimTime=0
value=100
ctrl=1












