;===========================================================================
;全員「attr = A, HA」なのは賢者などを自滅させないようにするため。
;黒騎士魔王ザイン用ステート
[Statedef 30001]
type     = S
movetype = A
physics  = N
velset = -8,0
ctrl     = 0
anim     = 30001
sprpriority = -1

[State 30001, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 10*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.type = low
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0,0
affectteam = F

[State 3000, 1];投げられない設定
type = NotHitBy
trigger1 = Time >= 0
value = ,AT

[State 3000]
type = varadd
;trigger1 = Time = 0
trigger1 = MoveContact = 1
var(0) = 1 

[State 3000, ヘルパーを消す]
type = DestroySelf
trigger1 = Time >= 600
trigger2 = RoundState > 2

[State 3000, 6];画面端で指定したところまで来たら消滅させる
type = DestroySelf
trigger1 = FrontEdgeDist <= -100
trigger2 = BackEdgeDist <= -100

;[State 3000, 4];攻撃を当てるとノックバックステートへ
;type = ChangeState
;trigger1 = MoveHit = 1
;value = 31000

[State 3000, N回当たってたらヘルパーを消す]
type = ChangeState
;triggerall = Time = 0
trigger1 = (var(0))%7 = 6
value = 31001


[Statedef 31000, 4];ノックバック後元通り
type     = S
movetype = A
physics  = N
velset = 10,0
ctrl     = 0
anim     = 30001
sprpriority = -1

[State 3000, 1];投げられない設定
type = NotHitBy
trigger1 = Time >= 0
value = ,AT

[State 23000]
type = ChangeState
trigger1 = Time = 5
value = 31001


[Statedef 31001];攻撃を一定回数当てると吹っ飛ぶ
type    = A
movetype= H
physics = N
anim    = 30001
velset = 0,0

[State 33000, 3]
type = PlaySnd
trigger1 = Time = 0
value = 11,1

[State 30001, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 10*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.velocity = -8, -5
air.velocity = -8, -5

[State 33000, 1]
type = VelSet
trigger1 = AnimElem = 1
x = 8
y = -5

[State 33000, 3]
type = DestroySelf
trigger1 = Time = 30
trigger2 = BackEdgeDist <= -50
trigger3 = FrontEdgeDist <= -50

[State 33000, 回転中攻撃当たらない]
type = NotHitBy
value = SCA
trigger1 = 1

;回転
[State 33000, Pos]
type = Angleadd
trigger1 = 1
value = -30;value = 40
[State 33000, Pos]
type = AngleDraw
trigger1 = 1

[State 33000, 経験値]
type = ParentVarAdd
trigger1 = time = 0
var(57) = 20

;===========================================================================
;死神魔王ラミデス用ステート
[Statedef 30002]
type     = S
movetype = A
physics  = N
velset = -2,0
ctrl     = 0
anim     = 30002
sprpriority = -1

[State 30002, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 10*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
ground.type = low
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
affectteam = F

[State 3100, ヘルパーを消す]
type = DestroySelf
trigger1 = Time >= 400
trigger2 = RoundState > 2

[State 3100, 6];画面端で指定したところまで来たら消滅させる
type = DestroySelf
trigger1 = FrontEdgeDist <= -100

[State 3000, 1];投げられない設定
type = NotHitBy
trigger1 = Time >= 0
value = ,AT

[State 3000, 1];当たらない
type = NotHitBy
trigger1 = Time >= 0
value = SCA

[State 3000]
type = varadd
;trigger1 = Time = 0
trigger1 = MoveContact = 1
var(0) = 1 

[State 3000, ヘルパーを消す]
type = DestroySelf
trigger1 = Time >= 600
trigger2 = RoundState > 2

[State 3000, 6];画面端で指定したところまで来たら消滅させる
type = DestroySelf
trigger1 = FrontEdgeDist <= -100
trigger2 = BackEdgeDist <= -100

[State 3000, N回当たってたらヘルパーを消す]
type = ChangeState
;triggerall = Time = 0
trigger1 = (var(0))%6 = 5
value = 31002

[State 3103,分身発射]
type = Projectile
trigger1 = Time%30 = 1
ProjID = 30010
projanim = 30010
velocity = -6,0
projscale = const(size.xscale)*1, const(size.yscale)*1
Projhits = 1
Projmisstime = 1
Projpriority = 7
Projsprpriority = -1
Projedgebound = 40
Projstagebound = 40
;Offset = 
;Postype = 
;Projshadow =
Supermovetime = 0
Pasusemovetime = 0
;↓ここからhitdef
attr = A, HA
damage    = 2,0
guardflag = MA
pausetime = 1,1
animtype  = light
sparkno = S2007
sparkxy = -6, 3
guard.sparkxy = -10,-37
affectteam = F


[Statedef 31002];攻撃を一定回数当てると吹っ飛ぶ
type    = A
movetype= H
physics = N
anim    = 30002
velset = 0,0

[State 33000, 3]
type = PlaySnd
trigger1 = Time = 0
value = 11,1

[State 30002, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 10*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.velocity = -8, -5
air.velocity = -8, -5

[State 33000, 1]
type = VelSet
trigger1 = AnimElem = 1
x = 8
y = -5

[State 33000, 3]
type = DestroySelf
trigger1 = Time = 30
trigger2 = BackEdgeDist <= -50
trigger3 = FrontEdgeDist <= -50

[State 33000, 回転中攻撃当たらない]
type = NotHitBy
value = SCA
trigger1 = 1

;回転
[State 33000, Pos]
type = Angleadd
trigger1 = 1
value = -30;value = 40
[State 33000, Pos]
type = AngleDraw
trigger1 = 1

[State 33000, 経験値]
type = ParentVarAdd
trigger1 = time = 0
var(57) = 30



;===========================================================================
;大魔王ホロヴォス用ステート
[Statedef 30003]
type     = S
movetype = A
physics  = N
velset = -1,0
ctrl     = 0
anim     = 30003
sprpriority = -1

[State 30003, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 20*parent,Var(5), 0
animtype = hard
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.type = low
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0,0
affectteam = B

[State 3000, 1];投げられない設定
type = NotHitBy
trigger1 = Time >= 0
value = ,AT

[State 3000]
type = varadd
;trigger1 = Time = 0
trigger1 = MoveContact = 1
var(0) = 1 

[State 3000, ヘルパーを消す]
type = DestroySelf
trigger1 = Time >= 600
trigger2 = RoundState > 2

[State 3000, 6];画面端で指定したところまで来たら消滅させる
type = DestroySelf
trigger1 = FrontEdgeDist <= -200
trigger2 = BackEdgeDist <= -200

[State 3000, N回当たってたらヘルパーを消す]
type = ChangeState
;triggerall = Time = 0
trigger1 = (var(0))%10 = 9
value = 31003

[Statedef 31003];攻撃を一定回数当てると吹っ飛ぶ
type    = A
movetype= H
physics = N
anim    = 30003
velset = 0,0

[State 33000, 3]
type = PlaySnd
trigger1 = Time = 0
value = 11,1

[State 30003, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 20*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.velocity = -8, -5
air.velocity = -8, -5

[State 33000, 1]
type = VelSet
trigger1 = AnimElem = 1
x = 8
y = -5

[State 33000, 3]
type = DestroySelf
trigger1 = Time = 30
trigger2 = BackEdgeDist <= -50
trigger3 = FrontEdgeDist <= -50

[State 33000, 回転中攻撃当たらない]
type = NotHitBy
value = SCA
trigger1 = 1

;回転
[State 33000, Pos]
type = Angleadd
trigger1 = 1
value = -30;value = 40
[State 33000, Pos]
type = AngleDraw
trigger1 = 1

[State 33000, 経験値]
type = ParentVarAdd
trigger1 = time = 0
var(57) = 60




;===========================================================================
;魔人ノワール用ステート
[Statedef 30004]
type     = S
movetype = A
physics  = N
velset = -2,0
ctrl     = 0
anim     = 30004
sprpriority = -1

[State 30004, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 10*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.type = low
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0,0
givepower = -100
affectteam = F
kill = 0

[State 3000, 1];投げられない設定
type = NotHitBy
trigger1 = Time >= 0
value = ,AT

[State 3000]
type = varadd
;trigger1 = Time = 0
trigger1 = MoveContact = 1
var(0) = 1 

[State 3000, ヘルパーを消す]
type = DestroySelf
trigger1 = Time >= 600
trigger2 = RoundState > 2

[State 3000, 6];画面端で指定したところまで来たら消滅させる
type = DestroySelf
trigger1 = FrontEdgeDist <= -100
trigger2 = BackEdgeDist <= -100

[State 3000, N回当たってたらヘルパーを消す]
type = ChangeState
;triggerall = Time = 0
trigger1 = (var(0))%4 = 3
value = 31004

[Statedef 31004];攻撃を一定回数当てると吹っ飛ぶ
type    = A
movetype= H
physics = N
anim    = 30004
velset = 0,0

[State 33000, 3]
type = PlaySnd
trigger1 = Time = 0
value = 11,1

[State 30004, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 10*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.velocity = -8, -5
air.velocity = -8, -5
kill = 0

[State 33000, 1]
type = VelSet
trigger1 = AnimElem = 1
x = 8
y = -5

[State 33000, 3]
type = DestroySelf
trigger1 = Time = 30
trigger2 = BackEdgeDist <= -50
trigger3 = FrontEdgeDist <= -50

[State 33000, 回転中攻撃当たらない]
type = NotHitBy
value = SCA
trigger1 = 1

;回転
[State 33000, Pos]
type = Angleadd
trigger1 = 1
value = -30;value = 40
[State 33000, Pos]
type = AngleDraw
trigger1 = 1

[State 33000, 経験値]
type = ParentVarAdd
trigger1 = time = 0
var(57) = 30

;===========================================================================
;アクドー3人衆ジャドー用ステート
[Statedef 30007]
type     = S
movetype = A
physics  = N
velset = -3,0
ctrl     = 0
anim     = 30007
sprpriority = -1

[State 30007, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 5*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.type = low
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0,0
affectteam = F
kill = 0

[State 3000, 1];投げられない設定
type = NotHitBy
trigger1 = Time >= 0
value = ,AT

[State 3000]
type = varadd
;trigger1 = Time = 0
trigger1 = MoveContact = 1
var(0) = 1 

[State 3000, ヘルパーを消す]
type = DestroySelf
trigger1 = Time >= 600
trigger2 = RoundState > 2

[State 3000, 6];画面端で指定したところまで来たら消滅させる
type = DestroySelf
trigger1 = FrontEdgeDist <= -100
trigger2 = BackEdgeDist <= -100

[State 3000, N回当たってたらヘルパーを消す]
type = ChangeState
;triggerall = Time = 0
trigger1 = (var(0))%3 = 2
value = 31007

[Statedef 31007];攻撃を一定回数当てると吹っ飛ぶ
type    = A
movetype= H
physics = N
anim    = 30007
velset = 0,0

[State 33000, 3]
type = PlaySnd
trigger1 = Time = 0
value = 11,1

[State 30007, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 5*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.velocity = -5, -3
air.velocity = -5, -3
kill = 0

[State 33000, 1]
type = VelSet
trigger1 = AnimElem = 1
x = 8
y = -5

[State 33000, 3]
type = DestroySelf
trigger1 = Time = 30
trigger2 = BackEdgeDist <= -50
trigger3 = FrontEdgeDist <= -50

[State 33000, 回転中攻撃当たらない]
type = NotHitBy
value = SCA
trigger1 = 1

;回転
[State 33000, Pos]
type = Angleadd
trigger1 = 1
value = -30;value = 40
[State 33000, Pos]
type = AngleDraw
trigger1 = 1

[State 33000, 経験値]
type = ParentVarAdd
trigger1 = time = 0
var(57) = 20

;===========================================================================
;アクドー3人衆ゲドー用ステート
[Statedef 30008]
type     = S
movetype = A
physics  = N
velset = -2,0
ctrl     = 0
anim     = 30008
sprpriority = -1

[State 30008, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 5*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.type = low
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0,0
affectteam = F
kill = 0

[State 3000, 1];投げられない設定
type = NotHitBy
trigger1 = Time >= 0
value = ,AT

[State 3000]
type = varadd
;trigger1 = Time = 0
trigger1 = MoveContact = 1
var(0) = 1 

[State 3000, ヘルパーを消す]
type = DestroySelf
trigger1 = Time >= 600
trigger2 = RoundState > 2

[State 3000, 6];画面端で指定したところまで来たら消滅させる
type = DestroySelf
trigger1 = FrontEdgeDist <= -100
trigger2 = BackEdgeDist <= -100

[State 3000, N回当たってたらヘルパーを消す]
type = ChangeState
;triggerall = Time = 0
trigger1 = (var(0))%3 = 2
value = 31008

[Statedef 31008];攻撃を一定回数当てると吹っ飛ぶ
type    = A
movetype= H
physics = N
anim    = 30008
velset = 0,0

[State 33000, 3]
type = PlaySnd
trigger1 = Time = 0
value = 11,1

[State 30008, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 5*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.velocity = -5, -3
air.velocity = -5, -3
kill = 0

[State 33000, 1]
type = VelSet
trigger1 = AnimElem = 1
x = 8
y = -5

[State 33000, 3]
type = DestroySelf
trigger1 = Time = 30
trigger2 = BackEdgeDist <= -50
trigger3 = FrontEdgeDist <= -50

[State 33000, 回転中攻撃当たらない]
type = NotHitBy
value = SCA
trigger1 = 1

;回転
[State 33000, Pos]
type = Angleadd
trigger1 = 1
value = -30;value = 40
[State 33000, Pos]
type = AngleDraw
trigger1 = 1

[State 33000, 経験値]
type = ParentVarAdd
trigger1 = time = 0
var(57) = 20

;===========================================================================
;アクドー3人衆ヒドー用ステート
[Statedef 30009]
type     = S
movetype = A
physics  = N
velset = -1,0
ctrl     = 0
anim     = 30009
sprpriority = -1

[State 30009, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 5*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.type = low
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0,0
affectteam = F
kill = 0

[State 3000, 1];投げられない設定
type = NotHitBy
trigger1 = Time >= 0
value = ,AT

[State 3000]
type = varadd
;trigger1 = Time = 0
trigger1 = MoveContact = 1
var(0) = 1 

[State 3000, ヘルパーを消す]
type = DestroySelf
trigger1 = Time >= 600
trigger2 = RoundState > 2

[State 3000, 6];画面端で指定したところまで来たら消滅させる
type = DestroySelf
trigger1 = FrontEdgeDist <= -100
trigger2 = BackEdgeDist <= -100

[State 3000, N回当たってたらヘルパーを消す]
type = ChangeState
;triggerall = Time = 0
trigger1 = (var(0))%4 = 3
value = 31009

[Statedef 31009];攻撃を一定回数当てると吹っ飛ぶ
type    = A
movetype= H
physics = N
anim    = 30009
velset = 0,0

[State 33000, 3]
type = PlaySnd
trigger1 = Time = 0
value = 11,1

[State 30009, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 5*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.velocity = -5, -3
air.velocity = -5, -3
kill = 0

[State 33000, 1]
type = VelSet
trigger1 = AnimElem = 1
x = 8
y = -5

[State 33000, 3]
type = DestroySelf
trigger1 = Time = 30
trigger2 = BackEdgeDist <= -50
trigger3 = FrontEdgeDist <= -50

[State 33000, 回転中攻撃当たらない]
type = NotHitBy
value = SCA
trigger1 = 1

;回転
[State 33000, Pos]
type = Angleadd
trigger1 = 1
value = -30;value = 40
[State 33000, Pos]
type = AngleDraw
trigger1 = 1

[State 33000, 経験値]
type = ParentVarAdd
trigger1 = time = 0
var(57) = 20

;===========================================================================
;ジェリー用ステート
[Statedef 30010]
type     = S
movetype = A
physics  = N
velset = -1,0
ctrl     = 0
anim     = 30011
sprpriority = -1

[State 30010, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 2*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.type = low
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0,0
affectteam = F
kill = 0

[State 3000, 1];投げられない設定
type = NotHitBy
trigger1 = Time >= 0
value = ,AT

[State 3000]
type = varadd
;trigger1 = Time = 0
trigger1 = MoveContact = 1
var(0) = 1 

[State 3000, ヘルパーを消す]
type = DestroySelf
trigger1 = Time >= 600
trigger2 = RoundState > 2

[State 3000, 6];画面端で指定したところまで来たら消滅させる
type = DestroySelf
trigger1 = FrontEdgeDist <= -100
trigger2 = BackEdgeDist <= -100

[State 3000, N回当たってたらヘルパーを消す]
type = ChangeState
;triggerall = Time = 0
trigger1 = (var(0))%2 = 1
value = 31010

[Statedef 31010];攻撃を一定回数当てると吹っ飛ぶ
type    = A
movetype= H
physics = N
anim    = 30011
velset = 0,0

[State 33000, 3]
type = PlaySnd
trigger1 = Time = 0
value = 11,1

[State 30010, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 2*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.velocity = 0, 0
air.velocity = 0, 0
kill = 0

[State 33000, 1]
type = VelSet
trigger1 = AnimElem = 1
x = 8
y = -5

[State 33000, 3]
type = DestroySelf
trigger1 = Time = 30
trigger2 = BackEdgeDist <= -50
trigger3 = FrontEdgeDist <= -50

[State 33000, 回転中攻撃当たらない]
type = NotHitBy
value = SCA
trigger1 = 1

;回転
[State 33000, Pos]
type = Angleadd
trigger1 = 1
value = -30;value = 40
[State 33000, Pos]
type = AngleDraw
trigger1 = 1

[State 33000, 経験値]
type = ParentVarAdd
trigger1 = time = 0
var(57) = 5

;===========================================================================
;ゴブリンリーダー用ステート
[Statedef 30011]
type     = S
movetype = A
physics  = N
velset = -1,0
ctrl     = 0
anim     = 30012
sprpriority = -1

[State 30011, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 2*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.type = low
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0,0
affectteam = F
kill = 0

[State 3000, 1];投げられない設定
type = NotHitBy
trigger1 = Time >= 0
value = ,AT

[State 3000]
type = varadd
;trigger1 = Time = 0
trigger1 = MoveContact = 1
var(0) = 1 

[State 3000, ヘルパーを消す]
type = DestroySelf
trigger1 = Time >= 600
trigger2 = RoundState > 2

[State 3000, 6];画面端で指定したところまで来たら消滅させる
type = DestroySelf
trigger1 = FrontEdgeDist <= -100
trigger2 = BackEdgeDist <= -100

[State 3000, N回当たってたらヘルパーを消す]
type = ChangeState
;triggerall = Time = 0
trigger1 = (var(0))%3 = 1
value = 31011

[Statedef 31011];攻撃を一定回数当てると吹っ飛ぶ
type    = A
movetype= H
physics = N
anim    = 30012
velset = 0,0

[State 33000, 3]
type = PlaySnd
trigger1 = Time = 0
value = 11,1

[State 30011, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 2*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.velocity = 0, 0
air.velocity = 0, 0
kill = 0

[State 33000, 1]
type = VelSet
trigger1 = AnimElem = 1
x = 8
y = -5

[State 33000, 3]
type = DestroySelf
trigger1 = Time = 30
trigger2 = BackEdgeDist <= -50
trigger3 = FrontEdgeDist <= -50

[State 33000, 回転中攻撃当たらない]
type = NotHitBy
value = SCA
trigger1 = 1

;回転
[State 33000, Pos]
type = Angleadd
trigger1 = 1
value = -30;value = 40
[State 33000, Pos]
type = AngleDraw
trigger1 = 1

[State 33000, 経験値]
type = ParentVarAdd
trigger1 = time = 0
var(57) = 5

;===========================================================================
;いしころボーヤ用ステート
[Statedef 30012]
type     = S
movetype = A
physics  = N
velset = -1,0
ctrl     = 0
anim     = 30013
sprpriority = -1

[State 30010, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 2*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.type = low
ground.slidetime = 0
ground.hittime  = 0
ground.velocity = 0,0
affectteam = F
kill = 0

[State 3000, 1];投げられない設定
type = NotHitBy
trigger1 = Time >= 0
value = ,AT

[State 3000]
type = varadd
;trigger1 = Time = 0
trigger1 = MoveContact = 1
var(0) = 1 

[State 3000, ヘルパーを消す]
type = DestroySelf
trigger1 = Time >= 600
trigger2 = RoundState > 2

[State 3000, 6];画面端で指定したところまで来たら消滅させる
type = DestroySelf
trigger1 = FrontEdgeDist <= -100
trigger2 = BackEdgeDist <= -100

[State 3000, N回当たってたらヘルパーを消す]
type = ChangeState
;triggerall = Time = 0
trigger1 = (var(0))%2 = 1
value = 31012

[Statedef 31012];攻撃を一定回数当てると吹っ飛ぶ
type    = A
movetype= H
physics = N
anim    = 30013
velset = 0,0

[State 33000, 3]
type = PlaySnd
trigger1 = Time = 0
value = 11,1

[State 30012, ヒット定義]
type = HitDef
trigger1 = Time = 0 
attr = A, HA
damage = 2*parent,Var(5), 0
animtype = Light
guardflag = MA
hitflag = MAF
priority = 1, Hit
pausetime = 1, 1
guard.pausetime =0,0
sparkno = S2006
sparkxy = -6, 3
hitsound = S1, 2
guardsound = S1, 2
ground.velocity = 0, 0
air.velocity = 0, 0
kill = 0

[State 33000, 1]
type = VelSet
trigger1 = AnimElem = 1
x = 8
y = -5

[State 33000, 3]
type = DestroySelf
trigger1 = Time = 30
trigger2 = BackEdgeDist <= -50
trigger3 = FrontEdgeDist <= -50

[State 33000, 回転中攻撃当たらない]
type = NotHitBy
value = SCA
trigger1 = 1

;回転
[State 33000, Pos]
type = Angleadd
trigger1 = 1
value = -30;value = 40
[State 33000, Pos]
type = AngleDraw
trigger1 = 1

[State 33000, 経験値]
type = ParentVarAdd
trigger1 = time = 0
var(57) = 5




