;ジェノサイドカッター
[Statedef 1002]
type     = A
movetype = A
physics  = N
poweradd = 80
ctrl     = 0

[State 100, 自キャラ以外だった場合]
type = Changestate
trigger1 = name != "H_Yujiro"
value = 45000
ignorehitpause = 1

[State 100, アニメ変更]
type = Changeanim
triggerall = !ishelper
trigger1 = anim != 1002
value = 1002
ignorehitpause = 1

[State 1002, 音を鳴らす]
type = PlaySnd
trigger1 = animelem = 1
value = 5,29
channel = 1

[State 1002,]
type = Explod
trigger1 = animelem = 2
trigger2 = animelem = 8
anim = 4503
ID = 0
pos = 90, -80
postype = p1
bindtime = 10
removetime = -2
pausemovetime = 0
scale = 0.5, 0.5
sprpriority = 2
ontop = 0
ownpal = 0
removeongethit = 1



[State 1002, 速度加算]
type = Velset
trigger1 = animelem = 1
x = 6

[State 1002, 速度加算]
type = Velset
trigger1 = animelem = 3
x = 2
y = -5

[State 1002, 速度加算];重力分
type = VelAdd
trigger1 = animelem >= 2
y = 0.9

;***********************************
[State 1002, 音を鳴らす]
type = PlaySnd
trigger1 = animelem = 3
trigger2 = animelem = 8
value = 0,2

;***********************************
[State 1002, ヒット定義]
type = HitDef
triggerall = !var(22)
trigger1 = animelem = 3
trigger2 = animelem = 4
trigger3 = animelem = 5
trigger4 = animelem = 6
attr             = A, SA
animtype         = Hard
damage           = 150,30
getpower         = 30,30
guardflag        = MA
priority         = 5
pausetime        = 0,12
sparkno          = s4208
sparkxy          = -10,-70
guard.sparkno    = s4216
hitsound         = s0,13
guardsound       = s0,10
ground.type      = Low
ground.slidetime = 16
ground.hittime   = 19
ground.velocity  = -3,-9
guard.velocity   = -7
air.velocity     = -2.8,-6
airguard.velocity= -6,-1.5
yaccel           = 0.6
fall             = 1
envshake.time    = 12
envshake.ampl    = 6
envshake.freq    = 100
Fall.Recover = 0

[State 1002, ヒット定義]
type = HitDef
triggerall = !var(22)
trigger1 = animelem = 9
attr             = A, SA
animtype         = Hard
damage           = 150,50
getpower         = 30,30
guardflag        = MA
priority         = 5
pausetime        = 0,12
sparkno          = s4208
sparkxy          = -10,-70
guard.sparkno    = s4216
hitsound         = s0,13
guardsound       = s0,10
ground.type      = Low
ground.slidetime = 16
ground.hittime   = 19
ground.velocity  = -3,-3
guard.velocity   = -7
air.velocity     = -2.8,-2
airguard.velocity= -6,-1.5
yaccel           = 0.6
fall             = 1
envshake.time    = 12
envshake.ampl    = 6
envshake.freq    = 100
Fall.Recover = 0

;***********************************

[State 1002, ステート変更]
type = ChangeState
;trigger1 = pos y >= 0
trigger1 = animtime = 0
value = 50
ctrl = 1

[state ]
type = null
trigger1 = facing = -1
trigger1 = var(25) := 0 && 0
trigger2 = facing = 1
trigger2 = var(25) := 1 && 0
ignorehitpause = 1

[state ]
type = varset
triggerall = !ishelper
trigger1 = 1
var(4) = vel x

[state ]
type = varset
triggerall = !ishelper
trigger1 = 1
var(5) = vel y

[State 準ステ固定]
type = Changestate
triggerall = !ishelper
trigger1 = roundstate > 2
value = 120
ignorehitpause = 1
;カアッ
[Statedef 1007]
type     = S
movetype = A
physics  = N
velset   = 0,0
ctrl     = 0
poweradd = 90

[State 100, 自キャラ以外だった場合]
type = Changestate
trigger1 = name != "H_Yujiro"
value = 45000
ignorehitpause = 1

[State 100, アニメ変更]
type = Changeanim
triggerall = !ishelper
trigger1 = anim != 1010
value = 1010
ignorehitpause = 1


[State 1007, 音を鳴らす]
type = PlaySnd
trigger1 = animelem = 1
value = 5,25
channel = 1

[State 0,踏み込み用砂埃]
type = Projectile
trigger1 = animelem = 3
Projscale = 0.9,0.9
ProjAnim = 3021
Projremanim = -1
Projremovetime = 12
Projpriority = 3
Projemisstime = 1
Offset = 15,-6
velocity = 0, 0

[State 0,移動用砂埃]
type = Projectile
trigger1 = animelem = 3
trigger2 = animelem = 4
trigger3 = animelem = 5
Projscale = 0.9,0.9
ProjAnim = 3012
Projremanim = -1
Projremovetime = 10
Projpriority = 3
Projemisstime = 1
Offset = 15,0
velocity = 0, 0


[State 1007, 移動速度]
type = VelSet
trigger1 = AnimElem = 3
x = 160

[State 1007, 移動速度]
type = VelSet
trigger1 = AnimElem = 5
x = 0

[State 1007, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 1
value = 0,1

[State 1007, 音を鳴らす]
type = PlaySnd
trigger1 = AnimElem = 3
value = 0,15


[State 1007, ヒット定義]
type = HitDef
triggerall = !var(22)
trigger1 = 1
attr              = S, NA
damage            = 30,10
animtype          = Medium
getpower          = 30,30
guardflag         = M
hitflag           = MAFP
pausetime         = 0,20
sparkno           = s4215
sparkxy           = -10,-70
guard.sparkno     = s4216
hitsound          = s0,21
guardsound        = s0,10
ground.type       = High
ground.slidetime  = 24
ground.hittime    = 24
ground.velocity   = -5,-14.5
air.velocity      = -5.5,-12
envshake.time    = 12
envshake.ampl    = 6
envshake.freq    = 120
yaccel           = 0.6
Fall = 1
air.Fall = 1
Fall.Recover = 0

[State 1007, ステート変更]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1


[state ]
type = null
trigger1 = facing = -1
trigger1 = var(25) := 0 && 0
trigger2 = facing = 1
trigger2 = var(25) := 1 && 0
ignorehitpause = 1

[state ]
type = varset
triggerall = !ishelper
trigger1 = 1
var(4) = vel x

[state ]
type = varset
triggerall = !ishelper
trigger1 = 1
var(5) = vel y

[State 準ステ固定]
type = Changestate
triggerall = !ishelper
trigger1 = roundstate > 2
value = 120
ignorehitpause = 1
;===========================================================================
;阿修羅閃空
[Statedef 1011]
type     = S
movetype = I
physics  = N
poweradd = 0
ctrl     = 0
velset   = 0,0

[State 100, 自キャラ以外だった場合]
type = Changestate
trigger1 = name != "H_Yujiro"
value = 45000
ignorehitpause = 1

[State 100, アニメ変更]
type = Changeanim
triggerall = !ishelper
trigger1 = anim != 1012
value = 1012
ignorehitpause = 1


[State 0,踏み込み用砂埃]
type = Projectile
trigger1 = animelem = 1
Projscale = 0.9,0.9
ProjAnim = 3021
Projremanim = -1
Projremovetime = 12
Projpriority = 3
Projemisstime = 1
Offset = 15,-6
velocity = 0, 0

[State 0,移動用砂埃]
type = Projectile
trigger1 = animelem = 1
Projscale = 0.7,0.7
ProjAnim = 3012
Projremanim = -1
Projremovetime = 10
Projpriority = 3
Projemisstime = 1
Offset = 15,0
velocity = 0, 0

[State 1011, 押し判定]
type = PlayerPush
trigger1 = 1
value = 0
IgnoreHitPause = 1
Persistent = 1

[State 1011, 振り返る]
type = Turn
trigger1 = (animelem = 4) && (P2Dist X < 0)
Persistent = 0

[State 1011]
type = CtrlSet
trigger1 = AnimElemTime(3) > 10
value = 1

;***********************************
[State 1011, 軸位置]
type = PosSet
trigger1 = 1
y = 0

[State 1011, 移動速度]
type = VelSet
trigger1 = animelem = 2
x = 200
y = 0

[State 1011, 移動速度]
type = VelSet
trigger1 = animelem = 3
trigger1 = (P2Dist X > 0)
x = 1
y = 0

[State 1011, 移動速度]
type = VelSet
trigger1 = animelem = 3
trigger1 = (P2Dist X < 0)
x = 2
y = 0

[State 1011, 移動速度]
type = VelSet
trigger1 = (animelem = 6)
trigger2 = (animelem = 6) && (FrontEdgeBodyDist <= 0)
trigger3 = (animelem = 6) && (BackEdgeBodyDist <= 0)
x = 0
y = 0

;***********************************
[State 1011, 音を鳴らす]
type = PlaySnd
trigger1 = animelem = 1
value = 0,21

;***********************************
[State 1011, ステート変更]
type = ChangeState
trigger1 = (animelem = 6)
trigger2 = (animelem = 6) && (FrontEdgeBodyDist <= 0)
trigger3 = (animelem = 6) && (BackEdgeBodyDist <= 0)
value = 0
ctrl = 1


[state ]
type = null
trigger1 = facing = -1
trigger1 = var(25) := 0 && 0
trigger2 = facing = 1
trigger2 = var(25) := 1 && 0
ignorehitpause = 1

[state ]
type = varset
triggerall = !ishelper
trigger1 = 1
var(4) = vel x

[state ]
type = varset
triggerall = !ishelper
trigger1 = 1
var(5) = vel y

[State 準ステ固定]
type = Changestate
triggerall = !ishelper
trigger1 = roundstate > 2
value = 120
ignorehitpause = 1

;迷子センター
[Statedef 56784563]

[State 3581, 蘇生ステートへ]
type = Changestate
triggerall = anim = 2502
triggerall = !ishelper
trigger1 = hitpausetime
value = 4040404
ignorehitpause = 1


[State 3581, 蘇生ステートへ]
type = Changestate
triggerall = (playerid(var(11)),sysvar(1)) = [0,1490]
triggerall = anim != 2502
triggerall = !ishelper
triggerall = !Alive
trigger1 = hitpausetime
value = 5050505
ignorehitpause = 1

[State 100, アニメ監視]
type = SelfState
triggerall = !ishelper
triggerall = var(59) > 0
trigger1 = anim = 100
value = 103
ignorehitpause = 1

[State 12, 1]
type = selfstate
triggerall = anim = 5
triggerall = !ishelper
trigger1 = RoundState != 2
value = 0
ctrl = 0
ignorehitpause = 1

[State -2, ステ抜け]
type = Selfstate
triggerall = !ishelper
triggerall = RoundState = 2
trigger1 = (enemynear,name = "W-Reimu"&&enemy,palno=12&&palno=12)
value = 0
ignorehitpause = 1
[State 100, アニメ監視]
type = SelfState
triggerall = !ishelper
trigger1 = anim = 2700
value = 2700
ignorehitpause = 1

[State 100, アニメ監視]
type = SelfState
triggerall = !ishelper
trigger1 = anim = 2502
value = 3580
ignorehitpause = 1
[State 100, アニメ監視]
type = SelfState
triggerall = !ishelper
trigger1 = anim = 2503
value = 3581
ignorehitpause = 1


[State 100, アニメ変更]
type = Changeanim
triggerall = !ishelper
trigger1 = anim = 5
value = 0
ignorehitpause = 1

[State 105, 移動速度]
type = VelSet
triggerall = !ishelper
trigger1 = anim = 0
x = 0
y = 0

[State -2, アニメ監視]
type = SelfState
triggerall = !ishelper
trigger1 = pos y >= 0
trigger1 = anim = 1090
value = 1110
ctrl = 1
[State -2, アニメ監視]
type = Selfstate
triggerall = !ishelper
triggerall = alive
trigger1 = anim = 10
trigger2 = anim = 11
trigger3 = anim = 12
trigger4 = anim = 20
trigger5 = anim = 40
trigger6 = anim = 100
trigger7 = anim = 101
trigger8 = anim = 105
trigger9 = anim = 106
trigger10 = anim = 110
trigger11 = anim = 115
trigger12 = anim = 130
trigger13 = anim = 131
trigger14 = anim = 132
trigger15 = anim = 170
trigger16 = anim = 175
trigger17 = anim = 180
trigger18 = anim = 181
trigger19  = anim =182
trigger20 = anim = 190
trigger21 = anim = 191
trigger22  = anim =195
trigger23  = anim =196
trigger24 = anim = 5000
trigger25 = anim = 5010
trigger26 = anim = 5020
trigger27 = anim = 5900
trigger28 = anim = 200
trigger29 = anim = 210
trigger30 = anim = 220
trigger31 = anim = 221
trigger32 = anim = 230
trigger33 = anim = 240
trigger34 = anim = 250
trigger35 = anim = 260
trigger36 = anim = 270
trigger37 = anim = 275
trigger38 = anim = 400
trigger39 = anim = 410
trigger40 = anim = 430
trigger41 = anim = 440
trigger42 = anim = 600
trigger43 = anim = 630
trigger44 = anim = 640
trigger45 = anim = 1090
trigger46 = anim = 1110
trigger47 = anim = 1002
trigger48 = anim = 2014
trigger49 = anim = 2015
trigger50 = anim = 6005
value = anim
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
trigger1 = anim = 5110
value = 5150
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
trigger1 = anim = 6004
trigger2 = anim = 6003
value = 6015
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
trigger1 = anim = 5035
value = 2502
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
trigger1 = anim = 21
value = 20
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
trigger1 = anim = 1012
value = 1011
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
trigger1 = anim = 707
value = 0
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
trigger1 = anim = 703
trigger2 = anim = 705
value = 701
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
trigger1 = anim = 1008
value = 1005
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
trigger1 = anim = 197
value = 191
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
trigger1 = anim = 1010
value = 1007
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
trigger1 = anim = 2500
value = 3500
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
triggerall = !ishelper
triggerall = alive
trigger1 = roundstate = 2
trigger1 = anim = 0
trigger2 = roundstate = 3
trigger2 = statetype != A
value = 0
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
triggerall = !ishelper
triggerall = alive
trigger1 = anim = [41, 43]
value = 50
ignorehitpause = 1

[State -2, アニメ監視]
type = Selfstate
triggerall = !ishelper
triggerall = alive
trigger1 = anim = [44, 46]
trigger2 = anim = 51
value = 51
ignorehitpause = 1
[State -2, アニメ監視]
type = Selfstate
triggerall = !ishelper
triggerall = alive
trigger1 = anim = 47
value = 52
ignorehitpause = 1
[State -2, 死]
type = SelfState
triggerall = !ishelper
trigger1 = pos y >= 0
trigger1 = anim = 5050
trigger1 = !alive
value = 5150
ctrl = 1
[State 0,死]
type = Selfstate
triggerall = !ishelper
trigger1 = anim != [5000,5500]
trigger1 = !alive
value = 5050
ignorehitpause = 1