
;1205 : シュワルツランツェ弱
;1225 : シュワルツランツェ強
;6030 : 炎ヘルパー
;6070 : 炎ヘルパー
;
;
;

;----------------------------------
[Statedef 3050]
type=A
movetype=A
physics=N
juggle =4
velset=0,ceil(10*root,fvar(11))
ctrl=0
sprpriority=3

[State ]
type=SelfState
trigger1=!ishelper
value=0
ctrl=1
ignorehitpause=1

[State 1000]
type=ChangeAnim2
trigger1=Time=0
value=6080

[State 1000]
type=PosAdd
trigger1=Time=0
trigger1=FrontEdgeDist <= 0
x=ceil(-25*root,fvar(11))

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1=root,var(4)=2 && NumExplod(8640)=0
trigger1=root,TeamSide=1
anim=8640
id=8640
sprpriority=1
pos=-60,60
postype=right
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1=root,var(4)=2 && NumExplod(8645)=0
trigger1=root,TeamSide=2
anim=8645
id=8645
sprpriority=1
pos=60,60
postype=left
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=ParentVarSet
trigger1=NumTarget && root,var(4)=2
trigger1=movehit
var(6)=1

[State 1000]
type=ParentVarSet
trigger1=NumTarget && root,var(4)=2
trigger1=movehit
ignorehitpause =1
var(4)=1

[State 1000]
type=AssertSpecial
trigger1= 1
flag=noshadow
ignorehitpause =1

[State 1000]
type=NotHitby
trigger1=1
value=SCA

[State 1000]
type=HitOverride
trigger1=1
slot=1
time=-1
attr=SCA,AP,AA,AT
ignorehitpause =1
stateno=1240

[State 1000]
type=HitDef
trigger1=Anim=6080 && root,var(6) && !root,var(11)
attr=S, HP
animtype =Hard
damage=ceil(300*root,fvar(6)*root,fvar(7)*root,fvar(3)), 30
hitflag=MAFD
guardflag=M
pausetime=2,18
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10, ceil(-5*root,fvar(11))
hitsound  =S3000, 4
getpower=0,0
givepower=50,50
guardsound=S3, 1
ground.type=High
ground.slidetime=ceil(20*root,fvar(5))
ground.hittime =ceil(22*root,fvar(5))
guard.slidetime=20
guard.hittime =22
guard.velocity=ceil(-6.3*root,fvar(10))
ground.velocity=ifelse(root,var(4)=2,ceil(-1.3*root,fvar(10)),ceil(-4.2*root,fvar(10))),ifelse(root,var(4)=2,ceil(-9.5*root,fvar(11)),ceil(-6.5*root,fvar(11)))
air.type=High
air.velocity=ifelse(root,var(4)=2,ceil(-1.3*root,fvar(10)),ceil(-4.2*root,fvar(10))),ifelse(root,var(4)=2,ceil(-9.5*root,fvar(11)),ceil(-6.5*root,fvar(11)))
fall=1
fall.recover=0
yaccel=.3+.05*root,var(4)

[State 1000]
type=HitDef
trigger1=Anim=6080  && !root,var(6) && !root,var(11) && !root,var(16)
attr=S, HP
animtype =Hard
damage=ceil(300*root,fvar(6)*root,fvar(7)*root,fvar(3)), 30
hitflag=MAF
guardflag=M
pausetime=2,18
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10, ceil(-5*root,fvar(11))
hitsound  =S3000, 4
getpower=0,0
givepower=50,50
guardsound=S3, 1
ground.type=High
ground.slidetime=ceil(20*root,fvar(5))
ground.hittime =ceil(22*root,fvar(5))
guard.slidetime=20
guard.hittime =22
guard.velocity=ceil(-6.3*root,fvar(10))
ground.velocity=ifelse(root,var(4)=2,ceil(-1.3*root,fvar(10)),ceil(-4.2*root,fvar(10))),ifelse(root,var(4)=2,ceil(-9.5*root,fvar(11)),ceil(-6.5*root,fvar(11)))
air.type=High
air.velocity=ifelse(root,var(4)=2,ceil(-1.3*root,fvar(10)),ceil(-4.2*root,fvar(10))),ifelse(root,var(4)=2,ceil(-9.5*root,fvar(11)),ceil(-6.5*root,fvar(11)))
fall=1
fall.recover=0
yaccel=.3+.05*root,var(4)

[State 1000]
type=HitDef
trigger1=Anim=6080  && !root,var(6) && root,var(11) && !root,var(16)
attr=S, HP
animtype =Hard
damage=ceil(300*root,fvar(6)*root,fvar(7)*root,fvar(3)), 30
hitflag=MA
guardflag=M
pausetime=2,18
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10, ceil(-5*root,fvar(11))
hitsound  =S3000, 4
getpower=0,0
givepower=50,50
guardsound=S3, 1
ground.type=High
ground.slidetime=ceil(20*root,fvar(5))
ground.hittime =ceil(22*root,fvar(5))
guard.slidetime=20
guard.hittime =22
guard.velocity=ceil(-6.3*root,fvar(10))
ground.velocity=ifelse(root,var(4)=2,ceil(-1.3*root,fvar(10)),ceil(-4.2*root,fvar(10))),ifelse(root,var(4)=2,ceil(-9.5*root,fvar(11)),ceil(-6.5*root,fvar(11)))
air.type=High
air.velocity=ifelse(root,var(4)=2,ceil(-1.3*root,fvar(10)),ceil(-4.2*root,fvar(10))),ifelse(root,var(4)=2,ceil(-9.5*root,fvar(11)),ceil(-6.5*root,fvar(11)))
fall=1
fall.recover=0
yaccel=.3+.05*root,var(4)

[State 3000]
type=EnvColor
trigger1=movehit=1
trigger1=hitpausetime=1
value=255,255,255
time=1
ignorehitpause=1
under=1

[State 1000]
type=ParentVarAdd
trigger1=hitpausetime=1
trigger1=moveguarded && root,var(41)=0
ignorehitpause=1
fvar(4)=30

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=root,fvar(4) >= 110
trigger1=Target,stateno=4121
ignorehitpause=0
fvar(4)=0

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=NumExplod(8640) || NumExplod(8645)
trigger1=Target,stateno=[5000,5099]
trigger1=Target,GetHitVar(hitcount)=1
ignorehitpause=1
var(6)=1

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=root,var(6)=1
trigger1=Target,stateno=[5000,5099]
ignorehitpause=1
var(4)=1

[State 1000]
type=ParentVarSet
trigger1=root,var(6)=2 && movehit
ignorehitpause=1
var(6)=0

[State 1000]
type=TargetState
triggerall=NumTarget
triggerall=moveguarded
trigger1=root,fvar(4) >= 110 && target,statetype != A && root,var(41)=0
trigger1=target,stateno=[150,153]
ignorehitpause=1
value=4121

[State 1000]
type=Explod
triggerall=movehit=1
triggerall=numtarget && !root,var(5)
triggerall=target,stateno=[5000,5099]
triggerall=target,statetype != A
trigger1=hitpausetime=1
anim=7060
ID=7060
ignorehitpause=1
facing=-1
postype=p2
pos=-25,ceil(-70*root,fvar(11))
sprpriority=-1

[State 1000]
type=Explod
triggerall=movehit=1
triggerall=numtarget && root,var(5)
triggerall=target,stateno=[5000,5099]
triggerall=target,statetype != A
trigger1=hitpausetime=1
anim=7060
ID=7060
ignorehitpause=1
facing=1
postype=p2
pos=25,ceil(-70*root,fvar(11))
sprpriority=-1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8650)=0
trigger1=root,TeamSide=1
anim=8650
id=8650
sprpriority=99
postype=right
pos=-60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8655)=0
trigger1=root,TeamSide=2
anim=8655
id=8655
sprpriority=99
postype=left
pos=60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 3000]
type=ParentVarSet
trigger1=!NumTarget
trigger1=enemy,movetype != H
fvar(3)=1.0

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[1,2]
fvar(3)=.9

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[3,4]
fvar(3)=.8

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[5,6]
fvar(3)=.7

[State -2, VarSet]
type=ParentVarSet
trigger1=NumTarget
trigger1=target,GetHitVar(hitcount)=[7,8]
fvar(3)=.6

[State -2, VarSet]
type=ParentVarSet
trigger1=NumTarget
trigger1=target,GetHitVar(hitcount) >= 9
fvar(3)=.5

[State 4000]
type=DestroySelf
trigger1=time=300
trigger2=Roundstate!=2

[State 1000]
type=ChangeState
trigger1=movecontact
trigger2=movetype != A
trigger3=Vel Y > 0
trigger3=Pos Y >= 0
ignorehitpause=1
value=3060


;----------------------------------
[Statedef 3060]
type=A
movetype=I
physics=N
anim=9999
juggle =4
velset=0,0
ctrl=0
sprpriority=-1

[State ]
type=SelfState
trigger1=!ishelper
value=0
ctrl=1
ignorehitpause=1

[State 1000]
type=NotHitby
trigger1=1
value=SCA,AP,AA,AT

[State 1000]
type=Helper
triggerall=NumTarget
trigger1=NumHelper(10000)=0
trigger1=root,win
id=10000
sprpriority=-99
name="KO"
pos=0,0
postype=p1
stateno=11000
helpertype=normal
pausemovetime=99999999
supermovetime=99999999
keyctrl=1 
ownpal=1
ignorehitpause=1

[State 1000]
type=ParentVarSet
trigger1=NumTarget
ignorehitpause=1
var(15)=1

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1= root,var(4)=2 && NumExplod(8640)=0
trigger1=root,TeamSide=1
anim=8640
id=8640
sprpriority=1
pos=-60,60
postype=right
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1= root,var(4)=2 && NumExplod(8645)=0
trigger1=root,TeamSide=2
anim=8645
id=8645
sprpriority=1
pos=60,60
postype=left
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=NumTarget
triggerall=(stateno=[200,3999]) && NumExplod(8030)=0
trigger1=root,fvar(4) >= 110 && target,statetype != A && !root,var(41)
trigger1=target,stateno=4121 && target,time=1
anim=8030
id=8030
sprpriority=99
postype=p2
pos=-10,ceil(-60*root,fvar(11))
supermove=1
ontop=1
bindtime=1
persistent=0
ignorehitpause=1
ownpal=1

[State 1000]
type=Explod
trigger1=Time=0
trigger1=NumExplod(6081)=0
anim=6081
id=6081
ignorehitpause=1
postype=p1
bindtime=1
pos=0,0
ownpal=1
sprpriority=99
scale=root,fvar(10),root,fvar(11)

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=root,fvar(4) >= 110
trigger1=Target,stateno=4121
ignorehitpause=0
fvar(4)=0

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=NumExplod(8640) || NumExplod(8645)
trigger1=Target,stateno=[5000,5099]
trigger1=Target,GetHitVar(hitcount)=1
ignorehitpause=1
var(6)=1

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=NumExplod(8640) || NumExplod(8645)
trigger1=root,var(6)
trigger1=Target,stateno=[5000,5099]
trigger1=Target,GetHitVar(hitcount) > 1
ignorehitpause=1
var(6)=0

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=root,var(6)=1
trigger1=Target,stateno=[5000,5099]
ignorehitpause=1
var(4)=1

[State 1000]
type=ParentVarSet
trigger1=root,var(6)=2 && movehit
ignorehitpause=1
var(6)=0

[State 1000]
type=TargetState
triggerall=NumTarget
triggerall=moveguarded
trigger1=root,fvar(4) >= 110 && target,statetype != A && root,var(41)=0
trigger1=target,stateno=[150,153]
ignorehitpause=1
value=4121

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8650)=0
trigger1=root,TeamSide=1
anim=8650
id=8650
sprpriority=99
postype=right
pos=-60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8655)=0
trigger1=root,TeamSide=2
anim=8655
id=8655
sprpriority=99
postype=left
pos=60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 3000]
type=ParentVarSet
trigger1=!NumTarget
trigger1=enemy,movetype != H
fvar(3)=1.0

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[1,2]
fvar(3)=.9

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[3,4]
fvar(3)=.8

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[5,6]
fvar(3)=.7

[State -2, VarSet]
type=ParentVarSet
trigger1=NumTarget
trigger1=target,GetHitVar(hitcount)=[7,8]
fvar(3)=.6

[State -2, VarSet]
type=ParentVarSet
trigger1=NumTarget
trigger1=target,GetHitVar(hitcount) >= 9
fvar(3)=.5

[State 1000]
type=DestroySelf
trigger1=!numtarget && Time=2
trigger2=Pos Y >= 0
trigger3=numtarget && target,stateno != [5000,5099]
trigger4=Time=300
trigger5=Roundstate!=2


;----------------------------------
[Statedef 3150]
type=A
movetype=A
physics=N
anim=6090
juggle =1
velset=ceil(1.5*root,fvar(10)),0
ctrl=0
sprpriority=3

[State ]
type=SelfState
trigger1=!ishelper
value=0
ctrl=1
ignorehitpause=1

[State 1000]
type=ChangeAnim2
trigger1=Anim=6090
trigger1=AnimTime=0
value=6091

[State 1000]
type=PlayerPush
trigger1=1
value=0

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1=root,var(4)=2 && NumExplod(8640)=0
trigger1=root,TeamSide=1
anim=8640
id=8640
sprpriority=1
pos=-60,60
postype=right
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1=root,var(4)=2 && NumExplod(8645)=0
trigger1=root,TeamSide=2
anim=8645
id=8645
sprpriority=1
pos=60,60
postype=left
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Helper
trigger1=Time=11
ID=4000
name= "sousai"
ignorehitpause=1
postype=p1
pos=0,0
stateno=4000
ownpal=1
sprpriority=4

[State 1000]
type=ParentVarSet
trigger1=NumTarget && root,var(4)=2
trigger1=movehit
var(6)=1

[State 1000]
type=ParentVarSet
trigger1=NumTarget && root,var(4)=2
trigger1=movehit
ignorehitpause =1
var(4)=1

[State 1000]
type=AssertSpecial
trigger1= 1
flag=noshadow
ignorehitpause =1

[State 1000]
type=NotHitby
trigger1=1
value=,AA,AT,AP

[State 1000]
type=HitOverride
trigger1=1
slot=1
time=-1
attr=SCA,AA,AT,AP
ignorehitpause =1
stateno=3150

[State 1300]
type=ReversalDef
trigger1=Anim=6091
trigger1=var(11)
ignorehitpause =1
attr=S,SA
reversal.attr=SCA,AP,AA,AT
numhits=0
pausetime=1,1
sparkxy=0, 0
hitsound=S-1
sparkno=S-1

[State ]
type=HitDef
trigger1=AnimElem=1
trigger2=AnimElem=2
trigger3=AnimElem=3
trigger4=AnimElem=4
trigger5=AnimElem=5
trigger6=AnimElem=6
trigger7=AnimElem=7
trigger8=AnimElem=8
trigger9=AnimElem=9
attr=S,HA
damage=ceil(enemynear,const(data.defence)*0.01)+random%3,8
getpower=1,1
givepower=1
animtype=hard
hitflag=MAFD
guardflag=
pausetime=1,10
sparkno=S7020
guard.sparkno=S8010
hitsound=S3000,7
guardsound=S3,1
ground.type=high
ground.slidetime=20
ground.hittime=22
ground.velocity=-8
guard.velocity=-8
air.velocity=-8,-1
airguard.velocity=-8,-1

[State 3000]
type=EnvColor
trigger1=movehit=1
trigger1=hitpausetime=1
value=255,255,255
time=1
ignorehitpause=1
under=1

[State 1000]
type=Helper
triggerall=NumTarget
trigger1=NumHelper(10000)=0
trigger1=root,win
id=10000
sprpriority=-99
name="KO"
pos=0,0
postype=p1
stateno=11000
helpertype=normal
pausemovetime=99999999
supermovetime=99999999
keyctrl=1 
ownpal=1
ignorehitpause=1

[State 1000]
type=ParentVarSet
trigger1=NumTarget
ignorehitpause=1
var(15)=1

[State 1000]
type=VarSet
trigger1=time=0
ignorehitpause=1
var(0)=7

[State 1000]
type=VarSet
trigger1=hitpausetime=1
trigger1=movecontact
ignorehitpause=1
var(1)=4

[State 1000]
type=VarAdd
trigger1=var(1) > 0
ignorehitpause=1
var(1)=-1

[State 1000]
type=VarAdd
trigger1=hitpausetime=1
trigger1=movecontact
ignorehitpause=1
var(0)=-1

[State 1000]
type=ParentVarAdd
trigger1=hitpausetime=1
trigger1=moveguarded && root,var(41)=0
ignorehitpause=1
fvar(4)=4

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=root,fvar(4) >= 110
trigger1=Target,stateno=4121
ignorehitpause=0
fvar(4)=0

[State 1000]
type=TargetState
triggerall=NumTarget
triggerall=moveguarded
trigger1=root,fvar(4) >= 110 && target,statetype != A && root,var(41)=0
trigger1=target,stateno=[150,153]
ignorehitpause=1
value=4121

[State 1000]
type=Explod
triggerall=movehit=1 && var(0)=[5,7]
triggerall=numtarget && !root,var(5)
triggerall=target,stateno=[5000,5099]
triggerall=target,statetype != A
trigger1=hitpausetime=1
anim=7060
ID=7060
ignorehitpause=1
facing=-1
postype=p2
pos=-25,ceil(-70*root,fvar(11))
sprpriority=-1

[State 1000]
type=Explod
triggerall=movehit=1 && var(0)=[5,7]
triggerall=numtarget && root,var(5)
triggerall=target,stateno=[5000,5099]
triggerall=target,statetype != A
trigger1=hitpausetime=1
anim=7060
ID=7060
ignorehitpause=1
facing=1
postype=p2
pos=25,ceil(-70*root,fvar(11))
sprpriority=-1

[State 1000]
type=Explod
triggerall=NumTarget
triggerall=(stateno=[200,3999]) && NumExplod(8030)=0
trigger1=root,fvar(4) >= 110 && target,statetype != A && !var(41)
trigger1=target,stateno=4121; && target,time=1
anim=8030
id=8030
sprpriority=99
postype=p2
pos=-10,ceil(-50*root,fvar(11))
supermove=1
ontop=1
bindtime=1
persistent=0
ignorehitpause=1
ownpal=1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8650)=0
trigger1=root,TeamSide=1
anim=8650
id=8650
sprpriority=99
postype=right
pos=-60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8655)=0
trigger1=root,TeamSide=2
anim=8655
id=8655
sprpriority=99
postype=left
pos=60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 3000]
type=ParentVarSet
trigger1=!NumTarget
trigger1=enemy,movetype != H
fvar(3)=1.0

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[1,2]
fvar(3)=.9

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[3,4]
fvar(3)=.8

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[5,6]
fvar(3)=.7

[State -2, VarSet]
type=ParentVarSet
trigger1=NumTarget
trigger1=target,GetHitVar(hitcount)=[7,8]
fvar(3)=.6

[State -2, VarSet]
type=ParentVarSet
trigger1=NumTarget
trigger1=target,GetHitVar(hitcount) >= 9
fvar(3)=.5

[State 3000]
type=PlaySnd
trigger1=Time=5
value=3000, 5
channel=5

[State 1000]
type=ChangeState
triggerall=Anim=6091 
trigger1=AnimTime=0
trigger1=time>=240
ignorehitpause=1
value=3160

;----------------------------------
[Statedef 3160]
type=A
movetype=I
anim=6092
physics=N
ctrl=0
sprpriority=3

[State ]
type=SelfState
trigger1=!ishelper
value=0
ctrl=1
ignorehitpause=1

[State 1000]
type=NotHitby
trigger1=1
value=SCA,AP,AA,AT

[State 1000]
type=AssertSpecial
trigger1= 1
flag=noshadow
ignorehitpause =1

[State 1000]
type=Helper
triggerall=NumTarget
trigger1=NumHelper(10000)=0
trigger1=root,win
id=10000
sprpriority=-99
name="KO"
pos=0,0
postype=p1
stateno=11000
helpertype=normal
pausemovetime=99999999
supermovetime=99999999
keyctrl=1 
ownpal=1
ignorehitpause=1

[State 1000]
type=ParentVarSet
trigger1=NumTarget
ignorehitpause=1
var(15)=1

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1= root,var(4)=2 && NumExplod(8640)=0
trigger1=root,TeamSide=1
anim=8640
id=8640
sprpriority=1
pos=-60,60
postype=right
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1= root,var(4)=2 && NumExplod(8645)=0
trigger1=root,TeamSide=2
anim=8645
id=8645
sprpriority=1
pos=60,60
postype=left
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=NumTarget
triggerall=(stateno=[200,3999]) && NumExplod(8030)=0
trigger1=root,fvar(4) >= 110 && target,statetype != A && !root,var(41)
trigger1=target,stateno=4121 && target,time=1
anim=8030
id=8030
sprpriority=99
postype=p2
pos=-10,ceil(-60*root,fvar(11))
supermove=1
ontop=1
bindtime=1
persistent=0
ignorehitpause=1
ownpal=1

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=root,fvar(4) >= 110
trigger1=Target,stateno=4121
ignorehitpause=0
fvar(4)=0

[State 1000]
type=TargetState
triggerall=NumTarget
triggerall=moveguarded
trigger1=root,fvar(4) >= 110 && target,statetype != A && root,var(41)=0
trigger1=target,stateno=[150,153]
ignorehitpause=1
value=4121

[State 1000]
type=Explod
triggerall=NumTarget
triggerall=(stateno=[200,3999]) && NumExplod(8030)=0
trigger1=root,fvar(4) >= 110 && target,statetype != A && !var(41)
trigger1=target,stateno=4121; && target,time=1
anim=8030
id=8030
sprpriority=99
postype=p2
pos=-10,ceil(-50*root,fvar(11))
supermove=1
ontop=1
bindtime=1
persistent=0
ignorehitpause=1
ownpal=1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8650)=0
trigger1=root,TeamSide=1
anim=8650
id=8650
sprpriority=99
postype=right
pos=-60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8655)=0
trigger1=root,TeamSide=2
anim=8655
id=8655
sprpriority=99
postype=left
pos=60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 3000]
type=StopSnd
trigger1=Time=1
channel=5

[State 1000]
type=DestroySelf
trigger1=AnimTime=0
trigger2=Roundstate!=2



;----------------------------------
[Statedef 3250]
type=A
movetype=A
physics=N
juggle =2
velset=0,ceil(10*root,fvar(11))
ctrl=0
sprpriority=3

[State ]
type=SelfState
trigger1=!ishelper
value=0
ctrl=1
ignorehitpause=1

[State 1000]
type=ChangeAnim2
trigger1=Time=0
value=6080

[State 1000]
type=PosAdd
trigger1=Time=0
trigger1=FrontEdgeDist <= 0
x=ceil(-25*root,fvar(11))

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1=root,var(4)=2 && NumExplod(8640)=0
trigger1=root,TeamSide=1
anim=8640
id=8640
sprpriority=1
pos=-60,60
postype=right
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1=root,var(4)=2 && NumExplod(8645)=0
trigger1=root,TeamSide=2
anim=8645
id=8645
sprpriority=1
pos=60,60
postype=left
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=ParentVarSet
trigger1=NumTarget && root,var(4)=2
trigger1=movehit
var(6)=1

[State 1000]
type=ParentVarSet
trigger1=NumTarget && root,var(4)=2
trigger1=movehit
ignorehitpause =1
var(4)=1

[State 1000]
type=AssertSpecial
trigger1= 1
flag=noshadow
ignorehitpause =1

[State 1000]
type=NotHitby
trigger1=1
value=SCA

[State 1000]
type=HitOverride
trigger1=1
slot=1
time=-1
attr=SCA,AP,AA,AT
ignorehitpause =1
stateno=1240

[State 1000]
type=HitDef
trigger1=Anim=6080 && root,var(6) 
attr=S, HP
animtype =Hard
damage=ceil(180*root,fvar(6)*root,fvar(7)*root,fvar(3)), 18
hitflag=MAFD
guardflag=M
pausetime=2,18
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10, ceil(-5*root,fvar(11))
hitsound  =S3000, 4
getpower=0,0
givepower=50,50
guardsound=S3, 1
ground.type=High
ground.slidetime=ceil(20*root,fvar(5))
ground.hittime =ceil(22*root,fvar(5))
guard.slidetime=20
guard.hittime =22
guard.velocity=ceil(-6.3*root,fvar(10))
ground.velocity=ifelse(root,var(4)=2,ceil(-1.3*root,fvar(10)),ceil(-4.2*root,fvar(10))),ifelse(root,var(4)=2,ceil(-9.5*root,fvar(11)),ceil(-6.5*root,fvar(11)))
air.type=High
air.velocity=ifelse(root,var(4)=2,ceil(-1.3*root,fvar(10)),ceil(-4.2*root,fvar(10))),ifelse(root,var(4)=2,ceil(-9.5*root,fvar(11)),ceil(-6.5*root,fvar(11)))
fall=1
fall.recover=0
yaccel=.3+.05*root,var(4)

[State 1000]
type=HitDef
trigger1=Anim=6080 && !root,var(6) && !root,var(16)
attr=S, HP
animtype =Hard
damage=ceil(180*root,fvar(6)*root,fvar(7)*root,fvar(3)), 18
hitflag=MAF
guardflag=M
pausetime=2,18
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10, ceil(-5*root,fvar(11))
hitsound  =S3000, 4
getpower=0,0
givepower=50,50
guardsound=S3, 1
ground.type=High
ground.slidetime=ceil(20*root,fvar(5))
ground.hittime =ceil(22*root,fvar(5))
guard.slidetime=20
guard.hittime =22
guard.velocity=ceil(-6.3*root,fvar(10))
ground.velocity=ifelse(root,var(4)=2,ceil(-1.3*root,fvar(10)),ceil(-4.2*root,fvar(10))),ifelse(root,var(4)=2,ceil(-9.5*root,fvar(11)),ceil(-6.5*root,fvar(11)))
air.type=High
air.velocity=ifelse(root,var(4)=2,ceil(-1.3*root,fvar(10)),ceil(-4.2*root,fvar(10))),ifelse(root,var(4)=2,ceil(-9.5*root,fvar(11)),ceil(-6.5*root,fvar(11)))
fall=1
fall.recover=0
yaccel=.3+.05*root,var(4)

[State 3000]
type=EnvColor
trigger1=movehit=1
trigger1=hitpausetime=1
value=255,255,255
time=1
ignorehitpause=1
under=1

[State 1000]
type=ParentVarAdd
trigger1=hitpausetime=1
trigger1=moveguarded && root,var(41)=0
ignorehitpause=1
fvar(4)=24

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=root,fvar(4) >= 110
trigger1=Target,stateno=4121
ignorehitpause=0
fvar(4)=0

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=NumExplod(8640) || NumExplod(8645)
trigger1=Target,stateno=[5000,5099]
trigger1=Target,GetHitVar(hitcount)=1
ignorehitpause=1
var(6)=1

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=root,var(6)=1
trigger1=Target,stateno=[5000,5099]
ignorehitpause=1
var(4)=1

[State 1000]
type=ParentVarSet
trigger1=root,var(6)=2 && movehit
ignorehitpause=1
var(6)=0

[State 1000]
type=TargetState
triggerall=NumTarget
triggerall=moveguarded
trigger1=root,fvar(4) >= 110 && target,statetype != A && root,var(41)=0
trigger1=target,stateno=[150,153]
ignorehitpause=1
value=4121

[State 1000]
type=Explod
triggerall=movehit=1
triggerall=numtarget && !root,var(5)
triggerall=target,stateno=[5000,5099]
triggerall=target,statetype != A
trigger1=hitpausetime=1
anim=7060
ID=7060
ignorehitpause=1
facing=-1
postype=p2
pos=-25,ceil(-70*root,fvar(11))
sprpriority=-1

[State 1000]
type=Explod
triggerall=movehit=1
triggerall=numtarget && root,var(5)
triggerall=target,stateno=[5000,5099]
triggerall=target,statetype != A
trigger1=hitpausetime=1
anim=7060
ID=7060
ignorehitpause=1
facing=1
postype=p2
pos=25,ceil(-70*root,fvar(11))
sprpriority=-1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8650)=0
trigger1=root,TeamSide=1
anim=8650
id=8650
sprpriority=99
postype=right
pos=-60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8655)=0
trigger1=root,TeamSide=2
anim=8655
id=8655
sprpriority=99
postype=left
pos=60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 3000]
type=ParentVarSet
trigger1=!NumTarget
trigger1=enemy,movetype != H
fvar(3)=1.0

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[1,2]
fvar(3)=.9

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[3,4]
fvar(3)=.8

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[5,6]
fvar(3)=.7

[State -2, VarSet]
type=ParentVarSet
trigger1=NumTarget
trigger1=target,GetHitVar(hitcount)=[7,8]
fvar(3)=.6

[State -2, VarSet]
type=ParentVarSet
trigger1=NumTarget
trigger1=target,GetHitVar(hitcount) >= 9
fvar(3)=.5

[State 4000]
type=DestroySelf
trigger1=time=300
trigger2=Roundstate!=2

[State 1000]
type=ChangeState
trigger1=movecontact
trigger2=movetype != A
trigger3=Vel Y > 0
trigger3=Pos Y >= 0
ignorehitpause=1
value=3060


;----------------------------------
[Statedef 3350]
type=A
movetype=A
physics=N
anim=6100
juggle =1
velset=0,0
ctrl=0
sprpriority=3

[State ]
type=SelfState
trigger1=!ishelper
value=0
ctrl=1
ignorehitpause=1

[State 1000]
type=ChangeAnim2
trigger1=Anim=6100
trigger1=AnimTime=0
value=6101

[State 1000]
type=ChangeAnim2
trigger1=Anim=6101
trigger1=AnimTime=0
value=6102

[State 1510, 0];前に離れてるとき
type=VelAdd
trigger1=P2BodyDist X >= 1
x=0.1

[State 1510, 0];後ろに離れてるとき
type=VelAdd
trigger1=P2BodyDist X <= -1
x=-0.1

[State 1000]
type=null;VelSet
trigger1=Time=40
trigger2=Time=120
trigger3=Time=200
x=1.1*root,fvar(10)
y=1.6*root,fvar(10)

[State 1000]
type=null;VelSet
trigger1=Time=0
trigger2=Time=80
trigger3=Time=160
x=1.1*root,fvar(10)
y=-1.6*root,fvar(10)

[State 1000]
type=PlayerPush
trigger1=1
value=0

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1=root,var(4)=2 && NumExplod(8640)=0
trigger1=root,TeamSide=1
anim=8640
id=8640
sprpriority=1
pos=-60,60
postype=right
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1=root,var(4)=2 && NumExplod(8645)=0
trigger1=root,TeamSide=2
anim=8645
id=8645
sprpriority=1
pos=60,60
postype=left
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Helper
trigger1=Time=7
ID=4000
name= "sousai"
ignorehitpause=1
postype=p1
pos=0,0
stateno=4000
ownpal=1
sprpriority=4

[State 1000]
type=ParentVarSet
trigger1=NumTarget && root,var(11)=1
trigger1=movehit
var(11)=0

[State 1000]
type=ParentVarSet
trigger1=NumTarget && root,var(4)=2
trigger1=movehit
var(6)=1

[State 1000]
type=ParentVarSet
trigger1=NumTarget && root,var(4)=2
trigger1=movehit
ignorehitpause =1
var(4)=1

[State 1000]
type=AssertSpecial
trigger1= 1
flag=noshadow
ignorehitpause =1

[State 1000]
type=NotHitby
trigger1=1
value=,AA,AT,AP

[State 1000]
type=HitOverride
trigger1=1
slot=1
time=-1
attr=SCA,AA,AT,AP
ignorehitpause =1
stateno=3150

[State 1300]
type=ReversalDef
trigger1=Anim=6091
trigger1=var(11)
ignorehitpause =1
attr=S, SA
reversal.attr=SCA, AP
numhits=0
pausetime=1,1
sparkxy=0, 0
hitsound=S-1
sparkno=S-1

[State ]
type=HitDef
trigger1=Anim=6101
trigger2=Anim=6102
attr=S,HA
damage=ceil(enemynear,const(data.defence)*0.01)+random%10,13
getpower=1,1
givepower=-1000
animtype=hard
hitflag=MAFD
guardflag=
pausetime=1,10
sparkno=S7020
guard.sparkno=S8010
hitsound=S3000,7
guardsound=S3,1
ground.type=high
ground.slidetime=11
ground.hittime=22
ground.velocity=-4
guard.velocity=-4
air.velocity=-8,-1
airguard.velocity=-8,-1

[State 1000]
type=null;HitDef
triggerall=!var(1)
triggerall=root,var(6) || !root,var(16)
trigger1=Anim=6101 && var(0)=[7,11]
trigger2=Anim=6102 && var(0)=[7,11]
attr=S, HP
animtype =Hard
damage=ceil(50*root,fvar(6)*root,fvar(7)*root,fvar(3))+random%12, 5+random%7
hitflag=MAFD
guardflag=M
pausetime=2,10
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10, ceil(-5*root,fvar(11))
hitsound  =S3000, 7
getpower=0,0
givepower=15,15
guardsound=S3, 1
ground.type=High
ground.slidetime=ceil(20*root,fvar(5))
ground.hittime =ceil(22*root,fvar(5))
guard.slidetime=20
guard.hittime =22
ground.velocity=ceil(-2*root,fvar(10))
air.type=High
air.velocity=ceil(-2.8*root,fvar(10)),ceil(-5.7*root,fvar(11))
air.fall=1
fall.recover=0
yaccel=.4
ground.cornerpush.veloff=0
guard.cornerpush.veloff=0

[State 1000]
type=null;HitDef
triggerall=!var(1)
triggerall=root,var(6) || !root,var(16)
trigger1=Anim=6101 && var(0)=[1,6]
trigger2=Anim=6102 && var(0)=[1,6]
attr=S, HP
animtype =Hard
damage=ceil(50*root,fvar(6)*root,fvar(7)*root,fvar(3)), 5
hitflag=MAFD
guardflag=M
pausetime=2,6
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10, ceil(-5*root,fvar(11))
hitsound  =S3000, 7
getpower=0,0
givepower=15,15
guardsound=S3, 1
ground.type=High
ground.slidetime=ceil(20*root,fvar(5))
ground.hittime =ceil(22*root,fvar(5))
guard.slidetime=20
guard.hittime =22
guard.velocity=ceil(-5.5*root,fvar(10))
ground.velocity=ceil(-4.8*root,fvar(10)),ceil(-5.7*root,fvar(11))
air.type=High
air.velocity=ceil(-4.8*root,fvar(10)),ceil(-5.7*root,fvar(11))
fall=1
fall.recover=0
yaccel=.4
ground.cornerpush.veloff=0
guard.cornerpush.veloff=0

[State 3000]
type=EnvColor
trigger1=movehit=1
trigger1=hitpausetime=1
value=255,255,255
time=1
ignorehitpause=1
under=1

[State 1000]
type=Helper
triggerall=NumTarget
trigger1=NumHelper(10000)=0
trigger1=root,win
id=10000
sprpriority=-99
name="KO"
pos=0,0
postype=p1
stateno=11000
helpertype=normal
pausemovetime=99999999
supermovetime=99999999
keyctrl=1 
ownpal=1
ignorehitpause=1

[State 1000]
type=ParentVarSet
trigger1=NumTarget
ignorehitpause=1
var(15)=1

[State 1000]
type=VarSet
trigger1=time=0
ignorehitpause=1
var(0)=10

[State 1000]
type=VarSet
trigger1=hitpausetime=1
trigger1=movecontact
ignorehitpause=1
var(1)=4

[State 1000]
type=VarAdd
trigger1=var(1) > 0
ignorehitpause=1
var(1)=-1

[State 1000]
type=VarAdd
trigger1=hitpausetime=1
trigger1=movecontact
ignorehitpause=1
var(0)=-1

[State 1000]
type=ParentVarAdd
trigger1=hitpausetime=1
trigger1=moveguarded && root,var(41)=0
ignorehitpause=1
fvar(4)=4

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=root,fvar(4) >= 110
trigger1=Target,stateno=4121
ignorehitpause=0
fvar(4)=0

[State 1000]
type=TargetState
triggerall=NumTarget
triggerall=moveguarded
trigger1=root,fvar(4) >= 110 && target,statetype != A && root,var(41)=0
trigger1=target,stateno=[150,153]
ignorehitpause=1
value=4121

[State 1000]
type=Explod
triggerall=movehit=1 && var(0)=[7,11]
triggerall=numtarget && !root,var(5)
triggerall=target,stateno=[5000,5099]
triggerall=target,statetype != A
trigger1=hitpausetime=1
anim=7060
ID=7060
ignorehitpause=1
facing=-1
postype=p2
pos=-25,ceil(-70*root,fvar(11))
sprpriority=-1

[State 1000]
type=Explod
triggerall=movehit=1 && var(0)=[7,11]
triggerall=numtarget && root,var(5)
triggerall=target,stateno=[5000,5099]
triggerall=target,statetype != A
trigger1=hitpausetime=1
anim=7060
ID=7060
ignorehitpause=1
facing=1
postype=p2
pos=25,ceil(-70*root,fvar(11))
sprpriority=-1

[State 1000]
type=Explod
triggerall=NumTarget
triggerall=(stateno=[200,3999]) && NumExplod(8030)=0
trigger1=root,fvar(4) >= 110 && target,statetype != A && !var(41)
trigger1=target,stateno=4121; && target,time=1
anim=8030
id=8030
sprpriority=99
postype=p2
pos=-10,ceil(-50*root,fvar(11))
supermove=1
ontop=1
bindtime=1
persistent=0
ignorehitpause=1
ownpal=1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8650)=0
trigger1=root,TeamSide=1
anim=8650
id=8650
sprpriority=99
postype=right
pos=-60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8655)=0
trigger1=root,TeamSide=2
anim=8655
id=8655
sprpriority=99
postype=left
pos=60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 3000]
type=ParentVarSet
trigger1=!NumTarget
trigger1=enemy,movetype != H
fvar(3)=1.0

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[1,2]
fvar(3)=.9

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[3,4]
fvar(3)=.8

[State 3000]
type=ParentVarSet
trigger1=NumTarget
trigger1=Target,GetHitVar(hitcount)=[5,6]
fvar(3)=.7

[State -2, VarSet]
type=ParentVarSet
trigger1=NumTarget
trigger1=target,GetHitVar(hitcount)=[7,8]
fvar(3)=.6

[State -2, VarSet]
type=ParentVarSet
trigger1=NumTarget
trigger1=target,GetHitVar(hitcount) >= 9
fvar(3)=.5

[State 3000]
type=PlaySnd
trigger1=Time=5
value=3000, 6
channel=5

[State 1000]
type=ChangeState
triggerall=Anim!=6100
trigger1=time=300
ignorehitpause=1
value=3360

;----------------------------------
[Statedef 3360]
type=A
movetype=I
anim=6103
physics=N
ctrl=0
sprpriority=3

[State ]
type=SelfState
trigger1=!ishelper
value=0
ctrl=1
ignorehitpause=1

[State 1000]
type=NotHitby
trigger1=1
value=SCA,AP,AA,AT

[State 1000]
type=AssertSpecial
trigger1= 1
flag=noshadow
ignorehitpause =1

[State 1000]
type=Helper
triggerall=NumTarget
trigger1=NumHelper(10000)=0
trigger1=root,win
id=10000
sprpriority=-99
name="KO"
pos=0,0
postype=p1
stateno=11000
helpertype=normal
pausemovetime=99999999
supermovetime=99999999
keyctrl=1 
ownpal=1
ignorehitpause=1

[State 1000]
type=ParentVarSet
trigger1=NumTarget
ignorehitpause=1
var(15)=1

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1= root,var(4)=2 && NumExplod(8640)=0
trigger1=root,TeamSide=1
anim=8640
id=8640
sprpriority=1
pos=-60,60
postype=right
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=NumTarget
trigger1=Target,StateNo=[5000,5099]
trigger1= root,var(4)=2 && NumExplod(8645)=0
trigger1=root,TeamSide=2
anim=8645
id=8645
sprpriority=1
pos=60,60
postype=left
ontop=1
bindtime=-1
pausemovetime=0
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=NumTarget
triggerall=(stateno=[200,3999]) && NumExplod(8030)=0
trigger1=root,fvar(4) >= 110 && target,statetype != A && !root,var(41)
trigger1=target,stateno=4121 && target,time=1
anim=8030
id=8030
sprpriority=99
postype=p2
pos=-10,ceil(-60*root,fvar(11))
supermove=1
ontop=1
bindtime=1
persistent=0
ignorehitpause=1
ownpal=1

[State 1000]
type=ParentVarSet
triggerall=NumTarget
trigger1=root,fvar(4) >= 110
trigger1=Target,stateno=4121
ignorehitpause=0
fvar(4)=0

[State 1000]
type=TargetState
triggerall=NumTarget
triggerall=moveguarded
trigger1=root,fvar(4) >= 110 && target,statetype != A && root,var(41)=0
trigger1=target,stateno=[150,153]
ignorehitpause=1
value=4121

[State 1000]
type=Explod
triggerall=NumTarget
triggerall=(stateno=[200,3999]) && NumExplod(8030)=0
trigger1=root,fvar(4) >= 110 && target,statetype != A && !var(41)
trigger1=target,stateno=4121; && target,time=1
anim=8030
id=8030
sprpriority=99
postype=p2
pos=-10,ceil(-50*root,fvar(11))
supermove=1
ontop=1
bindtime=1
persistent=0
ignorehitpause=1
ownpal=1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8650)=0
trigger1=root,TeamSide=1
anim=8650
id=8650
sprpriority=99
postype=right
pos=-60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 1000]
type=Explod
triggerall=RoundState=2
trigger1=NumExplod(8030)=1
trigger1=NumExplod(8655)=0
trigger1=root,TeamSide=2
anim=8655
id=8655
sprpriority=99
postype=left
pos=60,60
supermove=1
ontop=1
bindtime=-1
pausemovetime=30
supermovetime=99999999
ignorehitpause=1
persistent=0
ownpal=1

[State 3000]
type=StopSnd
trigger1=Time=1
channel=5

[State 3000]
type=StopSnd
trigger1=Time=1
channel=6

[State 1000]
type=DestroySelf
trigger1=AnimTime=0
trigger2=Roundstate!=2


;---------------------------------------------------------------------------
ゼーレ・相殺用
[Statedef 4000]
type=A
physics=N
movetype=I
ctrl=0
anim=9900
velset=0,0
sprpriority=-3

[State ]
type=SelfState
trigger1=!ishelper
value=0
ctrl=1
ignorehitpause=1

[State 1000]
type=PlayerPush
trigger1=1
value=0

[State 2500]
type=BindToParent
trigger1=1
time=1
facing=0
pos=0, 0

[State 2500]
type=Hitby
trigger1=1
value=SCA,AP

[State 2500]
type=NotHitby
trigger1=1
value=,AA,AT

[State 2500]
type=HitOverride
trigger1=1
slot=1
time=-1
attr=SCA,AP
ignorehitpause=1
stateno=4100

[State 2500]
type=DestroySelf
trigger1=Parent,StateNo=3160
trigger2=Parent,StateNo=3360

;------------------------------
[Statedef 4100]
type=A
physics=N
movetype=I
ctrl=0
anim=9900
velset=0,0
sprpriority=-3

[State ]
type=SelfState
trigger1=!ishelper
value=0
ctrl=1
ignorehitpause=1

[State 1000]
type=PlayerPush
trigger1=1
value=0

[State 2500]
type=BindToParent
trigger1=1
time=1
facing=0
pos=0, 0

[State 2500]
type=ParentVarAdd
trigger1=time=0
ignorehitpause=1
var(0)=-1

[State 2500]
type=Hitby
trigger1=1
value=SCA,AP

[State 2500]
type=NotHitby
trigger1=1
value=,AA,AT

[State 2500]
type=HitOverride
trigger1=1
slot=1
time=-1
attr=SCA,AP
ignorehitpause=1
stateno=4101

[State 2500]
type=DestroySelf
trigger1=Parent,StateNo=3160
trigger2=Parent,StateNo=3360

;------------------------------
[Statedef 4101]
type=A
physics=N
movetype=I
ctrl=0
anim=9900
velset=0,0
sprpriority=-3

[State ]
type=SelfState
trigger1=!ishelper
value=0
ctrl=1
ignorehitpause=1

[State 1000]
type=PlayerPush
trigger1=1
value=0

[State 2500]
type=BindToParent
trigger1=1
time=1
facing=0
pos=0, 0

[State 2500]
type=ParentVarAdd
trigger1=time=0
ignorehitpause=1
var(0)=-1

[State 2500]
type=Hitby
trigger1=1
value=SCA,AP

[State 2500]
type=NotHitby
trigger1=1
value=,AA,AT

[State 2500]
type=HitOverride
trigger1=1
slot=1
time=-1
attr=SCA,AP
ignorehitpause=1
stateno=4100

[State 2500]
type=DestroySelf
trigger1=Parent,StateNo=3160
trigger2=Parent,StateNo=3360




[Statedef 9876]

[State ]
type=statetypeset
trigger1=!ishelper
statetype=A
movetype=A
physics=S
ignorehitpause=1

[State 153]
type=Changestate
triggerall=!ishelper
trigger1=name != "Kain"
value=5150
ignorehitpause=1

[state 153]
type=selfstate
trigger1=!ishelper
ctrl=1
value=0
ignorehitpause=1

[state 153]
type=hitoverride
trigger1=ishelper(9876)
time=-1
attr=SCA,AA,AT,AP
slot=1
stateno=9876
ignorehitpause=1

[state 153]
type=changeanim
trigger1=ishelper(9876)
trigger1=anim!=9876
value=9876
ignorehitpause=1

[state 153]
type=playerpush
trigger1=ishelper(9876)
value=1
ignorehitpause=1

[state 153]
type=turn
trigger1=ishelper(9876)
trigger1=facing!=root,facing
ignorehitpause=1

[state 153]
type=Nothitby
trigger1=ishelper(9876)
value=SCA,AA,AT,AP
time=3
ignorehitpause=1

[state ]
type=Velset
trigger1=ishelper(9876)
y=20

[state 153]
type=destroyself
triggerall=ishelper
trigger1=time=300
ignorehitpause=1




[Statedef 9631]

[State ]
type=statetypeset
trigger1=!ishelper
statetype=A
movetype=A
physics=S
ignorehitpause=1

[State 9631]
type=Changestate
triggerall=!ishelper
trigger1=name != "Kain"
value=5150
ignorehitpause=1

[state 153]
type=selfstate
trigger1=!ishelper
ctrl=1
value=0
ignorehitpause=1

[state 153]
type=hitoverride
trigger1=ishelper(9631)
time=-1
attr=SCA,AA,AT,AP
slot=1
stateno=9876
ignorehitpause=1

[state 153]
type=changeanim
trigger1=ishelper(9631)
trigger1=anim!=9631
value=9631
ignorehitpause=1

[state 153]
type=playerpush
trigger1=ishelper(9631)
value=1
ignorehitpause=1

[state 153]
type=turn
trigger1=ishelper(9631)
trigger1=facing!=root,facing
ignorehitpause=1

[state 153]
type=Nothitby
trigger1=ishelper(9631)
value=SCA,AA,AT,AP
time=3
ignorehitpause=1

[State ]
type=HitDef
trigger1=1
attr=S,HA
damage=ceil(enemynear,const(data.defence)*0.01)+random%5,13
getpower=1,1
givepower=-1000
animtype=hard
hitflag=MAFD
guardflag=
pausetime=1,10
sparkno=S7020
guard.sparkno=S8010
hitsound=S3000,7
guardsound=S3,1
ground.type=high
ground.slidetime=11
ground.hittime=22
ground.velocity=-4
guard.velocity=-4
air.velocity=-8,-1
airguard.velocity=-8,-1

[state ]
type=Velset
trigger1=ishelper(9631)
x=1

[state 153]
type=destroyself
triggerall=ishelper
trigger1=time=360
ignorehitpause=1


;=====================
;ストライカー/グラント
;=====================

[Statedef 9632]
[State ]
type=statetypeset
trigger1=ishelper(9632)
statetype=S
movetype=A
physics=S
ignorehitpause=1
[State ]
type=Changestate
triggerall=!ishelper
trigger1=name!="Kain"
value=5150
ignorehitpause=1
[state ]
type=selfstate
trigger1=!ishelper
ctrl=1
value=0
ignorehitpause=1
[state ]
type=hitoverride
trigger1=ishelper(9632)
time=-1
attr=SCA,AA,AT,AP
slot=1
stateno=9632
ignorehitpause=1
[state ]
type=changeanim
trigger1=ishelper(9632)
trigger1=anim!=9633
value=9633
ignorehitpause=1
[state ]
type=playerpush
trigger1=ishelper(9632)
value=1
ignorehitpause=1
[State ]
type=screenbound
trigger1=ishelper(9632)
value=0
movecamera=0,0
ignorehitpause=1
[State ]
type=Playsnd
trigger1=ishelper(9632)
trigger1=AnimElem=1
value=10002,0
volume=256
ignorehitpause=1
[state ]
type=Nothitby
trigger1=ishelper(9632)
value=SCA,AA,AT,AP
time=3
ignorehitpause=1
[State ]
type=Projectile
trigger1=AnimElem=7
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=s2,6
guardsound=s2,0
damage=60,30
fall=1
fall.recover=1
fall.damage=20
priority=7,hit
ground.slidetime=13
ground.hittime=13
ground.velocity=-7,-11
projpriority=99999999999
animtype=heavy
sparkno=-1
guard.sparkno=-1
supermovetime=9999999999999
pausemovetime=9999999999999
ignorehitpause=1

[state ]
type=destroyself
triggerall=ishelper
trigger1=time=60
ignorehitpause=1

;======================
;ストライカー/ロック
;======================

[Statedef 9635]
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=A
physics=S
ignorehitpause=1
[State ]
type=Changestate
triggerall=!ishelper
trigger1=name!="Kain"
value=5150
ignorehitpause=1
[state ]
type=selfstate
trigger1=!ishelper
ctrl=1
value=0
ignorehitpause=1
[state ]
type=hitoverride
trigger1=ishelper(9635)
time=-1
attr=SCA,AA,AT,AP
slot=1
stateno=9635
ignorehitpause=1
[state ]
type=changeanim
trigger1=ishelper(9635)
trigger1=anim!=9635
value=9635
ignorehitpause=1
[state ]
type=playerpush
trigger1=ishelper(9635)
value=1
ignorehitpause=1
[State ]
type=screenbound
trigger1=ishelper(9635)
value=0
movecamera=0,0
ignorehitpause=1
[State ]
type=Playsnd
trigger1=ishelper(9635)
trigger1=AnimElem=1
value=10001,0
volume=256
ignorehitpause=1
[State ]
type=Projectile
trigger1=ishelper(9635)
trigger1=AnimElem=8
projanim=9636
projremanim=9636
projhitanim=9636
projscale=0.7,0.7
projhits=1
projID=9636
projremovetime=-1
projsprpriority=1
projheightbound=-500,500
projedgebound=500
projstagebound=500
offset=0,0
;numhits=0
velocity=8
attr=S,SP
hitflag=MAFDL
damage=25,12
priority=7,hit
hitsound=s2,5
guardsound=s2,0
projpriority=99999999999
animtype=heavy
fall=1
fall.recover=1
sparkno=-1
guard.sparkno=-1
supermovetime=9999999999999
pausemovetime=9999999999999
ignorehitpause=1
[state ]
type=Nothitby
trigger1=ishelper(9635)
value=SCA,AA,AT,AP
time=3
ignorehitpause=1
[state ]
type=destroyself
triggerall=ishelper(9635)
trigger1=Animtime=0
ignorehitpause=1



[Statedef 9681]
[State ]
type=statetypeset
trigger1=!ishelper
statetype=S
movetype=A
physics=S
ignorehitpause=1
[State ]
type=Changestate
triggerall=!ishelper
trigger1=name!="Kain"
value=5150
ignorehitpause=1
[state ]
type=selfstate
trigger1=!ishelper
ctrl=1
value=0
ignorehitpause=1
[state ]
type=hitoverride
trigger1=ishelper(9681)
time=-1
attr=SCA,AA,AT,AP
slot=1
stateno=9681
ignorehitpause=1
[state ]
type=changeanim
trigger1=ishelper(9681)
trigger1=anim!=9636
value=9636
ignorehitpause=1
[state ]
type=Assertspecial
trigger1=ishelper(9681)
flag=noshadow
ignorehitpause=1
[state ]
type=playerpush
trigger1=ishelper(9681)
value=1
ignorehitpause=1
[State ]
type=sprpriority
trigger1=ishelper(9681)
value=5
ignorehitpause=1
[state ]
type=Reversaldef
trigger1=ishelper(9681)
reversal.attr=SCA,AA,AT,AP
priority=9999999999999999999999999999999
pausetime=0,10
sparkno=-1
guard.sparkno=-1
ignorehitpause=1
[State ]
type=Projectile
trigger1=ishelper(9681)
trigger1=AnimElem=2
projanim=9682
projremanim=9682
projhitanim=9682
projscale=0.7,0.7
projhits=1
projID=9682
projremovetime=20
projmisstime=3
projsprpriority=1
projheightbound=-500,500
projedgebound=500
projstagebound=500
offset=0,0
velocity=0
attr=S,SP
hitflag=MAF
guardflag=A
hitsound=-1
damage=25+random%3,13+random%5
fall=1
fall.recover=0
animtype=heavy
sparkno=S7000
guard.sparkno=S8000
priority=7,hit
projpriority=99999999999
animtype=heavy
hitsound=S3000,7
guardsound=S3,1
supermovetime=9999999999999
pausemovetime=9999999999999
ignorehitpause=1
[state ]
type=Nothitby
trigger1=ishelper(9681)
value=SCA,AA,AT,AP
time=3
ignorehitpause=1
[state ]
type=destroyself
triggerall=ishelper
trigger1=Animtime=0
ignorehitpause=1

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

[Statedef 31003100]
[State ]
type=statetypeset
trigger1=ishelper(31003100)
statetype=S
movetype=A
physics=S
ignorehitpause=1
[State ]
type=Changestate
triggerall=!ishelper
trigger1=name!="Kain"
value=5150
ignorehitpause=1
[state ]
type=selfstate
trigger1=!ishelper
ctrl=1
value=0
ignorehitpause=1
[state ]
type=hitoverride
trigger1=ishelper(31003100)
time=-1
attr=SCA,AA,AT,AP
slot=1
stateno=31003100
ignorehitpause=1
[state ]
type=changeanim
trigger1=ishelper(31003100)
trigger1=anim!=6101
value=6101
ignorehitpause=1
[state ]
type=Assertspecial
trigger1=ishelper(31003100)
flag=noshadow
ignorehitpause=1
[state ]
type=playerpush
trigger1=ishelper(31003100)
value=1
ignorehitpause=1
[State ]
type=sprpriority
trigger1=ishelper(31003100)
value=5
ignorehitpause=1
[State ]
type=Velset
trigger1=ishelper(31003100)
x=ifelse(random>500,ifelse(random>500,random%6,random%17),ifelse(random>464,random%5,random%22))
y=ifelse(random>500,ifelse(random>500,(-5*random%2),-16),ifelse(random>500,9,ifelse(random>500,-11,3)))
[State ]
type=HitDef
triggerall=ishelper(31003100)
trigger1=GameTime%20=0
attr=,HP
animtype=Hard
damage=13,10
hitflag=MAFD
guardflag=M
pausetime=12,26
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10,-5
hitsound=S3000,7
getpower=0,0
givepower=-15,-15
guardsound=S3,1
ground.type=High
ground.slidetime=20
ground.hittime=22
guard.slidetime=20
guard.hittime=22
ground.velocity=-2
air.type=High
air.velocity=-4.8,-5.7
air.fall=1
fall.recover=0
yaccel=.4
ground.cornerpush.veloff=0
guard.cornerpush.veloff=0

[state ]
type=Nothitby
trigger1=ishelper(31003100)
value=SCA,AA,AT,AP
time=3
ignorehitpause=1
[state ]
type=destroyself
triggerall=ishelper
trigger1=time=210
ignorehitpause=1

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

[Statedef 31003101]
[State ]
type=statetypeset
trigger1=ishelper(31003101)
statetype=S
movetype=A
physics=S
ignorehitpause=1
[State ]
type=Changestate
triggerall=!ishelper
trigger1=name!="Kain"
value=5150
ignorehitpause=1
[state ]
type=selfstate
trigger1=!ishelper
ctrl=1
value=0
ignorehitpause=1
[state ]
type=hitoverride
trigger1=ishelper(31003101)
time=-1
attr=SCA,AA,AT,AP
slot=1
stateno=31003101
ignorehitpause=1
[state ]
type=changeanim
trigger1=ishelper(31003101)
trigger1=anim!=6102
value=6102
ignorehitpause=1
[state ]
type=Assertspecial
trigger1=ishelper(31003101)
flag=noshadow
ignorehitpause=1
[state ]
type=playerpush
trigger1=ishelper(31003101)
value=1
ignorehitpause=1
[State ]
type=sprpriority
trigger1=ishelper(31003101)
value=5
ignorehitpause=1
[State ]
type=Velset
trigger1=ishelper(31003101)
x=ifelse(random>500,ifelse(random>500,random%6,random%6),ifelse(random>464,random%15,random%8))
y=ifelse(random>500,ifelse(random>500,(-10*random%2),8),ifelse(random>500,5,ifelse(random>500,-19,7)))
[State ]
type=HitDef
triggerall=ishelper(31003101)
trigger1=GameTime%25=0
attr=,HP
animtype=Hard
damage=9,20
hitflag=MAFD
guardflag=M
pausetime=12,24
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10,-5
hitsound=S3000,7
getpower=0,0
givepower=-15,-15
guardsound=S3,1
ground.type=High
ground.slidetime=20
ground.hittime=22
guard.slidetime=20
guard.hittime=22
ground.velocity=-2
air.type=High
air.velocity=-4.8,-5.7
air.fall=1
fall.recover=0
yaccel=.4
ground.cornerpush.veloff=0
guard.cornerpush.veloff=0

[state ]
type=Nothitby
trigger1=ishelper(31003101)
value=SCA,AA,AT,AP
time=3
ignorehitpause=1
[state ]
type=destroyself
triggerall=ishelper
trigger1=time=240
ignorehitpause=1


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

[Statedef 31003102]
[State ]
type=statetypeset
trigger1=ishelper(31003102)
statetype=S
movetype=A
physics=S
ignorehitpause=1
[State ]
type=Changestate
triggerall=!ishelper
trigger1=name!="Kain"
value=5150
ignorehitpause=1
[state ]
type=selfstate
trigger1=!ishelper
ctrl=1
value=0
ignorehitpause=1
[state ]
type=hitoverride
trigger1=ishelper(31003102)
time=-1
attr=SCA,AA,AT,AP
slot=1
stateno=31003102
ignorehitpause=1
[state ]
type=changeanim
trigger1=ishelper(31003102)
trigger1=anim!=6101
value=6101
ignorehitpause=1
[state ]
type=Assertspecial
trigger1=ishelper(31003102)
flag=noshadow
ignorehitpause=1
[state ]
type=playerpush
trigger1=ishelper(31003102)
value=1
ignorehitpause=1
[State ]
type=sprpriority
trigger1=ishelper(31003102)
value=5
ignorehitpause=1
[State ]
type=Velset
trigger1=ishelper(31003102)
x=ifelse(random>500,ifelse(random>500,random%13,random%21),ifelse(random>464,random%25,random%2))
y=ifelse(random>500,ifelse(random>500,9,-6),ifelse(random>500,-7,ifelse(random>500,11,-3)))
[State ]
type=HitDef
triggerall=ishelper(31003102)
trigger1=GameTime%20=0
attr=,HP
animtype=Hard
damage=7,6
hitflag=MAFD
guardflag=M
pausetime=12,24
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10,-5
hitsound=S3000,7
getpower=0,0
givepower=-15,-15
guardsound=S3,1
ground.type=High
ground.slidetime=20
ground.hittime=22
guard.slidetime=20
guard.hittime=22
ground.velocity=-2
air.type=High
air.velocity=-4.8,-5.7
air.fall=1
fall.recover=0
yaccel=.4
ground.cornerpush.veloff=0
guard.cornerpush.veloff=0

[state ]
type=Nothitby
trigger1=ishelper(31003102)
value=SCA,AA,AT,AP
time=3
ignorehitpause=1
[state ]
type=destroyself
triggerall=ishelper
trigger1=time=180
ignorehitpause=1

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

[Statedef 31003103]
[State ]
type=statetypeset
trigger1=ishelper(31003103)
statetype=S
movetype=A
physics=S
ignorehitpause=1
[State ]
type=Changestate
triggerall=!ishelper
trigger1=name!="Kain"
value=5150
ignorehitpause=1
[state ]
type=selfstate
trigger1=!ishelper
ctrl=1
value=0
ignorehitpause=1
[state ]
type=hitoverride
trigger1=ishelper(31003103)
time=-1
attr=SCA,AA,AT,AP
slot=1
stateno=31003103
ignorehitpause=1
[state ]
type=changeanim
trigger1=ishelper(31003103)
trigger1=anim!=292
value=292
ignorehitpause=1
[state ]
type=Assertspecial
trigger1=ishelper(31003103)
flag=noshadow
ignorehitpause=1
[state ]
type=playerpush
trigger1=ishelper(31003103)
value=1
ignorehitpause=1
[State ]
type=sprpriority
trigger1=ishelper(31003103)
value=5
ignorehitpause=1
[State ]
type=bindtoroot
trigger1=ishelper(31003103)
pos=0,-60
ignorehitpause=1
[State 97972]
type=Angledraw
trigger1=ishelper(31003103)
value=animelemtime(1)*3
ignorehitpause=1

[State ]
type=null;Velset
trigger1=ishelper(31003103)
x=ifelse(random>500,ifelse(random>500,random%13,random%21),ifelse(random>464,random%25,random%2))
y=ifelse(random>500,ifelse(random>500,9,-6),ifelse(random>500,-7,ifelse(random>500,11,-3)))


[State ]
type=HitDef
triggerall=ishelper(31003103)
trigger1=GameTime%20=0
attr=,HP
animtype=Hard
damage=8,6
hitflag=MAFD
guardflag=M
pausetime=12,24
sparkno=S7020
guard.sparkno=S8010
sparkxy=-10,-5
hitsound=S3000,7
getpower=0,0
givepower=-15,-15
guardsound=S3,1
ground.type=High
ground.slidetime=20
ground.hittime=22
guard.slidetime=20
guard.hittime=22
ground.velocity=-2
air.type=High
air.velocity=-4.8,-5.7
air.fall=1
fall.recover=0
yaccel=.4
ground.cornerpush.veloff=0
guard.cornerpush.veloff=0

[state ]
type=Nothitby
trigger1=ishelper(31003103)
value=SCA,AA,AT,AP
time=3
ignorehitpause=1
[state ]
type=destroyself
triggerall=ishelper(31003103)
trigger1=time=660
trigger2=Roundstate!=2
ignorehitpause=1









