;---------------------------------------------------------------------------
; ここからは超必殺技のステート
;---------------------------------------------------------------------------
[Statedef 2000];-----------------------------------------お覇王翔吼拳(低速
type    = S
movetype= A
physics = N
juggle  = 3
velset = 12,0
anim = 2000
ctrl = 0
sprpriority = 2
poweradd = -1000

[State 2000, 判定]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 210, ]
type = veladd
trigger1 = time >= 1
x = -.3


[State 2020, 音を鳴らす]
type = PlaySnd
trigger1 = time = 1 || time = 16 || time = 32
value = s0, 3


[State 2020, 1];お覇王翔吼拳
type = PlaySnd
trigger1 = time > 1
trigger1 = vel X <= 0
value = s3, 4

;---------------
[State 2000, ランダムに変数を選ぶ]
type = VarRandom
trigger1 = time = 1
v = 5
range = 1,9

[State 2000, ランダムに変数を選ぶ]
type = VarRandom
trigger1 = time > 1
v = 6
range = 0,1


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

[State 2000, 7]
type = ChangeState
trigger1 = vel X <= 0
value = 0
ctrl = 1



[State 2000,うちはサスケ呼びh出し];----------------------------------------
type = Helper
trigger1 = numhelper(2001) = 0
trigger1 = var(5) = 1
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Cross angel"
id = 2001
pos = 40,0
postype = p1
stateno = 2001
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1


[State 2000,小野沢悠貴呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2002) = 0
trigger1 = var(5) = 2
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Ohara directorl"
id = 2002
pos = 40,0
postype = p1
stateno = 2002
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,小牧愛佳呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2003) = 0
trigger1 = var(5) = 3
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "The O"
id = 2003
pos = 40,0
postype = p1
stateno = 2003
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,桜玉吉呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2004) = 0
trigger1 = var(5) = 4
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Leo pardon"
id = 2004
pos = 40,0
postype = p1
stateno = 2004
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,杉下右京呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2005) = 0
trigger1 = var(5) = 5
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Eisen"
id = 2005
pos = 40,0
postype = p1
stateno = 2005
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,丹下段平呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2006) = 0
trigger1 = var(5) = 6
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Ecsdes"
id = 2006
pos = 40,0
postype = p1
stateno = 2006
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,ビッグスターブレイン呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2007) = 0
trigger1 = var(5) = 7
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Gilvader"
id = 2007
pos = 40,0
postype = p1
stateno = 2007
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,ぺヤングソース焼きそば呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2008) = 0
trigger1 = var(5) = 8
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Zero"
id = 2008
pos = 40,0
postype = p1
stateno = 2008
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,レッドインパルス呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2009) = 0
trigger1 = var(5) = 9
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "14th angel"
id = 2009
pos = 40,0
postype = p1
stateno = 2009
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1




;---------------------------------------------------------------------------
[Statedef 2020];-----------------------------------------お覇王翔吼拳(高速
type    = S
movetype= A
physics = N
juggle  = 3
velset = 16,0
anim = 2000
ctrl = 0
sprpriority = 2
poweradd = -1000

[State 2000, 判定]
type = NotHitBy
trigger1 = 1
value = SCA
time = 1

[State 210, ]
type = veladd
trigger1 = time >= 1
x = -.3


[State 2020, 音を鳴らす]
type = PlaySnd
trigger1 = time = 1 || time = 16 || time = 32
value = s0, 3


[State 2020, 1];お覇王翔吼拳
type = PlaySnd
trigger1 = time > 1
trigger1 = vel X <= 0
value = s3, 4

;---------------
[State 2000, ランダムに変数を選ぶ]
type = VarRandom
trigger1 = time = 1
v = 5
range = 1,9

[State 2000, ランダムに変数を選ぶ]
type = VarRandom
trigger1 = time > 1
v = 6
range = 0,1


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

[State 2000, 7]
type = ChangeState
trigger1 = vel X <= 0
value = 0
ctrl = 1



[State 2000,うちはサスケ呼びh出し];----------------------------------------
type = Helper
trigger1 = numhelper(2001) = 0
trigger1 = var(5) = 1
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Cross angel"
id = 2001
pos = 40,0
postype = p1
stateno = 2001
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1


[State 2000,小野沢悠貴呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2002) = 0
trigger1 = var(5) = 2
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Ohara directorl"
id = 2002
pos = 40,0
postype = p1
stateno = 2002
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,小牧愛佳呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2003) = 0
trigger1 = var(5) = 3
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "The O"
id = 2003
pos = 40,0
postype = p1
stateno = 2003
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,桜玉吉呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2004) = 0
trigger1 = var(5) = 4
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Leo pardon"
id = 2004
pos = 40,0
postype = p1
stateno = 2004
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,杉下右京呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2005) = 0
trigger1 = var(5) = 5
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Eisen"
id = 2005
pos = 40,0
postype = p1
stateno = 2005
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,丹下段平呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2006) = 0
trigger1 = var(5) = 6
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Ecsdes"
id = 2006
pos = 40,0
postype = p1
stateno = 2006
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,ビッグスターブレイン呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2007) = 0
trigger1 = var(5) = 7
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Gilvader"
id = 2007
pos = 40,0
postype = p1
stateno = 2007
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,ぺヤングソース焼きそば呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2008) = 0
trigger1 = var(5) = 8
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "Zero"
id = 2008
pos = 40,0
postype = p1
stateno = 2008
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1



[State 2000,レッドインパルス呼び出し];----------------------------------------
type = Helper
trigger1 = numhelper(2009) = 0
trigger1 = var(5) = 9
trigger1 = time = 1 || time = 16 || time = 32
helperype = normal
name = "14th angel"
id = 2009
pos = 40,0
postype = p1
stateno = 2009
helpertype = normal
size.xscale = .5
size.yscale = .5
ownpal = 1
keyctrl = 0
;ignorehitpause=1


;---------------------------------------------------------------------------騎乗位
[Statedef 2050]
type    = S
movetype= A
physics = S
juggle  = 4
velset = 0,0
anim = 2050
ctrl = 0
sprpriority = 2

[State 2000, ランダムに変数を選ぶ]
type = VarRandom
trigger1 = time > 1
v = 6
range = 0,1
;---------------------------
[State 3000]
type = PlaySnd
trigger1 = Time = 2
value = 3, 0

[State 3000, 1]
type = PlaySnd
trigger1 = AnimElem = 4
value = 0, 3
;---------------------------

[State 3000, Width]
type = Width
trigger1 = AnimElem = 2, >= 0
value = 15,0

[State 3000, Super A]
type = SuperPause
trigger1 = Time = 2
pos = 25, -57
anim = 100
sound = 20, 0
poweradd = -1000

[State 3000, Super B]
type = AfterImage
trigger1 = Time = 3
time = 2

[State 3000, Super C]
type = AfterImageTime
trigger1 = Time = 3 && Time < 60
time = 2

;---------------------------
[State 3000, Super D]
type = NotHitBy
trigger1 = AnimElem = 2
value = , NA, SA, AT
time = 12

[State 3000, Super E]
type = NotHitBy
trigger1 = AnimElemTime(2) >= 0 && Time < 30
value2 = C, NA
time = 1


[State 3000, 7]
type = ChangeState
trigger1 = animTime = 0
value = 2051
ctrl = 1


;-------------------------------------------
[Statedef 2051,上昇下降]
type    = A
movetype= A
physics = N
juggle  = 4
anim = 2051
ctrl = 0
sprpriority = 2
velset = 10,-12

;--------------------------上昇
[State 210, ]
type = veladd
trigger1 = time <= 30
trigger1 = vel X >= 0
x = -.75

[State 210, ]
type = veladd
trigger1 = time <= 30
trigger1 = vel Y < 0
y = .5


;--------------------------下降
[State 210, ]
type = velset
trigger1 = animelem = 3
x = 16
y = 12


;---------------------------
[State 3000, Super D]
type = NotHitBy
trigger1 = 1
value = SCA, AA,AT,AP
time = 1

;---------------------------
[State 3000]
type = PlaySnd
trigger1 =  time = 1 || time = 30
value = s0,3

;--------------------------
[State 3000, 5]
type = HitDef
trigger1 = time = 0 || time = 4
attr = S, HA
animtype  = Hard
damage    = 24,4
getpower  = 0
priority  = 6
hitflag = MAF
guardflag = MA
pausetime = 4,15
sparkno = s6001
guard.sparkno = s6002
sparkxy = -10,-60
hitsound   = s6,1
guardsound = s7,1
ground.type = Low
ground.slidetime = 30
ground.hittime  = 30
ground.velocity = -3,-8
air.velocity = -3,-8
fall = 1
fall.animtype = Hard
fall.recover = 0

;--------------------------
[State 3000, 5]
type = HitDef
trigger1 = vel Y >= 0
trigger1 = animelem = 3
attr = S, HA
animtype  = Hard
damage    = 24,4
getpower  = 0
priority  = 6
hitflag = MAF
guardflag = MA
pausetime = 15,15
sparkno = s6001
guard.sparkno = s6002
sparkxy = -10,-60
hitsound   = s6,1
guardsound = s7,1
ground.type = Low
ground.slidetime = 30
ground.hittime  = 30
ground.velocity = -2,5
air.velocity = -3,6
fall = 1
fall.animtype = Hard
fall.recover = 0


[State 3000, 7]
type = ChangeState
trigger1 = vel Y >= 0 && pos Y >= 0
value = 2052
ctrl = 1


;-------------------------------------------
[Statedef 2052,着地]
type    = S
movetype= A
physics = N
juggle  = 4
velset = 0,0
anim = 2052
ctrl = 0
sprpriority = 2

;---------------------------
[State 3000, 7]
type = ChangeState
trigger1 = animTime = 0
value = 2053
ctrl = 1

;-------------------------------------------
[Statedef 2053,喘ぎ]
type    = S
movetype= A
physics = N
juggle  = 4
velset = 0,0
anim = 2053
ctrl = 0
sprpriority = 2

[State 191]
type = AssertSpecial
trigger1 = time >= 24
flag = noBG
flag2 = noFG

;---------------------------
[State 3000]
type = PlaySnd
trigger1 = Time = 16
value = 3, 43

[State 3000]
type = PlaySnd
trigger1 =  time = 24 || time = 48 || time = 72 || time = 96 || time = 120
value = s1100,1

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

[State 191,ひかり]
type = Explod
triggerall = numExplod(6020) = 0
trigger1 = time >= 24
anim = 6020
ID = 6020
removetime = 120
facing = 1       
vfacing = 1   
bindtime = -1
pos = 0,0
postype = p1
;random = 3,5      
scale = 1.5,1.5;.5+random%3,.5+random%3
sprpriority = 3      
removeongethit = 1 
ownpal = 1 
ignorehitpause = 1
persistent = 0

[State 191];-------
type = removeExplod
trigger1 = Time = 120
ID = 6020

;--------------------------
[State 3000, 5]
type = HitDef
trigger1 = animelem = 3
trigger1 = time%4 = 2
attr = S, HA
animtype  = Hard
damage    = 12,4
getpower  = 0
priority  = 6
hitflag = MAFD
guardflag = MA
pausetime = 0,4
sparkno = -1;s6001
guard.sparkno = -1;s6002
sparkxy = -10,-60
hitsound   = -1;s6,1
guardsound = -1;s7,1
ground.type = Low
ground.slidetime = 30
ground.hittime  = 30
ground.velocity = -0,-7
air.velocity = -0,-7
fall = 1
fall.animtype = Hard
fall.recover = 0
persistent = 1

[State 3000, 5]
type = HitDef
trigger1 = animelem = 3
trigger1 = time%4 = 0
attr = S, HA
animtype  = Hard
damage    = 12,4
getpower  = 0
priority  = 6
hitflag = MAFD
guardflag = MA
pausetime = 0,4
sparkno = -1;s6001
guard.sparkno = -1;s6002
sparkxy = -10,-60
hitsound   = -1;s6,1
guardsound = -1;s7,1
ground.type = Low
ground.slidetime = 30
ground.hittime  = 30
ground.velocity = -0,-7
air.velocity = -0,-7
fall = 1
fall.animtype = Hard
fall.recover = 0
persistent = 1
;---------------------------
[State 3000, 7]
type = ChangeState
trigger1 = Time = 120
value = 2054
ctrl = 1

;-------------------------------------------
[Statedef 2054,事後]
type    = S
movetype= A
physics = N
juggle  = 4
velset = 0,0
anim = 2054
ctrl = 0
sprpriority = 2

[State 191]
type = AssertSpecial
trigger1 = time <= 22
flag = noBG
flag2 = noFG

[State 3000]
type = PlaySnd
trigger1 = Time = 55
value = 3, 41

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

[State 191,ひかり]
type = Explod
triggerall = numExplod(6020) = 0
trigger1 = time = 7
anim = 6021
ID = 6021
;removetime = 80
facing = -1       
vfacing = 1   
bindtime = -1
pos = 0,0
postype = p1
;random = 3,5      
scale = 15,15
sprpriority = 3      
removeongethit = 1 
ownpal = 1 
ignorehitpause = 1
persistent = 0

[State 191,ひかり]
type = Explod
triggerall = numExplod(6020) = 0
trigger1 = time = 7
anim = 6020
ID = 6020
;removetime = 80
facing = -1       
vfacing = 1   
bindtime = -1
pos = 0,0
postype = p1
;random = 3,5      
scale = 6.5,.5
sprpriority = 3      
removeongethit = 1 
ownpal = 1 
ignorehitpause = 1
persistent = 0


[State 191];-------
type = removeExplod
trigger1 = Time = 80
ID = 6020
;---------------------------
[State 3000, 7]
type = ChangeState
trigger1 = animTime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------３連殴り
[Statedef 3000]
type    = S
movetype= A
physics = S
juggle  = 4
velset = 0,0
anim = 3000
ctrl = 0
sprpriority = 2

[State 2000, ランダムに変数を選ぶ]
type = VarRandom
trigger1 = time > 1
v = 6
range = 0,1
;---------------------------
[State 3000]
type = PlaySnd
trigger1 = var(6) = 0
trigger1 = Time = 3
value = 3, 20+random%2

[State 3000]
type = PlaySnd
trigger1 = var(6) = 1
trigger1 = Time = 3
value = 3, 30+random%2
;---------------------------

[State 3000, Width]
type = Width
trigger1 = AnimElem = 2, >= 0
value = 15,0

[State 3000, Super A]
type = SuperPause
trigger1 = Time = 3
pos = 25, -57
anim = 100
sound = 20, 0
poweradd = -1000

[State 3000, Super B]
type = AfterImage
trigger1 = Time = 3
time = 2

[State 3000, Super C]
type = AfterImageTime
trigger1 = Time = 3 && Time < 60
time = 2

[State 3000, Super D]
type = NotHitBy
trigger1 = AnimElem = 2
value = , NA, SA, AT
time = 12

[State 3000, Super E]
type = NotHitBy
trigger1 = AnimElemTime(2) >= 0 && Time < 30
value2 = C, NA
time = 1

[State 3000, 1]
type = PlaySnd
trigger1 = AnimElem = 4
value = 0, 3

;--------------------------
[State 210, ]
type = veladd
trigger1 = AnimElem >= 4
x = 16

[State 210, ]
type = null;veladd
trigger1 = AnimElem >= 7
x = -3

;--------------------------
[State 3000, 5]
type = HitDef
trigger1 = AnimElem = 5
trigger2 = AnimElem = 12
attr = S, HA
animtype  = Hard
damage    = 72,4
getpower  = 0
priority  = 6
guardflag = MA
pausetime = 15,15
sparkno = s6001
guard.sparkno = s6002
sparkxy = -10,-60
hitsound   = s1100, 1
guardsound = s1100, 1
ground.type = Low
ground.slidetime = 30
ground.hittime  = 30
ground.velocity = -6
air.velocity = -3,-3
air.fall = 1
fall.animtype = Hard
fall.recover = 0

[State 3000, 6]
type = HitDef
trigger1 = AnimElem = 19
attr = S, HA
animtype  = Hard
damage    = 75,4
getpower  = 0
priority  = 6
guardflag = MA
pausetime = 15,15
sparkno = s6001
guard.sparkno = s6002
sparkxy = -10,-60
hitsound   = s1100, 1
guardsound = s1100, 1
ground.type = Low
ground.slidetime = 40
ground.hittime  = 40
ground.velocity = -5, -4
guard.velocity = -12
air.velocity = -5,-4
airguard.velocity = -3,-3
fall.animtype = Hard
fall = 1
fall.recover = 0

[State 3000, 7]
type = ChangeState
trigger1 = Time = 78
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;召喚「アーチャー、お願い」
[Statedef 4001]
type    = S
movetype= A
physics = S
juggle  = 1
ctrl = 0
anim = 1005
sprpriority = -1
poweradd = 10

[State 3900, NotHitBy]
type = NotHitBy
trigger1 = Time = 0
value = SCA,NA,SA,HA,NP,SP,HP
time = 20

[State 0, 0]
type = Helper
trigger1 = time = 5
helpertype = normal
name = "archer"
ID = 1000
stateno = 1001
postype = p1
pos = -30,0
keyctrl = 0
ownpal = 1

[State 210, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;アーチャー
[Statedef 1001]
type    = S
movetype= A
physics = S
juggle  = 1
ctrl = 0
anim = 1001
sprpriority = 1

[state 0,0]
type = AfterImage
trigger1 = time = 25
time = 15
TimeGap  = 1
FrameGap = 3
Trans = Add1
length = 12
PalBright = 0,0,0
PalContrast = 128,128,128
PalAdd = 0,0,0
PalMul= 1,1,1

[state 0,0]
type = velset
trigger1 = time >= 25
x = 13

[State 0,0]
type = PlayerPush
trigger1 = Time >= 0
value = 0
ignorehitpauset = 1

[state 0,0]
type = playsnd
trigger1 = time = 26
value = 200,5

[State 200, HitDef1]
type = HitDef
trigger1 = animelem = 4
attr = S, NA
damage = 49, 2
getpower = 38
givepower = 6
animtype = medium
guardflag = MA
hitflag = MAF
affectteam = B
priority = 2, miss
pausetime = 6, 7
guard.pausetime = 5, 2
sparkno = S6000;2
sparkxy = -8, -24
hitsound = S101, 3
guardsound = S1, 1
ground.type = high
ground.slidetime = 12
ground.hittime  = 12
ground.velocity = 0,-9
air.velocity = 0,-5
fall = 1
air.fall = 1
fall.recover = 0


[State 210, 3]
type = destroyself
trigger1 = frontedgedist <= -100

;---:::::::::::::::::::::::::::::::::::::::::::::
;---------------------------------------------------------------------------
;召喚「セイバー、よろしく」
[Statedef 4005]
type    = S
movetype= A
physics = S
juggle  = 1
ctrl = 0
anim = 1005
sprpriority = -1
poweradd = 0

[State 3900, NotHitBy]
type = NotHitBy
trigger1 = Time = 0
value = SCA,NA,SA,HA,NP,SP,HP
time = 20

[state 0,0]
type = playsnd
trigger1 = time = 0
value = 200,8

[State 0, 0]
type = Helper
trigger1 = time = 5
helpertype = normal
name = "archer"
ID = 1000
stateno = 1006
postype = back
pos = -50,0
keyctrl = 0
ownpal = 1

[State 210, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1


;---------------------------------------------------------------------------
;セイバー
[Statedef 1006]
type    = A
movetype= A
physics = N
juggle  = 1
ctrl = 0
anim = 7008
sprpriority = 2

[state 0,0]
type = screenbound
trigger1 = 1
value = 0

[state 0,0]
type = posset
trigger1 = time = 0
y = 0

[state 0,0]
type = velset
trigger1 = pos y >= 0
y = -10

[state 0,0]
type = velset
trigger1 = 1
x = 3.5

[state 0,0]
type = veladd
trigger1 = pos y < 0
y = 0.45

[State 0,0]
type = PlayerPush
trigger1 = Time >= 0
value = 0
ignorehitpauset = 1

[State 200, HitDef1]
type = HitDef
trigger1 = 1
persistent = 3
attr = A, SA
damage = 8, 0
getpower = 8
givepower = 7
animtype = medium
guardflag = MA
hitflag = MAF
priority = 2, hit
pausetime = 3, 2
guard.pausetime = 3, 3
sparkno = 2
sparkxy = -8, -24
hitsound = S6, 0
guardsound = S1, 1
ground.type = high
ground.slidetime = 12
ground.hittime  = 12
ground.velocity = -2,-3
air.velocity = -2,-3

[State 210, 3]
type = destroyself
trigger1 = frontedgedist <= -100

;---------------------------------------------------------------------------
;ザ・ドライブ
[Statedef 4000]
type    = A
movetype= A
physics = N
juggle  = 1
ctrl = 0
anim = 7003
sprpriority = 2

[state 0,0]
type = velset
trigger1 = time = 0
x = -8
y = -1

[state 0,0]
type = screenbound
trigger1 = 1
value = 0

[State 3000, effect]
type = Explod
trigger1 = time = 1
anim = 7000
scale = 1,1
postype = back
pos = -140,50  
ownpal = 1
sprpriority = 5
ontop = 1
bindtime = -1
supermovetime = 999

[State 3500, 1]
type = SuperPause
trigger1 = time = 1
time = 60
pos = 0,0
anim = -1
sound = S200,2
poweradd = -2000
movetime = 60

[state 0,0]
type = playsnd
trigger1 = time = 1
value = 5,0

[State 210, 3]
type = ChangeState
trigger1 = time >= 60
value = 2001

;---------------------------------------------------------------------------
;ブッブー（^3^）
[Statedef 2001]
type    = S
movetype= A
physics = N
juggle  = 1
ctrl = 0
sprpriority = 2
anim = 7004
velset = 0,0

[State 3500, 1]
type = Pause
trigger1 = time = 0
time = 15
movetime = 15

[state 0,0]
type = playsnd
trigger1 = time = 1
value = 200,3

[state 0,0]
type = playsnd
trigger1 = time = 2
value = 200,1

[State 0, 0]
type = AngleDraw
trigger1 = time >= 1
scale = 2,2

[state 0,0]
type = screenbound
trigger1 = 1
value = 0
ignorehitpause = 1

[state 0,0]
type = posset
trigger1 = time = 0
y = 0

[state 0,0]
type = velset
trigger1 = 1
x = 8

[State 200, HitDef1]
type = HitDef
trigger1 = time >= 3
attr = S, HA
persistent = 45
damage = 375, 25
getpower = 0
givepower = 60
animtype = heavy
guardflag = M
affectteam = B
hitflag = MAF
priority = 5, Hit
pausetime = 1, 2
guard.pausetime = 12, 12
sparkno = s6001
sparkxy = -8, -15
hitsound = S101, 3
guardsound = S1, 1
ground.type = high
ground.slidetime = 10
ground.hittime  = 10
ground.velocity = -14,-17
air.velocity = -9,-25
fall = 1
air.fall = 1
fall.recover = 0

[State 210, 3]
type = ChangeState
trigger1 = time >= 180
trigger1 = frontedgedist <= -150
trigger2 = time >= 1000
value = 2053


;---------------------------------------------------------------------------
;おい見ろ…王の帰還だ…！
[Statedef 2053]
type    = A
movetype= A
physics = N
ctrl = 0
sprpriority = 2
anim = 100
velset = 0,0

[state 0,0]
type = turn
trigger1 = time = 0

[state 0,0]
type = posadd
trigger1 = time = 0
y = -120

[state 0,0]
type = velset
trigger1 = time = 1
x = 8
[state 0,0]
type = veladd
trigger1 = time >= 1
y = 0.45

[State 210, 3]
type = ChangeState
trigger1 = pos y >= 0
trigger1 = time >= 1
value = 52
