[Statedef 4214]
type        = S
movetype    = I
physics     = N
ctrl        = 1
anim        = 1
velset      = 0,0
sprpriority = 1

[State 4214]
type = ChangeState
trigger1 = !ishelper
value = 1
ctrl = 1

[state 4214]
type = nothitby
trigger1 = time <= 50
trigger2 = Life = 1
trigger3 = stateno = 2000
trigger4 = stateno = 5000
value= SCA
time = time%1 = 0

[state 4214]
type = BindToRoot
trigger1 = 1
time = -1
facing = 1
pos = 0, 0
ignorehitpause=1

[State 4214]
type = AssertSpecial
trigger1 = 1
flag = noshadow 
flag = invisible
ignorehitpause = 1

[State 4214]
type = ChangeAnim
trigger1 = anim != 1
value = 1

[state 4214]
type = PlayerPush
trigger1 = 1
value = 1
ignorehitpause=1

[State 4214]
type = Turn
trigger1 = Facing != parent,Facing
ignorehitpause = 1

[State 4214]
type = HitOverride
trigger1 = 1
attr = SCA,AA,AT,AP
stateno = 4214
time = -1

[State 4214]
type = DestroySelf
trigger1 = roundstate != 2
ignorehitpause = 1

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

[statedef -2]

[state -2]
type = nothitby
trigger1 = 1
value= SCA
time = -1

[State ProjHitBy]
type  = Helper
helpertype = normal
trigger1 = !NumHelper(2001)
trigger1 = !NumTarget
trigger1 = StateNo = 2000
name = "kurai"
id = 2001
pos = 0,100000000000000
postype = P1
stateno = 2001
ownpal = 1
ignorehitpause = 1
superpausetime = 99999
pausemovetime = 99999

[State TargetHelper] 
type = Helper
helpertype = normal
trigger1 = !IsHelper
trigger1 = !NumHelper(2002)
trigger1 = !NumTarget
trigger1 = StateNo = 2000
name = "target"
id = 2002
pos = 0,1000000000   
postype = P1
stateno = 2002
keyctrl = 0
ownpal = 1
ignorehitpause = 1
Superpausetime = 99999
pausemovetime = 99999

[State ReversalDef] 
type = ReversalDef
trigger1 = !IsHelper
trigger1 = NumTarget
trigger1 = StateNo = 2000
reversal.attr = SCA,AA,AT,AP
priority = 7, Hit
pausetime = 0,0
hitsound = -1
p2stateno = 5150
ignorehitpause = 1

[State ReversState]
type = TargetState
trigger1 = !IsHelper
trigger1 = NumTarget
trigger1 = StateNo = 2000
value = 4444
ignorehitpause = 1

[State ステート抜け] 
type = changeState
trigger1 = IsHelper(2001)
trigger1 = Stateno != 2001
value = 2001
ignorehitpause = 1

[State ステート抜け] 
type = changestate
trigger1 = IsHelper(2002)
trigger1 = StateNo != 2002 
value = 4444
ignorehitpause = 1


[State ステ抜け用]
type = VarSet
trigger1 = 1
var(0) = 0
ignorehitpause = 1

[State エフェクト] 
type = Explod
trigger1 = time = 1
trigger1 = stateno = 2000
anim = 2005
ID = 2005
pos = 0,-12
vel = 0,0
postype = left
sprpriority = 0
bindtime = -1
pausemovetime = 0
supermovetime = 0
scale = 2.3,1.5
removetime = 552
facing = 1
vfacing = 1

[State -2]
type = helper
triggerall = !Ishelper
trigger1 = numhelper(5001)=0
trigger1 = stateno = 5000
id = 5001
name = "OTHK2"
pos = 0,1000
postype = P1
stateno = 5001
helpertype = normal
keyctrl = 0
ownpal = 1
ignorehitpause = 1
SuperMoveTime = 99999999999
PauseMoveTime = 99999999999

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 1
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = helper(1),gethitvar(damage)
value = -1000

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 2
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = helper(1),gethitvar(damage)
value = -250

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 3
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -125

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 4
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -100

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 5
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -75

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 6
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -50

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 7
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -40

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 8
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -25

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 9
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -15

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 10
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -10

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 11
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -5

[state a]
type = lifeadd
triggerall = !ishelper
trigger1 = palno = 12
trigger1 = numhelper(1) = 1
trigger1 = numhelper(9) = 1
trigger1 = P2Life < 1000
trigger1 = helper(1),gethitvar(damage)
value = -1

[State アーマー]
type = helper
triggerall = !ishelper
trigger1 = numhelper(1)=0
trigger1 = roundstate = 2
id = 1
name = ""
postype = p1
stateno = 4214
helpertype = normal
ownpal = 0
ignorehitpause = 1

[State イグのん]
type = helper
trigger1 = RoundNo = 1 
trigger1 = numhelper(9) = 0
trigger1 = roundstate = 0
id = 9
name = "9"
postype = p1
stateno = 192
helpertype = normal
ignorehitpause = 1

[State イグのん]
type = helper
trigger1 = RoundNo >= 2
trigger1 = numhelper(9) = 0
trigger1 = roundstate = 0
id = 9
name = "9"
postype = p1
stateno = 900
helpertype = normal
ignorehitpause = 1

[State -2]
type = Poweradd
triggerall = palno = [5,12]
trigger1 = time%1 = 0
trigger1 = roundstate = 2
trigger1 = stateno != 2000
trigger1 = stateno != 3000
trigger1 = stateno != 5000
value = 20
ctrl = 1

[State -2]
type = Lifeset
triggerall = palno = [5,12]
trigger1 = roundstate = 3
trigger1 = life > 0
value = 1000
ctrl = 1

[State -2]
type = Lifeset
trigger1 = life = 1
value = 1000
ctrl = 1

[state -2]
type = changestate
trigger1 = roundstate = 2
trigger1 = stateno != 2000
trigger1 = stateno != 3000
trigger1 = stateno != 5000
trigger1 = time = 60
value = 0
ctrl = 1

[State 3000,エフェクト] 
type = Explod
trigger1 = RoundNo = 1 
trigger1 = stateno = 0
trigger1 = NumExplod(3) = 0
trigger2 = RoundNo >= 2
trigger2 = NumExplod(3) = 0
anim = 3
ID = 3
pos = 0,-80
vel = 0,0
postype = p1
sprpriority = 1
bindtime = -1
pausemovetime = 0
supermovetime = 0
scale = 1,1
removetime = -1
facing = 1

[State 3000,エフェクト] 
type = RemoveExplod
trigger1 = roundstate >= 3
ID = 3